]> gcc.gnu.org Git - gcc.git/blame - configure
Added _Cilk_spawn and _Cilk_sync (2 cilk keywords) for C.
[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
645stage1_languages
d7f09764 646extra_host_libiberty_configure_flags
5213506e
RW
647clooginc
648clooglibs
33ad93b9 649islinc
5213506e 650poststage1_ldflags
ed2eaa9f 651poststage1_libs
5213506e 652stage1_ldflags
0b21f5d3 653stage1_libs
0ff2d841 654extra_isl_gmp_configure_flags
5213506e
RW
655extra_mpc_mpfr_configure_flags
656extra_mpc_gmp_configure_flags
657extra_mpfr_configure_flags
658gmpinc
659gmplibs
660do_compare
661GNATMAKE
662GNATBIND
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
a4a2c37d 673EXTRA_CONFIGARGS_LIBJAVA
5213506e
RW
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
87264276
PB
678AWK
679SED
5213506e
RW
680LN_S
681LN
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693target_noncanonical
694host_noncanonical
695build_noncanonical
696build_os
697build_vendor
698build_cpu
699build
700TOPLEVEL_CONFIGURE_ARGUMENTS
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files='serialization_dependencies
740host_makefile_frag
741target_makefile_frag
742alphaieee_frag
743ospace_frag'
744ac_user_opts='
745enable_option_checking
746with_build_libsubdir
747enable_gold
21539e2e 748enable_ld
87e6d9dc
TB
749enable_libquadmath
750enable_libquadmath_support
5213506e
RW
751enable_libada
752enable_libssp
1873ec0c 753enable_libstdcxx
a4a2c37d 754enable_static_libjava
ff3ac0f4 755enable_bootstrap
5213506e
RW
756with_mpc
757with_mpc_include
758with_mpc_lib
759with_mpfr_dir
760with_mpfr
761with_mpfr_include
762with_mpfr_lib
763with_gmp_dir
764with_gmp
765with_gmp_include
766with_gmp_lib
767with_host_libstdcxx
5213506e 768with_stage1_libs
0b21f5d3 769with_stage1_ldflags
5213506e 770with_boot_libs
ed2eaa9f 771with_boot_ldflags
625afa23 772with_cloog
33ad93b9
RG
773with_isl
774with_isl_include
775with_isl_lib
776enable_isl_version_check
5213506e
RW
777with_cloog_include
778with_cloog_lib
779enable_cloog_version_check
d7f09764 780enable_lto
5213506e
RW
781enable_stage1_languages
782enable_objc_gc
783with_build_sysroot
784with_debug_prefix_map
5646b7b9 785with_build_config
5213506e
RW
786enable_serial_configure
787with_build_time_tools
788enable_maintainer_mode
789enable_stage1_checking
790enable_werror
459260ec 791enable_host_shared
5213506e
RW
792'
793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801CXX
802CXXFLAGS
803CCC
ffedf511
RW
804build_configargs
805host_configargs
806target_configargs
5213506e
RW
807AR
808AS
809DLLTOOL
810LD
811LIPO
812NM
813RANLIB
814STRIP
815WINDRES
816WINDMC
817OBJCOPY
818OBJDUMP
e7a82751 819READELF
5213506e
RW
820CC_FOR_TARGET
821CXX_FOR_TARGET
822GCC_FOR_TARGET
823GCJ_FOR_TARGET
824GFORTRAN_FOR_TARGET
632e2a07 825GOC_FOR_TARGET
5213506e
RW
826AR_FOR_TARGET
827AS_FOR_TARGET
828DLLTOOL_FOR_TARGET
829LD_FOR_TARGET
830LIPO_FOR_TARGET
831NM_FOR_TARGET
832OBJDUMP_FOR_TARGET
833RANLIB_FOR_TARGET
e7a82751 834READELF_FOR_TARGET
5213506e
RW
835STRIP_FOR_TARGET
836WINDRES_FOR_TARGET
837WINDMC_FOR_TARGET'
838
671aa708
NN
839
840# Initialize some variables set by options.
1c710c3c
DJ
841ac_init_help=
842ac_init_version=false
5213506e
RW
843ac_unrecognized_opts=
844ac_unrecognized_sep=
671aa708
NN
845# The variables have the same names as the options, with
846# dashes changed to underlines.
1c710c3c 847cache_file=/dev/null
671aa708 848exec_prefix=NONE
671aa708 849no_create=
671aa708
NN
850no_recursion=
851prefix=NONE
852program_prefix=NONE
853program_suffix=NONE
854program_transform_name=s,x,x,
855silent=
856site=
857srcdir=
671aa708
NN
858verbose=
859x_includes=NONE
860x_libraries=NONE
1c710c3c
DJ
861
862# Installation directory options.
863# These are left unexpanded so users can "make install exec_prefix=/foo"
864# and all the variables that are supposed to be based on exec_prefix
865# by default will actually change.
866# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 867# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
868bindir='${exec_prefix}/bin'
869sbindir='${exec_prefix}/sbin'
870libexecdir='${exec_prefix}/libexec'
5213506e
RW
871datarootdir='${prefix}/share'
872datadir='${datarootdir}'
671aa708
NN
873sysconfdir='${prefix}/etc'
874sharedstatedir='${prefix}/com'
875localstatedir='${prefix}/var'
671aa708
NN
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
5213506e
RW
878docdir='${datarootdir}/doc/${PACKAGE}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
79c06341 887
671aa708 888ac_prev=
5213506e 889ac_dashdash=
671aa708
NN
890for ac_option
891do
671aa708
NN
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
5213506e 894 eval $ac_prev=\$ac_option
671aa708
NN
895 ac_prev=
896 continue
897 fi
79c06341 898
5213506e
RW
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
671aa708
NN
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
5213506e
RW
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
671aa708
NN
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 913 bindir=$ac_optarg ;;
671aa708
NN
914
915 -build | --build | --buil | --bui | --bu)
1c710c3c 916 ac_prev=build_alias ;;
671aa708 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 918 build_alias=$ac_optarg ;;
671aa708
NN
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
671aa708 929
5213506e 930 -datadir | --datadir | --datadi | --datad)
671aa708 931 ac_prev=datadir ;;
5213506e 932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 933 datadir=$ac_optarg ;;
671aa708 934
5213506e
RW
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
671aa708 942 -disable-* | --disable-*)
5213506e 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 944 # Reject names that are not valid shell variable names.
5213506e
RW
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951"enable_$ac_useropt"
952"*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
671aa708
NN
967
968 -enable-* | --enable-*)
5213506e 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 970 # Reject names that are not valid shell variable names.
5213506e
RW
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977"enable_$ac_useropt"
978"*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
2aeb72e9 981 esac
5213506e 982 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
1c710c3c 991 exec_prefix=$ac_optarg ;;
671aa708
NN
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
1c710c3c
DJ
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
671aa708
NN
1003
1004 -host | --host | --hos | --ho)
1c710c3c 1005 ac_prev=host_alias ;;
671aa708 1006 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1007 host_alias=$ac_optarg ;;
671aa708 1008
5213506e
RW
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
671aa708
NN
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1020 includedir=$ac_optarg ;;
671aa708
NN
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1025 infodir=$ac_optarg ;;
671aa708
NN
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1030 libdir=$ac_optarg ;;
671aa708
NN
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1037 libexecdir=$ac_optarg ;;
671aa708 1038
5213506e
RW
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
671aa708 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1045 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1049 localstatedir=$ac_optarg ;;
671aa708
NN
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1054 mandir=$ac_optarg ;;
671aa708
NN
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1061 | --no-cr | --no-c | -n)
671aa708
NN
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1075 oldincludedir=$ac_optarg ;;
671aa708
NN
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1080 prefix=$ac_optarg ;;
671aa708
NN
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1087 program_prefix=$ac_optarg ;;
671aa708
NN
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1094 program_suffix=$ac_optarg ;;
671aa708
NN
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1111 program_transform_name=$ac_optarg ;;
671aa708 1112
5213506e
RW
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
671aa708
NN
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
1c710c3c 1131 sbindir=$ac_optarg ;;
671aa708
NN
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
1c710c3c 1142 sharedstatedir=$ac_optarg ;;
671aa708
NN
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
1c710c3c 1147 site=$ac_optarg ;;
671aa708
NN
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1152 srcdir=$ac_optarg ;;
671aa708
NN
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1159 sysconfdir=$ac_optarg ;;
671aa708
NN
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1162 ac_prev=target_alias ;;
671aa708 1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1164 target_alias=$ac_optarg ;;
671aa708
NN
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
1c710c3c
DJ
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
671aa708
NN
1171
1172 -with-* | --with-*)
5213506e 1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1174 # Reject names that are not valid shell variable names.
5213506e
RW
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181"with_$ac_useropt"
1182"*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
2aeb72e9 1185 esac
5213506e 1186 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1187
1188 -without-* | --without-*)
5213506e 1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1190 # Reject names that are not valid shell variable names.
5213506e
RW
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197"with_$ac_useropt"
1198"*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
671aa708
NN
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1213 x_includes=$ac_optarg ;;
671aa708
NN
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1220 x_libraries=$ac_optarg ;;
671aa708 1221
5213506e
RW
1222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223Try \`$0 --help' for more information."
671aa708
NN
1224 ;;
1225
1c710c3c
DJ
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
5213506e
RW
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1234 export $ac_envvar ;;
1235
671aa708 1236 *)
1c710c3c 1237 # FIXME: should be removed in autoconf 3.0.
5213506e 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1242 ;;
1243
1244 esac
1245done
1246
1247if test -n "$ac_prev"; then
1c710c3c 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1249 as_fn_error "missing argument to $ac_option"
af71363e 1250fi
af71363e 1251
5213506e
RW
1252if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1257 esac
5213506e 1258fi
2aeb72e9 1259
5213506e
RW
1260# Check all directory arguments for consistency.
1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
2aeb72e9 1265do
5213506e
RW
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
2aeb72e9 1274 case $ac_val in
5213506e
RW
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1277 esac
5213506e 1278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1279done
1280
1c710c3c
DJ
1281# There might be people who depend on the old broken behavior: `$host'
1282# used to hold the argument of --host etc.
1283# FIXME: To remove some day.
1284build=$build_alias
1285host=$host_alias
1286target=$target_alias
0b0dc272 1287
1c710c3c
DJ
1288# FIXME: To remove some day.
1289if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
5213506e 1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297fi
1298
1299ac_tool_prefix=
1300test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302test "$silent" = yes && exec 6>/dev/null
671aa708 1303
671aa708 1304
5213506e
RW
1305ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306ac_ls_di=`ls -di .` &&
1307ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error "working directory cannot be determined"
1309test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error "pwd does not report name of working directory"
1311
1312
671aa708
NN
1313# Find the source files, if location was not specified.
1314if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
5213506e
RW
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322$as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
671aa708 1340 srcdir=$ac_confdir
5213506e 1341 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1342 srcdir=..
1343 fi
1344else
1345 ac_srcdir_defaulted=no
1346fi
5213506e
RW
1347if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1350fi
1351ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1354 pwd)`
1355# When building in place, set srcdir=.
1356if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358fi
1359# Remove unnecessary trailing slashes from srcdir.
1360# Double slashes in file names in object file debugging info
1361# mess up M-x gdb in Emacs.
1362case $srcdir in
1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364esac
87841584
AM
1365case $srcdir in
1366 *" "*)
1367 as_fn_error "path to source, $srcdir, contains spaces"
1368 ;;
1369esac
ac9e6043
RW
1370ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1371
5213506e
RW
1372for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
1c710c3c
DJ
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386\`configure' configures this package to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
1c710c3c
DJ
1406Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1408 [$ac_default_prefix]
1c710c3c 1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1410 [PREFIX]
1c710c3c
DJ
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
5213506e
RW
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1439_ACEOF
1440
1441 cat <<\_ACEOF
1442
1443Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 --target=TARGET configure for building compilers for TARGET [HOST]
1452_ACEOF
1453fi
1454
1455if test -n "$ac_init_help"; then
1456
1457 cat <<\_ACEOF
1458
1459Optional Features:
5213506e 1460 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1463 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1464 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1465 --disable-libquadmath do not build libquadmath directory
1466 --disable-libquadmath-support
1467 disable libquadmath support for Fortran
30b74385
RW
1468 --enable-libada build libada directory
1469 --enable-libssp build libssp directory
1873ec0c 1470 --disable-libstdcxx do not build libstdc++-v3 directory
a4a2c37d
MK
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
ff3ac0f4 1473 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9
RG
1474 --disable-isl-version-check
1475 disable check for ISL version
d32ef397
AS
1476 --disable-cloog-version-check
1477 disable check for CLooG version
d7f09764 1478 --enable-lto enable link time optimization support
33e39b66
AS
1479 --enable-stage1-languages[=all]
1480 choose additional languages to build during stage1.
1481 Mostly useful for compiler development
1482 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1483 Objective-C runtime
30b74385 1484 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1485 force sequential configuration of sub-packages for
1486 the host, target or build machine, or all
1487 sub-packages
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
1491 --enable-stage1-checking[=all]
1492 choose additional checking for stage1 of the
1493 compiler
1c710c3c 1494 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1495 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1496
1497Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1501 --with-mpc=PATH specify prefix directory for installed MPC package.
1502 Equivalent to --with-mpc-include=PATH/include plus
1503 --with-mpc-lib=PATH/lib
1504 --with-mpc-include=PATH specify directory for installed MPC include files
1505 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1506 --with-mpfr-dir=PATH this option has been REMOVED
1507 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1508 Equivalent to --with-mpfr-include=PATH/include plus
1509 --with-mpfr-lib=PATH/lib
1c710c3c 1510 --with-mpfr-include=PATH
30b74385
RW
1511 specify directory for installed MPFR include files
1512 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1513 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1514 --with-gmp=PATH specify prefix directory for the installed GMP
1515 package. Equivalent to
1516 --with-gmp-include=PATH/include plus
1517 --with-gmp-lib=PATH/lib
30b74385
RW
1518 --with-gmp-include=PATH specify directory for installed GMP include files
1519 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1520 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1521 linking with PPL
0b21f5d3 1522 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
33e39b66
AS
1525 --with-boot-libs=LIBS libraries for stage2 and later
1526 --with-boot-ldflags=FLAGS
1527 linker flags for stage2 and later
625afa23
RG
1528 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1529 package. Equivalent to
1530 --with-cloog-include=PATH/include plus
1531 --with-cloog-lib=PATH/lib
33ad93b9 1532 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1533 package. Equivalent to
33ad93b9
RG
1534 --with-isl-include=PATH/include plus
1535 --with-isl-lib=PATH/lib
1536 --with-isl-include=PATH Specify directory for installed ISL include files
1537 --with-isl-lib=PATH Specify the directory for the installed ISL library
d32ef397
AS
1538 --with-cloog-include=PATH
1539 Specify directory for installed CLooG include files
1540 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1541 library
30b74385 1542 --with-build-sysroot=SYSROOT
1c710c3c 1543 use sysroot as the system root during the build
c8aea42c 1544 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1545 map A to B, C to D ... in debug information
1546 --with-build-config='NAME NAME2...'
1547 use config/NAME.mk build configuration
30b74385 1548 --with-build-time-tools=PATH
1c710c3c 1549 use given path to find target tools during the build
1c710c3c
DJ
1550
1551Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
5213506e
RW
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
ffedf511
RW
1561 build_configargs
1562 additional configure arguments for build directories
1563 host_configargs
1564 additional configure arguments for host directories
1565 target_configargs
1566 additional configure arguments for target directories
278a7a38
AO
1567 AR AR for the host
1568 AS AS for the host
1569 DLLTOOL DLLTOOL for the host
1570 LD LD for the host
1571 LIPO LIPO for the host
1572 NM NM for the host
1573 RANLIB RANLIB for the host
1574 STRIP STRIP for the host
1575 WINDRES WINDRES for the host
901119ae 1576 WINDMC WINDMC for the host
278a7a38
AO
1577 OBJCOPY OBJCOPY for the host
1578 OBJDUMP OBJDUMP for the host
e7a82751 1579 READELF READELF for the host
278a7a38
AO
1580 CC_FOR_TARGET
1581 CC for the target
1582 CXX_FOR_TARGET
1583 CXX for the target
1584 GCC_FOR_TARGET
1585 GCC for the target
1586 GCJ_FOR_TARGET
1587 GCJ for the target
1588 GFORTRAN_FOR_TARGET
1589 GFORTRAN for the target
632e2a07
ILT
1590 GOC_FOR_TARGET
1591 GOC for the target
278a7a38
AO
1592 AR_FOR_TARGET
1593 AR for the target
1594 AS_FOR_TARGET
1595 AS for the target
1596 DLLTOOL_FOR_TARGET
1597 DLLTOOL for the target
1598 LD_FOR_TARGET
1599 LD for the target
1600 LIPO_FOR_TARGET
1601 LIPO for the target
1602 NM_FOR_TARGET
1603 NM for the target
1604 OBJDUMP_FOR_TARGET
1605 OBJDUMP for the target
1606 RANLIB_FOR_TARGET
1607 RANLIB for the target
e7a82751
RM
1608 READELF_FOR_TARGET
1609 READELF for the target
278a7a38
AO
1610 STRIP_FOR_TARGET
1611 STRIP for the target
1612 WINDRES_FOR_TARGET
1613 WINDRES for the target
901119ae
KT
1614 WINDMC_FOR_TARGET
1615 WINDMC for the target
1c710c3c
DJ
1616
1617Use these variables to override the choices made by `configure' or to help
1618it to find libraries and programs with nonstandard names/locations.
1619
5213506e 1620Report bugs to the package provider.
1c710c3c 1621_ACEOF
5213506e 1622ac_status=$?
1c710c3c
DJ
1623fi
1624
1625if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1c710c3c 1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
1c710c3c
DJ
1631 ac_builddir=.
1632
5213506e
RW
1633case "$ac_dir" in
1634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635*)
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643esac
1644ac_abs_top_builddir=$ac_pwd
1645ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646# for backward compatibility:
1647ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1648
1649case $srcdir in
5213506e 1650 .) # We are building in place.
1c710c3c 1651 ac_srcdir=.
5213506e
RW
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1655 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1662esac
5213506e
RW
1663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1673 else
5213506e
RW
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1677 done
1678fi
1679
5213506e 1680test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1681if $ac_init_version; then
1682 cat <<\_ACEOF
5213506e
RW
1683configure
1684generated by GNU Autoconf 2.64
1c710c3c 1685
5213506e 1686Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1687This configure script is free software; the Free Software Foundation
1688gives unlimited permission to copy, distribute and modify it.
1689_ACEOF
5213506e 1690 exit
0b0dc272 1691fi
5213506e
RW
1692
1693## ------------------------ ##
1694## Autoconf initialization. ##
1695## ------------------------ ##
1696
1697# ac_fn_c_try_compile LINENO
1698# --------------------------
1699# Try to compile conftest.$ac_ext, and return whether this succeeded.
1700ac_fn_c_try_compile ()
1701{
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1705case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1723 ac_retval=0
1724else
1725 $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
1732
1733} # ac_fn_c_try_compile
1734
1735# ac_fn_cxx_try_compile LINENO
1736# ----------------------------
1737# Try to compile conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_cxx_try_compile ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762else
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767fi
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1770
1771} # ac_fn_cxx_try_compile
1772
0b21f5d3
EB
1773# ac_fn_cxx_try_link LINENO
1774# -------------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_cxx_try_link ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_cxx_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 $as_test_x conftest$ac_exeext
1801 }; then :
1802 ac_retval=0
1803else
1804 $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 return $ac_retval
1816
1817} # ac_fn_cxx_try_link
1818
5213506e
RW
1819# ac_fn_c_try_link LINENO
1820# -----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded.
1822ac_fn_c_try_link ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 $as_test_x conftest$ac_exeext
1847 }; then :
1848 ac_retval=0
1849else
1850 $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=1
1854fi
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 return $ac_retval
1862
1863} # ac_fn_c_try_link
33ad93b9
RG
1864
1865# ac_fn_c_try_run LINENO
1866# ----------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868# that executables *can* be run.
1869ac_fn_c_try_run ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1893 ac_retval=0
1894else
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=$ac_status
1900fi
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 return $ac_retval
1904
1905} # ac_fn_c_try_run
5213506e 1906cat >config.log <<_ACEOF
1c710c3c
DJ
1907This file contains any messages produced by compilers while
1908running configure, to aid debugging if configure makes a mistake.
1909
1910It was created by $as_me, which was
5213506e 1911generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1912
1913 $ $0 $@
1914
1915_ACEOF
5213506e 1916exec 5>>config.log
1c710c3c
DJ
1917{
1918cat <<_ASUNAME
1919## --------- ##
1920## Platform. ##
1921## --------- ##
1922
1923hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1924uname -m = `(uname -m) 2>/dev/null || echo unknown`
1925uname -r = `(uname -r) 2>/dev/null || echo unknown`
1926uname -s = `(uname -s) 2>/dev/null || echo unknown`
1927uname -v = `(uname -v) 2>/dev/null || echo unknown`
1928
1929/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1930/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1931
1932/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1933/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1934/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1935/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1936/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1937/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1938/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1939
1940_ASUNAME
1941
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
5213506e
RW
1947 $as_echo "PATH: $as_dir"
1948 done
1949IFS=$as_save_IFS
1c710c3c
DJ
1950
1951} >&5
1952
1953cat >&5 <<_ACEOF
1954
1955
1956## ----------- ##
1957## Core tests. ##
1958## ----------- ##
1959
1960_ACEOF
1961
1962
1963# Keep a trace of the command line.
1964# Strip out --no-create and --no-recursion so they do not pile up.
1965# Strip out --silent because we don't want to record it for future runs.
1966# Also quote any args containing shell meta-characters.
1967# Make two passes to allow for proper duplicate-argument suppression.
1968ac_configure_args=
1969ac_configure_args0=
1970ac_configure_args1=
1c710c3c
DJ
1971ac_must_keep_next=false
1972for ac_pass in 1 2
1973do
1974 for ac_arg
1975 do
1976 case $ac_arg in
1977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1979 | -silent | --silent | --silen | --sile | --sil)
1980 continue ;;
5213506e
RW
1981 *\'*)
1982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1983 esac
1984 case $ac_pass in
5213506e 1985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1986 2)
5213506e 1987 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1988 if test $ac_must_keep_next = true; then
1989 ac_must_keep_next=false # Got value, back to normal.
1990 else
1991 case $ac_arg in
1992 *=* | --config-cache | -C | -disable-* | --disable-* \
1993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1995 | -with-* | --with-* | -without-* | --without-* | --x)
1996 case "$ac_configure_args0 " in
1997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1998 esac
1999 ;;
2000 -* ) ac_must_keep_next=true ;;
2001 esac
2002 fi
5213506e 2003 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
2004 ;;
2005 esac
2006 done
2007done
5213506e
RW
2008{ ac_configure_args0=; unset ac_configure_args0;}
2009{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2010
2011# When interrupted or exit'd, cleanup temporary files, and complete
2012# config.log. We remove comments because anyway the quotes in there
2013# would cause problems or look ugly.
5213506e
RW
2014# WARNING: Use '\'' to represent an apostrophe within the trap.
2015# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2016trap 'exit_status=$?
2017 # Save into config.log some information that might help in debugging.
2018 {
2019 echo
2020
2021 cat <<\_ASBOX
2022## ---------------- ##
2023## Cache variables. ##
2024## ---------------- ##
2025_ASBOX
2026 echo
2027 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2028(
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in #(
2032 *${as_nl}*)
2033 case $ac_var in #(
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2036 esac
2037 case $ac_var in #(
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2041 esac ;;
2042 esac
2043 done
1c710c3c 2044 (set) 2>&1 |
5213506e
RW
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
1c710c3c 2047 sed -n \
5213506e
RW
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2050 ;; #(
1c710c3c 2051 *)
5213506e 2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2053 ;;
5213506e
RW
2054 esac |
2055 sort
2056)
1c710c3c
DJ
2057 echo
2058
2059 cat <<\_ASBOX
2060## ----------------- ##
2061## Output variables. ##
2062## ----------------- ##
2063_ASBOX
2064 echo
2065 for ac_var in $ac_subst_vars
2066 do
5213506e
RW
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2072 done | sort
2073 echo
2074
2075 if test -n "$ac_subst_files"; then
2076 cat <<\_ASBOX
5213506e
RW
2077## ------------------- ##
2078## File substitutions. ##
2079## ------------------- ##
1c710c3c
DJ
2080_ASBOX
2081 echo
2082 for ac_var in $ac_subst_files
2083 do
5213506e
RW
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2089 done | sort
2090 echo
2091 fi
2092
2093 if test -s confdefs.h; then
2094 cat <<\_ASBOX
2095## ----------- ##
2096## confdefs.h. ##
2097## ----------- ##
2098_ASBOX
2099 echo
5213506e 2100 cat confdefs.h
1c710c3c
DJ
2101 echo
2102 fi
2103 test "$ac_signal" != 0 &&
5213506e
RW
2104 $as_echo "$as_me: caught signal $ac_signal"
2105 $as_echo "$as_me: exit $exit_status"
1c710c3c 2106 } >&5
5213506e
RW
2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2109 exit $exit_status
5213506e 2110' 0
1c710c3c 2111for ac_signal in 1 2 13 15; do
5213506e 2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2113done
2114ac_signal=0
2115
2116# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2117rm -f -r conftest* confdefs.h
2118
2119$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2120
2121# Predefined preprocessor variables.
2122
2123cat >>confdefs.h <<_ACEOF
2124#define PACKAGE_NAME "$PACKAGE_NAME"
2125_ACEOF
2126
1c710c3c
DJ
2127cat >>confdefs.h <<_ACEOF
2128#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2129_ACEOF
2130
1c710c3c
DJ
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_VERSION "$PACKAGE_VERSION"
2133_ACEOF
0b0dc272 2134
1c710c3c
DJ
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_STRING "$PACKAGE_STRING"
2137_ACEOF
2138
1c710c3c
DJ
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2141_ACEOF
2142
5213506e
RW
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_URL "$PACKAGE_URL"
2145_ACEOF
2146
1c710c3c
DJ
2147
2148# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2149# Prefer an explicitly selected file to automatically selected ones.
2150ac_site_file1=NONE
2151ac_site_file2=NONE
2152if test -n "$CONFIG_SITE"; then
2153 ac_site_file1=$CONFIG_SITE
2154elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2157else
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2160fi
5213506e
RW
2161for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162do
2163 test "x$ac_site_file" = xNONE && continue
671aa708 2164 if test -r "$ac_site_file"; then
5213506e
RW
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2167 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2168 . "$ac_site_file"
2169 fi
2170done
2171
2172if test -r "$cache_file"; then
1c710c3c
DJ
2173 # Some versions of bash will fail to source /dev/null (special
2174 # files actually), so we avoid doing that.
2175 if test -f "$cache_file"; then
5213506e
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2177$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2178 case $cache_file in
5213506e
RW
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2180 *) . "./$cache_file";;
1c710c3c
DJ
2181 esac
2182 fi
671aa708 2183else
5213506e
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2185$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2186 >$cache_file
2187fi
2188
2189# Check that the precious variables saved in the cache have kept the same
2190# value.
2191ac_cache_corrupted=false
5213506e 2192for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2194 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2196 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2197 case $ac_old_set,$ac_new_set in
2198 set,)
5213506e
RW
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2200$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2201 ac_cache_corrupted=: ;;
2202 ,set)
5213506e
RW
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2204$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2205 ac_cache_corrupted=: ;;
2206 ,);;
2207 *)
2208 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2209 # differences in whitespace do not lead to failure.
2210 ac_old_val_w=`echo x $ac_old_val`
2211 ac_new_val_w=`echo x $ac_new_val`
2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2214$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2215 ac_cache_corrupted=:
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2218$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2219 eval $ac_var=\$ac_old_val
2220 fi
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2222$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2224$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2225 fi;;
2226 esac
2227 # Pass precious variables to config.status.
2228 if test "$ac_new_set" = set; then
2229 case $ac_new_val in
5213506e 2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2231 *) ac_arg=$ac_var=$ac_new_val ;;
2232 esac
2233 case " $ac_configure_args " in
2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2236 esac
2237 fi
2238done
2239if $ac_cache_corrupted; then
5213506e
RW
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2243$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2244 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2245fi
5213506e
RW
2246## -------------------- ##
2247## Main body of script. ##
2248## -------------------- ##
671aa708 2249
2aeb72e9
DD
2250ac_ext=c
2251ac_cpp='$CPP $CPPFLAGS'
2252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255
1c710c3c
DJ
2256
2257
2258
1c710c3c
DJ
2259
2260
0115d4a3 2261
1c710c3c 2262
ad33ff57
RW
2263
2264progname=$0
2265# if PWD already has a value, it is probably wrong.
2266if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2267
2268# Export original configure arguments for use by sub-configures.
2269# Quote arguments with shell meta charatcers.
2270TOPLEVEL_CONFIGURE_ARGUMENTS=
2271set -- "$progname" "$@"
2272for ac_arg
2273do
2274 case "$ac_arg" in
2275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2277 # if the argument is of the form -foo=baz, quote the baz part only
2278 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2279 *) ;;
2280 esac
2281 # Add the quoted argument to the list.
2282 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2283done
2284if test "$silent" = yes; then
2285 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2286fi
2287# Remove the initial space we just introduced and, as these will be
2288# expanded by make, quote '$'.
2289TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2290
1c710c3c
DJ
2291
2292# Find the build, host, and target systems.
671aa708 2293ac_aux_dir=
5213506e
RW
2294for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2295 for ac_t in install-sh install.sh shtool; do
2296 if test -f "$ac_dir/$ac_t"; then
2297 ac_aux_dir=$ac_dir
2298 ac_install_sh="$ac_aux_dir/$ac_t -c"
2299 break 2
2300 fi
2301 done
671aa708
NN
2302done
2303if test -z "$ac_aux_dir"; then
5213506e 2304 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2305fi
5213506e
RW
2306
2307# These three variables are undocumented and unsupported,
2308# and are intended to be withdrawn in a future Autoconf release.
2309# They can cause serious problems if a builder's source tree is in a directory
2310# whose full name contains unusual characters.
2311ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2314
671aa708 2315
1c710c3c 2316# Make sure we can run config.sub.
5213506e
RW
2317$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2318 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2319
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2321$as_echo_n "checking build system type... " >&6; }
2322if test "${ac_cv_build+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2324else
2325 ac_build_alias=$build_alias
2326test "x$ac_build_alias" = x &&
2327 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2328test "x$ac_build_alias" = x &&
2329 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2330ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2331 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2332
2333fi
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2335$as_echo "$ac_cv_build" >&6; }
2336case $ac_cv_build in
2337*-*-*) ;;
2338*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2339esac
1c710c3c 2340build=$ac_cv_build
5213506e
RW
2341ac_save_IFS=$IFS; IFS='-'
2342set x $ac_cv_build
2343shift
2344build_cpu=$1
2345build_vendor=$2
2346shift; shift
2347# Remember, the first character of IFS is used to create $*,
2348# except with old shells:
2349build_os=$*
2350IFS=$ac_save_IFS
2351case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2352
671aa708 2353
1c710c3c
DJ
2354 case ${build_alias} in
2355 "") build_noncanonical=${build} ;;
2356 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2357esac
2358
2359
af71363e 2360
1c710c3c
DJ
2361 case ${host_alias} in
2362 "") host_noncanonical=${build_noncanonical} ;;
2363 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2364esac
2365
af71363e 2366
1c710c3c
DJ
2367
2368 case ${target_alias} in
2369 "") target_noncanonical=${host_noncanonical} ;;
2370 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2371esac
2372
af71363e 2373
1c710c3c
DJ
2374
2375
2376test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2377 test "$program_prefix$program_suffix$program_transform_name" = \
2378 NONENONEs,x,x, &&
1c710c3c 2379 program_transform_name=s,y,y,
af71363e 2380
5213506e
RW
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382$as_echo_n "checking host system type... " >&6; }
2383if test "${ac_cv_host+set}" = set; then :
2384 $as_echo_n "(cached) " >&6
af71363e 2385else
5213506e
RW
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2388else
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391fi
1c710c3c 2392
af71363e 2393fi
5213506e
RW
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395$as_echo "$ac_cv_host" >&6; }
2396case $ac_cv_host in
2397*-*-*) ;;
2398*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2399esac
1c710c3c 2400host=$ac_cv_host
5213506e
RW
2401ac_save_IFS=$IFS; IFS='-'
2402set x $ac_cv_host
2403shift
2404host_cpu=$1
2405host_vendor=$2
2406shift; shift
2407# Remember, the first character of IFS is used to create $*,
2408# except with old shells:
2409host_os=$*
2410IFS=$ac_save_IFS
2411case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2412
2413
5213506e
RW
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415$as_echo_n "checking target system type... " >&6; }
2416if test "${ac_cv_target+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
1c710c3c 2418else
5213506e
RW
2419 if test "x$target_alias" = x; then
2420 ac_cv_target=$ac_cv_host
2421else
2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2423 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2424fi
1c710c3c
DJ
2425
2426fi
5213506e
RW
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428$as_echo "$ac_cv_target" >&6; }
2429case $ac_cv_target in
2430*-*-*) ;;
2431*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2432esac
1c710c3c 2433target=$ac_cv_target
5213506e
RW
2434ac_save_IFS=$IFS; IFS='-'
2435set x $ac_cv_target
2436shift
2437target_cpu=$1
2438target_vendor=$2
2439shift; shift
2440# Remember, the first character of IFS is used to create $*,
2441# except with old shells:
2442target_os=$*
2443IFS=$ac_save_IFS
2444case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2445
2446
2447# The aliases save the names the user supplied, while $host etc.
2448# will get canonicalized.
2449test -n "$target_alias" &&
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2451 NONENONEs,x,x, &&
2452 program_prefix=${target_alias}-
5213506e 2453
671aa708 2454test "$program_prefix" != NONE &&
5213506e 2455 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2456# Use a double $ so make ignores it.
2457test "$program_suffix" != NONE &&
5213506e
RW
2458 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2459# Double any \ or $.
1c710c3c 2460# By default was `s,x,x', remove it if useless.
5213506e
RW
2461ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2462program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2463
671aa708
NN
2464
2465
775956d0
NN
2466# Get 'install' or 'install-sh' and its variants.
2467# Find a good install program. We prefer a C program (faster),
2468# so one script is as good as another. But avoid the broken or
2469# incompatible versions:
2470# SysV /etc/install, /usr/sbin/install
2471# SunOS /usr/etc/install
2472# IRIX /sbin/install
2473# AIX /bin/install
1c710c3c 2474# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2475# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2478# OS/2's system install, which has a completely different semantic
775956d0 2479# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2480# Reject install programs that cannot install multiple files.
5213506e
RW
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2483if test -z "$INSTALL"; then
5213506e
RW
2484if test "${ac_cv_path_install+set}" = set; then :
2485 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2486else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
5213506e
RW
2492 # Account for people who put trailing slashes in PATH elements.
2493case $as_dir/ in #((
2494 ./ | .// | /[cC]/* | \
1c710c3c 2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2496 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2497 /usr/ucb/* ) ;;
2498 *)
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2501 # by default.
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2505 if test $ac_prog = install &&
1c710c3c 2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2507 # AIX install. It has an incompatible calling convention.
2508 :
1c710c3c
DJ
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2512 :
775956d0 2513 else
38d24731
RW
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2517 mkdir conftest.dir
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2522 then
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524 break 3
2525 fi
775956d0
NN
2526 fi
2527 fi
2528 done
1c710c3c
DJ
2529 done
2530 ;;
2531esac
5213506e
RW
2532
2533 done
2534IFS=$as_save_IFS
1c710c3c 2535
38d24731 2536rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2537
2538fi
2539 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2540 INSTALL=$ac_cv_path_install
775956d0 2541 else
38d24731
RW
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
775956d0 2544 # break other packages using the cache if that directory is
38d24731 2545 # removed, or if the value is a relative name.
1c710c3c 2546 INSTALL=$ac_install_sh
775956d0
NN
2547 fi
2548fi
5213506e
RW
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550$as_echo "$INSTALL" >&6; }
775956d0
NN
2551
2552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553# It thinks the first close brace ends the variable substitution.
2554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
1c710c3c 2556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2557
2558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
5213506e
RW
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2561$as_echo_n "checking whether ln works... " >&6; }
2562if test "${acx_cv_prog_LN+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
ad6717df
PB
2564else
2565 rm -f conftestdata_t
2566echo >conftestdata_f
2567if ln conftestdata_f conftestdata_t 2>/dev/null
2568then
2569 acx_cv_prog_LN=ln
2570else
2571 acx_cv_prog_LN=no
2572fi
2573rm -f conftestdata_f conftestdata_t
2574
2575fi
2576if test $acx_cv_prog_LN = no; then
2577 LN="cp"
5213506e
RW
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2579$as_echo "no, using $LN" >&6; }
ad6717df
PB
2580else
2581 LN="$acx_cv_prog_LN"
5213506e
RW
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583$as_echo "yes" >&6; }
ad6717df
PB
2584fi
2585
5213506e
RW
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2587$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2588LN_S=$as_ln_s
2589if test "$LN_S" = "ln -s"; then
5213506e
RW
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591$as_echo "yes" >&6; }
fb0103e5 2592else
5213506e
RW
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2594$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2595fi
2596
87264276
PB
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2598$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2599if test "${ac_cv_path_SED+set}" = set; then :
2600 $as_echo_n "(cached) " >&6
2601else
2602 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2603 for ac_i in 1 2 3 4 5 6 7; do
2604 ac_script="$ac_script$as_nl$ac_script"
2605 done
2606 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2607 { ac_script=; unset ac_script;}
2608 if test -z "$SED"; then
2609 ac_path_SED_found=false
2610 # Loop through the user's path and test for each of PROGNAME-LIST
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_prog in sed gsed; do
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2619 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2620# Check for GNU ac_path_SED and select it if it is found.
2621 # Check for GNU $ac_path_SED
2622case `"$ac_path_SED" --version 2>&1` in
2623*GNU*)
2624 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2625*)
2626 ac_count=0
2627 $as_echo_n 0123456789 >"conftest.in"
2628 while :
2629 do
2630 cat "conftest.in" "conftest.in" >"conftest.tmp"
2631 mv "conftest.tmp" "conftest.in"
2632 cp "conftest.in" "conftest.nl"
2633 $as_echo '' >> "conftest.nl"
2634 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2636 as_fn_arith $ac_count + 1 && ac_count=$as_val
2637 if test $ac_count -gt ${ac_path_SED_max-0}; then
2638 # Best one so far, save it but keep looking for a better one
2639 ac_cv_path_SED="$ac_path_SED"
2640 ac_path_SED_max=$ac_count
2641 fi
2642 # 10*(2^10) chars as input seems more than enough
2643 test $ac_count -gt 10 && break
2644 done
2645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2646esac
2647
2648 $ac_path_SED_found && break 3
2649 done
2650 done
2651 done
2652IFS=$as_save_IFS
2653 if test -z "$ac_cv_path_SED"; then
2654 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2655 fi
2656else
2657 ac_cv_path_SED=$SED
2658fi
2659
2660fi
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2662$as_echo "$ac_cv_path_SED" >&6; }
2663 SED="$ac_cv_path_SED"
2664 rm -f conftest.sed
2665
2666for ac_prog in gawk mawk nawk awk
2667do
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669set dummy $ac_prog; ac_word=$2
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671$as_echo_n "checking for $ac_word... " >&6; }
2672if test "${ac_cv_prog_AWK+set}" = set; then :
2673 $as_echo_n "(cached) " >&6
2674else
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677else
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689done
2690 done
2691IFS=$as_save_IFS
2692
2693fi
2694fi
2695AWK=$ac_cv_prog_AWK
2696if test -n "$AWK"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698$as_echo "$AWK" >&6; }
2699else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701$as_echo "no" >&6; }
2702fi
2703
2704
2705 test -n "$AWK" && break
2706done
2707
775956d0 2708
ee6a22df
L
2709srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2710
2711# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2712# a relative path.
2713if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2714 INSTALL="${srcpwd}/install-sh -c"
2715fi
2716
671aa708
NN
2717# Set srcdir to "." if that's what it is.
2718# This is important for multilib support.
2719pwd=`${PWDCMD-pwd}`
671aa708
NN
2720if test "${pwd}" = "${srcpwd}" ; then
2721 srcdir=.
79c06341
JL
2722fi
2723
671aa708 2724topsrcdir=$srcpwd
5d4a5ee6 2725
671aa708 2726extra_host_args=
afabd8e6 2727
671aa708
NN
2728### To add a new directory to the tree, first choose whether it is a target
2729### or a host dependent tool. Then put it into the appropriate list
2730### (library or tools, host or target), doing a dependency sort.
79c06341 2731
1c710c3c 2732# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2733# configdirs, or target_configdirs; see the serialization section below.
79c06341 2734
1c710c3c
DJ
2735# Dependency sorting is only needed when *configuration* must be done in
2736# a particular order. In all cases a dependency should be specified in
671aa708 2737# the Makefile, whether or not it's implicitly specified here.
79c06341 2738
671aa708
NN
2739# Double entries in build_configdirs, configdirs, or target_configdirs may
2740# cause circular dependencies and break everything horribly.
79c06341 2741
23f6b2f9
PB
2742# these library is used by various programs built for the build
2743# environment
2744#
2745build_libs="build-libiberty"
2746
2747# these tools are built for the build environment
85bfb75e 2748build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2749
671aa708
NN
2750# these libraries are used by various programs built for the host environment
2751#
eff02e4f 2752host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
671aa708 2753
671aa708
NN
2754# these tools are built for the host environment
2755# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2756# know that we are building the simulator.
2757# binutils, gas and ld appear in that order because it makes sense to run
2758# "make check" in that particular order.
38e3d868 2759# If --enable-gold is used, "gold" may replace "ld".
85bfb75e 2760host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
671aa708
NN
2761
2762# libgcj represents the runtime libraries only used by gcj.
2763libgcj="target-libffi \
671aa708 2764 target-zlib \
671aa708
NN
2765 target-libjava"
2766
2767# these libraries are built for the target environment, and are built after
2768# the host libraries and the host tools (which may be a cross compiler)
8499116a 2769# Note that libiberty is not a target library.
291f172e 2770target_libraries="target-libgcc \
eff02e4f 2771 target-libbacktrace \
671aa708
NN
2772 target-libgloss \
2773 target-newlib \
6d3b5aea 2774 target-libgomp \
48310492 2775 target-libatomic \
0a35513e 2776 target-libitm \
cb543528 2777 target-libstdc++-v3 \
f35db108 2778 target-libsanitizer \
2077db1b 2779 target-libvtv \
77008252 2780 target-libssp \
1ec601bf 2781 target-libquadmath \
6de9cd9a 2782 target-libgfortran \
7cd0cf9c 2783 target-boehm-gc \
77d187bc 2784 ${libgcj} \
d9cdb878 2785 target-libobjc \
632e2a07
ILT
2786 target-libada \
2787 target-libgo"
671aa708 2788
4dbda6f0
NN
2789# these tools are built using the target libraries, and are intended to
2790# run only in the target environment
671aa708 2791#
4dbda6f0 2792# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2793# list belongs in this list.
671aa708 2794#
85bfb75e 2795target_tools="target-rda"
79c06341 2796
671aa708 2797################################################################################
79c06341 2798
671aa708
NN
2799## All tools belong in one of the four categories, and are assigned above
2800## We assign ${configdirs} this way to remove all embedded newlines. This
2801## is important because configure will choke if they ever get through.
2802## ${configdirs} is directories we build using the host tools.
2803## ${target_configdirs} is directories we build using the target tools.
671aa708 2804configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2805target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2806build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2807
ac9e6043
RW
2808
2809
671aa708 2810################################################################################
79c06341 2811
671aa708 2812srcname="gnu development package"
79c06341 2813
671aa708
NN
2814# This gets set non-empty for some net releases of packages.
2815appdirs=""
79c06341 2816
671aa708
NN
2817# Define is_cross_compiler to save on calls to 'test'.
2818is_cross_compiler=
2819if test x"${host}" = x"${target}" ; then
2820 is_cross_compiler=no
79c06341 2821else
671aa708 2822 is_cross_compiler=yes
1c710c3c 2823fi
79c06341 2824
b4acb5ef 2825# Find the build and target subdir names.
8b87bb96 2826
2e9e6f68
DJ
2827# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2828# have matching libraries, they should use host libraries: Makefile.tpl
2829# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2830# However, they still use the build modules, because the corresponding
2831# host modules (e.g. bison) are only built for the host when bootstrap
2832# finishes. So:
2833# - build_subdir is where we find build modules, and never changes.
2834# - build_libsubdir is where we find build libraries, and can be overridden.
2835
2836# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2837build_subdir="build-${build_noncanonical}"
1c710c3c 2838
5213506e
RW
2839# Check whether --with-build-libsubdir was given.
2840if test "${with_build_libsubdir+set}" = set; then :
2841 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2842else
2843 build_libsubdir="$build_subdir"
5213506e
RW
2844fi
2845
215c351a
PB
2846# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2847if ( test $srcdir = . && test -d gcc ) \
2848 || test -d $srcdir/../host-${host_noncanonical}; then
2849 host_subdir="host-${host_noncanonical}"
2850else
2851 host_subdir=.
2852fi
8b87bb96
NN
2853# No prefix.
2854target_subdir=${target_noncanonical}
1c710c3c 2855
0db770bd
RW
2856# Be sure to cover against remnants of an in-tree build.
2857if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2858 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2859Use a pristine source tree when building in a separate tree" "$LINENO" 5
2860fi
79c06341 2861
671aa708
NN
2862# Skipdirs are removed silently.
2863skipdirs=
2864# Noconfigdirs are removed loudly.
2865noconfigdirs=""
79c06341 2866
671aa708
NN
2867use_gnu_ld=
2868# Make sure we don't let GNU ld be added if we didn't want it.
2869if test x$with_gnu_ld = xno ; then
2870 use_gnu_ld=no
5afab7ad 2871 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2872fi
2873
671aa708
NN
2874use_gnu_as=
2875# Make sure we don't let GNU as be added if we didn't want it.
2876if test x$with_gnu_as = xno ; then
2877 use_gnu_as=no
2878 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2879fi
2880
d7f09764
DN
2881use_included_zlib=
2882# Make sure we don't let ZLIB be added if we didn't want it.
2883if test x$with_system_zlib = xyes ; then
2884 use_included_zlib=no
2885 noconfigdirs="$noconfigdirs zlib"
2886fi
2887
1c710c3c 2888# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2889# it's not even worth trying to configure, much less build, that tool.
79c06341 2890
671aa708
NN
2891case ${with_x} in
2892 yes | "") ;; # the default value for this tree is that X11 is available
2893 no)
b4f96efe 2894 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2895 # We won't be able to build gdbtk without X.
1c710c3c 2896 enable_gdbtk=no
671aa708
NN
2897 ;;
2898 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2899esac
79c06341 2900
1bcce263 2901# Some are only suitable for cross toolchains.
671aa708
NN
2902# Remove these if host=target.
2903cross_only="target-libgloss target-newlib target-opcodes"
2904
2905case $is_cross_compiler in
2906 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2907esac
79c06341 2908
671aa708
NN
2909# If both --with-headers and --with-libs are specified, default to
2910# --without-newlib.
ee6a22df
L
2911if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2912 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2913 if test x"${with_newlib}" = x ; then
2914 with_newlib=no
2915 fi
79c06341
JL
2916fi
2917
671aa708
NN
2918# Recognize --with-newlib/--without-newlib.
2919case ${with_newlib} in
2920 no) skipdirs="${skipdirs} target-newlib" ;;
2921 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2922esac
79c06341 2923
21539e2e
MK
2924# Handle --enable-gold, --enable-ld.
2925# --disable-gold [--enable-ld]
2926# Build only ld. Default option.
9580395f
L
2927# --enable-gold [--enable-ld]
2928# Build both gold and ld. Install gold as "ld.gold", install ld
2929# as "ld.bfd" and "ld".
2930# --enable-gold=default [--enable-ld]
21539e2e
MK
2931# Build both gold and ld. Install gold as "ld.gold" and "ld",
2932# install ld as "ld.bfd".
2933# --enable-gold[=default] --disable-ld
2934# Build only gold, which is then installed as both "ld.gold" and "ld".
2935# --enable-gold --enable-ld=default
9580395f
L
2936# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2937# and ld.bfd).
21539e2e
MK
2938# In other words, ld is default
2939# --enable-gold=default --enable-ld=default
2940# Error.
2941
2942default_ld=
5213506e
RW
2943# Check whether --enable-gold was given.
2944if test "${enable_gold+set}" = set; then :
2945 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2946else
2947 ENABLE_GOLD=no
5213506e
RW
2948fi
2949
21539e2e
MK
2950case "${ENABLE_GOLD}" in
2951 yes|default)
38e3d868
RM
2952 # Check for ELF target.
2953 is_elf=no
2954 case "${target}" in
2955 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2956 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2957 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2958 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2959 case "${target}" in
2960 *-*-linux*aout* | *-*-linux*oldld*)
2961 ;;
2962 *)
2963 is_elf=yes
2964 ;;
2965 esac
2966 esac
2967
2968 if test "$is_elf" = "yes"; then
2969 # Check for target supported by gold.
5afab7ad 2970 case "${target}" in
8750dfc5 2971 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
21539e2e
MK
2972 configdirs="$configdirs gold"
2973 if test x${ENABLE_GOLD} = xdefault; then
2974 default_ld=gold
2975 fi
38e3d868 2976 ENABLE_GOLD=yes
5afab7ad
ILT
2977 ;;
2978 esac
38e3d868
RM
2979 fi
2980 ;;
2981 no)
2982 ;;
2983 *)
2984 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2985 ;;
21539e2e
MK
2986esac
2987
2988# Check whether --enable-ld was given.
2989if test "${enable_ld+set}" = set; then :
2990 enableval=$enable_ld; ENABLE_LD=$enableval
2991else
2992 ENABLE_LD=yes
2993fi
2994
2995
2996case "${ENABLE_LD}" in
2997 default)
9580395f 2998 if test x${default_ld} != x; then
21539e2e
MK
2999 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3000 fi
3001 ;;
3002 yes)
3003 ;;
3004 no)
3005 if test x${ENABLE_GOLD} != xyes; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3007$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3008 fi
3009 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3010 ;;
3011 *)
3012 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3013 ;;
3014esac
5afab7ad 3015
671aa708 3016# Configure extra directories which are host specific
79c06341 3017
671aa708
NN
3018case "${host}" in
3019 *-cygwin*)
3020 configdirs="$configdirs libtermcap" ;;
3021esac
79c06341 3022
4fab7234
HPN
3023# A target can indicate whether a language isn't supported for some reason.
3024# Only spaces may be used in this macro; not newlines or tabs.
3025unsupported_languages=
3026
1c710c3c 3027# Remove more programs from consideration, based on the host or
671aa708
NN
3028# target this usually means that a port of the program doesn't
3029# exist yet.
ec8d6ddc 3030
671aa708 3031case "${host}" in
111eeb6e 3032 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3033 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3034 ;;
671aa708 3035esac
ec8d6ddc 3036
6de9cd9a 3037
87e6d9dc
TB
3038# Check whether --enable-libquadmath was given.
3039if test "${enable_libquadmath+set}" = set; then :
3040 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3041else
3042 ENABLE_LIBQUADMATH=yes
3043fi
3044
3045if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3046 noconfigdirs="$noconfigdirs target-libquadmath"
3047fi
3048
3049
3050# Check whether --enable-libquadmath-support was given.
3051if test "${enable_libquadmath_support+set}" = set; then :
3052 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3053else
3054 ENABLE_LIBQUADMATH_SUPPORT=yes
3055fi
3056
3057enable_libquadmath_support=
3058if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3059 enable_libquadmath_support=no
3060fi
3061
3062
5213506e
RW
3063# Check whether --enable-libada was given.
3064if test "${enable_libada+set}" = set; then :
3065 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3066else
3067 ENABLE_LIBADA=yes
5213506e
RW
3068fi
3069
d9cdb878 3070if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3071 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3072fi
3073
5213506e
RW
3074# Check whether --enable-libssp was given.
3075if test "${enable_libssp+set}" = set; then :
3076 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3077else
3078 ENABLE_LIBSSP=yes
5213506e
RW
3079fi
3080
ef0087a7 3081
1873ec0c
L
3082# Check whether --enable-libstdcxx was given.
3083if test "${enable_libstdcxx+set}" = set; then :
3084 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3085else
3086 ENABLE_LIBSTDCXX=default
3087fi
3088
3089if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3090 noconfigdirs="$noconfigdirs libstdc++-v3"
3091fi
3092
671aa708
NN
3093# Save it here so that, even in case of --enable-libgcj, if the Java
3094# front-end isn't enabled, we still get libgcj disabled.
3095libgcj_saved=$libgcj
3096case $enable_libgcj in
3097yes)
3098 # If we reset it here, it won't get added to noconfigdirs in the
3099 # target-specific build rules, so it will be forcibly enabled
3100 # (unless the Java language itself isn't enabled).
3101 libgcj=
3102 ;;
3103no)
3104 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3105 # Don't disable libffi, though, other languages use it.
3106 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3107 # Clear libgcj_saved so that even if java is enabled libffi won't be
3108 # built.
3109 libgcj_saved=
671aa708
NN
3110 ;;
3111esac
ec8d6ddc 3112
a4a2c37d
MK
3113# Check whether --enable-static-libjava was given.
3114if test "${enable_static_libjava+set}" = set; then :
3115 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3116else
3117 ENABLE_STATIC_LIBJAVA=no
3118fi
3119
3120enable_static_libjava=
3121if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3122 enable_static_libjava=yes
3123fi
3124
3125if test x$enable_static_libjava != xyes ; then
3126 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3127fi
3128
6de9cd9a 3129
27079765
AH
3130# Disable libgomp on non POSIX hosted systems.
3131if test x$enable_libgomp = x ; then
953ff289
DN
3132 # Enable libgomp by default on hosted POSIX systems.
3133 case "${target}" in
416ac4d4 3134 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3135 ;;
8c6d158a 3136 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3137 ;;
b24513a1 3138 *-*-solaris2* | *-*-hpux11*)
953ff289 3139 ;;
cac90078 3140 *-*-darwin* | *-*-aix*)
953ff289
DN
3141 ;;
3142 *)
3143 noconfigdirs="$noconfigdirs target-libgomp"
3144 ;;
3145 esac
27079765 3146fi
953ff289 3147
48310492
RH
3148# Disable libatomic on unsupported systems.
3149if test -d ${srcdir}/libatomic; then
3150 if test x$enable_libatomic = x; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3152$as_echo_n "checking for libatomic support... " >&6; }
3153 if (srcdir=${srcdir}/libatomic; \
3154 . ${srcdir}/configure.tgt; \
3155 test -n "$UNSUPPORTED")
3156 then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
3159 noconfigdirs="$noconfigdirs target-libatomic"
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3162$as_echo "yes" >&6; }
3163 fi
3164 fi
3165fi
3166
e948157d
RH
3167# Disable libitm on unsupported systems.
3168if test -d ${srcdir}/libitm; then
3169 if test x$enable_libitm = x; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3171$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3172 if (srcdir=${srcdir}/libitm; \
3173 . ${srcdir}/configure.tgt; \
3174 test -n "$UNSUPPORTED")
3175 then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3177$as_echo "no" >&6; }
e948157d
RH
3178 noconfigdirs="$noconfigdirs target-libitm"
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3181$as_echo "yes" >&6; }
e948157d
RH
3182 fi
3183 fi
0a35513e
AH
3184fi
3185
93bf5390
RH
3186# Disable libsanitizer on unsupported systems.
3187if test -d ${srcdir}/libsanitizer; then
3188 if test x$enable_libsanitizer = x; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3190$as_echo_n "checking for libsanitizer support... " >&6; }
3191 if (srcdir=${srcdir}/libsanitizer; \
3192 . ${srcdir}/configure.tgt; \
3193 test -n "$UNSUPPORTED")
3194 then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197 noconfigdirs="$noconfigdirs target-libsanitizer"
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200$as_echo "yes" >&6; }
3201 fi
3202 fi
3203fi
3204
2077db1b
CT
3205# Disable libvtv on unsupported systems.
3206if test -d ${srcdir}/libvtv; then
3207 if test x$enable_libvtv = x; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3209$as_echo_n "checking for libvtv support... " >&6; }
3210 if (srcdir=${srcdir}/libvtv; \
3211 . ${srcdir}/configure.tgt; \
1e74b850 3212 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3213 then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
3216 noconfigdirs="$noconfigdirs target-libvtv"
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219$as_echo "yes" >&6; }
3220 fi
3221 fi
3222fi
3223
d91491e5
SE
3224# Disable libquadmath for some systems.
3225case "${target}" in
e7fae550
DE
3226 avr-*-*)
3227 noconfigdirs="$noconfigdirs target-libquadmath"
3228 ;;
d91491e5
SE
3229 # libquadmath is unused on AIX and libquadmath build process use of
3230 # LD_LIBRARY_PATH can break AIX bootstrap.
3231 powerpc-*-aix* | rs6000-*-aix*)
3232 noconfigdirs="$noconfigdirs target-libquadmath"
3233 ;;
3234esac
3235
1e9e0e23
JM
3236# Disable libssp for some systems.
3237case "${target}" in
3238 avr-*-*)
b318fb4b 3239 # No hosted I/O support.
1e9e0e23
JM
3240 noconfigdirs="$noconfigdirs target-libssp"
3241 ;;
3242 powerpc-*-aix* | rs6000-*-aix*)
3243 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3244 ;;
3245 rl78-*-*)
7cb62ef1
EB
3246 # libssp uses a misaligned load to trigger a fault, but the RL78
3247 # doesn't fault for those - instead, it gives a build-time error
3248 # for explicit misaligned loads.
85b8555e 3249 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3250 ;;
1e9e0e23
JM
3251esac
3252
1e9e0e23 3253# Disable libstdc++-v3 for some systems.
1873ec0c
L
3254# Allow user to override this if they pass --enable-libstdc++-v3
3255if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3256 case "${target}" in
3257 *-*-vxworks*)
3258 # VxWorks uses the Dinkumware C++ library.
3259 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3260 ;;
3261 arm*-wince-pe*)
3262 # the C++ libraries don't build on top of CE's C libraries
3263 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3264 ;;
3265 avr-*-*)
3266 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3267 ;;
3268 esac
3269fi
1e9e0e23
JM
3270
3271# Disable Fortran for some systems.
3272case "${target}" in
3273 mmix-*-*)
3274 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3275 unsupported_languages="$unsupported_languages fortran"
3276 ;;
3277esac
3278
80f81134 3279# Disable Java if libffi is not supported.
2909494b 3280case "${target}" in
eb7062cf
AS
3281 aarch64-*-*)
3282 ;;
80f81134
JM
3283 alpha*-*-*)
3284 ;;
3285 arm*-*-*)
3286 ;;
3287 cris-*-*)
3288 ;;
3289 frv-*-*)
3290 ;;
3291 hppa*-*-linux*)
3292 ;;
3293 hppa*-*-hpux*)
3294 ;;
3295 i?86-*-*)
3296 ;;
3297 ia64*-*-*)
3298 ;;
3299 m32r*-*-*)
3300 ;;
3301 m68k-*-*)
3302 ;;
b24513a1 3303 mips*-*-rtems*)
80f81134
JM
3304 ;;
3305 mips*-*-linux*)
3306 ;;
3307 powerpc*-*-linux*)
3308 ;;
3309 powerpc-*-darwin*)
3310 ;;
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 ;;
3313 powerpc-*-freebsd*)
3314 ;;
3315 powerpc64-*-freebsd*)
3316 ;;
3317 powerpc*-*-rtems*)
2909494b 3318 ;;
80f81134
JM
3319 s390-*-* | s390x-*-*)
3320 ;;
3321 sh-*-* | sh[34]*-*-*)
3322 ;;
3323 sh64-*-* | sh5*-*-*)
3324 ;;
3325 sparc*-*-*)
3326 ;;
3327 x86_64-*-*)
3328 ;;
3329 *-*-*)
3330 unsupported_languages="$unsupported_languages java"
3331 ;;
3332esac
3333
3334# Disable Java, libgcj or related libraries for some systems.
3335case "${target}" in
2909494b
JM
3336 powerpc-*-darwin*)
3337 ;;
3338 i[3456789]86-*-darwin*)
3339 ;;
3340 x86_64-*-darwin[912]*)
3341 ;;
3342 *-*-darwin*)
3343 noconfigdirs="$noconfigdirs ${libgcj}"
3344 ;;
2909494b
JM
3345 *-*-netware*)
3346 noconfigdirs="$noconfigdirs ${libgcj}"
3347 ;;
3348 *-*-rtems*)
3349 noconfigdirs="$noconfigdirs ${libgcj}"
3350 ;;
3351 *-*-tpf*)
3352 noconfigdirs="$noconfigdirs ${libgcj}"
3353 ;;
3354 *-*-uclinux*)
3355 noconfigdirs="$noconfigdirs ${libgcj}"
3356 ;;
3357 *-*-vxworks*)
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3359 ;;
2909494b
JM
3360 alpha*-*-*vms*)
3361 noconfigdirs="$noconfigdirs ${libgcj}"
3362 ;;
80f81134 3363 arm-wince-pe)
2909494b
JM
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3365 ;;
2909494b
JM
3366 arm*-*-symbianelf*)
3367 noconfigdirs="$noconfigdirs ${libgcj}"
3368 ;;
2909494b 3369 bfin-*-*)
2909494b
JM
3370 noconfigdirs="$noconfigdirs target-boehm-gc"
3371 ;;
2909494b
JM
3372 cris-*-* | crisv32-*-*)
3373 unsupported_languages="$unsupported_languages java"
3374 case "${target}" in
3375 *-*-linux*)
3376 ;;
3377 *) # See PR46792 regarding target-libffi.
3378 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3379 esac
3380 ;;
2909494b
JM
3381 hppa*64*-*-linux*)
3382 # In this case, it's because the hppa64-linux target is for
3383 # the kernel only at this point and has no libc, and thus no
3384 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3385 unsupported_languages="$unsupported_languages java"
2909494b 3386 ;;
fddf9ee7 3387 hppa*64*-*-hpux*)
2909494b
JM
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3389 ;;
3390 hppa*-hp-hpux11*)
3391 ;;
fddf9ee7 3392 hppa*-*-hpux*)
2909494b
JM
3393 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3394 # build on HP-UX 10.20.
3395 noconfigdirs="$noconfigdirs ${libgcj}"
3396 ;;
2909494b
JM
3397 ia64*-*-*vms*)
3398 noconfigdirs="$noconfigdirs ${libgcj}"
3399 ;;
2909494b
JM
3400 i[3456789]86-w64-mingw*)
3401 noconfigdirs="$noconfigdirs ${libgcj}"
3402 ;;
3403 i[3456789]86-*-mingw*)
3404 noconfigdirs="$noconfigdirs ${libgcj}"
3405 ;;
3406 x86_64-*-mingw*)
3407 noconfigdirs="$noconfigdirs ${libgcj}"
3408 ;;
2909494b
JM
3409 mmix-*-*)
3410 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3411 ;;
3412 powerpc-*-aix*)
3413 # copied from rs6000-*-* entry
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3415 ;;
2909494b
JM
3416 rs6000-*-aix*)
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3418 ;;
2909494b
JM
3419 *-*-lynxos*)
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3421 ;;
2909494b
JM
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 ;;
669f01d8 3782 sh-*-* | sh64-*-*)
ea2002ba
CB
3783 case "${target}" in
3784 sh*-*-elf)
2909494b 3785 ;;
ea2002ba 3786 *)
2909494b 3787 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3788 esac
671aa708 3789 ;;
671aa708 3790 sparc-*-sunos4*)
6a789d5e 3791 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3792 use_gnu_ld=no
3793 fi
3794 ;;
b42f0d7e 3795 tic6x-*-*)
0d557ff8 3796 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3797 ;;
db1d217c
WL
3798 tilepro-*-* | tilegx-*-*)
3799 noconfigdirs="$noconfigdirs sim"
3800 ;;
671aa708 3801 v810-*-*)
0036370f 3802 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3803 ;;
3804 vax-*-*)
2909494b 3805 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3806 ;;
671aa708 3807esac
79c06341 3808
671aa708
NN
3809# If we aren't building newlib, then don't build libgloss, since libgloss
3810# depends upon some newlib header files.
3811case "${noconfigdirs}" in
3812 *target-libgloss*) ;;
3813 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3814esac
3815
671aa708 3816# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3817host_makefile_frag=/dev/null
3818if test -d ${srcdir}/config ; then
3819case "${host}" in
f2a0e225 3820 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3821 host_makefile_frag="config/mh-djgpp"
3822 ;;
3823 *-cygwin*)
2a79c47f 3824
5213506e
RW
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3826$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3827echo a >cygwin-cat-check
e25a8c82 3828if test `cat cygwin-cat-check` = a ; then
2a79c47f 3829 rm cygwin-cat-check
5213506e
RW
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3831$as_echo "yes" >&6; }
2a79c47f
NC
3832else
3833 rm cygwin-cat-check
5213506e
RW
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835$as_echo "no" >&6; }
3836 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3837 Please either mount the build directory in binary mode or run the following
3838 commands before running any configure script:
3839set -o igncr
3840export SHELLOPTS
5213506e 3841 " "$LINENO" 5
2a79c47f
NC
3842fi
3843
671aa708
NN
3844 host_makefile_frag="config/mh-cygwin"
3845 ;;
c53a18d3 3846 *-mingw*)
1f5a6b84 3847 host_makefile_frag="config/mh-mingw"
95af8923 3848 ;;
efd41714 3849 hppa*-hp-hpux10*)
efd41714 3850 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3851 ;;
111eeb6e 3852 hppa*-hp-hpux*)
efd41714
PB
3853 host_makefile_frag="config/mh-pa"
3854 ;;
3855 hppa*-*)
3856 host_makefile_frag="config/mh-pa"
3857 ;;
d8ed14ce
IS
3858 *-*-darwin*)
3859 host_makefile_frag="config/mh-darwin"
be8fff81 3860 ;;
d19bca38
PB
3861 powerpc-*-aix*)
3862 host_makefile_frag="config/mh-ppc-aix"
3863 ;;
3864 rs6000-*-aix*)
3865 host_makefile_frag="config/mh-ppc-aix"
3866 ;;
671aa708
NN
3867esac
3868fi
3869
55ffb5ed 3870if test "${build}" != "${host}" ; then
0999159b
PB
3871 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3872 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3873 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3874 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3875 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3876 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3877 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3878 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3879 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3880 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3881 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3882 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3883 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3884else
3885 AR_FOR_BUILD="\$(AR)"
3886 AS_FOR_BUILD="\$(AS)"
fb0103e5 3887 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3888 CXX_FOR_BUILD="\$(CXX)"
3889 GCJ_FOR_BUILD="\$(GCJ)"
3890 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3891 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3892 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3893 LD_FOR_BUILD="\$(LD)"
3894 NM_FOR_BUILD="\$(NM)"
3895 RANLIB_FOR_BUILD="\$(RANLIB)"
3896 WINDRES_FOR_BUILD="\$(WINDRES)"
3897 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3898fi
3899
3900ac_ext=c
1c710c3c
DJ
3901ac_cpp='$CPP $CPPFLAGS'
3902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3907set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
3910if test "${ac_cv_prog_CC+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3912else
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3915else
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
5213506e
RW
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3925 break 2
3926 fi
3927done
5213506e
RW
3928 done
3929IFS=$as_save_IFS
1c710c3c
DJ
3930
3931fi
3932fi
3933CC=$ac_cv_prog_CC
3934if test -n "$CC"; then
5213506e
RW
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936$as_echo "$CC" >&6; }
1c710c3c 3937else
5213506e
RW
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939$as_echo "no" >&6; }
1c710c3c
DJ
3940fi
3941
5213506e 3942
1c710c3c
DJ
3943fi
3944if test -z "$ac_cv_prog_CC"; then
3945 ac_ct_CC=$CC
fb0103e5
RG
3946 # Extract the first word of "gcc", so it can be a program name with args.
3947set dummy gcc; ac_word=$2
5213506e
RW
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949$as_echo_n "checking for $ac_word... " >&6; }
3950if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3952else
3953 if test -n "$ac_ct_CC"; then
3954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
5213506e
RW
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3963 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3965 break 2
3966 fi
3967done
5213506e
RW
3968 done
3969IFS=$as_save_IFS
1c710c3c
DJ
3970
3971fi
3972fi
3973ac_ct_CC=$ac_cv_prog_ac_ct_CC
3974if test -n "$ac_ct_CC"; then
5213506e
RW
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3976$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3977else
5213506e
RW
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
1c710c3c
DJ
3980fi
3981
5213506e
RW
3982 if test "x$ac_ct_CC" = x; then
3983 CC=""
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986yes:)
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989ac_tool_warned=yes ;;
3990esac
3991 CC=$ac_ct_CC
3992 fi
1c710c3c
DJ
3993else
3994 CC="$ac_cv_prog_CC"
3995fi
3996
3997if test -z "$CC"; then
5213506e
RW
3998 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4000set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002$as_echo_n "checking for $ac_word... " >&6; }
4003if test "${ac_cv_prog_CC+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4005else
4006 if test -n "$CC"; then
4007 ac_cv_prog_CC="$CC" # Let the user override the test.
4008else
1c710c3c
DJ
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
5213506e
RW
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4016 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4018 break 2
4019 fi
4020done
5213506e
RW
4021 done
4022IFS=$as_save_IFS
1c710c3c 4023
0b0dc272 4024fi
0b0dc272 4025fi
1c710c3c 4026CC=$ac_cv_prog_CC
af71363e 4027if test -n "$CC"; then
5213506e
RW
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029$as_echo "$CC" >&6; }
2aeb72e9 4030else
5213506e
RW
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032$as_echo "no" >&6; }
2aeb72e9
DD
4033fi
4034
2aeb72e9 4035
5213506e 4036 fi
1c710c3c 4037fi
55ffb5ed
NN
4038if test -z "$CC"; then
4039 # Extract the first word of "cc", so it can be a program name with args.
4040set dummy cc; ac_word=$2
5213506e
RW
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
4043if test "${ac_cv_prog_CC+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4045else
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4048else
0b0dc272 4049 ac_prog_rejected=no
1c710c3c
DJ
4050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH
4052do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
5213506e
RW
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4058 ac_prog_rejected=yes
4059 continue
4060 fi
4061 ac_cv_prog_CC="cc"
5213506e 4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4063 break 2
4064 fi
4065done
5213506e
RW
4066 done
4067IFS=$as_save_IFS
1c710c3c 4068
55ffb5ed
NN
4069if test $ac_prog_rejected = yes; then
4070 # We found a bogon in the path, so make sure we never use it.
4071 set dummy $ac_cv_prog_CC
4072 shift
1c710c3c 4073 if test $# != 0; then
55ffb5ed
NN
4074 # We chose a different compiler from the bogus one.
4075 # However, it has the same basename, so the bogon will be chosen
4076 # first if we set CC to just the basename; use the full file name.
4077 shift
1c710c3c 4078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4079 fi
4080fi
4081fi
4082fi
1c710c3c 4083CC=$ac_cv_prog_CC
55ffb5ed 4084if test -n "$CC"; then
5213506e
RW
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086$as_echo "$CC" >&6; }
55ffb5ed 4087else
5213506e
RW
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089$as_echo "no" >&6; }
55ffb5ed
NN
4090fi
4091
5213506e 4092
1c710c3c
DJ
4093fi
4094if test -z "$CC"; then
4095 if test -n "$ac_tool_prefix"; then
5213506e 4096 for ac_prog in cl.exe
1c710c3c
DJ
4097 do
4098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4099set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101$as_echo_n "checking for $ac_word... " >&6; }
4102if test "${ac_cv_prog_CC+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4104else
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4107else
1c710c3c
DJ
4108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
5213506e
RW
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4117 break 2
4118 fi
4119done
5213506e
RW
4120 done
4121IFS=$as_save_IFS
1c710c3c 4122
55ffb5ed
NN
4123fi
4124fi
1c710c3c 4125CC=$ac_cv_prog_CC
55ffb5ed 4126if test -n "$CC"; then
5213506e
RW
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4128$as_echo "$CC" >&6; }
a4b9e93e 4129else
5213506e
RW
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131$as_echo "no" >&6; }
fb0103e5 4132fi
af71363e 4133
5213506e 4134
1c710c3c
DJ
4135 test -n "$CC" && break
4136 done
af71363e 4137fi
1c710c3c
DJ
4138if test -z "$CC"; then
4139 ac_ct_CC=$CC
5213506e 4140 for ac_prog in cl.exe
1c710c3c
DJ
4141do
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143set dummy $ac_prog; ac_word=$2
5213506e
RW
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145$as_echo_n "checking for $ac_word... " >&6; }
4146if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
0b0dc272 4148else
1c710c3c
DJ
4149 if test -n "$ac_ct_CC"; then
4150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4151else
1c710c3c
DJ
4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH
4154do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
5213506e
RW
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4159 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4161 break 2
4162 fi
4163done
5213506e
RW
4164 done
4165IFS=$as_save_IFS
1c710c3c 4166
af71363e
AS
4167fi
4168fi
1c710c3c
DJ
4169ac_ct_CC=$ac_cv_prog_ac_ct_CC
4170if test -n "$ac_ct_CC"; then
5213506e
RW
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4172$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4173else
5213506e
RW
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175$as_echo "no" >&6; }
af71363e 4176fi
0b0dc272 4177
5213506e 4178
1c710c3c
DJ
4179 test -n "$ac_ct_CC" && break
4180done
4181
5213506e
RW
4182 if test "x$ac_ct_CC" = x; then
4183 CC=""
4184 else
4185 case $cross_compiling:$ac_tool_warned in
4186yes:)
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4189ac_tool_warned=yes ;;
4190esac
4191 CC=$ac_ct_CC
4192 fi
1c710c3c
DJ
4193fi
4194
4195fi
4196
4197
5213506e
RW
4198test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200as_fn_error "no acceptable C compiler found in \$PATH
4201See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4202
4203# Provide some information about the compiler.
5213506e
RW
4204$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4205set X $ac_compile
4206ac_compiler=$2
4207for ac_option in --version -v -V -qversion; do
4208 { { ac_try="$ac_compiler $ac_option >&5"
4209case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
4213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214$as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4216 ac_status=$?
5213506e
RW
4217 if test -s conftest.err; then
4218 sed '10a\
4219... rest of stderr output deleted ...
4220 10q' conftest.err >conftest.er1
4221 cat conftest.er1 >&5
4222 rm -f conftest.er1 conftest.err
4223 fi
4224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225 test $ac_status = 0; }
4226done
1c710c3c 4227
5213506e 4228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4229/* end confdefs.h. */
4230
4231int
4232main ()
4233{
4234
4235 ;
4236 return 0;
4237}
4238_ACEOF
4239ac_clean_files_save=$ac_clean_files
5213506e 4240ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4241# Try to create an executable without -o first, disregard a.out.
4242# It will help us diagnose broken compilers, and finding out an intuition
4243# of exeext.
5213506e
RW
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4245$as_echo_n "checking for C compiler default output file name... " >&6; }
4246ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4247
4248# The possible output files:
4249ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4250
4251ac_rmfiles=
4252for ac_file in $ac_files
4253do
4254 case $ac_file in
4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4256 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4257 esac
4258done
4259rm -f $ac_rmfiles
4260
4261if { { ac_try="$ac_link_default"
4262case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267$as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_link_default") 2>&5
1c710c3c 4269 ac_status=$?
5213506e
RW
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }; then :
4272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4273# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4274# in a Makefile. We should not override ac_cv_exeext if it was cached,
4275# so that the user can short-circuit this test for compilers unknown to
4276# Autoconf.
4277for ac_file in $ac_files ''
1c710c3c
DJ
4278do
4279 test -f "$ac_file" || continue
4280 case $ac_file in
5213506e 4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4282 ;;
4283 [ab].out )
4284 # We found the default executable, but exeext='' is most
4285 # certainly right.
4286 break;;
4287 *.* )
5213506e
RW
4288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4289 then :; else
4290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4291 fi
4292 # We set ac_cv_exeext here because the later test for it is not
4293 # safe: cross compilers may not add the suffix if given an `-o'
4294 # argument, so we may need to know it at that point already.
4295 # Even if this section looks crufty: it has the advantage of
4296 # actually working.
1c710c3c
DJ
4297 break;;
4298 * )
4299 break;;
4300 esac
4301done
5213506e
RW
4302test "$ac_cv_exeext" = no && ac_cv_exeext=
4303
1c710c3c 4304else
5213506e
RW
4305 ac_file=''
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4308$as_echo "$ac_file" >&6; }
4309if test -z "$ac_file"; then :
4310 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4311sed 's/^/| /' conftest.$ac_ext >&5
4312
5213506e
RW
4313{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315{ as_fn_set_status 77
4316as_fn_error "C compiler cannot create executables
4317See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4318fi
1c710c3c 4319ac_exeext=$ac_cv_exeext
1c710c3c 4320
5213506e 4321# Check that the compiler produces executables we can run. If not, either
1c710c3c 4322# the compiler is broken, or we cross compile.
5213506e
RW
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4324$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4325# If not cross compiling, check that we can run a simple program.
4326if test "$cross_compiling" != yes; then
4327 if { ac_try='./$ac_file'
5213506e
RW
4328 { { case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331esac
4332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333$as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
1c710c3c 4335 ac_status=$?
5213506e
RW
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; }; then
1c710c3c
DJ
4338 cross_compiling=no
4339 else
4340 if test "$cross_compiling" = maybe; then
4341 cross_compiling=yes
4342 else
5213506e
RW
4343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4345as_fn_error "cannot run C compiled programs.
1c710c3c 4346If you meant to cross compile, use \`--host'.
5213506e 4347See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4348 fi
4349 fi
4350fi
5213506e
RW
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4352$as_echo "yes" >&6; }
1c710c3c 4353
5213506e 4354rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4355ac_clean_files=$ac_clean_files_save
5213506e 4356# Check that the compiler produces executables we can run. If not, either
1c710c3c 4357# the compiler is broken, or we cross compile.
5213506e
RW
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4359$as_echo_n "checking whether we are cross compiling... " >&6; }
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4361$as_echo "$cross_compiling" >&6; }
4362
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4364$as_echo_n "checking for suffix of executables... " >&6; }
4365if { { ac_try="$ac_link"
4366case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371$as_echo "$ac_try_echo"; } >&5
4372 (eval "$ac_link") 2>&5
1c710c3c 4373 ac_status=$?
5213506e
RW
4374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; }; then :
1c710c3c
DJ
4376 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4377# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4378# work properly (i.e., refer to `conftest.exe'), while it won't with
4379# `rm'.
4380for ac_file in conftest.exe conftest conftest.*; do
4381 test -f "$ac_file" || continue
4382 case $ac_file in
5213506e 4383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4384 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4385 break;;
4386 * ) break;;
4387 esac
4388done
af71363e 4389else
5213506e
RW
4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392as_fn_error "cannot compute suffix of executables: cannot compile and link
4393See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4394fi
1c710c3c 4395rm -f conftest$ac_cv_exeext
5213506e
RW
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4397$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4398
4399rm -f conftest.$ac_ext
4400EXEEXT=$ac_cv_exeext
4401ac_exeext=$EXEEXT
5213506e
RW
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4403$as_echo_n "checking for suffix of object files... " >&6; }
4404if test "${ac_cv_objext+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
1c710c3c 4406else
5213506e 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4408/* end confdefs.h. */
4409
4410int
4411main ()
4412{
4413
4414 ;
4415 return 0;
4416}
4417_ACEOF
4418rm -f conftest.o conftest.obj
5213506e
RW
4419if { { ac_try="$ac_compile"
4420case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_compile") 2>&5
1c710c3c 4427 ac_status=$?
5213506e
RW
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; then :
4430 for ac_file in conftest.o conftest.obj conftest.*; do
4431 test -f "$ac_file" || continue;
1c710c3c 4432 case $ac_file in
5213506e 4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4435 break;;
4436 esac
4437done
4438else
5213506e 4439 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
5213506e
RW
4442{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444as_fn_error "cannot compute suffix of object files: cannot compile
4445See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4446fi
1c710c3c
DJ
4447rm -f conftest.$ac_cv_objext conftest.$ac_ext
4448fi
5213506e
RW
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4450$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4451OBJEXT=$ac_cv_objext
4452ac_objext=$OBJEXT
5213506e
RW
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4454$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4455if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
1c710c3c 4457else
5213506e 4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4459/* end confdefs.h. */
4460
4461int
4462main ()
4463{
4464#ifndef __GNUC__
4465 choke me
4466#endif
4467
4468 ;
4469 return 0;
4470}
4471_ACEOF
5213506e 4472if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4473 ac_compiler_gnu=yes
4474else
5213506e 4475 ac_compiler_gnu=no
1c710c3c 4476fi
5213506e 4477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4478ac_cv_c_compiler_gnu=$ac_compiler_gnu
4479
4480fi
5213506e
RW
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4482$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4483if test $ac_compiler_gnu = yes; then
4484 GCC=yes
4485else
4486 GCC=
4487fi
1c710c3c
DJ
4488ac_test_CFLAGS=${CFLAGS+set}
4489ac_save_CFLAGS=$CFLAGS
5213506e
RW
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4491$as_echo_n "checking whether $CC accepts -g... " >&6; }
4492if test "${ac_cv_prog_cc_g+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4494else
4495 ac_save_c_werror_flag=$ac_c_werror_flag
4496 ac_c_werror_flag=yes
4497 ac_cv_prog_cc_g=no
4498 CFLAGS="-g"
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4500/* end confdefs.h. */
4501
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
5213506e 4510if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4511 ac_cv_prog_cc_g=yes
4512else
5213506e
RW
4513 CFLAGS=""
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h. */
4516
4517int
4518main ()
4519{
4520
4521 ;
4522 return 0;
4523}
4524_ACEOF
4525if ac_fn_c_try_compile "$LINENO"; then :
4526
4527else
4528 ac_c_werror_flag=$ac_save_c_werror_flag
4529 CFLAGS="-g"
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h. */
af71363e 4532
5213506e
RW
4533int
4534main ()
4535{
4536
4537 ;
4538 return 0;
4539}
4540_ACEOF
4541if ac_fn_c_try_compile "$LINENO"; then :
4542 ac_cv_prog_cc_g=yes
4543fi
4544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4545fi
5213506e 4546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4547fi
5213506e
RW
4548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 ac_c_werror_flag=$ac_save_c_werror_flag
4550fi
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4552$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4553if test "$ac_test_CFLAGS" = set; then
1c710c3c 4554 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4555elif test $ac_cv_prog_cc_g = yes; then
4556 if test "$GCC" = yes; then
4557 CFLAGS="-g -O2"
4558 else
4559 CFLAGS="-g"
4560 fi
4561else
4562 if test "$GCC" = yes; then
4563 CFLAGS="-O2"
4564 else
4565 CFLAGS=
4566 fi
4567fi
5213506e
RW
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4569$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4570if test "${ac_cv_prog_cc_c89+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
1c710c3c 4572else
5213506e 4573 ac_cv_prog_cc_c89=no
1c710c3c 4574ac_save_CC=$CC
5213506e 4575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4576/* end confdefs.h. */
4577#include <stdarg.h>
4578#include <stdio.h>
4579#include <sys/types.h>
4580#include <sys/stat.h>
4581/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4582struct buf { int x; };
4583FILE * (*rcsopen) (struct buf *, struct stat *, int);
4584static char *e (p, i)
4585 char **p;
4586 int i;
4587{
4588 return p[i];
4589}
4590static char *f (char * (*g) (char **, int), char **p, ...)
4591{
4592 char *s;
4593 va_list v;
4594 va_start (v,p);
4595 s = g (p, va_arg (v,int));
4596 va_end (v);
4597 return s;
4598}
4599
4600/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4601 function prototypes and stuff, but not '\xHH' hex character constants.
4602 These don't provoke an error unfortunately, instead are silently treated
5213506e 4603 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4605 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4606 that's true only with -std. */
1c710c3c
DJ
4607int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4608
5213506e
RW
4609/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4610 inside strings and character constants. */
4611#define FOO(x) 'x'
4612int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4613
1c710c3c
DJ
4614int test (int i, double x);
4615struct s1 {int (*f) (int a);};
4616struct s2 {int (*f) (double a);};
4617int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4618int argc;
4619char **argv;
4620int
4621main ()
4622{
4623return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4624 ;
4625 return 0;
4626}
4627_ACEOF
5213506e
RW
4628for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4630do
4631 CC="$ac_save_CC $ac_arg"
5213506e
RW
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4634fi
5213506e
RW
4635rm -f core conftest.err conftest.$ac_objext
4636 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4637done
5213506e 4638rm -f conftest.$ac_ext
1c710c3c
DJ
4639CC=$ac_save_CC
4640
4641fi
5213506e
RW
4642# AC_CACHE_VAL
4643case "x$ac_cv_prog_cc_c89" in
4644 x)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4646$as_echo "none needed" >&6; } ;;
4647 xno)
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4649$as_echo "unsupported" >&6; } ;;
1c710c3c 4650 *)
5213506e
RW
4651 CC="$CC $ac_cv_prog_cc_c89"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4653$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4654esac
5213506e 4655if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4656
2aeb72e9
DD
4657fi
4658
2aeb72e9
DD
4659ac_ext=c
4660ac_cpp='$CPP $CPPFLAGS'
4661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663ac_compiler_gnu=$ac_cv_c_compiler_gnu
4664
5213506e 4665ac_ext=cpp
2aeb72e9
DD
4666ac_cpp='$CXXCPP $CPPFLAGS'
4667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4670if test -z "$CXX"; then
4671 if test -n "$CCC"; then
4672 CXX=$CCC
4673 else
4674 if test -n "$ac_tool_prefix"; then
4675 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4676 do
4677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4678set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680$as_echo_n "checking for $ac_word... " >&6; }
4681if test "${ac_cv_prog_CXX+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4683else
4684 if test -n "$CXX"; then
4685 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4686else
4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688for as_dir in $PATH
4689do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
5213506e
RW
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4694 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4696 break 2
4697 fi
4698done
5213506e
RW
4699 done
4700IFS=$as_save_IFS
55ffb5ed 4701
c3a86da9
DJ
4702fi
4703fi
4704CXX=$ac_cv_prog_CXX
4705if test -n "$CXX"; then
5213506e
RW
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4707$as_echo "$CXX" >&6; }
c3a86da9 4708else
5213506e
RW
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
c3a86da9
DJ
4711fi
4712
5213506e 4713
c3a86da9
DJ
4714 test -n "$CXX" && break
4715 done
4716fi
4717if test -z "$CXX"; then
4718 ac_ct_CXX=$CXX
5213506e 4719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4720do
4721 # Extract the first word of "$ac_prog", so it can be a program name with args.
4722set dummy $ac_prog; ac_word=$2
5213506e
RW
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724$as_echo_n "checking for $ac_word... " >&6; }
4725if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4727else
4728 if test -n "$ac_ct_CXX"; then
4729 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4730else
4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH
4733do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
5213506e
RW
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4738 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4740 break 2
4741 fi
4742done
5213506e
RW
4743 done
4744IFS=$as_save_IFS
c3a86da9
DJ
4745
4746fi
4747fi
4748ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4749if test -n "$ac_ct_CXX"; then
5213506e
RW
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4751$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4752else
5213506e
RW
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754$as_echo "no" >&6; }
c3a86da9
DJ
4755fi
4756
5213506e 4757
c3a86da9
DJ
4758 test -n "$ac_ct_CXX" && break
4759done
c3a86da9 4760
5213506e
RW
4761 if test "x$ac_ct_CXX" = x; then
4762 CXX="g++"
4763 else
4764 case $cross_compiling:$ac_tool_warned in
4765yes:)
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768ac_tool_warned=yes ;;
4769esac
4770 CXX=$ac_ct_CXX
4771 fi
c3a86da9
DJ
4772fi
4773
5213506e
RW
4774 fi
4775fi
c3a86da9 4776# Provide some information about the compiler.
5213506e
RW
4777$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4778set X $ac_compile
4779ac_compiler=$2
4780for ac_option in --version -v -V -qversion; do
4781 { { ac_try="$ac_compiler $ac_option >&5"
4782case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4785esac
4786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4787$as_echo "$ac_try_echo"; } >&5
4788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4789 ac_status=$?
5213506e
RW
4790 if test -s conftest.err; then
4791 sed '10a\
4792... rest of stderr output deleted ...
4793 10q' conftest.err >conftest.er1
4794 cat conftest.er1 >&5
4795 rm -f conftest.er1 conftest.err
4796 fi
4797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798 test $ac_status = 0; }
4799done
c3a86da9 4800
5213506e
RW
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4802$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4803if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
c3a86da9 4805else
5213506e 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4807/* end confdefs.h. */
4808
4809int
4810main ()
4811{
4812#ifndef __GNUC__
4813 choke me
4814#endif
4815
4816 ;
4817 return 0;
4818}
4819_ACEOF
5213506e 4820if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4821 ac_compiler_gnu=yes
4822else
5213506e 4823 ac_compiler_gnu=no
c3a86da9 4824fi
5213506e 4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4826ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4827
4828fi
5213506e
RW
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4830$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4831if test $ac_compiler_gnu = yes; then
4832 GXX=yes
4833else
4834 GXX=
4835fi
c3a86da9
DJ
4836ac_test_CXXFLAGS=${CXXFLAGS+set}
4837ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4839$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4840if test "${ac_cv_prog_cxx_g+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842else
4843 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4844 ac_cxx_werror_flag=yes
4845 ac_cv_prog_cxx_g=no
4846 CXXFLAGS="-g"
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4848/* end confdefs.h. */
4849
4850int
4851main ()
4852{
4853
4854 ;
4855 return 0;
4856}
4857_ACEOF
5213506e 4858if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4859 ac_cv_prog_cxx_g=yes
4860else
5213506e
RW
4861 CXXFLAGS=""
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4863/* end confdefs.h. */
5213506e 4864
c3a86da9
DJ
4865int
4866main ()
4867{
5213506e 4868
c3a86da9
DJ
4869 ;
4870 return 0;
4871}
4872_ACEOF
5213506e 4873if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4874
5213506e
RW
4875else
4876 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4877 CXXFLAGS="-g"
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4879/* end confdefs.h. */
5213506e 4880
c3a86da9
DJ
4881int
4882main ()
4883{
5213506e 4884
c3a86da9
DJ
4885 ;
4886 return 0;
4887}
4888_ACEOF
5213506e
RW
4889if ac_fn_cxx_try_compile "$LINENO"; then :
4890 ac_cv_prog_cxx_g=yes
11a67599 4891fi
5213506e
RW
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895fi
4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4898fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4900$as_echo "$ac_cv_prog_cxx_g" >&6; }
4901if test "$ac_test_CXXFLAGS" = set; then
4902 CXXFLAGS=$ac_save_CXXFLAGS
4903elif test $ac_cv_prog_cxx_g = yes; then
4904 if test "$GXX" = yes; then
4905 CXXFLAGS="-g -O2"
4906 else
4907 CXXFLAGS="-g"
4908 fi
4909else
4910 if test "$GXX" = yes; then
4911 CXXFLAGS="-O2"
4912 else
4913 CXXFLAGS=
4914 fi
c3a86da9 4915fi
c3a86da9
DJ
4916ac_ext=c
4917ac_cpp='$CPP $CPPFLAGS'
4918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921
4922
4923# We must set the default linker to the linker used by gcc for the correct
4924# operation of libtool. If LD is not defined and we are using gcc, try to
4925# set the LD default to the ld used by gcc.
4926if test -z "$LD"; then
4927 if test "$GCC" = yes; then
4928 case $build in
4929 *-*-mingw*)
4930 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4931 *)
4932 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4933 esac
4934 case $gcc_prog_ld in
4935 # Accept absolute paths.
4936 [\\/]* | [A-Za-z]:[\\/]*)
4937 LD="$gcc_prog_ld" ;;
4938 esac
4939 fi
23f6b2f9
PB
4940fi
4941
0b21f5d3
EB
4942# Check whether -static-libstdc++ -static-libgcc is supported.
4943have_static_libs=no
4944if test "$GCC" = yes; then
4945 saved_LDFLAGS="$LDFLAGS"
4946
4947 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4949$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4950 ac_ext=cpp
4951ac_cpp='$CXXCPP $CPPFLAGS'
4952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4955
4956
4957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h. */
0d6414b2
EB
4959
4960#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4961#error -static-libstdc++ not implemented
4962#endif
0b21f5d3
EB
4963int main() {}
4964_ACEOF
4965if ac_fn_cxx_try_link "$LINENO"; then :
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4967$as_echo "yes" >&6; }; have_static_libs=yes
4968else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970$as_echo "no" >&6; }
4971fi
4972rm -f core conftest.err conftest.$ac_objext \
4973 conftest$ac_exeext conftest.$ac_ext
4974 ac_ext=c
4975ac_cpp='$CPP $CPPFLAGS'
4976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979
4980
4981 LDFLAGS="$saved_LDFLAGS"
4982fi
4983
23f6b2f9
PB
4984
4985
55ffb5ed 4986
1c710c3c
DJ
4987if test -n "$ac_tool_prefix"; then
4988 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4989set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991$as_echo_n "checking for $ac_word... " >&6; }
4992if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4994else
4995 if test -n "$GNATBIND"; then
4996 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4997else
1c710c3c
DJ
4998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999for as_dir in $PATH
5000do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
5213506e
RW
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5005 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5007 break 2
5008 fi
5009done
5213506e
RW
5010 done
5011IFS=$as_save_IFS
1c710c3c 5012
55ffb5ed
NN
5013fi
5014fi
1c710c3c 5015GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5016if test -n "$GNATBIND"; then
5213506e
RW
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5018$as_echo "$GNATBIND" >&6; }
55ffb5ed 5019else
5213506e
RW
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021$as_echo "no" >&6; }
55ffb5ed
NN
5022fi
5023
5213506e 5024
1c710c3c 5025fi
55ffb5ed 5026if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5027 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5028 # Extract the first word of "gnatbind", so it can be a program name with args.
5029set dummy gnatbind; ac_word=$2
5213506e
RW
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031$as_echo_n "checking for $ac_word... " >&6; }
5032if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
55ffb5ed 5034else
1c710c3c
DJ
5035 if test -n "$ac_ct_GNATBIND"; then
5036 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5037else
1c710c3c
DJ
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5213506e
RW
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5045 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5047 break 2
5048 fi
5049done
5213506e
RW
5050 done
5051IFS=$as_save_IFS
1c710c3c 5052
55ffb5ed
NN
5053fi
5054fi
1c710c3c
DJ
5055ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5056if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5058$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5059else
5213506e
RW
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061$as_echo "no" >&6; }
55ffb5ed
NN
5062fi
5063
5213506e
RW
5064 if test "x$ac_ct_GNATBIND" = x; then
5065 GNATBIND="no"
5066 else
5067 case $cross_compiling:$ac_tool_warned in
5068yes:)
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071ac_tool_warned=yes ;;
5072esac
5073 GNATBIND=$ac_ct_GNATBIND
5074 fi
55ffb5ed 5075else
1c710c3c 5076 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5077fi
5078
1c710c3c
DJ
5079if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5081set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5305be7e
RG
5086else
5087 if test -n "$GNATMAKE"; then
5088 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5089else
1c710c3c
DJ
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5213506e
RW
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5097 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5099 break 2
5100 fi
5101done
5213506e
RW
5102 done
5103IFS=$as_save_IFS
1c710c3c 5104
5305be7e
RG
5105fi
5106fi
1c710c3c 5107GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5108if test -n "$GNATMAKE"; then
5213506e
RW
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5110$as_echo "$GNATMAKE" >&6; }
5305be7e 5111else
5213506e
RW
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113$as_echo "no" >&6; }
5305be7e
RG
5114fi
5115
5213506e 5116
1c710c3c 5117fi
5305be7e 5118if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5119 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5120 # Extract the first word of "gnatmake", so it can be a program name with args.
5121set dummy gnatmake; ac_word=$2
5213506e
RW
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123$as_echo_n "checking for $ac_word... " >&6; }
5124if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5305be7e 5126else
1c710c3c
DJ
5127 if test -n "$ac_ct_GNATMAKE"; then
5128 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5129else
1c710c3c
DJ
5130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
5213506e
RW
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5137 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5139 break 2
5140 fi
5141done
5213506e
RW
5142 done
5143IFS=$as_save_IFS
1c710c3c 5144
5305be7e
RG
5145fi
5146fi
1c710c3c
DJ
5147ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5148if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5150$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5151else
5213506e
RW
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153$as_echo "no" >&6; }
5305be7e
RG
5154fi
5155
5213506e
RW
5156 if test "x$ac_ct_GNATMAKE" = x; then
5157 GNATMAKE="no"
5158 else
5159 case $cross_compiling:$ac_tool_warned in
5160yes:)
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163ac_tool_warned=yes ;;
5164esac
5165 GNATMAKE=$ac_ct_GNATMAKE
5166 fi
5305be7e 5167else
1c710c3c 5168 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5169fi
5170
5213506e
RW
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5172$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5173if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5175else
5176 cat >conftest.adb <<EOF
5177procedure conftest is begin null; end conftest;
5178EOF
5179acx_cv_cc_gcc_supports_ada=no
5180# There is a bug in old released versions of GCC which causes the
5181# driver to exit successfully when the appropriate language module
5182# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5183# Therefore we must check for the error message as well as an
5184# unsuccessful exit.
1db673ca
RO
5185# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5186# given a .adb file, but produce no object file. So we must check
5187# if an object file was really produced to guard against this.
55ffb5ed 5188errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5189if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5190 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5191fi
5192rm -f conftest.*
5193fi
5213506e
RW
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5195$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5196
7cb62ef1 5197if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5198 have_gnat=yes
5199else
5200 have_gnat=no
5201fi
5202
5213506e
RW
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5204$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5205if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
a76494aa
PB
5207else
5208 echo abfoo >t1
5209 echo cdfoo >t2
5210 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5211 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5212 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5213 :
5214 else
5215 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5216 fi
5217 fi
a76494aa
PB
5218 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5219 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5220 :
a76494aa
PB
5221 else
5222 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5223 fi
5224 fi
5225 rm t1 t2
5226
5227fi
5213506e
RW
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5229$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5230do_compare="$gcc_cv_prog_cmp_skip"
5231
5232
55ffb5ed 5233
ff3ac0f4
ILT
5234# Check whether --enable-bootstrap was given.
5235if test "${enable_bootstrap+set}" = set; then :
5236 enableval=$enable_bootstrap;
5237else
5238 enable_bootstrap=default
5239fi
5240
5241
5242# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5243if test -r $srcdir/gcc/configure; then
5244 have_compiler=yes
5245else
5246 have_compiler=no
5247fi
ff3ac0f4
ILT
5248
5249case "$have_compiler:$host:$target:$enable_bootstrap" in
5250 *:*:*:no) ;;
5251
5252 # Default behavior. Enable bootstrap if we have a compiler
5253 # and we are in a native configuration.
5254 yes:$build:$build:default)
5255 enable_bootstrap=yes ;;
5256
5257 *:*:*:default)
5258 enable_bootstrap=no ;;
5259
5260 # We have a compiler and we are in a native configuration, bootstrap is ok
5261 yes:$build:$build:yes)
5262 ;;
5263
5264 # Other configurations, but we have a compiler. Assume the user knows
5265 # what he's doing.
5266 yes:*:*:yes)
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5268$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5269 ;;
5270
5271 # No compiler: if they passed --enable-bootstrap explicitly, fail
5272 no:*:*:yes)
5273 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5274
5275 # Fail if wrong command line
5276 *)
5277 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5278 ;;
5279esac
5280
592c90ff
KG
5281# Used for setting $lt_cv_objdir
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5283$as_echo_n "checking for objdir... " >&6; }
5284if test "${lt_cv_objdir+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286else
5287 rm -f .libs 2>/dev/null
5288mkdir .libs 2>/dev/null
5289if test -d .libs; then
5290 lt_cv_objdir=.libs
5291else
5292 # MS-DOS does not allow filenames that begin with a dot.
5293 lt_cv_objdir=_libs
5294fi
5295rmdir .libs 2>/dev/null
5296fi
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5298$as_echo "$lt_cv_objdir" >&6; }
5299objdir=$lt_cv_objdir
5300
5301
5302
5303
5304
5305cat >>confdefs.h <<_ACEOF
5306#define LT_OBJDIR "$lt_cv_objdir/"
5307_ACEOF
5308
5309
5310
acd26225 5311# Check for GMP, MPFR and MPC
3a5729ea 5312gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5313gmpinc=
e69bf64b 5314have_gmp=no
acd26225
KG
5315
5316# Specify a location for mpc
5317# check for this first so it ends up on the link line before mpfr.
5318
5213506e
RW
5319# Check whether --with-mpc was given.
5320if test "${with_mpc+set}" = set; then :
5321 withval=$with_mpc;
5322fi
acd26225 5323
acd26225 5324
9965e3cd 5325# Check whether --with-mpc-include was given.
5213506e
RW
5326if test "${with_mpc_include+set}" = set; then :
5327 withval=$with_mpc_include;
5328fi
acd26225 5329
acd26225 5330
9965e3cd 5331# Check whether --with-mpc-lib was given.
5213506e
RW
5332if test "${with_mpc_lib+set}" = set; then :
5333 withval=$with_mpc_lib;
5334fi
acd26225 5335
acd26225
KG
5336
5337if test "x$with_mpc" != x; then
3a5729ea
KG
5338 gmplibs="-L$with_mpc/lib $gmplibs"
5339 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5340fi
5341if test "x$with_mpc_include" != x; then
3a5729ea 5342 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5343fi
5344if test "x$with_mpc_lib" != x; then
3a5729ea 5345 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5346fi
5347if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5348 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5349 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5350 # Do not test the mpc version. Assume that it is sufficient, since
5351 # it is in the source tree, and the library has not been built yet
5352 # but it would be included on the link line in the version check below
5353 # hence making the test fail.
3a5729ea 5354 have_gmp=yes
acd26225 5355fi
e69bf64b 5356
bebf829d
PB
5357# Specify a location for mpfr
5358# check for this first so it ends up on the link line before gmp.
1c710c3c 5359
5213506e
RW
5360# Check whether --with-mpfr-dir was given.
5361if test "${with_mpfr_dir+set}" = set; then :
5362 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5363Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5364fi
5365
bebf829d
PB
5366
5367
5213506e
RW
5368# Check whether --with-mpfr was given.
5369if test "${with_mpfr+set}" = set; then :
5370 withval=$with_mpfr;
5371fi
1c710c3c 5372
bebf829d 5373
9965e3cd 5374# Check whether --with-mpfr-include was given.
5213506e
RW
5375if test "${with_mpfr_include+set}" = set; then :
5376 withval=$with_mpfr_include;
5377fi
1c710c3c 5378
8a877c9c 5379
9965e3cd 5380# Check whether --with-mpfr-lib was given.
5213506e
RW
5381if test "${with_mpfr_lib+set}" = set; then :
5382 withval=$with_mpfr_lib;
5383fi
8a877c9c 5384
bebf829d
PB
5385
5386if test "x$with_mpfr" != x; then
5387 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5388 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5389fi
8a877c9c 5390if test "x$with_mpfr_include" != x; then
3a5729ea 5391 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5392fi
5393if test "x$with_mpfr_lib" != x; then
5394 gmplibs="-L$with_mpfr_lib $gmplibs"
5395fi
e69bf64b 5396if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5397 # MPFR v3.1.0 moved the sources into a src sub-directory.
5398 if test -d ${srcdir}/mpfr/src; then
5399 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5400 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5401 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5402 else
5403 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5404 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5405 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5406 fi
e69bf64b
PB
5407 # Do not test the mpfr version. Assume that it is sufficient, since
5408 # it is in the source tree, and the library has not been built yet
5409 # but it would be included on the link line in the version check below
5410 # hence making the test fail.
5411 have_gmp=yes
5412fi
bebf829d 5413
6de9cd9a 5414# Specify a location for gmp
1c710c3c 5415
5213506e
RW
5416# Check whether --with-gmp-dir was given.
5417if test "${with_gmp_dir+set}" = set; then :
5418 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5419Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5420fi
5421
6de9cd9a 5422
6de9cd9a 5423
5213506e
RW
5424# Check whether --with-gmp was given.
5425if test "${with_gmp+set}" = set; then :
5426 withval=$with_gmp;
5427fi
1c710c3c 5428
6de9cd9a 5429
9965e3cd 5430# Check whether --with-gmp-include was given.
5213506e
RW
5431if test "${with_gmp_include+set}" = set; then :
5432 withval=$with_gmp_include;
5433fi
1c710c3c 5434
8a877c9c 5435
9965e3cd 5436# Check whether --with-gmp-lib was given.
5213506e
RW
5437if test "${with_gmp_lib+set}" = set; then :
5438 withval=$with_gmp_lib;
5439fi
8a877c9c
KG
5440
5441
6de9cd9a 5442
bebf829d
PB
5443if test "x$with_gmp" != x; then
5444 gmplibs="-L$with_gmp/lib $gmplibs"
5445 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5446fi
8a877c9c
KG
5447if test "x$with_gmp_include" != x; then
5448 gmpinc="-I$with_gmp_include $gmpinc"
5449fi
5450if test "x$with_gmp_lib" != x; then
5451 gmplibs="-L$with_gmp_lib $gmplibs"
5452fi
e69bf64b 5453if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5454 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5455 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5456 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5457 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5458 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5459 # Do not test the gmp version. Assume that it is sufficient, since
5460 # it is in the source tree, and the library has not been built yet
5461 # but it would be included on the link line in the version check below
5462 # hence making the test fail.
5463 have_gmp=yes
5464fi
6de9cd9a 5465
d943d7c4 5466if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5467 have_gmp=yes
5468 saved_CFLAGS="$CFLAGS"
5469 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5470 # Check for the recommended and required versions of GMP.
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5472$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5473
5474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5475/* end confdefs.h. */
5476#include "gmp.h"
5477int
5478main ()
5479{
5480
5481 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5482 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5483 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5484 choke me
5485 #endif
5486
5487 ;
5488 return 0;
5489}
5490_ACEOF
5491if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5493/* end confdefs.h. */
362c6d2f 5494#include <gmp.h>
1c710c3c
DJ
5495int
5496main ()
5497{
6de9cd9a 5498
362c6d2f
KG
5499 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5500 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5501 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5502 choke me
5503 #endif
1c710c3c
DJ
5504
5505 ;
5506 return 0;
5507}
5508_ACEOF
5213506e
RW
5509if ac_fn_c_try_compile "$LINENO"; then :
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511$as_echo "yes" >&6; }
362c6d2f
KG
5512else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5514$as_echo "buggy but acceptable" >&6; }
5515fi
5516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5517else
5213506e
RW
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5520fi
5213506e 5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5522
acd26225 5523 # If we have GMP, check the MPFR version.
e69bf64b 5524 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5525 # Check for the recommended and required versions of MPFR.
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5527$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5529/* end confdefs.h. */
70ec446f 5530#include <gmp.h>
e69bf64b 5531 #include <mpfr.h>
1c710c3c
DJ
5532int
5533main ()
5534{
e48d66a9 5535
f7d6bc01 5536 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5537 choke me
5538 #endif
1c710c3c
DJ
5539
5540 ;
5541 return 0;
5542}
5543_ACEOF
5213506e
RW
5544if ac_fn_c_try_compile "$LINENO"; then :
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5546/* end confdefs.h. */
a3993f33 5547#include <gmp.h>
e69bf64b 5548 #include <mpfr.h>
1c710c3c
DJ
5549int
5550main ()
5551{
a3993f33 5552
362c6d2f 5553 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5554 choke me
5555 #endif
acd26225
KG
5556
5557 ;
5558 return 0;
5559}
5560_ACEOF
5213506e
RW
5561if ac_fn_c_try_compile "$LINENO"; then :
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563$as_echo "yes" >&6; }
acd26225 5564else
5213506e
RW
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5566$as_echo "buggy but acceptable" >&6; }
acd26225 5567fi
5213506e 5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5569else
5213506e
RW
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571$as_echo "no" >&6; }; have_gmp=no
acd26225 5572fi
5213506e 5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5574 fi
5575
5576 # Check for the MPC header version.
3a5729ea 5577 if test x"$have_gmp" = xyes ; then
362c6d2f 5578 # Check for the recommended and required versions of MPC.
5213506e
RW
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5580$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5582/* end confdefs.h. */
5583#include <mpc.h>
5584int
5585main ()
5586{
5587
362c6d2f
KG
5588 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5589 choke me
5590 #endif
5591
5592 ;
5593 return 0;
5594}
5595_ACEOF
5596if ac_fn_c_try_compile "$LINENO"; then :
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h. */
5599#include <mpc.h>
5600int
5601main ()
5602{
5603
5604 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5605 choke me
5606 #endif
5607
5608 ;
5609 return 0;
5610}
5611_ACEOF
5213506e
RW
5612if ac_fn_c_try_compile "$LINENO"; then :
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5614$as_echo "yes" >&6; }
362c6d2f
KG
5615else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5617$as_echo "buggy but acceptable" >&6; }
5618fi
5619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5620else
5213506e 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5622$as_echo "no" >&6; }; have_gmp=no
acd26225 5623fi
5213506e 5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5625 fi
5626
5627 # Now check the MPFR library.
5628 if test x"$have_gmp" = xyes; then
5629 saved_LIBS="$LIBS"
5630 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5632$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5634/* end confdefs.h. */
3a5729ea 5635#include <mpc.h>
acd26225
KG
5636int
5637main ()
5638{
5639
5640 mpfr_t n;
5641 mpfr_t x;
3a5729ea 5642 mpc_t c;
acd26225
KG
5643 int t;
5644 mpfr_init (n);
5645 mpfr_init (x);
5646 mpfr_atan2 (n, n, x, GMP_RNDN);
5647 mpfr_erfc (n, x, GMP_RNDN);
5648 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5649 mpfr_clear(n);
5650 mpfr_clear(x);
5651 mpc_init2 (c, 53);
5652 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5653 mpc_cosh (c, c, MPC_RNDNN);
5654 mpc_pow (c, c, c, MPC_RNDNN);
5655 mpc_acosh (c, c, MPC_RNDNN);
5656 mpc_clear (c);
1c710c3c
DJ
5657
5658 ;
5659 return 0;
5660}
5661_ACEOF
5213506e
RW
5662if ac_fn_c_try_link "$LINENO"; then :
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5664$as_echo "yes" >&6; }
1c710c3c 5665else
5213506e
RW
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5668fi
5213506e
RW
5669rm -f core conftest.err conftest.$ac_objext \
5670 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5671 LIBS="$saved_LIBS"
5672 fi
5673
e69bf64b 5674 CFLAGS="$saved_CFLAGS"
6de9cd9a 5675
362c6d2f
KG
5676# The library versions listed in the error message below should match
5677# the HARD-minimums enforced above.
e69bf64b 5678 if test x$have_gmp != xyes; then
f7d6bc01 5679 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5680Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5681their locations. Source code for these libraries can be found at
5682their respective hosting sites as well as at
5683ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5684http://gcc.gnu.org/install/prerequisites.html for additional info. If
5685you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5686make sure that you have installed both the libraries and the header
5687files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5688 fi
70ec446f
KG
5689fi
5690
acd26225
KG
5691# Flags needed for both GMP, MPFR and/or MPC.
5692
5693
6de9cd9a
DN
5694
5695
5696
9e3eba15 5697
0ff2d841 5698
f38095f3
JM
5699# Allow host libstdc++ to be specified for static linking with PPL.
5700
5213506e
RW
5701# Check whether --with-host-libstdcxx was given.
5702if test "${with_host_libstdcxx+set}" = set; then :
5703 withval=$with_host_libstdcxx;
5704fi
f38095f3 5705
f38095f3
JM
5706
5707case $with_host_libstdcxx in
5708 no|yes)
5213506e 5709 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5710 ;;
5711esac
f8bf9252 5712
0b21f5d3 5713# Libraries to use for stage1 or when not bootstrapping.
00020c16 5714
0b21f5d3
EB
5715# Check whether --with-stage1-libs was given.
5716if test "${with_stage1_libs+set}" = set; then :
5717 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5718 stage1_libs=
00020c16 5719 else
0b21f5d3 5720 stage1_libs=$withval
00020c16
ILT
5721 fi
5722else
0b21f5d3 5723 stage1_libs=$with_host_libstdcxx
5213506e
RW
5724fi
5725
00020c16
ILT
5726
5727
0b21f5d3 5728# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5729
0b21f5d3
EB
5730# Check whether --with-stage1-ldflags was given.
5731if test "${with_stage1_ldflags+set}" = set; then :
5732 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5733 stage1_ldflags=
00020c16 5734 else
0b21f5d3 5735 stage1_ldflags=$withval
00020c16
ILT
5736 fi
5737else
0b21f5d3
EB
5738 stage1_ldflags=
5739 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5740 # if supported. But if the user explicitly specified the libraries to use,
5741 # trust that they are doing what they want.
5742 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5743 stage1_ldflags="-static-libstdc++ -static-libgcc"
5744 fi
5213506e
RW
5745fi
5746
00020c16
ILT
5747
5748
00020c16
ILT
5749# Libraries to use for stage2 and later builds. This defaults to the
5750# argument passed to --with-host-libstdcxx.
5751
5213506e
RW
5752# Check whether --with-boot-libs was given.
5753if test "${with_boot_libs+set}" = set; then :
5754 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5755 poststage1_libs=
5756 else
5757 poststage1_libs=$withval
5758 fi
5759else
00020c16 5760 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5761fi
5762
00020c16
ILT
5763
5764
ed2eaa9f
ILT
5765# Linker flags to use for stage2 and later builds.
5766
5767# Check whether --with-boot-ldflags was given.
5768if test "${with_boot_ldflags+set}" = set; then :
5769 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5770 poststage1_ldflags=
5771 else
5772 poststage1_ldflags=$withval
5773 fi
5774else
5775 poststage1_ldflags=
bec93d73
ILT
5776 # In stages 2 and 3, default to linking libstdc++ and libgcc
5777 # statically. But if the user explicitly specified the libraries to
5778 # use, trust that they are doing what they want.
5779 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5780 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5781 fi
5782fi
5783
5784
5785
625afa23
RG
5786# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5787# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5788# config/isl.m4
5789
5790
5791# Check whether --with-cloog was given.
5792if test "${with_cloog+set}" = set; then :
5793 withval=$with_cloog;
5794fi
f8bf9252
SP
5795
5796
33ad93b9
RG
5797# Check whether --with-isl was given.
5798if test "${with_isl+set}" = set; then :
5799 withval=$with_isl;
5213506e 5800fi
f8bf9252 5801
f8bf9252 5802
625afa23
RG
5803# Treat either --without-cloog or --without-isl as a request to disable
5804# GRAPHITE support and skip all following checks.
5805if test "x$with_isl" != "xno" &&
5806 test "x$with_cloog" != "xno"; then
5807 # Check for ISL
5808
5809
33ad93b9
RG
5810# Check whether --with-isl-include was given.
5811if test "${with_isl_include+set}" = set; then :
5812 withval=$with_isl_include;
5213506e
RW
5813fi
5814
f8bf9252 5815
33ad93b9
RG
5816# Check whether --with-isl-lib was given.
5817if test "${with_isl_lib+set}" = set; then :
5818 withval=$with_isl_lib;
5213506e 5819fi
f8bf9252 5820
f8bf9252 5821
33ad93b9
RG
5822 # Check whether --enable-isl-version-check was given.
5823if test "${enable_isl_version_check+set}" = set; then :
5824 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5825else
5826 ENABLE_ISL_CHECK=yes
7d32a440
SP
5827fi
5828
5829
33ad93b9
RG
5830 # Initialize isllibs and islinc.
5831 case $with_isl in
5832 no)
5833 isllibs=
5834 islinc=
5835 ;;
5836 "" | yes)
5837 ;;
5838 *)
5839 isllibs="-L$with_isl/lib"
5840 islinc="-I$with_isl/include"
5841 ;;
5842 esac
5843 if test "x${with_isl_include}" != x ; then
5844 islinc="-I$with_isl_include"
5845 fi
5846 if test "x${with_isl_lib}" != x; then
5847 isllibs="-L$with_isl_lib"
5848 fi
5849 if test "x${islinc}" = x && test "x${isllibs}" = x \
5850 && test -d ${srcdir}/isl; then
5851 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5852 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5853 ENABLE_ISL_CHECK=no
2869f0ff
RB
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5855$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
33ad93b9 5856 fi
7d32a440 5857
7d32a440 5858
7d32a440 5859
33ad93b9
RG
5860 if test "${ENABLE_ISL_CHECK}" = yes ; then
5861 _isl_saved_CFLAGS=$CFLAGS
5862 _isl_saved_LDFLAGS=$LDFLAGS
90d4f233 5863 _isl_saved_LIBS=$LIBS
33ad93b9
RG
5864
5865 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
90d4f233
RO
5866 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5867 LIBS="${_isl_saved_LIBS} -lisl"
33ad93b9
RG
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5870$as_echo_n "checking for version 0.10 of ISL... " >&6; }
2869f0ff 5871 if test "$cross_compiling" = yes; then :
2b2d7c53 5872 gcc_cv_isl=yes
33ad93b9
RG
5873else
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d32a440 5875/* end confdefs.h. */
33ad93b9
RG
5876#include <isl/version.h>
5877 #include <string.h>
7d32a440
SP
5878int
5879main ()
5880{
8247e8b2
RG
5881if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5882 return 1;
5883
7d32a440
SP
5884 ;
5885 return 0;
5886}
5887_ACEOF
33ad93b9
RG
5888if ac_fn_c_try_run "$LINENO"; then :
5889 gcc_cv_isl=yes
d789184e 5890else
33ad93b9 5891 gcc_cv_isl=no
7d32a440 5892fi
33ad93b9
RG
5893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5894 conftest.$ac_objext conftest.beam conftest.$ac_ext
7d32a440 5895fi
33ad93b9 5896
2869f0ff 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
33ad93b9 5898$as_echo "$gcc_cv_isl" >&6; }
5213506e 5899
33ad93b9
RG
5900 CFLAGS=$_isl_saved_CFLAGS
5901 LDFLAGS=$_isl_saved_LDFLAGS
90d4f233 5902 LIBS=$_isl_saved_LIBS
7d32a440 5903 fi
f8bf9252 5904
7d32a440 5905
d0ad394c
RB
5906 if test "${gcc_cv_isl}" = no ; then
5907
5908 if test "${ENABLE_ISL_CHECK}" = yes ; then
5909 _isl_saved_CFLAGS=$CFLAGS
5910 _isl_saved_LDFLAGS=$LDFLAGS
5911 _isl_saved_LIBS=$LIBS
5912
5913 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5914 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5915 LIBS="${_isl_saved_LIBS} -lisl"
d0ad394c
RB
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5918$as_echo_n "checking for version 0.11 of ISL... " >&6; }
2869f0ff 5919 if test "$cross_compiling" = yes; then :
d0ad394c
RB
5920 gcc_cv_isl=yes
5921else
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h. */
5924#include <isl/version.h>
5925 #include <string.h>
5926int
5927main ()
5928{
5929if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5930 return 1;
5931
5932 ;
5933 return 0;
5934}
5935_ACEOF
5936if ac_fn_c_try_run "$LINENO"; then :
5937 gcc_cv_isl=yes
5938else
5939 gcc_cv_isl=no
5940fi
5941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5942 conftest.$ac_objext conftest.beam conftest.$ac_ext
5943fi
5944
2869f0ff 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
d0ad394c
RB
5946$as_echo "$gcc_cv_isl" >&6; }
5947
5948 CFLAGS=$_isl_saved_CFLAGS
5949 LDFLAGS=$_isl_saved_LDFLAGS
5950 LIBS=$_isl_saved_LIBS
5951 fi
5952
5953
9847828b
RB
5954 if test "${gcc_cv_isl}" = no ; then
5955
5956 if test "${ENABLE_ISL_CHECK}" = yes ; then
5957 _isl_saved_CFLAGS=$CFLAGS
5958 _isl_saved_LDFLAGS=$LDFLAGS
5959 _isl_saved_LIBS=$LIBS
5960
5961 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5962 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5963 LIBS="${_isl_saved_LIBS} -lisl"
5964
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5966$as_echo_n "checking for version 0.12 of ISL... " >&6; }
5967 if test "$cross_compiling" = yes; then :
5968 gcc_cv_isl=yes
5969else
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h. */
5972#include <isl/version.h>
5973 #include <string.h>
5974int
5975main ()
5976{
5977if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
5978 return 1;
5979
5980 ;
5981 return 0;
5982}
5983_ACEOF
5984if ac_fn_c_try_run "$LINENO"; then :
5985 gcc_cv_isl=yes
5986else
5987 gcc_cv_isl=no
5988fi
5989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5990 conftest.$ac_objext conftest.beam conftest.$ac_ext
5991fi
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5994$as_echo "$gcc_cv_isl" >&6; }
5995
5996 CFLAGS=$_isl_saved_CFLAGS
5997 LDFLAGS=$_isl_saved_LDFLAGS
5998 LIBS=$_isl_saved_LIBS
5999 fi
6000
6001
6002 fi
d0ad394c 6003 fi
f8bf9252 6004
f8bf9252 6005
33ad93b9
RG
6006
6007
33ad93b9
RG
6008 if test "x${with_isl}" = xno; then
6009 graphite_requested=no
6010 elif test "x${with_isl}" != x \
6011 || test "x${with_isl_include}" != x \
6012 || test "x${with_isl_lib}" != x ; then
6013 graphite_requested=yes
6014 else
6015 graphite_requested=no
7d32a440 6016 fi
d789184e 6017
d789184e
SP
6018
6019
33ad93b9
RG
6020 if test "${gcc_cv_isl}" = no ; then
6021 isllibs=
6022 islinc=
6023 fi
6024
6025 if test "${graphite_requested}" = yes \
6026 && test "x${isllibs}" = x \
6027 && test "x${islinc}" = x ; then
f8bf9252 6028
33ad93b9
RG
6029 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6030 fi
f8bf9252 6031
d32ef397 6032
d789184e 6033
625afa23
RG
6034 if test "x$gcc_cv_isl" != "xno"; then
6035 # Check for CLOOG
5213506e 6036
d789184e 6037
9965e3cd 6038# Check whether --with-cloog-include was given.
5213506e
RW
6039if test "${with_cloog_include+set}" = set; then :
6040 withval=$with_cloog_include;
6041fi
d789184e 6042
d789184e 6043
9965e3cd 6044# Check whether --with-cloog-lib was given.
5213506e
RW
6045if test "${with_cloog_lib+set}" = set; then :
6046 withval=$with_cloog_lib;
6047fi
d789184e 6048
d789184e 6049
d32ef397
AS
6050 # Check whether --enable-cloog-version-check was given.
6051if test "${enable_cloog_version_check+set}" = set; then :
6052 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6053else
6054 ENABLE_CLOOG_CHECK=yes
6055fi
6056
6057
6058 # Initialize clooglibs and clooginc.
6059 case $with_cloog in
6060 no)
6061 clooglibs=
6062 clooginc=
6063 ;;
6064 "" | yes)
6065 ;;
6066 *)
6067 clooglibs="-L$with_cloog/lib"
6068 clooginc="-I$with_cloog/include"
6069 ;;
6070 esac
6071 if test "x${with_cloog_include}" != x ; then
6072 clooginc="-I$with_cloog_include"
6073 fi
6074 if test "x${with_cloog_lib}" != x; then
6075 clooglibs="-L$with_cloog_lib"
6076 fi
2869f0ff 6077 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
33ad93b9 6078 && test -d ${srcdir}/cloog; then
33ad93b9
RG
6079 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6080 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
2869f0ff
RB
6081 ENABLE_CLOOG_CHECK=no
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6083$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
ab4173cf 6084 fi
ad0abd3c 6085
33ad93b9 6086 clooginc="-DCLOOG_INT_GMP ${clooginc}"
625afa23 6087 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
d32ef397
AS
6088
6089
6090
6091
6092
6093 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6094 _cloog_saved_CFLAGS=$CFLAGS
6095 _cloog_saved_LDFLAGS=$LDFLAGS
6096
33ad93b9
RG
6097 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6098 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
d32ef397 6099
6886e444
RG
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6101$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
2869f0ff 6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252 6103/* end confdefs.h. */
33ad93b9 6104#include "cloog/version.h"
f8bf9252
SP
6105int
6106main ()
6107{
d32ef397 6108#if CLOOG_VERSION_MAJOR != 0 \
6886e444
RG
6109 || CLOOG_VERSION_MINOR != 17 \
6110 || CLOOG_VERSION_REVISION < 0
d32ef397
AS
6111 choke me
6112 #endif
f8bf9252
SP
6113 ;
6114 return 0;
6115}
6116_ACEOF
0333b9a6 6117if ac_fn_c_try_compile "$LINENO"; then :
6886e444 6118 gcc_cv_cloog=yes
f8bf9252 6119else
6886e444 6120 gcc_cv_cloog=no
f8bf9252 6121fi
5213506e 6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869f0ff 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6886e444 6124$as_echo "$gcc_cv_cloog" >&6; }
d32ef397
AS
6125
6126 CFLAGS=$_cloog_saved_CFLAGS
6127 LDFLAGS=$_cloog_saved_LDFLAGS
6128 fi
f8bf9252 6129
f8bf9252 6130
d0ad394c
RB
6131 if test "${gcc_cv_cloog}" = no ; then
6132
6133
6134
6135 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6136 _cloog_saved_CFLAGS=$CFLAGS
6137 _cloog_saved_LDFLAGS=$LDFLAGS
6138
6139 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6140 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6143$as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
2869f0ff 6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0ad394c
RB
6145/* end confdefs.h. */
6146#include "cloog/version.h"
6147int
6148main ()
6149{
6150#if CLOOG_VERSION_MAJOR != 0 \
6151 || CLOOG_VERSION_MINOR != 18 \
6152 || CLOOG_VERSION_REVISION < 0
6153 choke me
6154 #endif
6155 ;
6156 return 0;
6157}
6158_ACEOF
6159if ac_fn_c_try_compile "$LINENO"; then :
6160 gcc_cv_cloog=yes
6161else
6162 gcc_cv_cloog=no
6163fi
6164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869f0ff 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
d0ad394c
RB
6166$as_echo "$gcc_cv_cloog" >&6; }
6167
6168 CFLAGS=$_cloog_saved_CFLAGS
6169 LDFLAGS=$_cloog_saved_LDFLAGS
6170 fi
6171
6172
6173 fi
f8bf9252
SP
6174
6175
d32ef397
AS
6176
6177
6178
6be7b668
JJ
6179 if test "x${with_cloog}" = xno; then
6180 graphite_requested=no
6181 elif test "x${with_cloog}" != x \
d32ef397
AS
6182 || test "x${with_cloog_include}" != x \
6183 || test "x${with_cloog_lib}" != x ; then
6184 graphite_requested=yes
6185 else
6186 graphite_requested=no
6187 fi
6188
6189
6190
6886e444 6191 if test "${gcc_cv_cloog}" = no ; then
d32ef397
AS
6192 clooglibs=
6193 clooginc=
6194 fi
6195
6196 if test "${graphite_requested}" = yes \
6197 && test "x${clooglibs}" = x \
6198 && test "x${clooginc}" = x ; then
6199
625afa23 6200 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
6201 fi
6202
6203
625afa23 6204 fi
d32ef397
AS
6205fi
6206
32d024bf
RG
6207# If either the ISL or the CLooG check failed, disable builds of in-tree
6208# variants of both
625afa23
RG
6209if test "x$with_isl" = xno ||
6210 test "x$with_cloog" = xno ||
6211 test "x$gcc_cv_cloog" = xno ||
6212 test "x$gcc_cv_isl" = xno; then
32d024bf 6213 noconfigdirs="$noconfigdirs cloog isl"
625afa23
RG
6214 islinc=
6215 clooginc=
6216 clooglibs=
32d024bf
RG
6217fi
6218
625afa23
RG
6219
6220
6221
6222
6223
d7f09764
DN
6224# Check for LTO support.
6225# Check whether --enable-lto was given.
6226if test "${enable_lto+set}" = set; then :
6227 enableval=$enable_lto; enable_lto=$enableval
6228else
6229 enable_lto=yes; default_enable_lto=yes
6230fi
6231
6232
7413962d 6233
9a02962b
DK
6234
6235
6236target_elf=no
6237case $target in
6238 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6239 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6240 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6241 target_elf=no
6242 ;;
6243 *)
6244 target_elf=yes
6245 ;;
6246esac
6247
6248if test $target_elf = yes; then :
48215350
DK
6249 # ELF platforms build the lto-plugin always.
6250 build_lto_plugin=yes
9a02962b 6251
9a02962b
DK
6252else
6253 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6254 case $target in
2cd815e7 6255 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6256 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6257 *) enable_lto=no ;;
6258 esac
9a02962b 6259 else
db50fe7d
IS
6260 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6261 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6262 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6263 # warn during gcc/ subconfigure; unless you're bootstrapping with
6264 # -flto it won't be needed until after installation anyway.
6265 case $target in
1cd0b716 6266 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6267 *) if test x"$enable_lto" = x"yes"; then
6268 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6269 fi
6270 ;;
6271 esac
6272 fi
1cd0b716 6273 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6274 # Build it unless LTO was explicitly disabled.
1cd0b716 6275 case $target in
48215350 6276 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6277 *) ;;
6278 esac
48215350 6279
9a02962b
DK
6280fi
6281
d7f09764 6282
f8bf9252 6283
0823efed 6284# By default, C and C++ are the only stage 1 languages.
e1888513 6285stage1_languages=,c,
2805b53a 6286
00020c16 6287# Target libraries that we bootstrap.
ad1e5170 6288bootstrap_target_libs=,target-libgcc,
00020c16 6289
55ffb5ed
NN
6290# Figure out what language subdirectories are present.
6291# Look if the user specified --enable-languages="..."; if not, use
6292# the environment variable $LANGUAGES if defined. $LANGUAGES might
6293# go away some day.
6294# NB: embedded tabs in this IF block -- do not untabify
6295if test -d ${srcdir}/gcc; then
6296 if test x"${enable_languages+set}" != xset; then
6297 if test x"${LANGUAGES+set}" = xset; then
6298 enable_languages="${LANGUAGES}"
6299 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6300 else
6301 enable_languages=all
6302 fi
6303 else
6304 if test x"${enable_languages}" = x ||
6305 test x"${enable_languages}" = xyes;
6306 then
6307 echo configure.in: --enable-languages needs at least one language argument 1>&2
6308 exit 1
6309 fi
6310 fi
6311 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6312
7f26dfa3
FXC
6313 # 'f95' is the old name for the 'fortran' language. We issue a warning
6314 # and make the substitution.
6315 case ,${enable_languages}, in
6316 *,f95,*)
6317 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6318 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6319 ;;
6320 esac
6321
0823efed
DN
6322 # If bootstrapping, C++ must be enabled.
6323 case ",$enable_languages,:$enable_bootstrap" in
6324 *,c++,*:*) ;;
6325 *:yes)
ff3ac0f4
ILT
6326 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6327 enable_languages="${enable_languages},c++"
6328 else
0823efed 6329 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6330 fi
6331 ;;
6332 esac
6333
55ffb5ed
NN
6334 # First scan to see if an enabled language requires some other language.
6335 # We assume that a given config-lang.in will list all the language
6336 # front ends it requires, even if some are required indirectly.
6337 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6338 case ${lang_frag} in
6339 ..) ;;
6340 # The odd quoting in the next line works around
6341 # an apparent bug in bash 1.12 on linux.
6342 ${srcdir}/gcc/[*]/config-lang.in) ;;
6343 *)
69ecd18f
ILT
6344 # From the config-lang.in, get $language, $lang_requires, and
6345 # $lang_requires_boot_languages.
55ffb5ed
NN
6346 language=
6347 lang_requires=
69ecd18f 6348 lang_requires_boot_languages=
55ffb5ed 6349 . ${lang_frag}
69ecd18f 6350 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6351 case ,${enable_languages}, in
6352 *,$other,*) ;;
6353 *,all,*) ;;
6354 *,$language,*)
6355 echo " \`$other' language required by \`$language'; enabling" 1>&2
6356 enable_languages="${enable_languages},${other}"
6357 ;;
6358 esac
6359 done
69ecd18f
ILT
6360 for other in ${lang_requires_boot_languages} ; do
6361 if test "$other" != "c"; then
6362 case ,${enable_stage1_languages}, in
6363 *,$other,*) ;;
6364 *,all,*) ;;
6365 *)
6366 case ,${enable_languages}, in
6367 *,$language,*)
6368 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6369 enable_stage1_languages="$enable_stage1_languages,${other}"
6370 ;;
6371 esac
6372 ;;
6373 esac
6374 fi
6375 done
55ffb5ed
NN
6376 ;;
6377 esac
6378 done
6379
e1888513 6380 new_enable_languages=,c,
d7f09764
DN
6381
6382 # If LTO is enabled, add the LTO front end.
6383 extra_host_libiberty_configure_flags=
6384 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6385 case ,${enable_languages}, in
6386 *,lto,*) ;;
6387 *) enable_languages="${enable_languages},lto" ;;
6388 esac
1cd0b716 6389 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6390 configdirs="$configdirs lto-plugin"
6391 extra_host_libiberty_configure_flags=--enable-shared
6392 fi
6393 fi
6394
6395
55ffb5ed 6396 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6397 potential_languages=,c,
55ffb5ed 6398
4da3b0f8
ILT
6399 enabled_target_libs=
6400 disabled_target_libs=
6401
55ffb5ed
NN
6402 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6403 case ${lang_frag} in
6404 ..) ;;
6405 # The odd quoting in the next line works around
6406 # an apparent bug in bash 1.12 on linux.
6407 ${srcdir}/gcc/[*]/config-lang.in) ;;
6408 *)
1c710c3c 6409 # From the config-lang.in, get $language, $target_libs,
2805b53a 6410 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6411 language=
6412 target_libs=
6413 lang_dirs=
1546bb64 6414 subdir_requires=
e1888513
PB
6415 boot_language=no
6416 build_by_default=yes
55ffb5ed 6417 . ${lang_frag}
e1888513
PB
6418 if test x${language} = x; then
6419 echo "${lang_frag} doesn't set \$language." 1>&2
6420 exit 1
6421 fi
6422
78767fd9 6423 if test "$language" = "c++"; then
0823efed 6424 boot_language=yes
00020c16
ILT
6425 fi
6426
178f875a 6427 add_this_lang=no
e1888513
PB
6428 case ,${enable_languages}, in
6429 *,${language},*)
d4a10d0a
SB
6430 # Language was explicitly selected; include it
6431 # unless it is C, which is enabled by default.
6432 if test "$language" != "c"; then
6433 add_this_lang=yes
6434 fi
55ffb5ed 6435 ;;
e1888513
PB
6436 *,all,*)
6437 # 'all' was selected, select it if it is a default language
178f875a
JM
6438 if test "$language" != "c"; then
6439 add_this_lang=${build_by_default}
6440 fi
55ffb5ed
NN
6441 ;;
6442 esac
6de9cd9a 6443
1546bb64 6444 # Disable languages that need other directories if these aren't available.
95695ad3 6445 for i in $subdir_requires; do
b6348cb3 6446 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6447 case ,${enable_languages}, in
6448 *,${language},*)
6449 # Specifically requested language; tell them.
5213506e 6450 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6451 ;;
6452 *)
6453 # Silently disable.
e1888513 6454 add_this_lang=unsupported
1546bb64
PB
6455 ;;
6456 esac
6457 done
6458
e1888513
PB
6459 # Disable Ada if no preexisting GNAT is available.
6460 case ,${enable_languages},:${language}:${have_gnat} in
6461 *,${language},*:ada:no)
6462 # Specifically requested language; tell them.
5213506e 6463 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6464 ;;
6465 *:ada:no)
6466 # Silently disable.
6467 add_this_lang=unsupported
6468 ;;
6469 esac
6470
4fab7234
HPN
6471 # Disable a language that is unsupported by the target.
6472 case " $unsupported_languages " in
6473 *" $language "*)
e1888513 6474 add_this_lang=unsupported
4fab7234
HPN
6475 ;;
6476 esac
6477
6de9cd9a 6478 case $add_this_lang in
e1888513 6479 unsupported)
55ffb5ed 6480 # Remove language-dependent dirs.
4da3b0f8
ILT
6481 disabled_target_libs="$disabled_target_libs $target_libs"
6482 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6483 ;;
e1888513
PB
6484 no)
6485 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6486 disabled_target_libs="$disabled_target_libs $target_libs"
6487 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6488 potential_languages="${potential_languages}${language},"
6489 ;;
6490 yes)
6491 new_enable_languages="${new_enable_languages}${language},"
6492 potential_languages="${potential_languages}${language},"
2805b53a 6493 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6494 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6495 case "${boot_language}:,$enable_stage1_languages," in
6496 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6497 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6498 case ",$stage1_languages," in
6499 *,$language,* | ,yes, | ,all,) ;;
6500 *) stage1_languages="${stage1_languages}${language}," ;;
6501 esac
00020c16
ILT
6502 # We need to bootstrap any supporting libraries.
6503 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6504 ;;
6505 esac
6506 ;;
55ffb5ed
NN
6507 esac
6508 ;;
6509 esac
6510 done
6511
4da3b0f8
ILT
6512 # Add target libraries which are only needed for disabled languages
6513 # to noconfigdirs.
6514 if test -n "$disabled_target_libs"; then
6515 for dir in $disabled_target_libs; do
6516 case " $enabled_target_libs " in
6517 *" ${dir} "*) ;;
6518 *) noconfigdirs="$noconfigdirs $dir" ;;
6519 esac
6520 done
6521 fi
6522
5213506e
RW
6523 # Check whether --enable-stage1-languages was given.
6524if test "${enable_stage1_languages+set}" = set; then :
6525 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6526 ,no,|,,)
6527 # Set it to something that will have no effect in the loop below
6528 enable_stage1_languages=c ;;
6529 ,yes,)
6530 enable_stage1_languages=`echo $new_enable_languages | \
6531 sed -e "s/^,//" -e "s/,$//" ` ;;
6532 *,all,*)
6533 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6534 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6535 esac
6536
6537 # Add "good" languages from enable_stage1_languages to stage1_languages,
6538 # while "bad" languages go in missing_languages. Leave no duplicates.
6539 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6540 case $potential_languages in
6541 *,$i,*)
6542 case $stage1_languages in
6543 *,$i,*) ;;
6544 *) stage1_languages="$stage1_languages$i," ;;
6545 esac ;;
6546 *)
6547 case $missing_languages in
6548 *,$i,*) ;;
6549 *) missing_languages="$missing_languages$i," ;;
6550 esac ;;
6551 esac
6552 done
5213506e
RW
6553fi
6554
e1888513
PB
6555
6556 # Remove leading/trailing commas that were added for simplicity
6557 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6558 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6559 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6560 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6561
55ffb5ed 6562 if test "x$missing_languages" != x; then
5213506e 6563 as_fn_error "
0cf085e4 6564The following requested languages could not be built: ${missing_languages}
5213506e 6565Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6566 fi
55ffb5ed
NN
6567 if test "x$new_enable_languages" != "x$enable_languages"; then
6568 echo The following languages will be built: ${new_enable_languages}
e1888513 6569 enable_languages="$new_enable_languages"
55ffb5ed 6570 fi
e1888513 6571
1c710c3c 6572
b2eaac4a 6573 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6574fi
6575
27079765
AH
6576# Handle --disable-<component> generically.
6577for dir in $configdirs $build_configdirs $target_configdirs ; do
6578 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6579 varname=`echo $dirname | sed -e s/+/_/g`
6580 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6581 noconfigdirs="$noconfigdirs $dir"
6582 fi
6583done
6584
7cd0cf9c 6585# Check for Boehm's garbage collector
5213506e
RW
6586# Check whether --enable-objc-gc was given.
6587if test "${enable_objc_gc+set}" = set; then :
6588 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6589 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6590 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6591 ;;
6592esac
5213506e
RW
6593fi
6594
7cd0cf9c
DA
6595
6596# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6597case ,${enable_languages},:${enable_objc_gc} in
6598 *,objc,*:yes)
7cd0cf9c
DA
6599 # Keep target-boehm-gc if requested for Objective-C.
6600 ;;
7cd0cf9c 6601 *)
2a79fd67
DA
6602 # Otherwise remove target-boehm-gc depending on target-libjava.
6603 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6604 noconfigdirs="$noconfigdirs target-boehm-gc"
6605 fi
7cd0cf9c
DA
6606 ;;
6607esac
6608
2077db1b 6609# Disable libitm, libsanitizer, libvtv if we're not building C++
99776ebd 6610case ,${enable_languages}, in
9696698a 6611 *,c++,*) ;;
99776ebd 6612 *)
2077db1b 6613 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6614 ;;
6615esac
6616
ee6a22df
L
6617# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6618# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6619# If we have the source for $noconfigdirs entries, add them to $notsupp.
6620
6621notsupp=""
6622for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6623 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6624 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6625 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6626 if test -r $srcdir/$dirname/configure ; then
6627 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6628 true
6629 else
6630 notsupp="$notsupp $dir"
6631 fi
6632 fi
6633 fi
ee6a22df
L
6634 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6635 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6636 if test -r $srcdir/$dirname/configure ; then
6637 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6638 true
6639 else
6640 notsupp="$notsupp $dir"
6641 fi
6642 fi
6643 fi
55ffb5ed
NN
6644 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6645 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6646 if test -r $srcdir/$dirname/configure ; then
6647 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6648 true
6649 else
6650 notsupp="$notsupp $dir"
6651 fi
6652 fi
6653 fi
6654done
6655
55ffb5ed
NN
6656# Quietly strip out all directories which aren't configurable in this tree.
6657# This relies on all configurable subdirectories being autoconfiscated, which
6658# is now the case.
23f6b2f9
PB
6659build_configdirs_all="$build_configdirs"
6660build_configdirs=
6661for i in ${build_configdirs_all} ; do
1c710c3c 6662 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6663 if test -f ${srcdir}/$j/configure ; then
6664 build_configdirs="${build_configdirs} $i"
6665 fi
6666done
6667
55ffb5ed
NN
6668configdirs_all="$configdirs"
6669configdirs=
6670for i in ${configdirs_all} ; do
6671 if test -f ${srcdir}/$i/configure ; then
6672 configdirs="${configdirs} $i"
6673 fi
6674done
23f6b2f9 6675
55ffb5ed
NN
6676target_configdirs_all="$target_configdirs"
6677target_configdirs=
6678for i in ${target_configdirs_all} ; do
1c710c3c 6679 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6680 if test -f ${srcdir}/$j/configure ; then
6681 target_configdirs="${target_configdirs} $i"
6682 fi
6683done
6684
6685# Produce a warning message for the subdirs we can't configure.
6686# This isn't especially interesting in the Cygnus tree, but in the individual
6687# FSF releases, it's important to let people know when their machine isn't
6688# supported by the one or two programs in a package.
6689
6690if test -n "${notsupp}" && test -z "${norecursion}" ; then
6691 # If $appdirs is non-empty, at least one of those directories must still
6692 # be configured, or we error out. (E.g., if the gas release supports a
6693 # specified target in some subdirs but not the gas subdir, we shouldn't
6694 # pretend that all is well.)
6695 if test -n "$appdirs" ; then
6696 for dir in $appdirs ; do
6697 if test -r $dir/Makefile.in ; then
6698 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6699 appdirs=""
6700 break
6701 fi
23f6b2f9 6702 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6703 appdirs=""
6704 break
6705 fi
6706 fi
6707 done
6708 if test -n "$appdirs" ; then
6709 echo "*** This configuration is not supported by this package." 1>&2
6710 exit 1
6711 fi
6712 fi
6713 # Okay, some application will build, or we don't care to check. Still
6714 # notify of subdirs not getting built.
6715 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6716 echo " ${notsupp}" 1>&2
6717 echo " (Any other directories should still work fine.)" 1>&2
6718fi
6719
6720case "$host" in
6721 *msdosdjgpp*)
6722 enable_gdbtk=no ;;
6723esac
6724
c3a86da9
DJ
6725# To find our prefix, in gcc_cv_tool_prefix.
6726
6727# The user is always right.
6728if test "${PATH_SEPARATOR+set}" != set; then
6729 echo "#! /bin/sh" >conf$$.sh
6730 echo "exit 0" >>conf$$.sh
6731 chmod +x conf$$.sh
6732 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6733 PATH_SEPARATOR=';'
6734 else
6735 PATH_SEPARATOR=:
6736 fi
6737 rm -f conf$$.sh
6738fi
6739
6740
6741
6742if test "x$exec_prefix" = xNONE; then
6743 if test "x$prefix" = xNONE; then
6744 gcc_cv_tool_prefix=$ac_default_prefix
6745 else
6746 gcc_cv_tool_prefix=$prefix
6747 fi
6748else
6749 gcc_cv_tool_prefix=$exec_prefix
6750fi
6751
6752# If there is no compiler in the tree, use the PATH only. In any
6753# case, if there is no compiler in the tree nobody should use
6754# AS_FOR_TARGET and LD_FOR_TARGET.
6755if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6756 gcc_version=`cat $srcdir/gcc/BASE-VER`
6757 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6758 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6759 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6760 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6761 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6762 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6763else
6764 gcc_cv_tool_dirs=
6765fi
6766
6767if test x$build = x$target && test -n "$md_exec_prefix"; then
6768 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6769fi
6770
6771
6772
55ffb5ed
NN
6773copy_dirs=
6774
1c710c3c 6775
5213506e
RW
6776# Check whether --with-build-sysroot was given.
6777if test "${with_build_sysroot+set}" = set; then :
6778 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6779 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6780 fi
6781else
6782 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6783fi
526635cb
MM
6784
6785
c8aea42c 6786
5213506e
RW
6787
6788# Check whether --with-debug-prefix-map was given.
6789if test "${with_debug_prefix_map+set}" = set; then :
6790 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6791 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6792 for debug_map in $withval; do
6793 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6794 done
6795 fi
6796else
6797 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6798fi
6799
c8aea42c
PB
6800
6801
1c8bd6a3
PB
6802# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6803# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6804# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6805# We want to ensure that TARGET libraries (which we know are built with
6806# gcc) are built with "-O2 -g", so include those options when setting
6807# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6808if test "x$CFLAGS_FOR_TARGET" = x; then
6809 CFLAGS_FOR_TARGET=$CFLAGS
6810 case " $CFLAGS " in
6811 *" -O2 "*) ;;
bd8e704f 6812 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6813 esac
6814 case " $CFLAGS " in
6815 *" -g "* | *" -g3 "*) ;;
bd8e704f 6816 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6817 esac
6818fi
6819
6820
6821if test "x$CXXFLAGS_FOR_TARGET" = x; then
6822 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6823 case " $CXXFLAGS " in
6824 *" -O2 "*) ;;
bd8e704f 6825 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6826 esac
6827 case " $CXXFLAGS " in
6828 *" -g "* | *" -g3 "*) ;;
bd8e704f 6829 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6830 esac
6831fi
6832
6833
6f57bdf6
DK
6834
6835
55ffb5ed
NN
6836# Handle --with-headers=XXX. If the value is not "yes", the contents of
6837# the named directory are copied to $(tooldir)/sys-include.
6838if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6839 if test x${is_cross_compiler} = xno ; then
6840 echo 1>&2 '***' --with-headers is only supported when cross compiling
6841 exit 1
6842 fi
6843 if test x"${with_headers}" != xyes ; then
c3a86da9 6844 x=${gcc_cv_tool_prefix}
1c710c3c 6845 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6846 fi
6847fi
6848
6849# Handle --with-libs=XXX. If the value is not "yes", the contents of
6850# the name directories are copied to $(tooldir)/lib. Multiple directories
6851# are permitted.
6852if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6853 if test x${is_cross_compiler} = xno ; then
6854 echo 1>&2 '***' --with-libs is only supported when cross compiling
6855 exit 1
6856 fi
6857 if test x"${with_libs}" != xyes ; then
6858 # Copy the libraries in reverse order, so that files in the first named
6859 # library override files in subsequent libraries.
c3a86da9 6860 x=${gcc_cv_tool_prefix}
55ffb5ed 6861 for l in ${with_libs}; do
1c710c3c 6862 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6863 done
6864 fi
6865fi
6866
d7f09764 6867# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6868#
6869# This is done by determining whether or not the appropriate directory
6870# is available, and by checking whether or not specific configurations
6871# have requested that this magic not happen.
1c710c3c
DJ
6872#
6873# The command line options always override the explicit settings in
e8b05380
PB
6874# configure.in, and the settings in configure.in override this magic.
6875#
1c710c3c 6876# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6877# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6878# --without-gnu-ld options for the configure script. Similarly, if
6879# the default is to use the included zlib and you don't want to do that,
6880# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6881
6882if test x${use_gnu_as} = x &&
6883 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6884 with_gnu_as=yes
6885 extra_host_args="$extra_host_args --with-gnu-as"
6886fi
6887
6888if test x${use_gnu_ld} = x &&
5afab7ad 6889 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6890 with_gnu_ld=yes
6891 extra_host_args="$extra_host_args --with-gnu-ld"
6892fi
6893
d7f09764
DN
6894if test x${use_included_zlib} = x &&
6895 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6896 :
6897else
6898 with_system_zlib=yes
6899 extra_host_args="$extra_host_args --with-system-zlib"
6900fi
6901
e8b05380
PB
6902# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6903# can detect this case.
6904
6905if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6906 with_newlib=yes
6907 extra_host_args="$extra_host_args --with-newlib"
6908fi
6909
55ffb5ed
NN
6910# Handle ${copy_dirs}
6911set fnord ${copy_dirs}
6912shift
6913while test $# != 0 ; do
6914 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6915 :
6916 else
6917 echo Copying $1 to $2
6918
6919 # Use the install script to create the directory and all required
6920 # parent directories.
6921 if test -d $2 ; then
6922 :
6923 else
6924 echo >config.temp
6925 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6926 fi
6927
6928 # Copy the directory, assuming we have tar.
6929 # FIXME: Should we use B in the second tar? Not all systems support it.
6930 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6931
6932 # It is the responsibility of the user to correctly adjust all
6933 # symlinks. If somebody can figure out how to handle them correctly
6934 # here, feel free to add the code.
6935
6936 echo $1 > $2/COPIED
6937 fi
6938 shift; shift
6939done
6940
e8b05380
PB
6941# Determine a target-dependent exec_prefix that the installed
6942# gcc will search in. Keep this list sorted by triplet, with
6943# the *-*-osname triplets last.
6944md_exec_prefix=
6945case "${target}" in
30b74385 6946 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6947 md_exec_prefix=/dev/env/DJDIR/bin
6948 ;;
e8b05380 6949 *-*-hpux* | \
e8b05380 6950 *-*-nto-qnx* | \
6de66370 6951 *-*-solaris2*)
e8b05380
PB
6952 md_exec_prefix=/usr/ccs/bin
6953 ;;
6954esac
6955
671aa708
NN
6956extra_arflags_for_target=
6957extra_nmflags_for_target=
6958extra_ranlibflags_for_target=
6959target_makefile_frag=/dev/null
6960case "${target}" in
58e24147
AM
6961 spu-*-*)
6962 target_makefile_frag="config/mt-spu"
6963 ;;
d91491e5 6964 mips*-sde-elf* | mips*-mti-elf*)
4bf6c438
RS
6965 target_makefile_frag="config/mt-sde"
6966 ;;
1ec3b87b
RS
6967 mipsisa*-*-elfoabi*)
6968 target_makefile_frag="config/mt-mips-elfoabi"
6969 ;;
08d0963a
RS
6970 mips*-*-*linux* | mips*-*-gnu*)
6971 target_makefile_frag="config/mt-mips-gnu"
6972 ;;
416ac4d4 6973 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6974 target_makefile_frag="config/mt-gnu"
671aa708
NN
6975 ;;
6976 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6977 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6978 # commands to handle both 32-bit and 64-bit objects. These flags are
6979 # harmless if we're using GNU nm or ar.
6980 extra_arflags_for_target=" -X32_64"
6981 extra_nmflags_for_target=" -B -X32_64"
6982 ;;
671aa708
NN
6983esac
6984
6985alphaieee_frag=/dev/null
6986case $target in
6987 alpha*-*-*)
6988 # This just makes sure to use the -mieee option to build target libs.
6989 # This should probably be set individually by each library.
6990 alphaieee_frag="config/mt-alphaieee"
6991 ;;
6992esac
6993
6994# If --enable-target-optspace always use -Os instead of -O2 to build
6995# the target libraries, similarly if it is not specified, use -Os
6996# on selected platforms.
6997ospace_frag=/dev/null
6998case "${enable_target_optspace}:${target}" in
6999 yes:*)
7000 ospace_frag="config/mt-ospace"
7001 ;;
7002 :d30v-*)
7003 ospace_frag="config/mt-d30v"
7004 ;;
7005 :m32r-* | :d10v-* | :fr30-*)
7006 ospace_frag="config/mt-ospace"
7007 ;;
7008 no:* | :*)
7009 ;;
7010 *)
7011 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7012 ;;
7013esac
7014
671aa708
NN
7015# Some systems (e.g., one of the i386-aix systems the gas testers are
7016# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7017tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7018build_tooldir=${tooldir}
7019
671aa708
NN
7020# Create a .gdbinit file which runs the one in srcdir
7021# and tells GDB to look there for source files.
7022
7023if test -r ${srcdir}/.gdbinit ; then
7024 case ${srcdir} in
7025 .) ;;
7026 *) cat > ./.gdbinit <<EOF
7027# ${NO_EDIT}
7028dir ${srcdir}
7029dir .
7030source ${srcdir}/.gdbinit
7031EOF
7032 ;;
7033 esac
7034fi
7035
671aa708
NN
7036# Make sure that the compiler is able to generate an executable. If it
7037# can't, we are probably in trouble. We don't care whether we can run the
7038# executable--we might be using a cross compiler--we only care whether it
7039# can be created. At this point the main configure script has set CC.
7040we_are_ok=no
7041echo "int main () { return 0; }" > conftest.c
7042${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7043if test $? = 0 ; then
7044 if test -s conftest || test -s conftest.exe ; then
7045 we_are_ok=yes
7046 fi
1c710c3c 7047fi
671aa708
NN
7048case $we_are_ok in
7049 no)
7050 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7051 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7052 rm -f conftest*
7053 exit 1
7054 ;;
7055esac
7056rm -f conftest*
7057
d89f0ad6 7058# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7059case "${host}" in
7060 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7061 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7062 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7063 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7064esac
7065
d89f0ad6
AL
7066# On systems where the dynamic library environment variable is PATH,
7067# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7068# built executables to PATH.
7069if test "$RPATH_ENVVAR" = PATH; then
7070 GCC_SHLIB_SUBDIR=/shlib
7071else
7072 GCC_SHLIB_SUBDIR=
7073fi
7074
671aa708
NN
7075# Record target_configdirs and the configure arguments for target and
7076# build configuration in Makefile.
7077target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7078build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 7079
ad1e5170
JR
7080# If we are building libgomp, bootstrap it.
7081if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7082 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7083fi
7084
ac8701fe
L
7085# If we are building libsanitizer, bootstrap it.
7086if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
7087 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7088fi
7089
2077db1b
CT
7090# If we are building libvtv, bootstrap it.
7091if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 ; then
7092 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7093fi
7094
671aa708
NN
7095# Determine whether gdb needs tk/tcl or not.
7096# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7097# and in that case we want gdb to be built without tk. Ugh!
7098# In fact I believe gdb is the *only* package directly dependent on tk,
7099# so we should be able to put the 'maybe's in unconditionally and
7100# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7101# 100% sure that that's safe though.
e914a571 7102
b4f96efe 7103gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7104case "$enable_gdbtk" in
7105 no)
7106 GDB_TK="" ;;
e914a571
AC
7107 yes)
7108 GDB_TK="${gdb_tk}" ;;
671aa708 7109 *)
e914a571
AC
7110 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7111 # distro. Eventually someone will fix this and move Insight, nee
7112 # gdbtk to a separate directory.
7113 if test -d ${srcdir}/gdb/gdbtk ; then
7114 GDB_TK="${gdb_tk}"
7115 else
7116 GDB_TK=""
7117 fi
7118 ;;
671aa708 7119esac
ef9db8d5
DJ
7120CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7121INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7122
60975492 7123# Strip out unwanted targets.
8b87bb96
NN
7124
7125# While at that, we remove Makefiles if we were started for recursive
7126# configuration, so that the top-level Makefile reconfigures them,
7127# like we used to do when configure itself was recursive.
8b87bb96 7128
3e54529c
RW
7129# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7130# but now we're fixing up the Makefile ourselves with the additional
7131# commands passed to AC_CONFIG_FILES. Use separate variables
7132# extrasub-{build,host,target} not because there is any reason to split
7133# the substitutions up that way, but only to remain below the limit of
7134# 99 commands in a script, for HP-UX sed.
7135# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7136
79cd2b23
RW
7137case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7138 yes:yes:*\ gold\ *:*,c++,*) ;;
7139 yes:yes:*\ gold\ *:*)
7140 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7141 ;;
7142esac
7143
ce521a9c 7144# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7145case $enable_bootstrap in
f516a7da 7146 yes)
e12c4094
AO
7147 bootstrap_suffix=bootstrap
7148 BUILD_CONFIG=bootstrap-debug
7149 ;;
f516a7da 7150 no)
e12c4094
AO
7151 bootstrap_suffix=no-bootstrap
7152 BUILD_CONFIG=
7153 ;;
f516a7da
PB
7154esac
7155
e12c4094
AO
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7157$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7158
7159
7160# Check whether --with-build-config was given.
7161if test "${with_build_config+set}" = set; then :
7162 withval=$with_build_config; case $with_build_config in
7163 yes) with_build_config= ;;
7164 no) with_build_config= BUILD_CONFIG= ;;
7165 esac
7166fi
7167
7168
e12c4094
AO
7169if test "x${with_build_config}" != x; then
7170 BUILD_CONFIG=$with_build_config
7171else
7172 case $BUILD_CONFIG in
7173 bootstrap-debug)
7174 if echo "int f (void) { return 0; }" > conftest.c &&
7175 ${CC} -c conftest.c &&
7176 mv conftest.o conftest.o.g0 &&
7177 ${CC} -c -g conftest.c &&
7178 mv conftest.o conftest.o.g &&
615c8ffa 7179 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7180 :
7181 else
7182 BUILD_CONFIG=
7183 fi
7184 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7185 ;;
7186 esac
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7189$as_echo "$BUILD_CONFIG" >&6; }
7190
7191
3e54529c 7192extrasub_build=
23f6b2f9 7193for module in ${build_configdirs} ; do
5607edfd
PB
7194 if test -z "${no_recursion}" \
7195 && test -f ${build_subdir}/${module}/Makefile; then
7196 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7197 rm -f ${build_subdir}/${module}/Makefile
7198 fi
3e54529c 7199 extrasub_build="$extrasub_build
5607edfd
PB
7200/^@if build-$module\$/d
7201/^@endif build-$module\$/d
7202/^@if build-$module-$bootstrap_suffix\$/d
7203/^@endif build-$module-$bootstrap_suffix\$/d"
7204done
3e54529c 7205extrasub_host=
5607edfd 7206for module in ${configdirs} ; do
a6fbc1e2 7207 if test -z "${no_recursion}"; then
f063a9ed 7208 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7209 if test -f ${file}; then
7210 echo 1>&2 "*** removing ${file} to force reconfigure"
7211 rm -f ${file}
7212 fi
7213 done
5607edfd 7214 fi
3e54529c 7215 extrasub_host="$extrasub_host
5607edfd
PB
7216/^@if $module\$/d
7217/^@endif $module\$/d
7218/^@if $module-$bootstrap_suffix\$/d
7219/^@endif $module-$bootstrap_suffix\$/d"
7220done
3e54529c 7221extrasub_target=
5607edfd
PB
7222for module in ${target_configdirs} ; do
7223 if test -z "${no_recursion}" \
7224 && test -f ${target_subdir}/${module}/Makefile; then
7225 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7226 rm -f ${target_subdir}/${module}/Makefile
7227 fi
00020c16
ILT
7228
7229 # We only bootstrap target libraries listed in bootstrap_target_libs.
7230 case $bootstrap_target_libs in
7231 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7232 *) target_bootstrap_suffix=no-bootstrap ;;
7233 esac
7234
3e54529c 7235 extrasub_target="$extrasub_target
5607edfd
PB
7236/^@if target-$module\$/d
7237/^@endif target-$module\$/d
00020c16
ILT
7238/^@if target-$module-$target_bootstrap_suffix\$/d
7239/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7240done
7241
3e54529c
RW
7242# Do the final fixup along with target modules.
7243extrasub_target="$extrasub_target
60975492 7244/^@if /,/^@endif /d"
671aa708
NN
7245
7246# Create the serialization dependencies. This uses a temporary file.
7247
5213506e
RW
7248# Check whether --enable-serial-configure was given.
7249if test "${enable_serial_configure+set}" = set; then :
7250 enableval=$enable_serial_configure;
7251fi
ade82b16
AO
7252
7253
bf1d3e81
NN
7254case ${enable_serial_configure} in
7255 yes)
7256 enable_serial_build_configure=yes
7257 enable_serial_host_configure=yes
7258 enable_serial_target_configure=yes
7259 ;;
7260esac
7261
671aa708
NN
7262# These force 'configure's to be done one at a time, to avoid problems
7263# with contention over a shared config.cache.
7264rm -f serdep.tmp
ade82b16 7265echo '# serdep.tmp' > serdep.tmp
671aa708 7266olditem=
bf1d3e81 7267test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7268for item in ${build_configdirs} ; do
7269 case ${olditem} in
7270 "") ;;
ade82b16 7271 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7272 esac
7273 olditem=${item}
7274done
7275olditem=
bf1d3e81 7276test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7277for item in ${configdirs} ; do
7278 case ${olditem} in
7279 "") ;;
ade82b16 7280 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7281 esac
7282 olditem=${item}
7283done
7284olditem=
bf1d3e81 7285test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7286for item in ${target_configdirs} ; do
7287 case ${olditem} in
7288 "") ;;
ade82b16 7289 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7290 esac
7291 olditem=${item}
7292done
7293serialization_dependencies=serdep.tmp
7294
7295
ade82b16 7296# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7297# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7298# might not want to pass down to subconfigures. The exception being
7299# --cache-file=/dev/null, which is used to turn off the use of cache
7300# files altogether, and which should be passed on to subconfigures.
7301# Also strip program-prefix, program-suffix, and program-transform-name,
7302# so that we can pass down a consistent program-transform-name.
1c710c3c 7303baseargs=
29a63921 7304tbaseargs=
1c710c3c
DJ
7305keep_next=no
7306skip_next=no
7307eval "set -- $ac_configure_args"
44bfc3ac
DJ
7308for ac_arg
7309do
1c710c3c
DJ
7310 if test X"$skip_next" = X"yes"; then
7311 skip_next=no
7312 continue
7313 fi
7314 if test X"$keep_next" = X"yes"; then
7315 case $ac_arg in
7316 *\'*)
7317 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7318 esac
7319 baseargs="$baseargs '$ac_arg'"
29a63921 7320 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7321 keep_next=no
7322 continue
7323 fi
7324
7325 # Handle separated arguments. Based on the logic generated by
7326 # autoconf 2.59.
7327 case $ac_arg in
7328 *=* | --config-cache | -C | -disable-* | --disable-* \
7329 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7330 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7331 | -with-* | --with-* | -without-* | --without-* | --x)
7332 separate_arg=no
7333 ;;
7334 -*)
7335 separate_arg=yes
7336 ;;
7337 *)
7338 separate_arg=no
7339 ;;
7340 esac
7341
29a63921
AO
7342 skip_targ=no
7343 case $ac_arg in
7344
7345 --with-* | --without-*)
7346 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7347
7348 case $libopt in
7349 *[-_]include)
7350 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7351 ;;
7352 *[-_]lib)
7353 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7354 ;;
7355 *)
7356 lib=$libopt
7357 ;;
7358 esac
7359
7360
7361 case $lib in
33ad93b9 7362 mpc | mpfr | gmp | cloog)
29a63921
AO
7363 # If we're processing --with-$lib, --with-$lib-include or
7364 # --with-$lib-lib, for one of the libs above, and target is
7365 # different from host, don't pass the current argument to any
7366 # target library's configure.
7367 if test x$is_cross_compiler = xyes; then
7368 skip_targ=yes
7369 fi
7370 ;;
7371 esac
7372 ;;
7373 esac
7374
1c710c3c 7375 case "$ac_arg" in
f1a036e4
NC
7376 --cache-file=/dev/null | \
7377 -cache-file=/dev/null )
7378 # Handled here to avoid the test to skip args below.
7379 baseargs="$baseargs '$ac_arg'"
29a63921 7380 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7381 # Assert: $separate_arg should always be no.
7382 keep_next=$separate_arg
7383 ;;
1c710c3c
DJ
7384 --no*)
7385 continue
7386 ;;
7387 --c* | \
7388 --sr* | \
7389 --ho* | \
7390 --bu* | \
7391 --t* | \
7392 --program-* | \
7393 -cache_file* | \
7394 -srcdir* | \
7395 -host* | \
7396 -build* | \
7397 -target* | \
7398 -program-prefix* | \
7399 -program-suffix* | \
7400 -program-transform-name* )
7401 skip_next=$separate_arg
7402 continue
7403 ;;
7404 -*)
7405 # An option. Add it.
7406 case $ac_arg in
7407 *\'*)
7408 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7409 esac
7410 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7411 if test X"$skip_targ" = Xno; then
7412 tbaseargs="$tbaseargs '$ac_arg'"
7413 fi
1c710c3c
DJ
7414 keep_next=$separate_arg
7415 ;;
7416 *)
7417 # Either a variable assignment, or a nonopt (triplet). Don't
7418 # pass it down; let the Makefile handle this.
7419 continue
7420 ;;
7421 esac
7422done
7423# Remove the initial space we just introduced and, as these will be
7424# expanded by make, quote '$'.
7425baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7426
43bb47c2
DJ
7427# Add in --program-transform-name, after --program-prefix and
7428# --program-suffix have been applied to it. Autoconf has already
7429# doubled dollar signs and backslashes in program_transform_name; we want
7430# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7431# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7432# Also, because we want to override the logic in subdir configure scripts to
7433# choose program_transform_name, replace any s,x,x, with s,y,y,.
7434sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7435${program_transform_name}
7436EOF_SED
7437gcc_transform_name=`cat conftestsed.out`
7438rm -f conftestsed.out
7439baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7440tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7441if test "$silent" = yes; then
7442 baseargs="$baseargs --silent"
29a63921 7443 tbaseargs="$tbaseargs --silent"
d9acb717 7444fi
0115d4a3 7445baseargs="$baseargs --disable-option-checking"
29a63921 7446tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7447
ffedf511
RW
7448# Record and document user additions to sub configure arguments.
7449
7450
7451
7452
671aa708
NN
7453# For the build-side libraries, we just need to pretend we're native,
7454# and not use the same cache file. Multilibs are neither needed nor
7455# desired.
ffedf511 7456build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7457
7458# For host modules, accept cache file option, or specification as blank.
7459case "${cache_file}" in
7460"") # empty
7461 cache_file_option="" ;;
7462/* | [A-Za-z]:[\\/]* ) # absolute path
7463 cache_file_option="--cache-file=${cache_file}" ;;
7464*) # relative path
7465 cache_file_option="--cache-file=../${cache_file}" ;;
7466esac
7467
09438bde
NN
7468# Host dirs don't like to share a cache file either, horribly enough.
7469# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7470host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7471
29a63921 7472target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7473
7474# Passing a --with-cross-host argument lets the target libraries know
7475# whether they are being built with a cross-compiler or being built
7476# native. However, it would be better to use other mechanisms to make the
7477# sorts of decisions they want to make on this basis. Please consider
7478# this option to be deprecated. FIXME.
7479if test x${is_cross_compiler} = xyes ; then
1c710c3c 7480 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7481fi
7482
dc683a3f
RW
7483# Default to --enable-multilib.
7484if test x${enable_multilib} = x ; then
671aa708 7485 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7486fi
671aa708
NN
7487
7488# Pass --with-newlib if appropriate. Note that target_configdirs has
7489# changed from the earlier setting of with_newlib.
7490if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7491 target_configargs="--with-newlib ${target_configargs}"
7492fi
7493
6b9eb62c
NN
7494# Different target subdirs use different values of certain variables
7495# (notably CXX). Worse, multilibs use *lots* of different values.
7496# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7497# it doesn't automatically accept command-line overrides of them.
7498# This means it's not safe for target subdirs to share a cache file,
7499# which is disgusting, but there you have it. Hopefully this can be
7500# fixed in future. It's still worthwhile to use a cache file for each
7501# directory. I think.
7502
bebcd931
MS
7503# Pass the appropriate --build, --host, --target and --cache-file arguments.
7504# We need to pass --target, as newer autoconf's requires consistency
7505# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7506target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7507
671aa708
NN
7508FLAGS_FOR_TARGET=
7509case " $target_configdirs " in
7510 *" newlib "*)
7511 case " $target_configargs " in
7512 *" --with-newlib "*)
7513 case "$target" in
5d571eaa 7514 *-cygwin*)
443e6238 7515 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7516 ;;
671aa708
NN
7517 esac
7518
7519 # If we're not building GCC, don't discard standard headers.
7520 if test -d ${srcdir}/gcc; then
7521 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7522
7523 if test "${build}" != "${host}"; then
7524 # On Canadian crosses, CC_FOR_TARGET will have already been set
7525 # by `configure', so we won't have an opportunity to add -Bgcc/
7526 # to it. This is right: we don't want to search that directory
7527 # for binaries, but we want the header files in there, so add
7528 # them explicitly.
0463992b 7529 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7530
7531 # Someone might think of using the pre-installed headers on
7532 # Canadian crosses, in case the installed compiler is not fully
7533 # compatible with the compiler being built. In this case, it
7534 # would be better to flag an error than risking having
7535 # incompatible object files being constructed. We can't
7536 # guarantee that an error will be flagged, but let's hope the
7537 # compiler will do it, when presented with incompatible header
7538 # files.
7539 fi
7540 fi
7541
7542 case "${target}-${is_cross_compiler}" in
f2a0e225 7543 i[3456789]86-*-linux*-no)
671aa708
NN
7544 # Here host == target, so we don't need to build gcc,
7545 # so we don't want to discard standard headers.
7546 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7547 ;;
7548 *)
7549 # If we're building newlib, use its generic headers last, but search
7550 # for any libc-related directories first (so make it the last -B
7551 # switch).
7552 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
7553
7554 # If we're building libgloss, find the startup file, simulator library
7555 # and linker script.
7556 case " $target_configdirs " in
7557 *" libgloss "*)
7558 # Look for startup file, simulator library and maybe linker script.
7559 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7560 # Look for libnosys.a in case the target needs it.
7561 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7562 # Most targets have the linker script in the source directory.
7563 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7564 ;;
7565 esac
671aa708
NN
7566 ;;
7567 esac
7568 ;;
7569 esac
7570 ;;
7571esac
5d571eaa 7572
b91f0a41 7573case "$target" in
5d571eaa
OS
7574 x86_64-*mingw* | *-w64-mingw*)
7575 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7576 # however, use a symlink named 'mingw' in ${prefix} .
7577 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7578 ;;
7579 *-mingw*)
7580 # MinGW can't be handled as Cygwin above since it does not use newlib.
7581 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'
7582 ;;
b91f0a41 7583esac
671aa708 7584
6691a79e
ME
7585# Allow the user to override the flags for
7586# our build compiler if desired.
f019adc1
MF
7587if test x"${build}" = x"${host}" ; then
7588 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7589 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7590 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7591fi
6691a79e 7592
671aa708
NN
7593# On Canadian crosses, we'll be searching the right directories for
7594# the previously-installed cross compiler, so don't bother to add
7595# flags for directories within the install tree of the compiler
7596# being built; programs in there won't even run.
7597if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7598 # Search for pre-installed headers if nothing else fits.
9124bc53 7599 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
7600fi
7601
7602if test "x${use_gnu_ld}" = x &&
7603 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7604 # Arrange for us to find uninstalled linker scripts.
215c351a 7605 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7606fi
7607
e88a2c09
DD
7608# Search for other target-specific linker scripts and such.
7609case "${target}" in
3e19841a
PB
7610 mep*)
7611 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7612 ;;
e88a2c09
DD
7613esac
7614
671aa708 7615# Makefile fragments.
7b61653a
PE
7616for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7617do
7618 eval fragval=\$$frag
7619 if test $fragval != /dev/null; then
7620 eval $frag=${srcdir}/$fragval
7621 fi
7622done
671aa708
NN
7623
7624
7625
7626
7627
7628# Miscellanea: directories, flags, etc.
7629
7630
7631
7632
7633
7634
7635
d89f0ad6 7636
23f6b2f9 7637# Build module lists & subconfigure args.
671aa708
NN
7638
7639
7640
2abefe3d
PB
7641# Host module lists & subconfigure args.
7642
7643
7644
aae29963 7645
2abefe3d
PB
7646# Target module lists & subconfigure args.
7647
7648
7649
7650# Build tools.
7651
7652
7653
0999159b
PB
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
2abefe3d
PB
7668# Generate default definitions for YACC, M4, LEX and other programs that run
7669# on the build machine. These are used if the Makefile can't locate these
7670# programs in objdir.
7671MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7672
7673for ac_prog in 'bison -y' byacc yacc
7674do
1c710c3c 7675 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7676set dummy $ac_prog; ac_word=$2
5213506e
RW
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678$as_echo_n "checking for $ac_word... " >&6; }
7679if test "${ac_cv_prog_YACC+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
2abefe3d
PB
7681else
7682 if test -n "$YACC"; then
7683 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7684else
1c710c3c
DJ
7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
5213506e
RW
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7692 ac_cv_prog_YACC="$ac_prog"
5213506e 7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7694 break 2
7695 fi
7696done
5213506e
RW
7697 done
7698IFS=$as_save_IFS
1c710c3c 7699
2abefe3d
PB
7700fi
7701fi
1c710c3c 7702YACC=$ac_cv_prog_YACC
2abefe3d 7703if test -n "$YACC"; then
5213506e
RW
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7705$as_echo "$YACC" >&6; }
2abefe3d 7706else
5213506e
RW
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
2abefe3d
PB
7709fi
7710
5213506e 7711
1c710c3c 7712 test -n "$YACC" && break
2abefe3d
PB
7713done
7714test -n "$YACC" || YACC="$MISSING bison -y"
7715
7716case " $build_configdirs " in
7717 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7718esac
7719
7720for ac_prog in bison
7721do
1c710c3c 7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7723set dummy $ac_prog; ac_word=$2
5213506e
RW
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725$as_echo_n "checking for $ac_word... " >&6; }
7726if test "${ac_cv_prog_BISON+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
2abefe3d
PB
7728else
7729 if test -n "$BISON"; then
7730 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7731else
1c710c3c
DJ
7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
5213506e
RW
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7739 ac_cv_prog_BISON="$ac_prog"
5213506e 7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7741 break 2
7742 fi
7743done
5213506e
RW
7744 done
7745IFS=$as_save_IFS
1c710c3c 7746
2abefe3d
PB
7747fi
7748fi
1c710c3c 7749BISON=$ac_cv_prog_BISON
2abefe3d 7750if test -n "$BISON"; then
5213506e
RW
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7752$as_echo "$BISON" >&6; }
2abefe3d 7753else
5213506e
RW
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755$as_echo "no" >&6; }
2abefe3d
PB
7756fi
7757
5213506e 7758
1c710c3c 7759 test -n "$BISON" && break
2abefe3d
PB
7760done
7761test -n "$BISON" || BISON="$MISSING bison"
7762
7763case " $build_configdirs " in
7764 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7765esac
7766
7767for ac_prog in gm4 gnum4 m4
7768do
1c710c3c 7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7770set dummy $ac_prog; ac_word=$2
5213506e
RW
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772$as_echo_n "checking for $ac_word... " >&6; }
7773if test "${ac_cv_prog_M4+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
2abefe3d
PB
7775else
7776 if test -n "$M4"; then
7777 ac_cv_prog_M4="$M4" # Let the user override the test.
7778else
1c710c3c
DJ
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
5213506e
RW
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7786 ac_cv_prog_M4="$ac_prog"
5213506e 7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7788 break 2
7789 fi
7790done
5213506e
RW
7791 done
7792IFS=$as_save_IFS
1c710c3c 7793
2abefe3d
PB
7794fi
7795fi
1c710c3c 7796M4=$ac_cv_prog_M4
2abefe3d 7797if test -n "$M4"; then
5213506e
RW
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7799$as_echo "$M4" >&6; }
2abefe3d 7800else
5213506e
RW
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
2abefe3d
PB
7803fi
7804
5213506e 7805
1c710c3c 7806 test -n "$M4" && break
2abefe3d
PB
7807done
7808test -n "$M4" || M4="$MISSING m4"
7809
7810case " $build_configdirs " in
7811 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7812esac
7813
7814for ac_prog in flex lex
7815do
1c710c3c 7816 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7817set dummy $ac_prog; ac_word=$2
5213506e
RW
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
7820if test "${ac_cv_prog_LEX+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
2abefe3d
PB
7822else
7823 if test -n "$LEX"; then
7824 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7825else
1c710c3c
DJ
7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
5213506e
RW
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7833 ac_cv_prog_LEX="$ac_prog"
5213506e 7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7835 break 2
7836 fi
7837done
5213506e
RW
7838 done
7839IFS=$as_save_IFS
1c710c3c 7840
2abefe3d
PB
7841fi
7842fi
1c710c3c 7843LEX=$ac_cv_prog_LEX
2abefe3d 7844if test -n "$LEX"; then
5213506e
RW
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7846$as_echo "$LEX" >&6; }
2abefe3d 7847else
5213506e
RW
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
2abefe3d
PB
7850fi
7851
5213506e 7852
1c710c3c 7853 test -n "$LEX" && break
2abefe3d
PB
7854done
7855test -n "$LEX" || LEX="$MISSING flex"
7856
7857case " $build_configdirs " in
7858 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7859 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7860esac
7861
7862for ac_prog in flex
7863do
1c710c3c 7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7865set dummy $ac_prog; ac_word=$2
5213506e
RW
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867$as_echo_n "checking for $ac_word... " >&6; }
7868if test "${ac_cv_prog_FLEX+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
2abefe3d
PB
7870else
7871 if test -n "$FLEX"; then
7872 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7873else
1c710c3c
DJ
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
5213506e
RW
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7881 ac_cv_prog_FLEX="$ac_prog"
5213506e 7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7883 break 2
7884 fi
7885done
5213506e
RW
7886 done
7887IFS=$as_save_IFS
1c710c3c 7888
2abefe3d
PB
7889fi
7890fi
1c710c3c 7891FLEX=$ac_cv_prog_FLEX
2abefe3d 7892if test -n "$FLEX"; then
5213506e
RW
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7894$as_echo "$FLEX" >&6; }
2abefe3d 7895else
5213506e
RW
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
2abefe3d
PB
7898fi
7899
5213506e 7900
1c710c3c 7901 test -n "$FLEX" && break
2abefe3d
PB
7902done
7903test -n "$FLEX" || FLEX="$MISSING flex"
7904
7905case " $build_configdirs " in
7906 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7907esac
7908
7909for ac_prog in makeinfo
7910do
1c710c3c 7911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7912set dummy $ac_prog; ac_word=$2
5213506e
RW
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914$as_echo_n "checking for $ac_word... " >&6; }
7915if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
2abefe3d
PB
7917else
7918 if test -n "$MAKEINFO"; then
7919 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7920else
1c710c3c
DJ
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
5213506e
RW
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7928 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7930 break 2
7931 fi
7932done
5213506e
RW
7933 done
7934IFS=$as_save_IFS
1c710c3c 7935
2abefe3d
PB
7936fi
7937fi
1c710c3c 7938MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7939if test -n "$MAKEINFO"; then
5213506e
RW
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7941$as_echo "$MAKEINFO" >&6; }
2abefe3d 7942else
5213506e
RW
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
2abefe3d
PB
7945fi
7946
5213506e 7947
1c710c3c 7948 test -n "$MAKEINFO" && break
2abefe3d
PB
7949done
7950test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7951
7952case " $build_configdirs " in
7953 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7954 *)
7955
d18ff35a 7956 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7957 # higher, else we use the "missing" dummy.
7958 if ${MAKEINFO} --version \
d18ff35a 7959 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7960 :
7961 else
7962 MAKEINFO="$MISSING makeinfo"
7963 fi
7964 ;;
7965
7966esac
671aa708 7967
2abefe3d 7968# FIXME: expect and dejagnu may become build tools?
671aa708 7969
2abefe3d
PB
7970for ac_prog in expect
7971do
1c710c3c 7972 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7973set dummy $ac_prog; ac_word=$2
5213506e
RW
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if test "${ac_cv_prog_EXPECT+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
2abefe3d
PB
7978else
7979 if test -n "$EXPECT"; then
7980 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7981else
1c710c3c
DJ
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
5213506e
RW
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7989 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7991 break 2
7992 fi
7993done
5213506e
RW
7994 done
7995IFS=$as_save_IFS
1c710c3c 7996
2abefe3d
PB
7997fi
7998fi
1c710c3c 7999EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8000if test -n "$EXPECT"; then
5213506e
RW
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8002$as_echo "$EXPECT" >&6; }
2abefe3d 8003else
5213506e
RW
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
2abefe3d 8006fi
671aa708 8007
5213506e 8008
1c710c3c 8009 test -n "$EXPECT" && break
2abefe3d
PB
8010done
8011test -n "$EXPECT" || EXPECT="expect"
671aa708 8012
2abefe3d
PB
8013case " $configdirs " in
8014 *" expect "*)
8015 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8016 ;;
8017esac
671aa708 8018
2abefe3d
PB
8019for ac_prog in runtest
8020do
1c710c3c 8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8022set dummy $ac_prog; ac_word=$2
5213506e
RW
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024$as_echo_n "checking for $ac_word... " >&6; }
8025if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
2abefe3d
PB
8027else
8028 if test -n "$RUNTEST"; then
8029 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8030else
1c710c3c
DJ
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
5213506e
RW
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8038 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8040 break 2
8041 fi
8042done
5213506e
RW
8043 done
8044IFS=$as_save_IFS
1c710c3c 8045
2abefe3d
PB
8046fi
8047fi
1c710c3c 8048RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8049if test -n "$RUNTEST"; then
5213506e
RW
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8051$as_echo "$RUNTEST" >&6; }
2abefe3d 8052else
5213506e
RW
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
2abefe3d 8055fi
671aa708 8056
5213506e 8057
1c710c3c 8058 test -n "$RUNTEST" && break
2abefe3d
PB
8059done
8060test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8061
2abefe3d
PB
8062case " $configdirs " in
8063 *" dejagnu "*)
c394e891 8064 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8065 ;;
8066esac
671aa708
NN
8067
8068
671aa708 8069# Host tools.
ca9f4b81
AO
8070ncn_tool_prefix=
8071test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8072ncn_target_tool_prefix=
8073test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8074
278a7a38
AO
8075
8076
8077if test -n "$AR"; then
8078 ac_cv_prog_AR=$AR
8079elif test -n "$ac_cv_prog_AR"; then
8080 AR=$ac_cv_prog_AR
8081fi
8082
8083if test -n "$ac_cv_prog_AR"; then
8084 for ncn_progname in ar; do
8085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8086set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088$as_echo_n "checking for $ac_word... " >&6; }
8089if test "${ac_cv_prog_AR+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
278a7a38
AO
8091else
8092 if test -n "$AR"; then
8093 ac_cv_prog_AR="$AR" # Let the user override the test.
8094else
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
5213506e
RW
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8102 ac_cv_prog_AR="${ncn_progname}"
5213506e 8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8104 break 2
8105 fi
8106done
5213506e
RW
8107 done
8108IFS=$as_save_IFS
278a7a38
AO
8109
8110fi
8111fi
8112AR=$ac_cv_prog_AR
8113if test -n "$AR"; then
5213506e
RW
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8115$as_echo "$AR" >&6; }
278a7a38 8116else
5213506e
RW
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
278a7a38
AO
8119fi
8120
5213506e 8121
278a7a38
AO
8122 done
8123fi
8124
8125for ncn_progname in ar; do
2693c0b0
PB
8126 if test -n "$ncn_tool_prefix"; then
8127 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8128set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130$as_echo_n "checking for $ac_word... " >&6; }
8131if test "${ac_cv_prog_AR+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8133else
8134 if test -n "$AR"; then
8135 ac_cv_prog_AR="$AR" # Let the user override the test.
8136else
1c710c3c
DJ
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
5213506e
RW
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8144 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8146 break 2
8147 fi
8148done
5213506e
RW
8149 done
8150IFS=$as_save_IFS
1c710c3c 8151
ca9f4b81
AO
8152fi
8153fi
1c710c3c 8154AR=$ac_cv_prog_AR
ca9f4b81 8155if test -n "$AR"; then
5213506e
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8157$as_echo "$AR" >&6; }
ca9f4b81 8158else
5213506e
RW
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
ca9f4b81
AO
8161fi
8162
5213506e 8163
2693c0b0
PB
8164 fi
8165 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8167set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169$as_echo_n "checking for $ac_word... " >&6; }
8170if test "${ac_cv_prog_AR+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
ca9f4b81 8172else
2693c0b0 8173 if test -n "$AR"; then
af71363e
AS
8174 ac_cv_prog_AR="$AR" # Let the user override the test.
8175else
1c710c3c
DJ
8176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177for as_dir in $PATH
8178do
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
5213506e
RW
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8183 ac_cv_prog_AR="${ncn_progname}"
5213506e 8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8185 break 2
8186 fi
8187done
5213506e
RW
8188 done
8189IFS=$as_save_IFS
1c710c3c 8190
ca9f4b81
AO
8191fi
8192fi
1c710c3c 8193AR=$ac_cv_prog_AR
2693c0b0 8194if test -n "$AR"; then
5213506e
RW
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8196$as_echo "$AR" >&6; }
ca9f4b81 8197else
5213506e
RW
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199$as_echo "no" >&6; }
ca9f4b81 8200fi
1c710c3c 8201
5213506e 8202
2693c0b0
PB
8203 fi
8204 test -n "$ac_cv_prog_AR" && break
8205done
8206
8207if test -z "$ac_cv_prog_AR" ; then
8208 set dummy ar
8209 if test $build = $host ; then
8210 AR="$2"
ca9f4b81 8211 else
2693c0b0 8212 AR="${ncn_tool_prefix}$2"
ca9f4b81 8213 fi
ca9f4b81
AO
8214fi
8215
278a7a38
AO
8216
8217
8218if test -n "$AS"; then
8219 ac_cv_prog_AS=$AS
8220elif test -n "$ac_cv_prog_AS"; then
8221 AS=$ac_cv_prog_AS
8222fi
8223
8224if test -n "$ac_cv_prog_AS"; then
8225 for ncn_progname in as; do
8226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8227set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229$as_echo_n "checking for $ac_word... " >&6; }
8230if test "${ac_cv_prog_AS+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
278a7a38
AO
8232else
8233 if test -n "$AS"; then
8234 ac_cv_prog_AS="$AS" # Let the user override the test.
8235else
8236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
5213506e
RW
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8243 ac_cv_prog_AS="${ncn_progname}"
5213506e 8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8245 break 2
8246 fi
8247done
5213506e
RW
8248 done
8249IFS=$as_save_IFS
278a7a38
AO
8250
8251fi
8252fi
8253AS=$ac_cv_prog_AS
8254if test -n "$AS"; then
5213506e
RW
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8256$as_echo "$AS" >&6; }
278a7a38 8257else
5213506e
RW
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
278a7a38
AO
8260fi
8261
5213506e 8262
278a7a38
AO
8263 done
8264fi
8265
8266for ncn_progname in as; do
2693c0b0
PB
8267 if test -n "$ncn_tool_prefix"; then
8268 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8269set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271$as_echo_n "checking for $ac_word... " >&6; }
8272if test "${ac_cv_prog_AS+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8274else
8275 if test -n "$AS"; then
8276 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8277else
1c710c3c
DJ
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
5213506e
RW
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8285 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8287 break 2
8288 fi
8289done
5213506e
RW
8290 done
8291IFS=$as_save_IFS
1c710c3c 8292
ca9f4b81
AO
8293fi
8294fi
1c710c3c 8295AS=$ac_cv_prog_AS
ca9f4b81 8296if test -n "$AS"; then
5213506e
RW
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8298$as_echo "$AS" >&6; }
ca9f4b81 8299else
5213506e
RW
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
ca9f4b81
AO
8302fi
8303
5213506e 8304
2693c0b0
PB
8305 fi
8306 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310$as_echo_n "checking for $ac_word... " >&6; }
8311if test "${ac_cv_prog_AS+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
ca9f4b81 8313else
2693c0b0
PB
8314 if test -n "$AS"; then
8315 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8316else
1c710c3c
DJ
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
5213506e
RW
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8324 ac_cv_prog_AS="${ncn_progname}"
5213506e 8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8326 break 2
8327 fi
8328done
5213506e
RW
8329 done
8330IFS=$as_save_IFS
1c710c3c 8331
ca9f4b81
AO
8332fi
8333fi
1c710c3c 8334AS=$ac_cv_prog_AS
2693c0b0 8335if test -n "$AS"; then
5213506e
RW
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8337$as_echo "$AS" >&6; }
ca9f4b81 8338else
5213506e
RW
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340$as_echo "no" >&6; }
ca9f4b81 8341fi
1c710c3c 8342
5213506e 8343
2693c0b0
PB
8344 fi
8345 test -n "$ac_cv_prog_AS" && break
8346done
8347
8348if test -z "$ac_cv_prog_AS" ; then
8349 set dummy as
8350 if test $build = $host ; then
8351 AS="$2"
ca9f4b81 8352 else
2693c0b0 8353 AS="${ncn_tool_prefix}$2"
ca9f4b81 8354 fi
ca9f4b81
AO
8355fi
8356
278a7a38
AO
8357
8358
8359if test -n "$DLLTOOL"; then
8360 ac_cv_prog_DLLTOOL=$DLLTOOL
8361elif test -n "$ac_cv_prog_DLLTOOL"; then
8362 DLLTOOL=$ac_cv_prog_DLLTOOL
8363fi
8364
8365if test -n "$ac_cv_prog_DLLTOOL"; then
8366 for ncn_progname in dlltool; do
8367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8368set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370$as_echo_n "checking for $ac_word... " >&6; }
8371if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
278a7a38
AO
8373else
8374 if test -n "$DLLTOOL"; then
8375 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8376else
8377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378for as_dir in $PATH
8379do
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
5213506e
RW
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8384 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8386 break 2
8387 fi
8388done
5213506e
RW
8389 done
8390IFS=$as_save_IFS
278a7a38
AO
8391
8392fi
8393fi
8394DLLTOOL=$ac_cv_prog_DLLTOOL
8395if test -n "$DLLTOOL"; then
5213506e
RW
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8397$as_echo "$DLLTOOL" >&6; }
278a7a38 8398else
5213506e
RW
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400$as_echo "no" >&6; }
278a7a38
AO
8401fi
8402
5213506e 8403
278a7a38
AO
8404 done
8405fi
8406
8407for ncn_progname in dlltool; do
2693c0b0
PB
8408 if test -n "$ncn_tool_prefix"; then
8409 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8410set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412$as_echo_n "checking for $ac_word... " >&6; }
8413if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8415else
8416 if test -n "$DLLTOOL"; then
8417 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8418else
1c710c3c
DJ
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
5213506e
RW
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8426 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8428 break 2
8429 fi
8430done
5213506e
RW
8431 done
8432IFS=$as_save_IFS
1c710c3c 8433
ca9f4b81
AO
8434fi
8435fi
1c710c3c 8436DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8437if test -n "$DLLTOOL"; then
5213506e
RW
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8439$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8440else
5213506e
RW
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442$as_echo "no" >&6; }
ca9f4b81
AO
8443fi
8444
5213506e 8445
2693c0b0
PB
8446 fi
8447 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8449set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451$as_echo_n "checking for $ac_word... " >&6; }
8452if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8453 $as_echo_n "(cached) " >&6
ca9f4b81 8454else
2693c0b0
PB
8455 if test -n "$DLLTOOL"; then
8456 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8457else
1c710c3c
DJ
8458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459for as_dir in $PATH
8460do
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
5213506e
RW
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8465 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8467 break 2
8468 fi
8469done
5213506e
RW
8470 done
8471IFS=$as_save_IFS
1c710c3c 8472
ca9f4b81
AO
8473fi
8474fi
1c710c3c 8475DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8476if test -n "$DLLTOOL"; then
5213506e
RW
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8478$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8479else
5213506e
RW
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481$as_echo "no" >&6; }
ca9f4b81 8482fi
1c710c3c 8483
5213506e 8484
2693c0b0
PB
8485 fi
8486 test -n "$ac_cv_prog_DLLTOOL" && break
8487done
8488
8489if test -z "$ac_cv_prog_DLLTOOL" ; then
8490 set dummy dlltool
8491 if test $build = $host ; then
8492 DLLTOOL="$2"
ca9f4b81 8493 else
2693c0b0 8494 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8495 fi
ca9f4b81
AO
8496fi
8497
278a7a38
AO
8498
8499
8500if test -n "$LD"; then
8501 ac_cv_prog_LD=$LD
8502elif test -n "$ac_cv_prog_LD"; then
8503 LD=$ac_cv_prog_LD
8504fi
8505
8506if test -n "$ac_cv_prog_LD"; then
8507 for ncn_progname in ld; do
8508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8509set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511$as_echo_n "checking for $ac_word... " >&6; }
8512if test "${ac_cv_prog_LD+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
278a7a38
AO
8514else
8515 if test -n "$LD"; then
8516 ac_cv_prog_LD="$LD" # Let the user override the test.
8517else
8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
8520do
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
5213506e
RW
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8525 ac_cv_prog_LD="${ncn_progname}"
5213506e 8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8527 break 2
8528 fi
8529done
5213506e
RW
8530 done
8531IFS=$as_save_IFS
278a7a38
AO
8532
8533fi
8534fi
8535LD=$ac_cv_prog_LD
8536if test -n "$LD"; then
5213506e
RW
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8538$as_echo "$LD" >&6; }
278a7a38 8539else
5213506e
RW
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
278a7a38
AO
8542fi
8543
5213506e 8544
278a7a38
AO
8545 done
8546fi
8547
8548for ncn_progname in ld; do
2693c0b0
PB
8549 if test -n "$ncn_tool_prefix"; then
8550 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8551set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if test "${ac_cv_prog_LD+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8556else
8557 if test -n "$LD"; then
8558 ac_cv_prog_LD="$LD" # Let the user override the test.
8559else
1c710c3c
DJ
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
5213506e
RW
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8567 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8569 break 2
8570 fi
8571done
5213506e
RW
8572 done
8573IFS=$as_save_IFS
1c710c3c 8574
ca9f4b81
AO
8575fi
8576fi
1c710c3c 8577LD=$ac_cv_prog_LD
ca9f4b81 8578if test -n "$LD"; then
5213506e
RW
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8580$as_echo "$LD" >&6; }
ca9f4b81 8581else
5213506e
RW
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
ca9f4b81
AO
8584fi
8585
5213506e 8586
2693c0b0
PB
8587 fi
8588 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8590set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592$as_echo_n "checking for $ac_word... " >&6; }
8593if test "${ac_cv_prog_LD+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
ca9f4b81 8595else
2693c0b0
PB
8596 if test -n "$LD"; then
8597 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8598else
1c710c3c
DJ
8599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600for as_dir in $PATH
8601do
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
5213506e
RW
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8606 ac_cv_prog_LD="${ncn_progname}"
5213506e 8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8608 break 2
8609 fi
8610done
5213506e
RW
8611 done
8612IFS=$as_save_IFS
1c710c3c 8613
ca9f4b81
AO
8614fi
8615fi
1c710c3c 8616LD=$ac_cv_prog_LD
2693c0b0 8617if test -n "$LD"; then
5213506e
RW
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8619$as_echo "$LD" >&6; }
ca9f4b81 8620else
5213506e
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622$as_echo "no" >&6; }
ca9f4b81 8623fi
1c710c3c 8624
5213506e 8625
2693c0b0
PB
8626 fi
8627 test -n "$ac_cv_prog_LD" && break
8628done
8629
8630if test -z "$ac_cv_prog_LD" ; then
8631 set dummy ld
8632 if test $build = $host ; then
8633 LD="$2"
ca9f4b81 8634 else
2693c0b0 8635 LD="${ncn_tool_prefix}$2"
ca9f4b81 8636 fi
ca9f4b81
AO
8637fi
8638
278a7a38
AO
8639
8640
8641if test -n "$LIPO"; then
8642 ac_cv_prog_LIPO=$LIPO
8643elif test -n "$ac_cv_prog_LIPO"; then
8644 LIPO=$ac_cv_prog_LIPO
8645fi
8646
8647if test -n "$ac_cv_prog_LIPO"; then
8648 for ncn_progname in lipo; do
8649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8650set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652$as_echo_n "checking for $ac_word... " >&6; }
8653if test "${ac_cv_prog_LIPO+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
278a7a38
AO
8655else
8656 if test -n "$LIPO"; then
8657 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8658else
8659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660for as_dir in $PATH
8661do
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
5213506e
RW
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8666 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8668 break 2
8669 fi
8670done
5213506e
RW
8671 done
8672IFS=$as_save_IFS
278a7a38
AO
8673
8674fi
8675fi
8676LIPO=$ac_cv_prog_LIPO
8677if test -n "$LIPO"; then
5213506e
RW
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8679$as_echo "$LIPO" >&6; }
278a7a38 8680else
5213506e
RW
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682$as_echo "no" >&6; }
278a7a38
AO
8683fi
8684
5213506e 8685
278a7a38
AO
8686 done
8687fi
8688
8689for ncn_progname in lipo; do
2abefe3d
PB
8690 if test -n "$ncn_tool_prefix"; then
8691 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8692set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694$as_echo_n "checking for $ac_word... " >&6; }
8695if test "${ac_cv_prog_LIPO+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
2abefe3d
PB
8697else
8698 if test -n "$LIPO"; then
8699 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8700else
1c710c3c
DJ
8701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702for as_dir in $PATH
8703do
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
5213506e
RW
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8708 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8710 break 2
8711 fi
8712done
5213506e
RW
8713 done
8714IFS=$as_save_IFS
1c710c3c 8715
2abefe3d
PB
8716fi
8717fi
1c710c3c 8718LIPO=$ac_cv_prog_LIPO
2abefe3d 8719if test -n "$LIPO"; then
5213506e
RW
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8721$as_echo "$LIPO" >&6; }
2abefe3d 8722else
5213506e
RW
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724$as_echo "no" >&6; }
2abefe3d
PB
8725fi
8726
5213506e 8727
2abefe3d
PB
8728 fi
8729 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8731set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733$as_echo_n "checking for $ac_word... " >&6; }
8734if test "${ac_cv_prog_LIPO+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
2abefe3d
PB
8736else
8737 if test -n "$LIPO"; then
8738 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8739else
1c710c3c
DJ
8740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741for as_dir in $PATH
8742do
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
5213506e
RW
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8747 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8749 break 2
8750 fi
8751done
5213506e
RW
8752 done
8753IFS=$as_save_IFS
1c710c3c 8754
2abefe3d
PB
8755fi
8756fi
1c710c3c 8757LIPO=$ac_cv_prog_LIPO
2abefe3d 8758if test -n "$LIPO"; then
5213506e
RW
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8760$as_echo "$LIPO" >&6; }
2abefe3d 8761else
5213506e
RW
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763$as_echo "no" >&6; }
2abefe3d 8764fi
1c710c3c 8765
5213506e 8766
2abefe3d
PB
8767 fi
8768 test -n "$ac_cv_prog_LIPO" && break
8769done
8770
8771if test -z "$ac_cv_prog_LIPO" ; then
8772 set dummy lipo
8773 if test $build = $host ; then
8774 LIPO="$2"
8775 else
8776 LIPO="${ncn_tool_prefix}$2"
8777 fi
8778fi
8779
278a7a38
AO
8780
8781
8782if test -n "$NM"; then
8783 ac_cv_prog_NM=$NM
8784elif test -n "$ac_cv_prog_NM"; then
8785 NM=$ac_cv_prog_NM
8786fi
8787
8788if test -n "$ac_cv_prog_NM"; then
8789 for ncn_progname in nm; do
8790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8791set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793$as_echo_n "checking for $ac_word... " >&6; }
8794if test "${ac_cv_prog_NM+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8796else
8797 if test -n "$NM"; then
8798 ac_cv_prog_NM="$NM" # Let the user override the test.
8799else
1c710c3c
DJ
8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
5213506e
RW
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8807 ac_cv_prog_NM="${ncn_progname}"
5213506e 8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8809 break 2
8810 fi
8811done
5213506e
RW
8812 done
8813IFS=$as_save_IFS
1c710c3c 8814
ca9f4b81
AO
8815fi
8816fi
1c710c3c 8817NM=$ac_cv_prog_NM
ca9f4b81 8818if test -n "$NM"; then
5213506e
RW
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8820$as_echo "$NM" >&6; }
ca9f4b81 8821else
5213506e
RW
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823$as_echo "no" >&6; }
ca9f4b81
AO
8824fi
8825
5213506e 8826
278a7a38
AO
8827 done
8828fi
8829
8830for ncn_progname in nm; do
8831 if test -n "$ncn_tool_prefix"; then
8832 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8833set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
8836if test "${ac_cv_prog_NM+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
ca9f4b81 8838else
2693c0b0
PB
8839 if test -n "$NM"; then
8840 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8841else
1c710c3c
DJ
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
5213506e
RW
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8849 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8851 break 2
8852 fi
8853done
5213506e
RW
8854 done
8855IFS=$as_save_IFS
1c710c3c 8856
ca9f4b81
AO
8857fi
8858fi
1c710c3c 8859NM=$ac_cv_prog_NM
2693c0b0 8860if test -n "$NM"; then
5213506e
RW
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8862$as_echo "$NM" >&6; }
ca9f4b81 8863else
5213506e
RW
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
ca9f4b81 8866fi
1c710c3c 8867
5213506e 8868
2693c0b0 8869 fi
278a7a38
AO
8870 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8872set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874$as_echo_n "checking for $ac_word... " >&6; }
8875if test "${ac_cv_prog_NM+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
278a7a38
AO
8877else
8878 if test -n "$NM"; then
8879 ac_cv_prog_NM="$NM" # Let the user override the test.
8880else
8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882for as_dir in $PATH
8883do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
5213506e
RW
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8888 ac_cv_prog_NM="${ncn_progname}"
5213506e 8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8890 break 2
8891 fi
8892done
5213506e
RW
8893 done
8894IFS=$as_save_IFS
278a7a38
AO
8895
8896fi
8897fi
8898NM=$ac_cv_prog_NM
8899if test -n "$NM"; then
5213506e
RW
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8901$as_echo "$NM" >&6; }
278a7a38 8902else
5213506e
RW
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904$as_echo "no" >&6; }
278a7a38
AO
8905fi
8906
5213506e 8907
278a7a38
AO
8908 fi
8909 test -n "$ac_cv_prog_NM" && break
8910done
8911
8912if test -z "$ac_cv_prog_NM" ; then
8913 set dummy nm
8914 if test $build = $host ; then
8915 NM="$2"
8916 else
8917 NM="${ncn_tool_prefix}$2"
8918 fi
8919fi
8920
8921
8922
8923if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB=$RANLIB
8925elif test -n "$ac_cv_prog_RANLIB"; then
8926 RANLIB=$ac_cv_prog_RANLIB
8927fi
8928
8929if test -n "$ac_cv_prog_RANLIB"; then
8930 for ncn_progname in ranlib; do
8931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8932set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934$as_echo_n "checking for $ac_word... " >&6; }
8935if test "${ac_cv_prog_RANLIB+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
278a7a38
AO
8937else
8938 if test -n "$RANLIB"; then
8939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8940else
8941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942for as_dir in $PATH
8943do
8944 IFS=$as_save_IFS
8945 test -z "$as_dir" && as_dir=.
5213506e
RW
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8948 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8950 break 2
8951 fi
8952done
5213506e
RW
8953 done
8954IFS=$as_save_IFS
278a7a38
AO
8955
8956fi
8957fi
8958RANLIB=$ac_cv_prog_RANLIB
8959if test -n "$RANLIB"; then
5213506e
RW
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8961$as_echo "$RANLIB" >&6; }
278a7a38 8962else
5213506e
RW
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964$as_echo "no" >&6; }
278a7a38
AO
8965fi
8966
5213506e 8967
278a7a38
AO
8968 done
8969fi
ca9f4b81 8970
278a7a38 8971for ncn_progname in ranlib; do
2693c0b0
PB
8972 if test -n "$ncn_tool_prefix"; then
8973 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8974set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976$as_echo_n "checking for $ac_word... " >&6; }
8977if test "${ac_cv_prog_RANLIB+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8979else
8980 if test -n "$RANLIB"; then
8981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8982else
1c710c3c
DJ
8983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984for as_dir in $PATH
8985do
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
5213506e
RW
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8990 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8992 break 2
8993 fi
8994done
5213506e
RW
8995 done
8996IFS=$as_save_IFS
1c710c3c 8997
ca9f4b81
AO
8998fi
8999fi
1c710c3c 9000RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9001if test -n "$RANLIB"; then
5213506e
RW
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9003$as_echo "$RANLIB" >&6; }
ca9f4b81 9004else
5213506e
RW
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006$as_echo "no" >&6; }
ca9f4b81
AO
9007fi
9008
5213506e 9009
2693c0b0
PB
9010 fi
9011 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9013set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015$as_echo_n "checking for $ac_word... " >&6; }
9016if test "${ac_cv_prog_RANLIB+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
ca9f4b81 9018else
2693c0b0
PB
9019 if test -n "$RANLIB"; then
9020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9021else
1c710c3c
DJ
9022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023for as_dir in $PATH
9024do
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
5213506e
RW
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9029 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9031 break 2
9032 fi
9033done
5213506e
RW
9034 done
9035IFS=$as_save_IFS
1c710c3c 9036
ca9f4b81
AO
9037fi
9038fi
1c710c3c 9039RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9040if test -n "$RANLIB"; then
5213506e
RW
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9042$as_echo "$RANLIB" >&6; }
ca9f4b81 9043else
5213506e
RW
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045$as_echo "no" >&6; }
ca9f4b81 9046fi
1c710c3c 9047
5213506e 9048
ca9f4b81 9049 fi
2693c0b0
PB
9050 test -n "$ac_cv_prog_RANLIB" && break
9051done
9052
9053if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9054 RANLIB="true"
ca9f4b81
AO
9055fi
9056
278a7a38
AO
9057
9058
9059if test -n "$STRIP"; then
9060 ac_cv_prog_STRIP=$STRIP
9061elif test -n "$ac_cv_prog_STRIP"; then
9062 STRIP=$ac_cv_prog_STRIP
9063fi
9064
9065if test -n "$ac_cv_prog_STRIP"; then
9066 for ncn_progname in strip; do
9067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9068set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070$as_echo_n "checking for $ac_word... " >&6; }
9071if test "${ac_cv_prog_STRIP+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
278a7a38
AO
9073else
9074 if test -n "$STRIP"; then
9075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9076else
9077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078for as_dir in $PATH
9079do
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
5213506e
RW
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9084 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9086 break 2
9087 fi
9088done
5213506e
RW
9089 done
9090IFS=$as_save_IFS
278a7a38
AO
9091
9092fi
9093fi
9094STRIP=$ac_cv_prog_STRIP
9095if test -n "$STRIP"; then
5213506e
RW
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9097$as_echo "$STRIP" >&6; }
278a7a38 9098else
5213506e
RW
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100$as_echo "no" >&6; }
278a7a38
AO
9101fi
9102
5213506e 9103
278a7a38
AO
9104 done
9105fi
9106
9107for ncn_progname in strip; do
2abefe3d
PB
9108 if test -n "$ncn_tool_prefix"; then
9109 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9110set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112$as_echo_n "checking for $ac_word... " >&6; }
9113if test "${ac_cv_prog_STRIP+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
2abefe3d
PB
9115else
9116 if test -n "$STRIP"; then
9117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9118else
1c710c3c
DJ
9119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120for as_dir in $PATH
9121do
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
5213506e
RW
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9126 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9128 break 2
9129 fi
9130done
5213506e
RW
9131 done
9132IFS=$as_save_IFS
1c710c3c 9133
2abefe3d
PB
9134fi
9135fi
1c710c3c 9136STRIP=$ac_cv_prog_STRIP
2abefe3d 9137if test -n "$STRIP"; then
5213506e
RW
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9139$as_echo "$STRIP" >&6; }
2abefe3d 9140else
5213506e
RW
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142$as_echo "no" >&6; }
2abefe3d
PB
9143fi
9144
5213506e 9145
2abefe3d
PB
9146 fi
9147 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9149set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151$as_echo_n "checking for $ac_word... " >&6; }
9152if test "${ac_cv_prog_STRIP+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
2abefe3d
PB
9154else
9155 if test -n "$STRIP"; then
9156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9157else
1c710c3c
DJ
9158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159for as_dir in $PATH
9160do
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
5213506e
RW
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9165 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9167 break 2
9168 fi
9169done
5213506e
RW
9170 done
9171IFS=$as_save_IFS
1c710c3c 9172
2abefe3d
PB
9173fi
9174fi
1c710c3c 9175STRIP=$ac_cv_prog_STRIP
2abefe3d 9176if test -n "$STRIP"; then
5213506e
RW
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9178$as_echo "$STRIP" >&6; }
2abefe3d 9179else
5213506e
RW
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181$as_echo "no" >&6; }
2abefe3d 9182fi
1c710c3c 9183
5213506e 9184
2abefe3d
PB
9185 fi
9186 test -n "$ac_cv_prog_STRIP" && break
9187done
9188
9189if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9190 STRIP="true"
2abefe3d
PB
9191fi
9192
278a7a38
AO
9193
9194
9195if test -n "$WINDRES"; then
9196 ac_cv_prog_WINDRES=$WINDRES
9197elif test -n "$ac_cv_prog_WINDRES"; then
9198 WINDRES=$ac_cv_prog_WINDRES
9199fi
9200
9201if test -n "$ac_cv_prog_WINDRES"; then
9202 for ncn_progname in windres; do
9203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9204set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206$as_echo_n "checking for $ac_word... " >&6; }
9207if test "${ac_cv_prog_WINDRES+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
278a7a38
AO
9209else
9210 if test -n "$WINDRES"; then
9211 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9212else
9213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214for as_dir in $PATH
9215do
9216 IFS=$as_save_IFS
9217 test -z "$as_dir" && as_dir=.
5213506e
RW
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9220 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9222 break 2
9223 fi
9224done
5213506e
RW
9225 done
9226IFS=$as_save_IFS
278a7a38
AO
9227
9228fi
9229fi
9230WINDRES=$ac_cv_prog_WINDRES
9231if test -n "$WINDRES"; then
5213506e
RW
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9233$as_echo "$WINDRES" >&6; }
278a7a38 9234else
5213506e
RW
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236$as_echo "no" >&6; }
278a7a38
AO
9237fi
9238
5213506e 9239
278a7a38
AO
9240 done
9241fi
9242
9243for ncn_progname in windres; do
2693c0b0
PB
9244 if test -n "$ncn_tool_prefix"; then
9245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9246set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248$as_echo_n "checking for $ac_word... " >&6; }
9249if test "${ac_cv_prog_WINDRES+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9251else
9252 if test -n "$WINDRES"; then
9253 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9254else
1c710c3c
DJ
9255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256for as_dir in $PATH
9257do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
5213506e
RW
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9262 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9264 break 2
9265 fi
9266done
5213506e
RW
9267 done
9268IFS=$as_save_IFS
1c710c3c 9269
ca9f4b81
AO
9270fi
9271fi
1c710c3c 9272WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9273if test -n "$WINDRES"; then
5213506e
RW
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9275$as_echo "$WINDRES" >&6; }
ca9f4b81 9276else
5213506e
RW
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278$as_echo "no" >&6; }
ca9f4b81
AO
9279fi
9280
5213506e 9281
2693c0b0
PB
9282 fi
9283 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9285set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287$as_echo_n "checking for $ac_word... " >&6; }
9288if test "${ac_cv_prog_WINDRES+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
ca9f4b81 9290else
2693c0b0
PB
9291 if test -n "$WINDRES"; then
9292 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9293else
1c710c3c
DJ
9294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295for as_dir in $PATH
9296do
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
5213506e
RW
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9301 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9303 break 2
9304 fi
9305done
5213506e
RW
9306 done
9307IFS=$as_save_IFS
1c710c3c 9308
ca9f4b81
AO
9309fi
9310fi
1c710c3c 9311WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9312if test -n "$WINDRES"; then
5213506e
RW
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9314$as_echo "$WINDRES" >&6; }
ca9f4b81 9315else
5213506e
RW
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317$as_echo "no" >&6; }
ca9f4b81 9318fi
1c710c3c 9319
5213506e 9320
2693c0b0
PB
9321 fi
9322 test -n "$ac_cv_prog_WINDRES" && break
9323done
9324
9325if test -z "$ac_cv_prog_WINDRES" ; then
9326 set dummy windres
9327 if test $build = $host ; then
9328 WINDRES="$2"
ca9f4b81 9329 else
2693c0b0 9330 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9331 fi
ca9f4b81
AO
9332fi
9333
278a7a38
AO
9334
9335
901119ae
KT
9336if test -n "$WINDMC"; then
9337 ac_cv_prog_WINDMC=$WINDMC
9338elif test -n "$ac_cv_prog_WINDMC"; then
9339 WINDMC=$ac_cv_prog_WINDMC
9340fi
9341
9342if test -n "$ac_cv_prog_WINDMC"; then
9343 for ncn_progname in windmc; do
9344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9345set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347$as_echo_n "checking for $ac_word... " >&6; }
9348if test "${ac_cv_prog_WINDMC+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
901119ae
KT
9350else
9351 if test -n "$WINDMC"; then
9352 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9353else
9354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
5213506e
RW
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9361 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9363 break 2
9364 fi
9365done
5213506e
RW
9366 done
9367IFS=$as_save_IFS
901119ae
KT
9368
9369fi
9370fi
9371WINDMC=$ac_cv_prog_WINDMC
9372if test -n "$WINDMC"; then
5213506e
RW
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9374$as_echo "$WINDMC" >&6; }
901119ae 9375else
5213506e
RW
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377$as_echo "no" >&6; }
901119ae
KT
9378fi
9379
5213506e 9380
901119ae
KT
9381 done
9382fi
9383
9384for ncn_progname in windmc; do
9385 if test -n "$ncn_tool_prefix"; then
9386 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9387set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389$as_echo_n "checking for $ac_word... " >&6; }
9390if test "${ac_cv_prog_WINDMC+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
901119ae
KT
9392else
9393 if test -n "$WINDMC"; then
9394 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9395else
9396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397for as_dir in $PATH
9398do
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
5213506e
RW
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9403 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9405 break 2
9406 fi
9407done
5213506e
RW
9408 done
9409IFS=$as_save_IFS
901119ae
KT
9410
9411fi
9412fi
9413WINDMC=$ac_cv_prog_WINDMC
9414if test -n "$WINDMC"; then
5213506e
RW
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9416$as_echo "$WINDMC" >&6; }
901119ae 9417else
5213506e
RW
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419$as_echo "no" >&6; }
901119ae
KT
9420fi
9421
5213506e 9422
901119ae
KT
9423 fi
9424 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9426set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428$as_echo_n "checking for $ac_word... " >&6; }
9429if test "${ac_cv_prog_WINDMC+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
901119ae
KT
9431else
9432 if test -n "$WINDMC"; then
9433 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9434else
9435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436for as_dir in $PATH
9437do
9438 IFS=$as_save_IFS
9439 test -z "$as_dir" && as_dir=.
5213506e
RW
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9442 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9444 break 2
9445 fi
9446done
5213506e
RW
9447 done
9448IFS=$as_save_IFS
901119ae
KT
9449
9450fi
9451fi
9452WINDMC=$ac_cv_prog_WINDMC
9453if test -n "$WINDMC"; then
5213506e
RW
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9455$as_echo "$WINDMC" >&6; }
901119ae 9456else
5213506e
RW
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458$as_echo "no" >&6; }
901119ae
KT
9459fi
9460
5213506e 9461
901119ae
KT
9462 fi
9463 test -n "$ac_cv_prog_WINDMC" && break
9464done
9465
9466if test -z "$ac_cv_prog_WINDMC" ; then
9467 set dummy windmc
9468 if test $build = $host ; then
9469 WINDMC="$2"
9470 else
9471 WINDMC="${ncn_tool_prefix}$2"
9472 fi
9473fi
9474
9475
9476
278a7a38
AO
9477if test -n "$OBJCOPY"; then
9478 ac_cv_prog_OBJCOPY=$OBJCOPY
9479elif test -n "$ac_cv_prog_OBJCOPY"; then
9480 OBJCOPY=$ac_cv_prog_OBJCOPY
9481fi
9482
9483if test -n "$ac_cv_prog_OBJCOPY"; then
9484 for ncn_progname in objcopy; do
9485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9486set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488$as_echo_n "checking for $ac_word... " >&6; }
9489if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
278a7a38
AO
9491else
9492 if test -n "$OBJCOPY"; then
9493 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9494else
9495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496for as_dir in $PATH
9497do
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
5213506e
RW
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9502 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9504 break 2
9505 fi
9506done
5213506e
RW
9507 done
9508IFS=$as_save_IFS
278a7a38
AO
9509
9510fi
9511fi
9512OBJCOPY=$ac_cv_prog_OBJCOPY
9513if test -n "$OBJCOPY"; then
5213506e
RW
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9515$as_echo "$OBJCOPY" >&6; }
278a7a38 9516else
5213506e
RW
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518$as_echo "no" >&6; }
278a7a38
AO
9519fi
9520
5213506e 9521
278a7a38
AO
9522 done
9523fi
9524
9525for ncn_progname in objcopy; do
2693c0b0
PB
9526 if test -n "$ncn_tool_prefix"; then
9527 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9528set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530$as_echo_n "checking for $ac_word... " >&6; }
9531if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9533else
9534 if test -n "$OBJCOPY"; then
9535 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9536else
1c710c3c
DJ
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
5213506e
RW
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9544 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9546 break 2
9547 fi
9548done
5213506e
RW
9549 done
9550IFS=$as_save_IFS
1c710c3c 9551
ca9f4b81
AO
9552fi
9553fi
1c710c3c 9554OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9555if test -n "$OBJCOPY"; then
5213506e
RW
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9557$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9558else
5213506e
RW
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560$as_echo "no" >&6; }
ca9f4b81
AO
9561fi
9562
5213506e 9563
2693c0b0
PB
9564 fi
9565 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9567set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569$as_echo_n "checking for $ac_word... " >&6; }
9570if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
ca9f4b81 9572else
2693c0b0
PB
9573 if test -n "$OBJCOPY"; then
9574 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9575else
1c710c3c
DJ
9576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577for as_dir in $PATH
9578do
9579 IFS=$as_save_IFS
9580 test -z "$as_dir" && as_dir=.
5213506e
RW
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9583 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9585 break 2
9586 fi
9587done
5213506e
RW
9588 done
9589IFS=$as_save_IFS
1c710c3c 9590
ca9f4b81
AO
9591fi
9592fi
1c710c3c 9593OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9594if test -n "$OBJCOPY"; then
5213506e
RW
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9596$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9597else
5213506e
RW
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599$as_echo "no" >&6; }
ca9f4b81 9600fi
1c710c3c 9601
5213506e 9602
2693c0b0
PB
9603 fi
9604 test -n "$ac_cv_prog_OBJCOPY" && break
9605done
9606
9607if test -z "$ac_cv_prog_OBJCOPY" ; then
9608 set dummy objcopy
9609 if test $build = $host ; then
9610 OBJCOPY="$2"
ca9f4b81 9611 else
2693c0b0 9612 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9613 fi
ca9f4b81
AO
9614fi
9615
278a7a38
AO
9616
9617
9618if test -n "$OBJDUMP"; then
9619 ac_cv_prog_OBJDUMP=$OBJDUMP
9620elif test -n "$ac_cv_prog_OBJDUMP"; then
9621 OBJDUMP=$ac_cv_prog_OBJDUMP
9622fi
9623
9624if test -n "$ac_cv_prog_OBJDUMP"; then
9625 for ncn_progname in objdump; do
9626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629$as_echo_n "checking for $ac_word... " >&6; }
9630if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
278a7a38
AO
9632else
9633 if test -n "$OBJDUMP"; then
9634 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9635else
9636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637for as_dir in $PATH
9638do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
5213506e
RW
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9643 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9645 break 2
9646 fi
9647done
5213506e
RW
9648 done
9649IFS=$as_save_IFS
278a7a38
AO
9650
9651fi
9652fi
9653OBJDUMP=$ac_cv_prog_OBJDUMP
9654if test -n "$OBJDUMP"; then
5213506e
RW
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9656$as_echo "$OBJDUMP" >&6; }
278a7a38 9657else
5213506e
RW
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659$as_echo "no" >&6; }
278a7a38
AO
9660fi
9661
5213506e 9662
278a7a38
AO
9663 done
9664fi
9665
9666for ncn_progname in objdump; do
2693c0b0
PB
9667 if test -n "$ncn_tool_prefix"; then
9668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9669set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671$as_echo_n "checking for $ac_word... " >&6; }
9672if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9674else
9675 if test -n "$OBJDUMP"; then
9676 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9677else
1c710c3c
DJ
9678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679for as_dir in $PATH
9680do
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
5213506e
RW
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9685 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9687 break 2
9688 fi
9689done
5213506e
RW
9690 done
9691IFS=$as_save_IFS
1c710c3c 9692
ca9f4b81
AO
9693fi
9694fi
1c710c3c 9695OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9696if test -n "$OBJDUMP"; then
5213506e
RW
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9698$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9699else
5213506e
RW
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701$as_echo "no" >&6; }
ca9f4b81
AO
9702fi
9703
5213506e 9704
2693c0b0
PB
9705 fi
9706 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9708set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710$as_echo_n "checking for $ac_word... " >&6; }
9711if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
ca9f4b81 9713else
2693c0b0
PB
9714 if test -n "$OBJDUMP"; then
9715 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9716else
1c710c3c
DJ
9717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718for as_dir in $PATH
9719do
9720 IFS=$as_save_IFS
9721 test -z "$as_dir" && as_dir=.
5213506e
RW
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9724 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9726 break 2
9727 fi
9728done
5213506e
RW
9729 done
9730IFS=$as_save_IFS
1c710c3c 9731
ca9f4b81
AO
9732fi
9733fi
1c710c3c 9734OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9735if test -n "$OBJDUMP"; then
5213506e
RW
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9737$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9738else
5213506e
RW
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740$as_echo "no" >&6; }
ca9f4b81 9741fi
1c710c3c 9742
5213506e 9743
2693c0b0
PB
9744 fi
9745 test -n "$ac_cv_prog_OBJDUMP" && break
9746done
9747
9748if test -z "$ac_cv_prog_OBJDUMP" ; then
9749 set dummy objdump
9750 if test $build = $host ; then
9751 OBJDUMP="$2"
ca9f4b81 9752 else
2693c0b0 9753 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9754 fi
ca9f4b81
AO
9755fi
9756
671aa708
NN
9757
9758
e7a82751
RM
9759if test -n "$READELF"; then
9760 ac_cv_prog_READELF=$READELF
9761elif test -n "$ac_cv_prog_READELF"; then
9762 READELF=$ac_cv_prog_READELF
9763fi
9764
9765if test -n "$ac_cv_prog_READELF"; then
9766 for ncn_progname in readelf; do
9767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9768set dummy ${ncn_progname}; ac_word=$2
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770$as_echo_n "checking for $ac_word... " >&6; }
9771if test "${ac_cv_prog_READELF+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
9773else
9774 if test -n "$READELF"; then
9775 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9776else
9777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778for as_dir in $PATH
9779do
9780 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_prog_READELF="${ncn_progname}"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 break 2
9787 fi
9788done
9789 done
9790IFS=$as_save_IFS
9791
9792fi
9793fi
9794READELF=$ac_cv_prog_READELF
9795if test -n "$READELF"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9797$as_echo "$READELF" >&6; }
9798else
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800$as_echo "no" >&6; }
9801fi
9802
9803
9804 done
9805fi
9806
9807for ncn_progname in readelf; do
9808 if test -n "$ncn_tool_prefix"; then
9809 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9810set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812$as_echo_n "checking for $ac_word... " >&6; }
9813if test "${ac_cv_prog_READELF+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815else
9816 if test -n "$READELF"; then
9817 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9818else
9819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820for as_dir in $PATH
9821do
9822 IFS=$as_save_IFS
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9826 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 break 2
9829 fi
9830done
9831 done
9832IFS=$as_save_IFS
9833
9834fi
9835fi
9836READELF=$ac_cv_prog_READELF
9837if test -n "$READELF"; then
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9839$as_echo "$READELF" >&6; }
9840else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842$as_echo "no" >&6; }
9843fi
9844
9845
9846 fi
9847 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9849set dummy ${ncn_progname}; ac_word=$2
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9851$as_echo_n "checking for $ac_word... " >&6; }
9852if test "${ac_cv_prog_READELF+set}" = set; then :
9853 $as_echo_n "(cached) " >&6
9854else
9855 if test -n "$READELF"; then
9856 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9857else
9858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859for as_dir in $PATH
9860do
9861 IFS=$as_save_IFS
9862 test -z "$as_dir" && as_dir=.
9863 for ac_exec_ext in '' $ac_executable_extensions; do
9864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9865 ac_cv_prog_READELF="${ncn_progname}"
9866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9867 break 2
9868 fi
9869done
9870 done
9871IFS=$as_save_IFS
9872
9873fi
9874fi
9875READELF=$ac_cv_prog_READELF
9876if test -n "$READELF"; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9878$as_echo "$READELF" >&6; }
9879else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881$as_echo "no" >&6; }
9882fi
9883
9884
9885 fi
9886 test -n "$ac_cv_prog_READELF" && break
9887done
9888
9889if test -z "$ac_cv_prog_READELF" ; then
9890 set dummy readelf
9891 if test $build = $host ; then
9892 READELF="$2"
9893 else
9894 READELF="${ncn_tool_prefix}$2"
9895 fi
9896fi
9897
9898
9899
671aa708
NN
9900
9901
9902
2abefe3d 9903# Target tools.
1c710c3c 9904
5213506e
RW
9905# Check whether --with-build-time-tools was given.
9906if test "${with_build_time_tools+set}" = set; then :
9907 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9908 x/*) ;;
9909 *)
9910 with_build_time_tools=
5213506e
RW
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9912$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9913 ;;
9914 esac
ca9f4b81 9915else
e8b05380 9916 with_build_time_tools=
5213506e
RW
9917fi
9918
ca9f4b81 9919
278a7a38
AO
9920
9921
9922if test -n "$CC_FOR_TARGET"; then
9923 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9924elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9925 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9926fi
9927
9928if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9929 for ncn_progname in cc gcc; do
9930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9931set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933$as_echo_n "checking for $ac_word... " >&6; }
9934if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
278a7a38
AO
9936else
9937 if test -n "$CC_FOR_TARGET"; then
9938 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9939else
9940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941for as_dir in $PATH
9942do
9943 IFS=$as_save_IFS
9944 test -z "$as_dir" && as_dir=.
5213506e
RW
9945 for ac_exec_ext in '' $ac_executable_extensions; do
9946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9947 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9949 break 2
9950 fi
9951done
5213506e
RW
9952 done
9953IFS=$as_save_IFS
278a7a38
AO
9954
9955fi
9956fi
9957CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9958if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9960$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9961else
5213506e
RW
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963$as_echo "no" >&6; }
278a7a38
AO
9964fi
9965
5213506e 9966
278a7a38
AO
9967 done
9968fi
9969
9970if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9971 for ncn_progname in cc gcc; do
5213506e
RW
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9973$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9974 if test -x $with_build_time_tools/${ncn_progname}; then
9975 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9977$as_echo "yes" >&6; }
72a7ab82 9978 break
e8b05380 9979 else
5213506e
RW
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981$as_echo "no" >&6; }
72a7ab82
AP
9982 fi
9983 done
4de997d1
PB
9984fi
9985
e8b05380
PB
9986if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9987 for ncn_progname in cc gcc; do
9988 if test -n "$ncn_target_tool_prefix"; then
9989 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9990set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992$as_echo_n "checking for $ac_word... " >&6; }
9993if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9994 $as_echo_n "(cached) " >&6
4de997d1
PB
9995else
9996 if test -n "$CC_FOR_TARGET"; then
9997 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9998else
1c710c3c
DJ
9999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000for as_dir in $PATH
10001do
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
5213506e
RW
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10006 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10008 break 2
10009 fi
10010done
5213506e
RW
10011 done
10012IFS=$as_save_IFS
1c710c3c 10013
4de997d1
PB
10014fi
10015fi
1c710c3c 10016CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10017if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10019$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10020else
5213506e
RW
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022$as_echo "no" >&6; }
4de997d1
PB
10023fi
10024
5213506e 10025
e8b05380
PB
10026 fi
10027 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10029set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031$as_echo_n "checking for $ac_word... " >&6; }
10032if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10033 $as_echo_n "(cached) " >&6
4de997d1 10034else
2693c0b0
PB
10035 if test -n "$CC_FOR_TARGET"; then
10036 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10037else
1c710c3c
DJ
10038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039for as_dir in $PATH
10040do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
5213506e
RW
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10045 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10047 break 2
10048 fi
10049done
5213506e
RW
10050 done
10051IFS=$as_save_IFS
1c710c3c 10052
4de997d1
PB
10053fi
10054fi
1c710c3c 10055CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10056if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10058$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10059else
5213506e
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061$as_echo "no" >&6; }
4de997d1 10062fi
1c710c3c 10063
5213506e 10064
e8b05380
PB
10065 fi
10066 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10067 done
10068fi
1c710c3c 10069
2693c0b0
PB
10070if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10071 set dummy cc gcc
10072 if test $build = $target ; then
10073 CC_FOR_TARGET="$2"
4de997d1 10074 else
2693c0b0 10075 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10076 fi
1c00b503
PB
10077else
10078 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10079fi
10080
278a7a38
AO
10081
10082
10083if test -n "$CXX_FOR_TARGET"; then
10084 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10085elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10086 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10087fi
10088
10089if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10090 for ncn_progname in c++ g++ cxx gxx; do
10091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10092set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094$as_echo_n "checking for $ac_word... " >&6; }
10095if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
278a7a38
AO
10097else
10098 if test -n "$CXX_FOR_TARGET"; then
10099 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10100else
10101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102for as_dir in $PATH
10103do
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
5213506e
RW
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10108 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10110 break 2
10111 fi
10112done
5213506e
RW
10113 done
10114IFS=$as_save_IFS
278a7a38
AO
10115
10116fi
10117fi
10118CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10119if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10121$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10122else
5213506e
RW
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124$as_echo "no" >&6; }
278a7a38
AO
10125fi
10126
5213506e 10127
278a7a38
AO
10128 done
10129fi
10130
10131if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10132 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10134$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10135 if test -x $with_build_time_tools/${ncn_progname}; then
10136 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10138$as_echo "yes" >&6; }
e8b05380
PB
10139 break
10140 else
5213506e
RW
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142$as_echo "no" >&6; }
e8b05380
PB
10143 fi
10144 done
10145fi
10146
10147if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10148 for ncn_progname in c++ g++ cxx gxx; do
10149 if test -n "$ncn_target_tool_prefix"; then
10150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10151set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153$as_echo_n "checking for $ac_word... " >&6; }
10154if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
4de997d1
PB
10156else
10157 if test -n "$CXX_FOR_TARGET"; then
10158 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10159else
1c710c3c
DJ
10160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161for as_dir in $PATH
10162do
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
5213506e
RW
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10167 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10169 break 2
10170 fi
10171done
5213506e
RW
10172 done
10173IFS=$as_save_IFS
1c710c3c 10174
4de997d1
PB
10175fi
10176fi
1c710c3c 10177CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10178if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10180$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10181else
5213506e
RW
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183$as_echo "no" >&6; }
4de997d1
PB
10184fi
10185
5213506e 10186
e8b05380
PB
10187 fi
10188 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10190set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192$as_echo_n "checking for $ac_word... " >&6; }
10193if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
4de997d1 10195else
2693c0b0
PB
10196 if test -n "$CXX_FOR_TARGET"; then
10197 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10198else
1c710c3c
DJ
10199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
5213506e
RW
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10206 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10208 break 2
10209 fi
10210done
5213506e
RW
10211 done
10212IFS=$as_save_IFS
1c710c3c 10213
4de997d1
PB
10214fi
10215fi
1c710c3c 10216CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10217if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10219$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10220else
5213506e
RW
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222$as_echo "no" >&6; }
4de997d1 10223fi
1c710c3c 10224
5213506e 10225
e8b05380
PB
10226 fi
10227 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10228 done
10229fi
1c710c3c 10230
2693c0b0
PB
10231if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10232 set dummy c++ g++ cxx gxx
10233 if test $build = $target ; then
10234 CXX_FOR_TARGET="$2"
4de997d1 10235 else
2693c0b0 10236 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10237 fi
1c00b503
PB
10238else
10239 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10240fi
10241
278a7a38
AO
10242
10243
10244if test -n "$GCC_FOR_TARGET"; then
10245 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10246elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10247 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10248fi
10249
10250if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10251 for ncn_progname in gcc; do
10252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10253set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255$as_echo_n "checking for $ac_word... " >&6; }
10256if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
278a7a38
AO
10258else
10259 if test -n "$GCC_FOR_TARGET"; then
10260 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10261else
10262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263for as_dir in $PATH
10264do
10265 IFS=$as_save_IFS
10266 test -z "$as_dir" && as_dir=.
5213506e
RW
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10269 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10271 break 2
10272 fi
10273done
5213506e
RW
10274 done
10275IFS=$as_save_IFS
278a7a38
AO
10276
10277fi
10278fi
10279GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10280if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10282$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10283else
5213506e
RW
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285$as_echo "no" >&6; }
278a7a38
AO
10286fi
10287
5213506e 10288
278a7a38
AO
10289 done
10290fi
10291
10292if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10293 for ncn_progname in gcc; do
5213506e
RW
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10295$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10296 if test -x $with_build_time_tools/${ncn_progname}; then
10297 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10299$as_echo "yes" >&6; }
e8b05380
PB
10300 break
10301 else
5213506e
RW
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303$as_echo "no" >&6; }
e8b05380
PB
10304 fi
10305 done
10306fi
10307
10308if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10309 for ncn_progname in gcc; do
10310 if test -n "$ncn_target_tool_prefix"; then
10311 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10312set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314$as_echo_n "checking for $ac_word... " >&6; }
10315if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
ca9f4b81 10317else
e8b05380
PB
10318 if test -n "$GCC_FOR_TARGET"; then
10319 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10320else
1c710c3c
DJ
10321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $PATH
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
5213506e
RW
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10328 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10330 break 2
10331 fi
10332done
5213506e
RW
10333 done
10334IFS=$as_save_IFS
1c710c3c 10335
ca9f4b81
AO
10336fi
10337fi
1c710c3c 10338GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10339if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10341$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10342else
5213506e
RW
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
ca9f4b81
AO
10345fi
10346
5213506e 10347
e8b05380
PB
10348 fi
10349 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10351set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353$as_echo_n "checking for $ac_word... " >&6; }
10354if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
ca9f4b81 10356else
e8b05380
PB
10357 if test -n "$GCC_FOR_TARGET"; then
10358 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10359else
1c710c3c
DJ
10360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361for as_dir in $PATH
10362do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
5213506e
RW
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10367 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10369 break 2
10370 fi
10371done
5213506e
RW
10372 done
10373IFS=$as_save_IFS
1c710c3c 10374
ca9f4b81
AO
10375fi
10376fi
1c710c3c 10377GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10378if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10380$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10381else
5213506e
RW
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383$as_echo "no" >&6; }
ca9f4b81 10384fi
1c710c3c 10385
5213506e 10386
e8b05380
PB
10387 fi
10388 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10389 done
10390fi
1c710c3c 10391
e8b05380
PB
10392if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10393 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10394else
10395 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10396fi
10397
278a7a38
AO
10398
10399
10400if test -n "$GCJ_FOR_TARGET"; then
10401 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10402elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10403 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10404fi
10405
10406if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10407 for ncn_progname in gcj; do
10408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10409set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10411$as_echo_n "checking for $ac_word... " >&6; }
10412if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
278a7a38
AO
10414else
10415 if test -n "$GCJ_FOR_TARGET"; then
10416 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10417else
10418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10419for as_dir in $PATH
10420do
10421 IFS=$as_save_IFS
10422 test -z "$as_dir" && as_dir=.
5213506e
RW
10423 for ac_exec_ext in '' $ac_executable_extensions; do
10424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10425 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10427 break 2
10428 fi
10429done
5213506e
RW
10430 done
10431IFS=$as_save_IFS
278a7a38
AO
10432
10433fi
10434fi
10435GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10436if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10438$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10439else
5213506e
RW
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441$as_echo "no" >&6; }
278a7a38
AO
10442fi
10443
5213506e 10444
278a7a38
AO
10445 done
10446fi
10447
10448if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10449 for ncn_progname in gcj; do
5213506e
RW
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10451$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10452 if test -x $with_build_time_tools/${ncn_progname}; then
10453 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10455$as_echo "yes" >&6; }
e8b05380
PB
10456 break
10457 else
5213506e
RW
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459$as_echo "no" >&6; }
e8b05380
PB
10460 fi
10461 done
10462fi
10463
10464if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10465 for ncn_progname in gcj; do
10466 if test -n "$ncn_target_tool_prefix"; then
10467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470$as_echo_n "checking for $ac_word... " >&6; }
10471if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10472 $as_echo_n "(cached) " >&6
e8b05380 10473else
fb0103e5
RG
10474 if test -n "$GCJ_FOR_TARGET"; then
10475 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10476else
1c710c3c
DJ
10477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478for as_dir in $PATH
10479do
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
5213506e
RW
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10484 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10486 break 2
10487 fi
10488done
5213506e
RW
10489 done
10490IFS=$as_save_IFS
1c710c3c 10491
e8b05380
PB
10492fi
10493fi
278a7a38
AO
10494GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10495if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10497$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10498else
5213506e
RW
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500$as_echo "no" >&6; }
278a7a38
AO
10501fi
10502
5213506e 10503
278a7a38
AO
10504 fi
10505 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10507set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509$as_echo_n "checking for $ac_word... " >&6; }
10510if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10511 $as_echo_n "(cached) " >&6
278a7a38
AO
10512else
10513 if test -n "$GCJ_FOR_TARGET"; then
10514 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10515else
10516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517for as_dir in $PATH
10518do
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
5213506e
RW
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10523 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10525 break 2
10526 fi
10527done
5213506e
RW
10528 done
10529IFS=$as_save_IFS
278a7a38
AO
10530
10531fi
10532fi
10533GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10534if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10536$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10537else
5213506e
RW
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539$as_echo "no" >&6; }
278a7a38
AO
10540fi
10541
5213506e 10542
278a7a38
AO
10543 fi
10544 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10545 done
10546fi
10547
10548if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10549 set dummy gcj
10550 if test $build = $target ; then
10551 GCJ_FOR_TARGET="$2"
10552 else
10553 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10554 fi
1c00b503
PB
10555else
10556 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10557fi
10558
10559
10560
10561if test -n "$GFORTRAN_FOR_TARGET"; then
10562 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10563elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10564 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10565fi
10566
278a7a38
AO
10567if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10568 for ncn_progname in gfortran; do
10569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10570set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572$as_echo_n "checking for $ac_word... " >&6; }
10573if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10574 $as_echo_n "(cached) " >&6
e8b05380 10575else
278a7a38
AO
10576 if test -n "$GFORTRAN_FOR_TARGET"; then
10577 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10578else
1c710c3c
DJ
10579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580for as_dir in $PATH
10581do
10582 IFS=$as_save_IFS
10583 test -z "$as_dir" && as_dir=.
5213506e
RW
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10586 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10588 break 2
10589 fi
10590done
5213506e
RW
10591 done
10592IFS=$as_save_IFS
1c710c3c 10593
e8b05380
PB
10594fi
10595fi
278a7a38
AO
10596GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10597if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10599$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10600else
5213506e
RW
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602$as_echo "no" >&6; }
e8b05380 10603fi
1c710c3c 10604
5213506e 10605
e8b05380
PB
10606 done
10607fi
1c710c3c 10608
278a7a38 10609if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10610 for ncn_progname in gfortran; do
5213506e
RW
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10612$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10613 if test -x $with_build_time_tools/${ncn_progname}; then
10614 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616$as_echo "yes" >&6; }
e8b05380
PB
10617 break
10618 else
5213506e
RW
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
e8b05380
PB
10621 fi
10622 done
10623fi
10624
10625if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10626 for ncn_progname in gfortran; do
10627 if test -n "$ncn_target_tool_prefix"; then
10628 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10629set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631$as_echo_n "checking for $ac_word... " >&6; }
10632if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10633 $as_echo_n "(cached) " >&6
e8b05380
PB
10634else
10635 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10636 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10637else
10638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639for as_dir in $PATH
10640do
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
5213506e
RW
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10645 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10647 break 2
10648 fi
10649done
5213506e
RW
10650 done
10651IFS=$as_save_IFS
1c710c3c 10652
e8b05380
PB
10653fi
10654fi
1c710c3c 10655GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10656if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10658$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10659else
5213506e
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661$as_echo "no" >&6; }
e8b05380
PB
10662fi
10663
5213506e 10664
e8b05380
PB
10665 fi
10666 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10668set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670$as_echo_n "checking for $ac_word... " >&6; }
10671if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
e8b05380
PB
10673else
10674 if test -n "$GFORTRAN_FOR_TARGET"; then
10675 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10676else
1c710c3c
DJ
10677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678for as_dir in $PATH
10679do
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
5213506e
RW
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10684 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10686 break 2
10687 fi
10688done
5213506e
RW
10689 done
10690IFS=$as_save_IFS
1c710c3c 10691
e8b05380
PB
10692fi
10693fi
1c710c3c 10694GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10695if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10697$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10698else
5213506e
RW
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700$as_echo "no" >&6; }
e8b05380 10701fi
1c710c3c 10702
5213506e 10703
e8b05380
PB
10704 fi
10705 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10706 done
10707fi
1c710c3c 10708
e8b05380
PB
10709if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10710 set dummy gfortran
2693c0b0 10711 if test $build = $target ; then
e8b05380 10712 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10713 else
e8b05380
PB
10714 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10715 fi
1c00b503
PB
10716else
10717 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10718fi
10719
10720
10721
632e2a07
ILT
10722if test -n "$GOC_FOR_TARGET"; then
10723 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10724elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10725 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10726fi
10727
10728if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10729 for ncn_progname in gccgo; do
10730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10731set dummy ${ncn_progname}; ac_word=$2
10732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733$as_echo_n "checking for $ac_word... " >&6; }
10734if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10736else
10737 if test -n "$GOC_FOR_TARGET"; then
10738 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10739else
10740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741for as_dir in $PATH
10742do
10743 IFS=$as_save_IFS
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10747 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 break 2
10750 fi
10751done
10752 done
10753IFS=$as_save_IFS
10754
10755fi
10756fi
10757GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10758if test -n "$GOC_FOR_TARGET"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10760$as_echo "$GOC_FOR_TARGET" >&6; }
10761else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763$as_echo "no" >&6; }
10764fi
10765
10766
10767 done
10768fi
10769
10770if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10771 for ncn_progname in gccgo; do
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10773$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10774 if test -x $with_build_time_tools/${ncn_progname}; then
10775 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10777$as_echo "yes" >&6; }
10778 break
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781$as_echo "no" >&6; }
10782 fi
10783 done
10784fi
10785
10786if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10787 for ncn_progname in gccgo; do
10788 if test -n "$ncn_target_tool_prefix"; then
10789 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10790set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792$as_echo_n "checking for $ac_word... " >&6; }
10793if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10795else
10796 if test -n "$GOC_FOR_TARGET"; then
10797 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10798else
10799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800for as_dir in $PATH
10801do
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 break 2
10809 fi
10810done
10811 done
10812IFS=$as_save_IFS
10813
10814fi
10815fi
10816GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10817if test -n "$GOC_FOR_TARGET"; then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10819$as_echo "$GOC_FOR_TARGET" >&6; }
10820else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822$as_echo "no" >&6; }
10823fi
10824
10825
10826 fi
10827 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10829set dummy ${ncn_progname}; ac_word=$2
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831$as_echo_n "checking for $ac_word... " >&6; }
10832if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834else
10835 if test -n "$GOC_FOR_TARGET"; then
10836 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10837else
10838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839for as_dir in $PATH
10840do
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10848 fi
10849done
10850 done
10851IFS=$as_save_IFS
10852
10853fi
10854fi
10855GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10856if test -n "$GOC_FOR_TARGET"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10858$as_echo "$GOC_FOR_TARGET" >&6; }
10859else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861$as_echo "no" >&6; }
10862fi
10863
10864
10865 fi
10866 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10867 done
10868fi
10869
10870if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10871 set dummy gccgo
10872 if test $build = $target ; then
10873 GOC_FOR_TARGET="$2"
10874 else
10875 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10876 fi
10877else
10878 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10879fi
10880
10881
10882
e8b05380
PB
10883cat > conftest.c << \EOF
10884#ifdef __GNUC__
10885 gcc_yay;
10886#endif
10887EOF
10888if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10889 have_gcc_for_target=yes
10890else
10891 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10892 have_gcc_for_target=no
10893fi
10894rm conftest.c
10895
10896
10897
10898
10899if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10900 if test -n "$with_build_time_tools"; then
5213506e
RW
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10902$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10903 if test -x $with_build_time_tools/ar; then
10904 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10905 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10907$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10908 else
5213506e
RW
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910$as_echo "no" >&6; }
d1f8db0c 10911 fi
e8b05380
PB
10912 elif test $build != $host && test $have_gcc_for_target = yes; then
10913 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10914 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10915 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10916 fi
10917fi
3e19841a 10918if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10919 # Extract the first word of "ar", so it can be a program name with args.
10920set dummy ar; ac_word=$2
5213506e
RW
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922$as_echo_n "checking for $ac_word... " >&6; }
10923if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
e8b05380 10925else
1c710c3c
DJ
10926 case $AR_FOR_TARGET in
10927 [\\/]* | ?:[\\/]*)
e8b05380
PB
10928 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10929 ;;
e8b05380 10930 *)
1c710c3c
DJ
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $gcc_cv_tool_dirs
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
5213506e
RW
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10938 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10940 break 2
10941 fi
10942done
5213506e
RW
10943 done
10944IFS=$as_save_IFS
1c710c3c 10945
e8b05380
PB
10946 ;;
10947esac
10948fi
1c710c3c 10949AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10950if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10952$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10953else
5213506e
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955$as_echo "no" >&6; }
4de997d1
PB
10956fi
10957
5213506e 10958
e8b05380
PB
10959fi
10960if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10961
10962
10963if test -n "$AR_FOR_TARGET"; then
10964 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10965elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10966 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10967fi
10968
10969if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10970 for ncn_progname in ar; do
10971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10972set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974$as_echo_n "checking for $ac_word... " >&6; }
10975if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
278a7a38
AO
10977else
10978 if test -n "$AR_FOR_TARGET"; then
10979 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10980else
10981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
5213506e
RW
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10988 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10990 break 2
10991 fi
10992done
5213506e
RW
10993 done
10994IFS=$as_save_IFS
278a7a38
AO
10995
10996fi
10997fi
10998AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10999if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11001$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11002else
5213506e
RW
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004$as_echo "no" >&6; }
278a7a38
AO
11005fi
11006
5213506e 11007
278a7a38
AO
11008 done
11009fi
11010
11011if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11012 for ncn_progname in ar; do
5213506e
RW
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11014$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11015 if test -x $with_build_time_tools/${ncn_progname}; then
11016 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018$as_echo "yes" >&6; }
e8b05380
PB
11019 break
11020 else
5213506e
RW
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022$as_echo "no" >&6; }
e8b05380
PB
11023 fi
11024 done
11025fi
11026
11027if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11028 for ncn_progname in ar; do
11029 if test -n "$ncn_target_tool_prefix"; then
11030 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11031set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033$as_echo_n "checking for $ac_word... " >&6; }
11034if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
4de997d1 11036else
e8b05380
PB
11037 if test -n "$AR_FOR_TARGET"; then
11038 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11039else
1c710c3c
DJ
11040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041for as_dir in $PATH
11042do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
5213506e
RW
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11047 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11049 break 2
11050 fi
11051done
5213506e
RW
11052 done
11053IFS=$as_save_IFS
1c710c3c 11054
4de997d1
PB
11055fi
11056fi
1c710c3c 11057AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11058if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11060$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11061else
5213506e
RW
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
4de997d1
PB
11064fi
11065
5213506e 11066
e8b05380
PB
11067 fi
11068 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072$as_echo_n "checking for $ac_word... " >&6; }
11073if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
e8b05380
PB
11075else
11076 if test -n "$AR_FOR_TARGET"; then
11077 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11078else
1c710c3c
DJ
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
5213506e
RW
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11086 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11088 break 2
11089 fi
11090done
5213506e
RW
11091 done
11092IFS=$as_save_IFS
1c710c3c 11093
e8b05380
PB
11094fi
11095fi
1c710c3c 11096AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11097if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11099$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11100else
5213506e
RW
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102$as_echo "no" >&6; }
e8b05380 11103fi
1c710c3c 11104
5213506e 11105
e8b05380
PB
11106 fi
11107 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11108 done
11109fi
1c710c3c 11110
e8b05380
PB
11111if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11112 set dummy ar
11113 if test $build = $target ; then
11114 AR_FOR_TARGET="$2"
11115 else
11116 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11117 fi
1c00b503
PB
11118else
11119 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11120fi
11121
d1f8db0c
PB
11122else
11123 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11124fi
11125
11126
11127
11128
11129if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11130 if test -n "$with_build_time_tools"; then
5213506e
RW
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11132$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11133 if test -x $with_build_time_tools/as; then
11134 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11135 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11137$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11138 else
5213506e
RW
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140$as_echo "no" >&6; }
d1f8db0c 11141 fi
e8b05380
PB
11142 elif test $build != $host && test $have_gcc_for_target = yes; then
11143 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11144 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11145 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11146 fi
11147fi
3e19841a 11148if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11149 # Extract the first word of "as", so it can be a program name with args.
11150set dummy as; ac_word=$2
5213506e
RW
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152$as_echo_n "checking for $ac_word... " >&6; }
11153if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
e8b05380 11155else
1c710c3c
DJ
11156 case $AS_FOR_TARGET in
11157 [\\/]* | ?:[\\/]*)
e8b05380
PB
11158 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11159 ;;
e8b05380 11160 *)
1c710c3c
DJ
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162for as_dir in $gcc_cv_tool_dirs
11163do
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
5213506e
RW
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11168 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11170 break 2
11171 fi
11172done
5213506e
RW
11173 done
11174IFS=$as_save_IFS
1c710c3c 11175
e8b05380
PB
11176 ;;
11177esac
11178fi
1c710c3c 11179AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11180if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11182$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11183else
5213506e
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185$as_echo "no" >&6; }
e8b05380
PB
11186fi
11187
5213506e 11188
e8b05380
PB
11189fi
11190if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11191
11192
11193if test -n "$AS_FOR_TARGET"; then
11194 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11195elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11196 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11197fi
11198
11199if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11200 for ncn_progname in as; do
11201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11202set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204$as_echo_n "checking for $ac_word... " >&6; }
11205if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
278a7a38
AO
11207else
11208 if test -n "$AS_FOR_TARGET"; then
11209 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11210else
11211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212for as_dir in $PATH
11213do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
5213506e
RW
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11218 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11220 break 2
11221 fi
11222done
5213506e
RW
11223 done
11224IFS=$as_save_IFS
278a7a38
AO
11225
11226fi
11227fi
11228AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11229if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11231$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11232else
5213506e
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
278a7a38
AO
11235fi
11236
5213506e 11237
278a7a38
AO
11238 done
11239fi
11240
11241if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11242 for ncn_progname in as; do
5213506e
RW
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11244$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11245 if test -x $with_build_time_tools/${ncn_progname}; then
11246 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11248$as_echo "yes" >&6; }
e8b05380
PB
11249 break
11250 else
5213506e
RW
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252$as_echo "no" >&6; }
e8b05380
PB
11253 fi
11254 done
11255fi
11256
11257if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11258 for ncn_progname in as; do
11259 if test -n "$ncn_target_tool_prefix"; then
11260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11261set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263$as_echo_n "checking for $ac_word... " >&6; }
11264if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
e8b05380
PB
11266else
11267 if test -n "$AS_FOR_TARGET"; then
11268 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11269else
1c710c3c
DJ
11270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271for as_dir in $PATH
11272do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
5213506e
RW
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11277 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11279 break 2
11280 fi
11281done
5213506e
RW
11282 done
11283IFS=$as_save_IFS
1c710c3c 11284
e8b05380
PB
11285fi
11286fi
1c710c3c 11287AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11288if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11290$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11291else
5213506e
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293$as_echo "no" >&6; }
e8b05380
PB
11294fi
11295
5213506e 11296
e8b05380
PB
11297 fi
11298 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11300set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302$as_echo_n "checking for $ac_word... " >&6; }
11303if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
4de997d1 11305else
e8b05380
PB
11306 if test -n "$AS_FOR_TARGET"; then
11307 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11308else
1c710c3c
DJ
11309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310for as_dir in $PATH
11311do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
5213506e
RW
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11316 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11318 break 2
11319 fi
11320done
5213506e
RW
11321 done
11322IFS=$as_save_IFS
1c710c3c 11323
4de997d1
PB
11324fi
11325fi
1c710c3c 11326AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11327if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11329$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11330else
5213506e
RW
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332$as_echo "no" >&6; }
4de997d1 11333fi
1c710c3c 11334
5213506e 11335
e8b05380
PB
11336 fi
11337 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11338 done
11339fi
1c710c3c 11340
e8b05380
PB
11341if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11342 set dummy as
11343 if test $build = $target ; then
11344 AS_FOR_TARGET="$2"
11345 else
11346 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11347 fi
1c00b503
PB
11348else
11349 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11350fi
2693c0b0 11351
d1f8db0c
PB
11352else
11353 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11354fi
11355
e8b05380
PB
11356
11357
11358
11359if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11360 if test -n "$with_build_time_tools"; then
5213506e
RW
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11362$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11363 if test -x $with_build_time_tools/dlltool; then
11364 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11365 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11367$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11368 else
5213506e
RW
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370$as_echo "no" >&6; }
d1f8db0c 11371 fi
e8b05380
PB
11372 elif test $build != $host && test $have_gcc_for_target = yes; then
11373 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11374 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11375 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11376 fi
11377fi
3e19841a 11378if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11379 # Extract the first word of "dlltool", so it can be a program name with args.
11380set dummy dlltool; ac_word=$2
5213506e
RW
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382$as_echo_n "checking for $ac_word... " >&6; }
11383if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
4de997d1 11385else
1c710c3c
DJ
11386 case $DLLTOOL_FOR_TARGET in
11387 [\\/]* | ?:[\\/]*)
e8b05380
PB
11388 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11389 ;;
e8b05380 11390 *)
1c710c3c
DJ
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $gcc_cv_tool_dirs
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
5213506e
RW
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11398 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11400 break 2
11401 fi
11402done
5213506e
RW
11403 done
11404IFS=$as_save_IFS
1c710c3c 11405
e8b05380
PB
11406 ;;
11407esac
4de997d1 11408fi
1c710c3c 11409DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11410if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11412$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11413else
5213506e
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415$as_echo "no" >&6; }
4de997d1
PB
11416fi
11417
5213506e 11418
e8b05380
PB
11419fi
11420if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11421
11422
11423if test -n "$DLLTOOL_FOR_TARGET"; then
11424 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11425elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11426 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11427fi
11428
11429if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11430 for ncn_progname in dlltool; do
11431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11432set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434$as_echo_n "checking for $ac_word... " >&6; }
11435if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
278a7a38
AO
11437else
11438 if test -n "$DLLTOOL_FOR_TARGET"; then
11439 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11440else
11441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
5213506e
RW
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11448 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11450 break 2
11451 fi
11452done
5213506e
RW
11453 done
11454IFS=$as_save_IFS
278a7a38
AO
11455
11456fi
11457fi
11458DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11459if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11461$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11462else
5213506e
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464$as_echo "no" >&6; }
278a7a38
AO
11465fi
11466
5213506e 11467
278a7a38
AO
11468 done
11469fi
11470
11471if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11472 for ncn_progname in dlltool; do
5213506e
RW
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11474$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11475 if test -x $with_build_time_tools/${ncn_progname}; then
11476 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11478$as_echo "yes" >&6; }
e8b05380
PB
11479 break
11480 else
5213506e
RW
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482$as_echo "no" >&6; }
e8b05380
PB
11483 fi
11484 done
11485fi
11486
11487if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11488 for ncn_progname in dlltool; do
11489 if test -n "$ncn_target_tool_prefix"; then
11490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11491set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493$as_echo_n "checking for $ac_word... " >&6; }
11494if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
4de997d1 11496else
e8b05380
PB
11497 if test -n "$DLLTOOL_FOR_TARGET"; then
11498 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11499else
1c710c3c
DJ
11500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501for as_dir in $PATH
11502do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
5213506e
RW
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11507 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11509 break 2
11510 fi
11511done
5213506e
RW
11512 done
11513IFS=$as_save_IFS
1c710c3c 11514
4de997d1
PB
11515fi
11516fi
1c710c3c 11517DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11518if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11520$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11521else
5213506e
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523$as_echo "no" >&6; }
4de997d1 11524fi
4de997d1 11525
5213506e 11526
e8b05380
PB
11527 fi
11528 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11530set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532$as_echo_n "checking for $ac_word... " >&6; }
11533if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
4de997d1 11535else
e8b05380
PB
11536 if test -n "$DLLTOOL_FOR_TARGET"; then
11537 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11538else
1c710c3c
DJ
11539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540for as_dir in $PATH
11541do
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
5213506e
RW
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11546 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11548 break 2
11549 fi
11550done
5213506e
RW
11551 done
11552IFS=$as_save_IFS
1c710c3c 11553
4de997d1
PB
11554fi
11555fi
1c710c3c 11556DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11557if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11559$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11560else
5213506e
RW
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562$as_echo "no" >&6; }
4de997d1 11563fi
1c710c3c 11564
5213506e 11565
e8b05380
PB
11566 fi
11567 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11568 done
11569fi
1c710c3c 11570
e8b05380
PB
11571if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11572 set dummy dlltool
11573 if test $build = $target ; then
11574 DLLTOOL_FOR_TARGET="$2"
11575 else
11576 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11577 fi
1c00b503
PB
11578else
11579 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11580fi
11581
d1f8db0c
PB
11582else
11583 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11584fi
11585
4de997d1 11586
e8b05380
PB
11587
11588
11589if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11590 if test -n "$with_build_time_tools"; then
5213506e
RW
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11592$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11593 if test -x $with_build_time_tools/ld; then
11594 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11595 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11597$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11598 else
5213506e
RW
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600$as_echo "no" >&6; }
d1f8db0c 11601 fi
e8b05380
PB
11602 elif test $build != $host && test $have_gcc_for_target = yes; then
11603 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11604 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11605 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11606 fi
e8b05380 11607fi
3e19841a 11608if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11609 # Extract the first word of "ld", so it can be a program name with args.
11610set dummy ld; ac_word=$2
5213506e
RW
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612$as_echo_n "checking for $ac_word... " >&6; }
11613if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
4de997d1 11615else
1c710c3c
DJ
11616 case $LD_FOR_TARGET in
11617 [\\/]* | ?:[\\/]*)
e8b05380
PB
11618 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11619 ;;
e8b05380 11620 *)
1c710c3c
DJ
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $gcc_cv_tool_dirs
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
5213506e
RW
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11628 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11630 break 2
11631 fi
11632done
5213506e
RW
11633 done
11634IFS=$as_save_IFS
1c710c3c 11635
e8b05380
PB
11636 ;;
11637esac
4de997d1 11638fi
1c710c3c 11639LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11640if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11642$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11643else
5213506e
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
4de997d1 11646fi
2693c0b0 11647
5213506e 11648
e8b05380
PB
11649fi
11650if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11651
11652
11653if test -n "$LD_FOR_TARGET"; then
11654 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11655elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11656 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11657fi
11658
11659if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11660 for ncn_progname in ld; do
11661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11662set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664$as_echo_n "checking for $ac_word... " >&6; }
11665if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
278a7a38
AO
11667else
11668 if test -n "$LD_FOR_TARGET"; then
11669 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11670else
11671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672for as_dir in $PATH
11673do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
5213506e
RW
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11678 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11680 break 2
11681 fi
11682done
5213506e
RW
11683 done
11684IFS=$as_save_IFS
278a7a38
AO
11685
11686fi
11687fi
11688LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11689if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11691$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11692else
5213506e
RW
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694$as_echo "no" >&6; }
278a7a38
AO
11695fi
11696
5213506e 11697
278a7a38
AO
11698 done
11699fi
11700
11701if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11702 for ncn_progname in ld; do
5213506e
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11704$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11705 if test -x $with_build_time_tools/${ncn_progname}; then
11706 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11708$as_echo "yes" >&6; }
e8b05380
PB
11709 break
11710 else
5213506e
RW
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712$as_echo "no" >&6; }
e8b05380
PB
11713 fi
11714 done
ca9f4b81
AO
11715fi
11716
e8b05380
PB
11717if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11718 for ncn_progname in ld; do
11719 if test -n "$ncn_target_tool_prefix"; then
11720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11721set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723$as_echo_n "checking for $ac_word... " >&6; }
11724if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
ca9f4b81 11726else
4de997d1
PB
11727 if test -n "$LD_FOR_TARGET"; then
11728 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11729else
1c710c3c
DJ
11730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731for as_dir in $PATH
11732do
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
5213506e
RW
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11737 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11739 break 2
11740 fi
11741done
5213506e
RW
11742 done
11743IFS=$as_save_IFS
1c710c3c 11744
ca9f4b81
AO
11745fi
11746fi
1c710c3c 11747LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11748if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11750$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11751else
5213506e
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
ca9f4b81
AO
11754fi
11755
5213506e 11756
e8b05380
PB
11757 fi
11758 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11760set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762$as_echo_n "checking for $ac_word... " >&6; }
11763if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
ca9f4b81 11765else
2693c0b0
PB
11766 if test -n "$LD_FOR_TARGET"; then
11767 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11768else
1c710c3c
DJ
11769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770for as_dir in $PATH
11771do
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
5213506e
RW
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11776 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11778 break 2
11779 fi
11780done
5213506e
RW
11781 done
11782IFS=$as_save_IFS
1c710c3c 11783
ca9f4b81
AO
11784fi
11785fi
1c710c3c 11786LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11787if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11789$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11790else
5213506e
RW
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792$as_echo "no" >&6; }
ca9f4b81 11793fi
1c710c3c 11794
5213506e 11795
e8b05380
PB
11796 fi
11797 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11798 done
11799fi
1c710c3c 11800
2693c0b0
PB
11801if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11802 set dummy ld
11803 if test $build = $target ; then
11804 LD_FOR_TARGET="$2"
ca9f4b81 11805 else
2693c0b0 11806 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11807 fi
1c00b503
PB
11808else
11809 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11810fi
11811
d1f8db0c
PB
11812else
11813 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11814fi
11815
11816
11817
11818
11819if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11820 if test -n "$with_build_time_tools"; then
5213506e
RW
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11822$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11823 if test -x $with_build_time_tools/lipo; then
11824 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11825 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11827$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11828 else
5213506e
RW
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830$as_echo "no" >&6; }
d1f8db0c 11831 fi
e8b05380
PB
11832 elif test $build != $host && test $have_gcc_for_target = yes; then
11833 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11834 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11835 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11836 fi
11837fi
278a7a38
AO
11838if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11839 # Extract the first word of "lipo", so it can be a program name with args.
11840set dummy lipo; ac_word=$2
5213506e
RW
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842$as_echo_n "checking for $ac_word... " >&6; }
11843if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
278a7a38
AO
11845else
11846 case $LIPO_FOR_TARGET in
11847 [\\/]* | ?:[\\/]*)
11848 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11849 ;;
11850 *)
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852for as_dir in $gcc_cv_tool_dirs
11853do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
5213506e
RW
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11858 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11860 break 2
11861 fi
11862done
5213506e
RW
11863 done
11864IFS=$as_save_IFS
278a7a38
AO
11865
11866 ;;
11867esac
11868fi
11869LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11870if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11872$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11873else
5213506e
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875$as_echo "no" >&6; }
278a7a38
AO
11876fi
11877
5213506e 11878
278a7a38
AO
11879fi
11880if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11881
11882
11883if test -n "$LIPO_FOR_TARGET"; then
11884 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11885elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11886 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11887fi
11888
11889if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11890 for ncn_progname in lipo; do
11891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11892set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894$as_echo_n "checking for $ac_word... " >&6; }
11895if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
e8b05380 11897else
278a7a38
AO
11898 if test -n "$LIPO_FOR_TARGET"; then
11899 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11900else
11901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902for as_dir in $PATH
1c710c3c
DJ
11903do
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
5213506e
RW
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11908 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11910 break 2
11911 fi
11912done
5213506e
RW
11913 done
11914IFS=$as_save_IFS
1c710c3c 11915
e8b05380 11916fi
278a7a38
AO
11917fi
11918LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11919if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11921$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11922else
5213506e
RW
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924$as_echo "no" >&6; }
e8b05380
PB
11925fi
11926
5213506e 11927
278a7a38 11928 done
e8b05380 11929fi
278a7a38
AO
11930
11931if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11932 for ncn_progname in lipo; do
5213506e
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11934$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11935 if test -x $with_build_time_tools/${ncn_progname}; then
11936 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938$as_echo "yes" >&6; }
e8b05380
PB
11939 break
11940 else
5213506e
RW
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942$as_echo "no" >&6; }
e8b05380
PB
11943 fi
11944 done
11945fi
11946
11947if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11948 for ncn_progname in lipo; do
11949 if test -n "$ncn_target_tool_prefix"; then
11950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11951set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953$as_echo_n "checking for $ac_word... " >&6; }
11954if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
040b1c5a
GK
11956else
11957 if test -n "$LIPO_FOR_TARGET"; then
11958 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11959else
1c710c3c
DJ
11960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961for as_dir in $PATH
11962do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
5213506e
RW
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11967 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11969 break 2
11970 fi
11971done
5213506e
RW
11972 done
11973IFS=$as_save_IFS
1c710c3c 11974
040b1c5a
GK
11975fi
11976fi
1c710c3c 11977LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11978if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11980$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11981else
5213506e
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
040b1c5a
GK
11984fi
11985
5213506e 11986
e8b05380
PB
11987 fi
11988 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11990set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992$as_echo_n "checking for $ac_word... " >&6; }
11993if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
040b1c5a
GK
11995else
11996 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11997 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11998else
1c710c3c
DJ
11999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000for as_dir in $PATH
12001do
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
5213506e
RW
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12006 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12008 break 2
12009 fi
12010done
5213506e
RW
12011 done
12012IFS=$as_save_IFS
1c710c3c 12013
040b1c5a
GK
12014fi
12015fi
1c710c3c 12016LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12017if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12019$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12020else
5213506e
RW
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022$as_echo "no" >&6; }
040b1c5a 12023fi
1c710c3c 12024
5213506e 12025
e8b05380
PB
12026 fi
12027 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12028 done
12029fi
1c710c3c 12030
040b1c5a
GK
12031if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12032 set dummy lipo
12033 if test $build = $target ; then
12034 LIPO_FOR_TARGET="$2"
12035 else
12036 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12037 fi
1c00b503
PB
12038else
12039 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12040fi
12041
d1f8db0c
PB
12042else
12043 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12044fi
12045
12046
12047
12048
12049if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12050 if test -n "$with_build_time_tools"; then
5213506e
RW
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12052$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12053 if test -x $with_build_time_tools/nm; then
12054 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12055 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12057$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12058 else
5213506e
RW
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060$as_echo "no" >&6; }
d1f8db0c 12061 fi
e8b05380
PB
12062 elif test $build != $host && test $have_gcc_for_target = yes; then
12063 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12064 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12065 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12066 fi
12067fi
3e19841a 12068if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12069 # Extract the first word of "nm", so it can be a program name with args.
12070set dummy nm; ac_word=$2
5213506e
RW
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072$as_echo_n "checking for $ac_word... " >&6; }
12073if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
e8b05380 12075else
1c710c3c
DJ
12076 case $NM_FOR_TARGET in
12077 [\\/]* | ?:[\\/]*)
e8b05380
PB
12078 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12079 ;;
e8b05380 12080 *)
1c710c3c
DJ
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $gcc_cv_tool_dirs
12083do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
5213506e
RW
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12088 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12090 break 2
12091 fi
12092done
5213506e
RW
12093 done
12094IFS=$as_save_IFS
1c710c3c 12095
e8b05380
PB
12096 ;;
12097esac
12098fi
1c710c3c 12099NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12100if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12102$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12103else
5213506e
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
e8b05380
PB
12106fi
12107
5213506e 12108
e8b05380
PB
12109fi
12110if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12111
12112
12113if test -n "$NM_FOR_TARGET"; then
12114 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12115elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12116 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12117fi
12118
12119if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12120 for ncn_progname in nm; do
12121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12122set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124$as_echo_n "checking for $ac_word... " >&6; }
12125if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
278a7a38
AO
12127else
12128 if test -n "$NM_FOR_TARGET"; then
12129 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12130else
12131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132for as_dir in $PATH
12133do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
5213506e
RW
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12138 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12140 break 2
12141 fi
12142done
5213506e
RW
12143 done
12144IFS=$as_save_IFS
278a7a38
AO
12145
12146fi
12147fi
12148NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12149if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12151$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12152else
5213506e
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154$as_echo "no" >&6; }
278a7a38
AO
12155fi
12156
5213506e 12157
278a7a38
AO
12158 done
12159fi
12160
12161if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12162 for ncn_progname in nm; do
5213506e
RW
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12164$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12165 if test -x $with_build_time_tools/${ncn_progname}; then
12166 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12168$as_echo "yes" >&6; }
e8b05380
PB
12169 break
12170 else
5213506e
RW
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172$as_echo "no" >&6; }
e8b05380
PB
12173 fi
12174 done
12175fi
12176
12177if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12178 for ncn_progname in nm; do
12179 if test -n "$ncn_target_tool_prefix"; then
12180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12181set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183$as_echo_n "checking for $ac_word... " >&6; }
12184if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
ca9f4b81 12186else
4de997d1
PB
12187 if test -n "$NM_FOR_TARGET"; then
12188 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12189else
1c710c3c
DJ
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
5213506e
RW
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12197 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12199 break 2
12200 fi
12201done
5213506e
RW
12202 done
12203IFS=$as_save_IFS
1c710c3c 12204
ca9f4b81
AO
12205fi
12206fi
1c710c3c 12207NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12208if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12210$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12211else
5213506e
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
ca9f4b81
AO
12214fi
12215
5213506e 12216
e8b05380
PB
12217 fi
12218 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12220set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
12223if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
ca9f4b81 12225else
2693c0b0
PB
12226 if test -n "$NM_FOR_TARGET"; then
12227 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12228else
1c710c3c
DJ
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
5213506e
RW
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12236 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12238 break 2
12239 fi
12240done
5213506e
RW
12241 done
12242IFS=$as_save_IFS
1c710c3c 12243
ca9f4b81
AO
12244fi
12245fi
1c710c3c 12246NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12247if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12249$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12250else
5213506e
RW
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
ca9f4b81 12253fi
1c710c3c 12254
5213506e 12255
e8b05380
PB
12256 fi
12257 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12258 done
12259fi
1c710c3c 12260
2693c0b0
PB
12261if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12262 set dummy nm
12263 if test $build = $target ; then
12264 NM_FOR_TARGET="$2"
ca9f4b81 12265 else
2693c0b0 12266 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12267 fi
1c00b503
PB
12268else
12269 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12270fi
12271
d1f8db0c
PB
12272else
12273 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12274fi
12275
12276
12277
12278
12279if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12280 if test -n "$with_build_time_tools"; then
5213506e
RW
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12282$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12283 if test -x $with_build_time_tools/objdump; then
12284 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12285 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12287$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12288 else
5213506e
RW
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290$as_echo "no" >&6; }
d1f8db0c 12291 fi
e8b05380
PB
12292 elif test $build != $host && test $have_gcc_for_target = yes; then
12293 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12294 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12295 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12296 fi
12297fi
3e19841a 12298if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12299 # Extract the first word of "objdump", so it can be a program name with args.
12300set dummy objdump; ac_word=$2
5213506e
RW
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302$as_echo_n "checking for $ac_word... " >&6; }
12303if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
e8b05380 12305else
1c710c3c
DJ
12306 case $OBJDUMP_FOR_TARGET in
12307 [\\/]* | ?:[\\/]*)
e8b05380
PB
12308 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12309 ;;
e8b05380 12310 *)
1c710c3c
DJ
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312for as_dir in $gcc_cv_tool_dirs
12313do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
5213506e
RW
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12318 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12320 break 2
12321 fi
12322done
5213506e
RW
12323 done
12324IFS=$as_save_IFS
1c710c3c 12325
e8b05380
PB
12326 ;;
12327esac
12328fi
1c710c3c 12329OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12330if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12332$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12333else
5213506e
RW
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335$as_echo "no" >&6; }
e8b05380
PB
12336fi
12337
5213506e 12338
e8b05380
PB
12339fi
12340if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12341
12342
12343if test -n "$OBJDUMP_FOR_TARGET"; then
12344 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12345elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12346 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12347fi
12348
12349if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12350 for ncn_progname in objdump; do
12351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12352set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354$as_echo_n "checking for $ac_word... " >&6; }
12355if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
278a7a38
AO
12357else
12358 if test -n "$OBJDUMP_FOR_TARGET"; then
12359 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12360else
12361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362for as_dir in $PATH
12363do
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
5213506e
RW
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12368 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12370 break 2
12371 fi
12372done
5213506e
RW
12373 done
12374IFS=$as_save_IFS
278a7a38
AO
12375
12376fi
12377fi
12378OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12379if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12381$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12382else
5213506e
RW
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
278a7a38
AO
12385fi
12386
5213506e 12387
278a7a38
AO
12388 done
12389fi
12390
12391if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12392 for ncn_progname in objdump; do
5213506e
RW
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12394$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12395 if test -x $with_build_time_tools/${ncn_progname}; then
12396 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398$as_echo "yes" >&6; }
e8b05380
PB
12399 break
12400 else
5213506e
RW
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402$as_echo "no" >&6; }
e8b05380
PB
12403 fi
12404 done
12405fi
12406
12407if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12408 for ncn_progname in objdump; do
12409 if test -n "$ncn_target_tool_prefix"; then
12410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12411set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413$as_echo_n "checking for $ac_word... " >&6; }
12414if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
d739199a
DJ
12416else
12417 if test -n "$OBJDUMP_FOR_TARGET"; then
12418 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12419else
1c710c3c
DJ
12420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421for as_dir in $PATH
12422do
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
5213506e
RW
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12427 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12429 break 2
12430 fi
12431done
5213506e
RW
12432 done
12433IFS=$as_save_IFS
1c710c3c 12434
d739199a
DJ
12435fi
12436fi
1c710c3c 12437OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12438if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12440$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12441else
5213506e
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
d739199a
DJ
12444fi
12445
5213506e 12446
e8b05380
PB
12447 fi
12448 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12450set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452$as_echo_n "checking for $ac_word... " >&6; }
12453if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
d739199a
DJ
12455else
12456 if test -n "$OBJDUMP_FOR_TARGET"; then
12457 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12458else
1c710c3c
DJ
12459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460for as_dir in $PATH
12461do
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
5213506e
RW
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12466 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12468 break 2
12469 fi
12470done
5213506e
RW
12471 done
12472IFS=$as_save_IFS
1c710c3c 12473
d739199a
DJ
12474fi
12475fi
1c710c3c 12476OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12477if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12479$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12480else
5213506e
RW
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482$as_echo "no" >&6; }
d739199a 12483fi
1c710c3c 12484
5213506e 12485
e8b05380
PB
12486 fi
12487 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12488 done
12489fi
1c710c3c 12490
d739199a
DJ
12491if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12492 set dummy objdump
12493 if test $build = $target ; then
12494 OBJDUMP_FOR_TARGET="$2"
12495 else
12496 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12497 fi
1c00b503
PB
12498else
12499 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12500fi
12501
d1f8db0c
PB
12502else
12503 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12504fi
12505
12506
12507
12508
12509if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12510 if test -n "$with_build_time_tools"; then
5213506e
RW
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12512$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12513 if test -x $with_build_time_tools/ranlib; then
12514 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12515 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12517$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12518 else
5213506e
RW
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520$as_echo "no" >&6; }
d1f8db0c 12521 fi
e8b05380
PB
12522 elif test $build != $host && test $have_gcc_for_target = yes; then
12523 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12524 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12525 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12526 fi
12527fi
3e19841a 12528if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12529 # Extract the first word of "ranlib", so it can be a program name with args.
12530set dummy ranlib; ac_word=$2
5213506e
RW
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12532$as_echo_n "checking for $ac_word... " >&6; }
12533if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
e8b05380 12535else
1c710c3c
DJ
12536 case $RANLIB_FOR_TARGET in
12537 [\\/]* | ?:[\\/]*)
e8b05380
PB
12538 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12539 ;;
e8b05380 12540 *)
1c710c3c
DJ
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542for as_dir in $gcc_cv_tool_dirs
12543do
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
5213506e
RW
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12548 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12550 break 2
12551 fi
12552done
5213506e
RW
12553 done
12554IFS=$as_save_IFS
1c710c3c 12555
e8b05380
PB
12556 ;;
12557esac
12558fi
1c710c3c 12559RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12560if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12562$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12563else
5213506e
RW
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565$as_echo "no" >&6; }
e8b05380
PB
12566fi
12567
5213506e 12568
e8b05380
PB
12569fi
12570if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12571
12572
12573if test -n "$RANLIB_FOR_TARGET"; then
12574 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12575elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12576 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12577fi
12578
12579if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12580 for ncn_progname in ranlib; do
12581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12582set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584$as_echo_n "checking for $ac_word... " >&6; }
12585if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
278a7a38
AO
12587else
12588 if test -n "$RANLIB_FOR_TARGET"; then
12589 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12590else
12591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592for as_dir in $PATH
12593do
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
5213506e
RW
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12598 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12600 break 2
12601 fi
12602done
5213506e
RW
12603 done
12604IFS=$as_save_IFS
278a7a38
AO
12605
12606fi
12607fi
12608RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12609if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12611$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12612else
5213506e
RW
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614$as_echo "no" >&6; }
278a7a38
AO
12615fi
12616
5213506e 12617
278a7a38
AO
12618 done
12619fi
12620
12621if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12622 for ncn_progname in ranlib; do
5213506e
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12624$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12625 if test -x $with_build_time_tools/${ncn_progname}; then
12626 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12628$as_echo "yes" >&6; }
e8b05380
PB
12629 break
12630 else
5213506e
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
e8b05380
PB
12633 fi
12634 done
12635fi
12636
12637if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12638 for ncn_progname in ranlib; do
12639 if test -n "$ncn_target_tool_prefix"; then
12640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12641set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643$as_echo_n "checking for $ac_word... " >&6; }
12644if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
ca9f4b81 12646else
4de997d1
PB
12647 if test -n "$RANLIB_FOR_TARGET"; then
12648 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12649else
1c710c3c
DJ
12650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651for as_dir in $PATH
12652do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
5213506e
RW
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12657 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12659 break 2
12660 fi
12661done
5213506e
RW
12662 done
12663IFS=$as_save_IFS
1c710c3c 12664
ca9f4b81
AO
12665fi
12666fi
1c710c3c 12667RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12668if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12670$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12671else
5213506e
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
ca9f4b81
AO
12674fi
12675
5213506e 12676
e8b05380
PB
12677 fi
12678 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12680set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682$as_echo_n "checking for $ac_word... " >&6; }
12683if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
ca9f4b81 12685else
2693c0b0
PB
12686 if test -n "$RANLIB_FOR_TARGET"; then
12687 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12688else
1c710c3c
DJ
12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690for as_dir in $PATH
12691do
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
5213506e
RW
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12696 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12698 break 2
12699 fi
12700done
5213506e
RW
12701 done
12702IFS=$as_save_IFS
1c710c3c 12703
ca9f4b81
AO
12704fi
12705fi
1c710c3c 12706RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12707if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12709$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12710else
5213506e
RW
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
ca9f4b81 12713fi
1c710c3c 12714
5213506e 12715
e8b05380
PB
12716 fi
12717 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12718 done
12719fi
1c710c3c 12720
e8b05380
PB
12721if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12722 set dummy ranlib
12723 if test $build = $target ; then
12724 RANLIB_FOR_TARGET="$2"
12725 else
12726 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12727 fi
1c00b503
PB
12728else
12729 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12730fi
2693c0b0 12731
d1f8db0c
PB
12732else
12733 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12734fi
12735
e8b05380
PB
12736
12737
12738
e7a82751
RM
12739if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12740 if test -n "$with_build_time_tools"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12742$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12743 if test -x $with_build_time_tools/readelf; then
12744 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12745 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12747$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750$as_echo "no" >&6; }
12751 fi
12752 elif test $build != $host && test $have_gcc_for_target = yes; then
12753 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12754 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12755 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12756 fi
12757fi
12758if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12759 # Extract the first word of "readelf", so it can be a program name with args.
12760set dummy readelf; ac_word=$2
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762$as_echo_n "checking for $ac_word... " >&6; }
12763if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12765else
12766 case $READELF_FOR_TARGET in
12767 [\\/]* | ?:[\\/]*)
12768 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12769 ;;
12770 *)
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772for as_dir in $gcc_cv_tool_dirs
12773do
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12781 fi
12782done
12783 done
12784IFS=$as_save_IFS
12785
12786 ;;
12787esac
12788fi
12789READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12790if test -n "$READELF_FOR_TARGET"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12792$as_echo "$READELF_FOR_TARGET" >&6; }
12793else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795$as_echo "no" >&6; }
12796fi
12797
12798
12799fi
12800if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12801
12802
12803if test -n "$READELF_FOR_TARGET"; then
12804 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12805elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12806 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12807fi
12808
12809if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12810 for ncn_progname in readelf; do
12811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12812set dummy ${ncn_progname}; ac_word=$2
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
12815if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12817else
12818 if test -n "$READELF_FOR_TARGET"; then
12819 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12820else
12821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in $PATH
12823do
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12828 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 break 2
12831 fi
12832done
12833 done
12834IFS=$as_save_IFS
12835
12836fi
12837fi
12838READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12839if test -n "$READELF_FOR_TARGET"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12841$as_echo "$READELF_FOR_TARGET" >&6; }
12842else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844$as_echo "no" >&6; }
12845fi
12846
12847
12848 done
12849fi
12850
12851if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12852 for ncn_progname in readelf; do
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12854$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12855 if test -x $with_build_time_tools/${ncn_progname}; then
12856 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12858$as_echo "yes" >&6; }
12859 break
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862$as_echo "no" >&6; }
12863 fi
12864 done
12865fi
12866
12867if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12868 for ncn_progname in readelf; do
12869 if test -n "$ncn_target_tool_prefix"; then
12870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12871set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873$as_echo_n "checking for $ac_word... " >&6; }
12874if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12876else
12877 if test -n "$READELF_FOR_TARGET"; then
12878 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12879else
12880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12890 fi
12891done
12892 done
12893IFS=$as_save_IFS
12894
12895fi
12896fi
12897READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12898if test -n "$READELF_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12900$as_echo "$READELF_FOR_TARGET" >&6; }
12901else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
12904fi
12905
12906
12907 fi
12908 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12910set dummy ${ncn_progname}; ac_word=$2
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912$as_echo_n "checking for $ac_word... " >&6; }
12913if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12915else
12916 if test -n "$READELF_FOR_TARGET"; then
12917 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12918else
12919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920for as_dir in $PATH
12921do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12926 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 break 2
12929 fi
12930done
12931 done
12932IFS=$as_save_IFS
12933
12934fi
12935fi
12936READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12937if test -n "$READELF_FOR_TARGET"; then
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12939$as_echo "$READELF_FOR_TARGET" >&6; }
12940else
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942$as_echo "no" >&6; }
12943fi
12944
12945
12946 fi
12947 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12948 done
12949fi
12950
12951if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12952 set dummy readelf
12953 if test $build = $target ; then
12954 READELF_FOR_TARGET="$2"
12955 else
12956 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12957 fi
12958else
12959 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12960fi
12961
12962else
12963 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12964fi
12965
12966
12967
12968
e8b05380
PB
12969if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12970 if test -n "$with_build_time_tools"; then
5213506e
RW
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12972$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12973 if test -x $with_build_time_tools/strip; then
12974 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12975 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12977$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12978 else
5213506e
RW
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980$as_echo "no" >&6; }
d1f8db0c 12981 fi
e8b05380
PB
12982 elif test $build != $host && test $have_gcc_for_target = yes; then
12983 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12984 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12985 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12986 fi
12987fi
3e19841a 12988if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12989 # Extract the first word of "strip", so it can be a program name with args.
12990set dummy strip; ac_word=$2
5213506e
RW
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992$as_echo_n "checking for $ac_word... " >&6; }
12993if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
e8b05380 12995else
1c710c3c
DJ
12996 case $STRIP_FOR_TARGET in
12997 [\\/]* | ?:[\\/]*)
e8b05380
PB
12998 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12999 ;;
e8b05380 13000 *)
1c710c3c
DJ
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002for as_dir in $gcc_cv_tool_dirs
13003do
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
5213506e
RW
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13008 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13010 break 2
13011 fi
13012done
5213506e
RW
13013 done
13014IFS=$as_save_IFS
1c710c3c 13015
e8b05380
PB
13016 ;;
13017esac
13018fi
1c710c3c 13019STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13020if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13022$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13023else
5213506e
RW
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
e8b05380
PB
13026fi
13027
5213506e 13028
e8b05380
PB
13029fi
13030if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13031
13032
13033if test -n "$STRIP_FOR_TARGET"; then
13034 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13035elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13036 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13037fi
13038
13039if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13040 for ncn_progname in strip; do
13041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13042set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044$as_echo_n "checking for $ac_word... " >&6; }
13045if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
278a7a38
AO
13047else
13048 if test -n "$STRIP_FOR_TARGET"; then
13049 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13050else
13051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052for as_dir in $PATH
13053do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
5213506e
RW
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13058 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13060 break 2
13061 fi
13062done
5213506e
RW
13063 done
13064IFS=$as_save_IFS
278a7a38
AO
13065
13066fi
13067fi
13068STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13069if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13071$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13072else
5213506e
RW
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074$as_echo "no" >&6; }
278a7a38
AO
13075fi
13076
5213506e 13077
278a7a38
AO
13078 done
13079fi
13080
13081if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13082 for ncn_progname in strip; do
5213506e
RW
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13084$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13085 if test -x $with_build_time_tools/${ncn_progname}; then
13086 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13088$as_echo "yes" >&6; }
e8b05380
PB
13089 break
13090 else
5213506e
RW
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092$as_echo "no" >&6; }
e8b05380
PB
13093 fi
13094 done
13095fi
13096
13097if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13098 for ncn_progname in strip; do
13099 if test -n "$ncn_target_tool_prefix"; then
13100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13101set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103$as_echo_n "checking for $ac_word... " >&6; }
13104if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
af71363e
AS
13106else
13107 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13108 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13109else
13110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111for as_dir in $PATH
13112do
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
5213506e
RW
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13117 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13119 break 2
13120 fi
13121done
5213506e
RW
13122 done
13123IFS=$as_save_IFS
1c710c3c 13124
040b1c5a
GK
13125fi
13126fi
1c710c3c 13127STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13128if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13130$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13131else
5213506e
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133$as_echo "no" >&6; }
040b1c5a
GK
13134fi
13135
5213506e 13136
e8b05380
PB
13137 fi
13138 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13140set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142$as_echo_n "checking for $ac_word... " >&6; }
13143if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
040b1c5a
GK
13145else
13146 if test -n "$STRIP_FOR_TARGET"; then
13147 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13148else
1c710c3c
DJ
13149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150for as_dir in $PATH
13151do
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
5213506e
RW
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13156 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13158 break 2
13159 fi
13160done
5213506e
RW
13161 done
13162IFS=$as_save_IFS
1c710c3c 13163
040b1c5a
GK
13164fi
13165fi
1c710c3c 13166STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13167if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13169$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13170else
5213506e
RW
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172$as_echo "no" >&6; }
040b1c5a 13173fi
1c710c3c 13174
5213506e 13175
e8b05380
PB
13176 fi
13177 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13178 done
13179fi
1c710c3c 13180
040b1c5a
GK
13181if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13182 set dummy strip
13183 if test $build = $target ; then
13184 STRIP_FOR_TARGET="$2"
13185 else
13186 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13187 fi
1c00b503
PB
13188else
13189 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13190fi
13191
d1f8db0c
PB
13192else
13193 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13194fi
13195
13196
13197
13198
13199if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13200 if test -n "$with_build_time_tools"; then
5213506e
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13202$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13203 if test -x $with_build_time_tools/windres; then
13204 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13205 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13207$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13208 else
5213506e
RW
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210$as_echo "no" >&6; }
d1f8db0c 13211 fi
e8b05380
PB
13212 elif test $build != $host && test $have_gcc_for_target = yes; then
13213 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13214 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13215 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13216 fi
13217fi
3e19841a 13218if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13219 # Extract the first word of "windres", so it can be a program name with args.
13220set dummy windres; ac_word=$2
5213506e
RW
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222$as_echo_n "checking for $ac_word... " >&6; }
13223if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
e8b05380 13225else
1c710c3c
DJ
13226 case $WINDRES_FOR_TARGET in
13227 [\\/]* | ?:[\\/]*)
e8b05380
PB
13228 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13229 ;;
e8b05380 13230 *)
1c710c3c
DJ
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232for as_dir in $gcc_cv_tool_dirs
13233do
13234 IFS=$as_save_IFS
13235 test -z "$as_dir" && as_dir=.
5213506e
RW
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13238 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13240 break 2
13241 fi
13242done
5213506e
RW
13243 done
13244IFS=$as_save_IFS
1c710c3c 13245
e8b05380
PB
13246 ;;
13247esac
13248fi
1c710c3c 13249WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13250if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13252$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13253else
5213506e
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
e8b05380
PB
13256fi
13257
5213506e 13258
e8b05380
PB
13259fi
13260if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13261
13262
13263if test -n "$WINDRES_FOR_TARGET"; then
13264 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13265elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13266 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13267fi
13268
13269if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13270 for ncn_progname in windres; do
13271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13272set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274$as_echo_n "checking for $ac_word... " >&6; }
13275if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
278a7a38
AO
13277else
13278 if test -n "$WINDRES_FOR_TARGET"; then
13279 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13280else
13281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282for as_dir in $PATH
13283do
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
5213506e
RW
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13288 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13290 break 2
13291 fi
13292done
5213506e
RW
13293 done
13294IFS=$as_save_IFS
278a7a38
AO
13295
13296fi
13297fi
13298WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13299if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13301$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13302else
5213506e
RW
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304$as_echo "no" >&6; }
278a7a38
AO
13305fi
13306
5213506e 13307
278a7a38
AO
13308 done
13309fi
13310
13311if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13312 for ncn_progname in windres; do
5213506e
RW
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13314$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13315 if test -x $with_build_time_tools/${ncn_progname}; then
13316 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13318$as_echo "yes" >&6; }
e8b05380
PB
13319 break
13320 else
5213506e
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322$as_echo "no" >&6; }
e8b05380
PB
13323 fi
13324 done
13325fi
13326
13327if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13328 for ncn_progname in windres; do
13329 if test -n "$ncn_target_tool_prefix"; then
13330 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13331set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333$as_echo_n "checking for $ac_word... " >&6; }
13334if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13335 $as_echo_n "(cached) " >&6
ca9f4b81 13336else
4de997d1
PB
13337 if test -n "$WINDRES_FOR_TARGET"; then
13338 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13339else
1c710c3c
DJ
13340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341for as_dir in $PATH
13342do
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
5213506e
RW
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13347 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13349 break 2
13350 fi
13351done
5213506e
RW
13352 done
13353IFS=$as_save_IFS
1c710c3c 13354
ca9f4b81
AO
13355fi
13356fi
1c710c3c 13357WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13358if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13360$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13361else
5213506e
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363$as_echo "no" >&6; }
ca9f4b81
AO
13364fi
13365
5213506e 13366
e8b05380
PB
13367 fi
13368 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13370set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372$as_echo_n "checking for $ac_word... " >&6; }
13373if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
ca9f4b81 13375else
2693c0b0
PB
13376 if test -n "$WINDRES_FOR_TARGET"; then
13377 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13378else
1c710c3c
DJ
13379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380for as_dir in $PATH
13381do
13382 IFS=$as_save_IFS
13383 test -z "$as_dir" && as_dir=.
5213506e
RW
13384 for ac_exec_ext in '' $ac_executable_extensions; do
13385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13386 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13388 break 2
13389 fi
13390done
5213506e
RW
13391 done
13392IFS=$as_save_IFS
1c710c3c 13393
ca9f4b81
AO
13394fi
13395fi
1c710c3c 13396WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13397if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13399$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13400else
5213506e
RW
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402$as_echo "no" >&6; }
ca9f4b81 13403fi
1c710c3c 13404
5213506e 13405
e8b05380
PB
13406 fi
13407 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13408 done
13409fi
1c710c3c 13410
2693c0b0
PB
13411if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13412 set dummy windres
13413 if test $build = $target ; then
13414 WINDRES_FOR_TARGET="$2"
ca9f4b81 13415 else
2693c0b0 13416 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13417 fi
1c00b503
PB
13418else
13419 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13420fi
13421
d1f8db0c
PB
13422else
13423 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13424fi
13425
4977bab6 13426
901119ae
KT
13427
13428
13429if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13430 if test -n "$with_build_time_tools"; then
5213506e
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13432$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13433 if test -x $with_build_time_tools/windmc; then
13434 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13435 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13437$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13438 else
5213506e
RW
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440$as_echo "no" >&6; }
901119ae
KT
13441 fi
13442 elif test $build != $host && test $have_gcc_for_target = yes; then
13443 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13444 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13445 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13446 fi
13447fi
13448if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13449 # Extract the first word of "windmc", so it can be a program name with args.
13450set dummy windmc; ac_word=$2
5213506e
RW
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452$as_echo_n "checking for $ac_word... " >&6; }
13453if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
901119ae
KT
13455else
13456 case $WINDMC_FOR_TARGET in
13457 [\\/]* | ?:[\\/]*)
13458 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13459 ;;
13460 *)
13461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13462for as_dir in $gcc_cv_tool_dirs
13463do
13464 IFS=$as_save_IFS
13465 test -z "$as_dir" && as_dir=.
5213506e
RW
13466 for ac_exec_ext in '' $ac_executable_extensions; do
13467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13468 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13470 break 2
13471 fi
13472done
5213506e
RW
13473 done
13474IFS=$as_save_IFS
901119ae
KT
13475
13476 ;;
13477esac
13478fi
13479WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13480if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13482$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13483else
5213506e
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485$as_echo "no" >&6; }
901119ae
KT
13486fi
13487
5213506e 13488
901119ae
KT
13489fi
13490if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13491
13492
13493if test -n "$WINDMC_FOR_TARGET"; then
13494 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13495elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13496 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13497fi
13498
13499if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13500 for ncn_progname in windmc; do
13501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13502set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504$as_echo_n "checking for $ac_word... " >&6; }
13505if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
901119ae
KT
13507else
13508 if test -n "$WINDMC_FOR_TARGET"; then
13509 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13510else
13511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512for as_dir in $PATH
13513do
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
5213506e
RW
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13518 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13520 break 2
13521 fi
13522done
5213506e
RW
13523 done
13524IFS=$as_save_IFS
901119ae
KT
13525
13526fi
13527fi
13528WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13529if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13531$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13532else
5213506e
RW
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534$as_echo "no" >&6; }
901119ae
KT
13535fi
13536
5213506e 13537
901119ae
KT
13538 done
13539fi
13540
13541if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13542 for ncn_progname in windmc; do
5213506e
RW
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13544$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13545 if test -x $with_build_time_tools/${ncn_progname}; then
13546 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13548$as_echo "yes" >&6; }
901119ae
KT
13549 break
13550 else
5213506e
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552$as_echo "no" >&6; }
901119ae
KT
13553 fi
13554 done
13555fi
13556
13557if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13558 for ncn_progname in windmc; do
13559 if test -n "$ncn_target_tool_prefix"; then
13560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13561set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563$as_echo_n "checking for $ac_word... " >&6; }
13564if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
901119ae
KT
13566else
13567 if test -n "$WINDMC_FOR_TARGET"; then
13568 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13569else
13570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571for as_dir in $PATH
13572do
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
5213506e
RW
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13577 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13579 break 2
13580 fi
13581done
5213506e
RW
13582 done
13583IFS=$as_save_IFS
901119ae
KT
13584
13585fi
13586fi
13587WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13588if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13590$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13591else
5213506e
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593$as_echo "no" >&6; }
901119ae
KT
13594fi
13595
5213506e 13596
901119ae
KT
13597 fi
13598 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13600set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602$as_echo_n "checking for $ac_word... " >&6; }
13603if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
901119ae
KT
13605else
13606 if test -n "$WINDMC_FOR_TARGET"; then
13607 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13608else
13609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610for as_dir in $PATH
13611do
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
5213506e
RW
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13616 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13618 break 2
13619 fi
13620done
5213506e
RW
13621 done
13622IFS=$as_save_IFS
901119ae
KT
13623
13624fi
13625fi
13626WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13627if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13629$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13630else
5213506e
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632$as_echo "no" >&6; }
901119ae
KT
13633fi
13634
5213506e 13635
901119ae
KT
13636 fi
13637 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13638 done
13639fi
13640
13641if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13642 set dummy windmc
13643 if test $build = $target ; then
13644 WINDMC_FOR_TARGET="$2"
13645 else
13646 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13647 fi
1c00b503
PB
13648else
13649 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13650fi
13651
13652else
13653 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13654fi
13655
13656
2abefe3d
PB
13657RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13658
5213506e
RW
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13660$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13661if test "x${build}" != "x${host}" ; then
e8b05380
PB
13662 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13663 # We already found the complete path
172e41aa 13664 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13666$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13667 else
13668 # Canadian cross, just use what we found
5213506e
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13670$as_echo "pre-installed" >&6; }
e8b05380 13671 fi
2abefe3d
PB
13672else
13673 ok=yes
13674 case " ${configdirs} " in
13675 *" binutils "*) ;;
13676 *) ok=no ;;
13677 esac
1c710c3c 13678
2abefe3d
PB
13679 if test $ok = yes; then
13680 # An in-tree tool is available and we can use it
13681 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13683$as_echo "just compiled" >&6; }
e8b05380
PB
13684 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13685 # We already found the complete path
172e41aa 13686 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13688$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13689 elif test "x$target" = "x$host"; then
13690 # We can use an host tool
13691 AR_FOR_TARGET='$(AR)'
5213506e
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13693$as_echo "host tool" >&6; }
2abefe3d
PB
13694 else
13695 # We need a cross tool
5213506e
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697$as_echo "pre-installed" >&6; }
2abefe3d
PB
13698 fi
13699fi
0b0dc272 13700
5213506e
RW
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13702$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13703if test "x${build}" != "x${host}" ; then
e8b05380
PB
13704 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13705 # We already found the complete path
172e41aa 13706 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13708$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13709 else
13710 # Canadian cross, just use what we found
5213506e
RW
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13712$as_echo "pre-installed" >&6; }
e8b05380 13713 fi
2abefe3d
PB
13714else
13715 ok=yes
13716 case " ${configdirs} " in
13717 *" gas "*) ;;
13718 *) ok=no ;;
13719 esac
1c710c3c 13720
2abefe3d
PB
13721 if test $ok = yes; then
13722 # An in-tree tool is available and we can use it
13723 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13725$as_echo "just compiled" >&6; }
e8b05380
PB
13726 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
172e41aa 13728 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13731 elif test "x$target" = "x$host"; then
13732 # We can use an host tool
13733 AS_FOR_TARGET='$(AS)'
5213506e
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13735$as_echo "host tool" >&6; }
2abefe3d
PB
13736 else
13737 # We need a cross tool
5213506e
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13739$as_echo "pre-installed" >&6; }
2abefe3d
PB
13740 fi
13741fi
0b0dc272 13742
5213506e
RW
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13744$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13745if test "x${build}" != "x${host}" ; then
e8b05380
PB
13746 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13747 # We already found the complete path
172e41aa 13748 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13750$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13751 else
13752 # Canadian cross, just use what we found
5213506e
RW
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13754$as_echo "pre-installed" >&6; }
e8b05380 13755 fi
2abefe3d
PB
13756else
13757 ok=yes
13758 case " ${configdirs} " in
13759 *" gcc "*) ;;
13760 *) ok=no ;;
13761 esac
1c710c3c 13762
2abefe3d
PB
13763 if test $ok = yes; then
13764 # An in-tree tool is available and we can use it
13765 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13767$as_echo "just compiled" >&6; }
e8b05380
PB
13768 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
172e41aa 13770 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13773 elif test "x$target" = "x$host"; then
13774 # We can use an host tool
13775 CC_FOR_TARGET='$(CC)'
5213506e
RW
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13777$as_echo "host tool" >&6; }
2abefe3d
PB
13778 else
13779 # We need a cross tool
5213506e
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13781$as_echo "pre-installed" >&6; }
2abefe3d
PB
13782 fi
13783fi
0b0dc272 13784
5213506e
RW
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13786$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13787if test "x${build}" != "x${host}" ; then
e8b05380
PB
13788 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13789 # We already found the complete path
172e41aa 13790 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13792$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13793 else
13794 # Canadian cross, just use what we found
5213506e
RW
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13796$as_echo "pre-installed" >&6; }
e8b05380 13797 fi
2abefe3d
PB
13798else
13799 ok=yes
13800 case " ${configdirs} " in
13801 *" gcc "*) ;;
13802 *) ok=no ;;
13803 esac
13804 case ,${enable_languages}, in
13805 *,c++,*) ;;
13806 *) ok=no ;;
13807 esac
13808 if test $ok = yes; then
13809 # An in-tree tool is available and we can use it
2077db1b 13810 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
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13812$as_echo "just compiled" >&6; }
e8b05380
PB
13813 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13814 # We already found the complete path
172e41aa 13815 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13817$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13818 elif test "x$target" = "x$host"; then
13819 # We can use an host tool
13820 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13822$as_echo "host tool" >&6; }
2abefe3d
PB
13823 else
13824 # We need a cross tool
5213506e
RW
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13826$as_echo "pre-installed" >&6; }
2abefe3d
PB
13827 fi
13828fi
0b0dc272 13829
5213506e
RW
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13831$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13832if test "x${build}" != "x${host}" ; then
e8b05380
PB
13833 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13834 # We already found the complete path
172e41aa 13835 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13837$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13838 else
13839 # Canadian cross, just use what we found
5213506e
RW
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13841$as_echo "pre-installed" >&6; }
e8b05380 13842 fi
2abefe3d
PB
13843else
13844 ok=yes
13845 case " ${configdirs} " in
13846 *" gcc "*) ;;
13847 *) ok=no ;;
13848 esac
13849 case ,${enable_languages}, in
13850 *,c++,*) ;;
13851 *) ok=no ;;
13852 esac
13853 if test $ok = yes; then
13854 # An in-tree tool is available and we can use it
2077db1b 13855 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
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13857$as_echo "just compiled" >&6; }
e8b05380
PB
13858 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13859 # We already found the complete path
172e41aa 13860 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13862$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13863 elif test "x$target" = "x$host"; then
13864 # We can use an host tool
13865 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13867$as_echo "host tool" >&6; }
2abefe3d
PB
13868 else
13869 # We need a cross tool
5213506e
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13871$as_echo "pre-installed" >&6; }
2abefe3d
PB
13872 fi
13873fi
0b0dc272 13874
5213506e
RW
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13876$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13877if test "x${build}" != "x${host}" ; then
e8b05380
PB
13878 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13879 # We already found the complete path
172e41aa 13880 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13883 else
13884 # Canadian cross, just use what we found
5213506e
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13886$as_echo "pre-installed" >&6; }
e8b05380 13887 fi
2abefe3d
PB
13888else
13889 ok=yes
13890 case " ${configdirs} " in
13891 *" binutils "*) ;;
13892 *) ok=no ;;
13893 esac
1c710c3c 13894
2abefe3d
PB
13895 if test $ok = yes; then
13896 # An in-tree tool is available and we can use it
13897 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13899$as_echo "just compiled" >&6; }
e8b05380
PB
13900 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13901 # We already found the complete path
172e41aa 13902 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13904$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13905 elif test "x$target" = "x$host"; then
13906 # We can use an host tool
13907 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13909$as_echo "host tool" >&6; }
2abefe3d
PB
13910 else
13911 # We need a cross tool
5213506e
RW
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13913$as_echo "pre-installed" >&6; }
2abefe3d
PB
13914 fi
13915fi
0b0dc272 13916
5213506e
RW
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13918$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13919if test "x${build}" != "x${host}" ; then
e8b05380
PB
13920 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13921 # We already found the complete path
172e41aa 13922 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13925 else
13926 # Canadian cross, just use what we found
5213506e
RW
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13928$as_echo "pre-installed" >&6; }
e8b05380 13929 fi
2abefe3d
PB
13930else
13931 ok=yes
13932 case " ${configdirs} " in
13933 *" gcc "*) ;;
13934 *) ok=no ;;
13935 esac
1c710c3c 13936
2abefe3d
PB
13937 if test $ok = yes; then
13938 # An in-tree tool is available and we can use it
13939 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13941$as_echo "just compiled" >&6; }
e8b05380
PB
13942 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13943 # We already found the complete path
172e41aa 13944 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13946$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13947 elif test "x$target" = "x$host"; then
13948 # We can use an host tool
13949 GCC_FOR_TARGET='$()'
5213506e
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13951$as_echo "host tool" >&6; }
2abefe3d
PB
13952 else
13953 # We need a cross tool
5213506e
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13955$as_echo "pre-installed" >&6; }
2abefe3d
PB
13956 fi
13957fi
0b0dc272 13958
5213506e
RW
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13960$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13961if test "x${build}" != "x${host}" ; then
e8b05380
PB
13962 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
172e41aa 13964 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13967 else
13968 # Canadian cross, just use what we found
5213506e
RW
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970$as_echo "pre-installed" >&6; }
e8b05380 13971 fi
2abefe3d
PB
13972else
13973 ok=yes
13974 case " ${configdirs} " in
13975 *" gcc "*) ;;
13976 *) ok=no ;;
13977 esac
13978 case ,${enable_languages}, in
13979 *,java,*) ;;
13980 *) ok=no ;;
13981 esac
13982 if test $ok = yes; then
13983 # An in-tree tool is available and we can use it
13984 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13986$as_echo "just compiled" >&6; }
e8b05380
PB
13987 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13988 # We already found the complete path
172e41aa 13989 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13991$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13992 elif test "x$target" = "x$host"; then
13993 # We can use an host tool
13994 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13996$as_echo "host tool" >&6; }
2abefe3d
PB
13997 else
13998 # We need a cross tool
5213506e
RW
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14000$as_echo "pre-installed" >&6; }
2abefe3d
PB
14001 fi
14002fi
0b0dc272 14003
5213506e
RW
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14005$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14006if test "x${build}" != "x${host}" ; then
e8b05380
PB
14007 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
172e41aa 14009 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14012 else
14013 # Canadian cross, just use what we found
5213506e
RW
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015$as_echo "pre-installed" >&6; }
e8b05380 14016 fi
2abefe3d
PB
14017else
14018 ok=yes
14019 case " ${configdirs} " in
14020 *" gcc "*) ;;
14021 *) ok=no ;;
14022 esac
14023 case ,${enable_languages}, in
14024 *,fortran,*) ;;
14025 *) ok=no ;;
14026 esac
14027 if test $ok = yes; then
14028 # An in-tree tool is available and we can use it
14029 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14031$as_echo "just compiled" >&6; }
e8b05380
PB
14032 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14033 # We already found the complete path
172e41aa 14034 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14036$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14037 elif test "x$target" = "x$host"; then
14038 # We can use an host tool
14039 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14041$as_echo "host tool" >&6; }
2abefe3d
PB
14042 else
14043 # We need a cross tool
5213506e
RW
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14045$as_echo "pre-installed" >&6; }
2abefe3d
PB
14046 fi
14047fi
0b0dc272 14048
632e2a07
ILT
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14050$as_echo_n "checking where to find the target gccgo... " >&6; }
14051if test "x${build}" != "x${host}" ; then
14052 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
14054 ac_dir=`dirname $GOC_FOR_TARGET`
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056$as_echo "pre-installed in $ac_dir" >&6; }
14057 else
14058 # Canadian cross, just use what we found
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060$as_echo "pre-installed" >&6; }
14061 fi
14062else
14063 ok=yes
14064 case " ${configdirs} " in
14065 *" gcc "*) ;;
14066 *) ok=no ;;
14067 esac
14068 case ,${enable_languages}, in
14069 *,go,*) ;;
14070 *) ok=no ;;
14071 esac
14072 if test $ok = yes; then
14073 # An in-tree tool is available and we can use it
14074 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076$as_echo "just compiled" >&6; }
14077 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
14079 ac_dir=`dirname $GOC_FOR_TARGET`
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081$as_echo "pre-installed in $ac_dir" >&6; }
14082 elif test "x$target" = "x$host"; then
14083 # We can use an host tool
14084 GOC_FOR_TARGET='$(GOC)'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086$as_echo "host tool" >&6; }
14087 else
14088 # We need a cross tool
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090$as_echo "pre-installed" >&6; }
14091 fi
14092fi
14093
5213506e
RW
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14095$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14096if test "x${build}" != "x${host}" ; then
e8b05380
PB
14097 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
172e41aa 14099 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14102 else
14103 # Canadian cross, just use what we found
5213506e
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105$as_echo "pre-installed" >&6; }
e8b05380 14106 fi
2abefe3d
PB
14107else
14108 ok=yes
14109 case " ${configdirs} " in
14110 *" ld "*) ;;
14111 *) ok=no ;;
14112 esac
1c710c3c 14113
2abefe3d
PB
14114 if test $ok = yes; then
14115 # An in-tree tool is available and we can use it
14116 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118$as_echo "just compiled" >&6; }
e8b05380
PB
14119 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
172e41aa 14121 ac_dir=`dirname $LD_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; }
2abefe3d
PB
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 LD_FOR_TARGET='$(LD)'
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 lipo" >&5
14137$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14138if test "x${build}" != "x${host}" ; then
e8b05380
PB
14139 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
172e41aa 14141 ac_dir=`dirname $LIPO_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 14149else
e8b05380
PB
14150 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
172e41aa 14152 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14154$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14155 elif test "x$target" = "x$host"; then
2abefe3d
PB
14156 # We can use an host tool
14157 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14159$as_echo "host tool" >&6; }
2abefe3d
PB
14160 else
14161 # We need a cross tool
5213506e
RW
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163$as_echo "pre-installed" >&6; }
2abefe3d
PB
14164 fi
14165fi
0b0dc272 14166
5213506e
RW
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14168$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14169if test "x${build}" != "x${host}" ; then
e8b05380
PB
14170 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
172e41aa 14172 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14175 else
14176 # Canadian cross, just use what we found
5213506e
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178$as_echo "pre-installed" >&6; }
e8b05380 14179 fi
2abefe3d
PB
14180else
14181 ok=yes
14182 case " ${configdirs} " in
14183 *" binutils "*) ;;
14184 *) ok=no ;;
14185 esac
1c710c3c 14186
2abefe3d
PB
14187 if test $ok = yes; then
14188 # An in-tree tool is available and we can use it
14189 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14191$as_echo "just compiled" >&6; }
e8b05380
PB
14192 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14193 # We already found the complete path
172e41aa 14194 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14196$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14197 elif test "x$target" = "x$host"; then
14198 # We can use an host tool
14199 NM_FOR_TARGET='$(NM)'
5213506e
RW
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14201$as_echo "host tool" >&6; }
2abefe3d
PB
14202 else
14203 # We need a cross tool
5213506e
RW
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205$as_echo "pre-installed" >&6; }
2abefe3d
PB
14206 fi
14207fi
0b0dc272 14208
5213506e
RW
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14210$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14211if test "x${build}" != "x${host}" ; then
e8b05380
PB
14212 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
172e41aa 14214 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14217 else
14218 # Canadian cross, just use what we found
5213506e
RW
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220$as_echo "pre-installed" >&6; }
e8b05380 14221 fi
2abefe3d
PB
14222else
14223 ok=yes
14224 case " ${configdirs} " in
14225 *" binutils "*) ;;
14226 *) ok=no ;;
14227 esac
1c710c3c 14228
2abefe3d
PB
14229 if test $ok = yes; then
14230 # An in-tree tool is available and we can use it
14231 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14233$as_echo "just compiled" >&6; }
e8b05380
PB
14234 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
172e41aa 14236 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14239 elif test "x$target" = "x$host"; then
14240 # We can use an host tool
14241 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243$as_echo "host tool" >&6; }
2abefe3d
PB
14244 else
14245 # We need a cross tool
5213506e
RW
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247$as_echo "pre-installed" >&6; }
2abefe3d
PB
14248 fi
14249fi
0b0dc272 14250
5213506e
RW
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14252$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14253if test "x${build}" != "x${host}" ; then
e8b05380
PB
14254 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
172e41aa 14256 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14259 else
14260 # Canadian cross, just use what we found
5213506e
RW
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262$as_echo "pre-installed" >&6; }
e8b05380 14263 fi
2abefe3d
PB
14264else
14265 ok=yes
14266 case " ${configdirs} " in
14267 *" binutils "*) ;;
14268 *) ok=no ;;
14269 esac
1c710c3c 14270
2abefe3d
PB
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275$as_echo "just compiled" >&6; }
e8b05380
PB
14276 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
172e41aa 14278 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285$as_echo "host tool" >&6; }
2abefe3d
PB
14286 else
14287 # We need a cross tool
5213506e
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289$as_echo "pre-installed" >&6; }
2abefe3d
PB
14290 fi
14291fi
0b0dc272 14292
e7a82751
RM
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14294$as_echo_n "checking where to find the target readelf... " >&6; }
14295if test "x${build}" != "x${host}" ; then
14296 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $READELF_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300$as_echo "pre-installed in $ac_dir" >&6; }
14301 else
14302 # Canadian cross, just use what we found
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304$as_echo "pre-installed" >&6; }
14305 fi
14306else
14307 ok=yes
14308 case " ${configdirs} " in
14309 *" binutils "*) ;;
14310 *) ok=no ;;
14311 esac
14312
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317$as_echo "just compiled" >&6; }
14318 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $READELF_FOR_TARGET`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322$as_echo "pre-installed in $ac_dir" >&6; }
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 READELF_FOR_TARGET='$(READELF)'
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327$as_echo "host tool" >&6; }
14328 else
14329 # We need a cross tool
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331$as_echo "pre-installed" >&6; }
14332 fi
14333fi
14334
5213506e
RW
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14336$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14337if test "x${build}" != "x${host}" ; then
e8b05380
PB
14338 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
172e41aa 14340 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14343 else
14344 # Canadian cross, just use what we found
5213506e
RW
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346$as_echo "pre-installed" >&6; }
e8b05380 14347 fi
2abefe3d
PB
14348else
14349 ok=yes
14350 case " ${configdirs} " in
14351 *" binutils "*) ;;
14352 *) ok=no ;;
14353 esac
1c710c3c 14354
2abefe3d
PB
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
455c8f48 14357 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359$as_echo "just compiled" >&6; }
e8b05380
PB
14360 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
172e41aa 14362 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14365 elif test "x$target" = "x$host"; then
14366 # We can use an host tool
14367 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14369$as_echo "host tool" >&6; }
2abefe3d
PB
14370 else
14371 # We need a cross tool
5213506e
RW
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373$as_echo "pre-installed" >&6; }
2abefe3d
PB
14374 fi
14375fi
0b0dc272 14376
5213506e
RW
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14378$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14379if test "x${build}" != "x${host}" ; then
e8b05380
PB
14380 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
172e41aa 14382 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14385 else
14386 # Canadian cross, just use what we found
5213506e
RW
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388$as_echo "pre-installed" >&6; }
e8b05380 14389 fi
2abefe3d
PB
14390else
14391 ok=yes
14392 case " ${configdirs} " in
14393 *" binutils "*) ;;
14394 *) ok=no ;;
14395 esac
1c710c3c 14396
2abefe3d
PB
14397 if test $ok = yes; then
14398 # An in-tree tool is available and we can use it
14399 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14401$as_echo "just compiled" >&6; }
e8b05380
PB
14402 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14403 # We already found the complete path
172e41aa 14404 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14407 elif test "x$target" = "x$host"; then
14408 # We can use an host tool
14409 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14411$as_echo "host tool" >&6; }
2abefe3d
PB
14412 else
14413 # We need a cross tool
5213506e
RW
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415$as_echo "pre-installed" >&6; }
2abefe3d 14416 fi
671aa708 14417fi
be912515 14418
5213506e
RW
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14420$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14421if test "x${build}" != "x${host}" ; then
14422 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
14424 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14427 else
14428 # Canadian cross, just use what we found
5213506e
RW
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430$as_echo "pre-installed" >&6; }
901119ae
KT
14431 fi
14432else
14433 ok=yes
14434 case " ${configdirs} " in
14435 *" binutils "*) ;;
14436 *) ok=no ;;
14437 esac
14438
14439 if test $ok = yes; then
14440 # An in-tree tool is available and we can use it
14441 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14443$as_echo "just compiled" >&6; }
901119ae
KT
14444 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14445 # We already found the complete path
14446 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14448$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14449 elif test "x$target" = "x$host"; then
14450 # We can use an host tool
14451 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14453$as_echo "host tool" >&6; }
901119ae
KT
14454 else
14455 # We need a cross tool
5213506e
RW
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14457$as_echo "pre-installed" >&6; }
901119ae
KT
14458 fi
14459fi
14460
be912515
NN
14461
14462
2abefe3d 14463
0b0dc272 14464
671aa708
NN
14465# Certain tools may need extra flags.
14466AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14467RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14468NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14469
2abefe3d
PB
14470# When building target libraries, except in a Canadian cross, we use
14471# the same toolchain as the compiler we just built.
14472COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14473COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14474COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14475if test $host = $build; then
14476 case " $configdirs " in
14477 *" gcc "*)
14478 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14479 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14480 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14481 ;;
14482 esac
14483fi
14484
14485
14486
14487
14488
5213506e
RW
14489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14490$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14491# Check whether --enable-maintainer-mode was given.
14492if test "${enable_maintainer_mode+set}" = set; then :
14493 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14494else
14495 USE_MAINTAINER_MODE=no
5213506e
RW
14496fi
14497
14498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14499$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14500
14501
14502if test "$USE_MAINTAINER_MODE" = yes; then
14503 MAINTAINER_MODE_TRUE=
14504 MAINTAINER_MODE_FALSE='#'
14505else
14506 MAINTAINER_MODE_TRUE='#'
14507 MAINTAINER_MODE_FALSE=
1c710c3c 14508fi
ee03dc5e
AO
14509MAINT=$MAINTAINER_MODE_TRUE
14510
2805b53a
NN
14511# ---------------------
14512# GCC bootstrap support
14513# ---------------------
14514
14515# Stage specific cflags for build.
14516stage1_cflags="-g"
14517case $build in
14518 vax-*-*)
14519 case ${GCC} in
14520 yes) stage1_cflags="-g -Wa,-J" ;;
14521 *) stage1_cflags="-g -J" ;;
14522 esac ;;
2805b53a
NN
14523esac
14524
0b50988a 14525
2805b53a 14526
8efea775 14527# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14528# Check whether --enable-stage1-checking was given.
14529if test "${enable_stage1_checking+set}" = set; then :
14530 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14531else
e643dc23 14532 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14533 stage1_checking=--enable-checking=yes,types
8efea775 14534else
e643dc23 14535 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14536fi
5213506e 14537fi
8efea775
PB
14538
14539
2aeb72e9 14540
5213506e
RW
14541# Enable -Werror in bootstrap stage2 and later.
14542# Check whether --enable-werror was given.
14543if test "${enable_werror+set}" = set; then :
14544 enableval=$enable_werror;
2805b53a 14545else
416cfb5e 14546 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14547 enable_werror=yes
88fceb68
PB
14548else
14549 enable_werror=no
14550fi
5213506e
RW
14551fi
14552
09a9c095
NN
14553case ${enable_werror} in
14554 yes) stage2_werror_flag="--enable-werror-always" ;;
14555 *) stage2_werror_flag="" ;;
2805b53a
NN
14556esac
14557
14558
459260ec
DM
14559# Enable --enable-host-shared.
14560# Check whether --enable-host-shared was given.
14561if test "${enable_host_shared+set}" = set; then :
14562 enableval=$enable_host_shared; host_shared=$enableval
14563else
14564 host_shared=no
14565fi
14566
14567
14568
f2689b09
SE
14569# Specify what files to not compare during bootstrap.
14570
14571compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14572case "$target" in
14573 hppa*64*-*-hpux*) ;;
14574 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14575 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14576esac
14577
14578
5213506e
RW
14579ac_config_files="$ac_config_files Makefile"
14580
1c710c3c 14581cat >confcache <<\_ACEOF
671aa708
NN
14582# This file is a shell script that caches the results of configure
14583# tests run on this system so they can be shared between configure
1c710c3c
DJ
14584# scripts and configure runs, see configure's option --config-cache.
14585# It is not useful on other systems. If it contains results you don't
14586# want to keep, you may remove or edit it.
671aa708 14587#
1c710c3c
DJ
14588# config.status only pays attention to the cache file if you give it
14589# the --recheck option to rerun configure.
671aa708 14590#
1c710c3c
DJ
14591# `ac_cv_env_foo' variables (set or unset) will be overridden when
14592# loading this file, other *unset* `ac_cv_foo' will be assigned the
14593# following values.
14594
14595_ACEOF
14596
671aa708
NN
14597# The following way of writing the cache mishandles newlines in values,
14598# but we know of no workaround that is simple, portable, and efficient.
5213506e 14599# So, we kill variables containing newlines.
671aa708
NN
14600# Ultrix sh set writes to stderr and can't be redirected directly,
14601# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14602(
14603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14604 eval ac_val=\$$ac_var
14605 case $ac_val in #(
14606 *${as_nl}*)
14607 case $ac_var in #(
14608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14609$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14610 esac
14611 case $ac_var in #(
14612 _ | IFS | as_nl) ;; #(
14613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14614 *) { eval $ac_var=; unset $ac_var;} ;;
14615 esac ;;
14616 esac
14617 done
14618
1c710c3c 14619 (set) 2>&1 |
5213506e
RW
14620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14621 *${as_nl}ac_space=\ *)
14622 # `set' does not quote correctly, so add quotes: double-quote
14623 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14624 sed -n \
14625 "s/'/'\\\\''/g;
14626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14627 ;; #(
1c710c3c
DJ
14628 *)
14629 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14631 ;;
5213506e
RW
14632 esac |
14633 sort
14634) |
1c710c3c 14635 sed '
5213506e 14636 /^ac_cv_env_/b end
1c710c3c 14637 t clear
5213506e 14638 :clear
1c710c3c
DJ
14639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14640 t end
5213506e
RW
14641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14642 :end' >>confcache
14643if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14644 if test -w "$cache_file"; then
14645 test "x$cache_file" != "x/dev/null" &&
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14647$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14648 cat confcache >$cache_file
671aa708 14649 else
5213506e
RW
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14651$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14652 fi
4977bab6 14653fi
671aa708 14654rm -f confcache
79c06341 14655
671aa708
NN
14656test "x$prefix" = xNONE && prefix=$ac_default_prefix
14657# Let make expand exec_prefix.
14658test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14659
671aa708
NN
14660# Transform confdefs.h into DEFS.
14661# Protect against shell expansion while executing Makefile rules.
14662# Protect against Makefile macro expansion.
1c710c3c
DJ
14663#
14664# If the first sed substitution is executed (which looks for macros that
5213506e 14665# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14666# look for a macro that doesn't take arguments.
5213506e
RW
14667ac_script='
14668:mline
14669/\\$/{
14670 N
14671 s,\\\n,,
14672 b mline
14673}
1c710c3c 14674t clear
5213506e
RW
14675:clear
14676s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14677t quote
5213506e 14678s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14679t quote
5213506e
RW
14680b any
14681:quote
14682s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14683s/\[/\\&/g
14684s/\]/\\&/g
14685s/\$/$$/g
14686H
14687:any
14688${
14689 g
14690 s/^\n//
14691 s/\n/ /g
14692 p
14693}
14694'
14695DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14696
14697
14698ac_libobjs=
14699ac_ltlibobjs=
14700for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14701 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14702 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14703 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14704 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14705 # will be set to the directory where LIBOBJS objects are built.
14706 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14707 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14708done
14709LIBOBJS=$ac_libobjs
fb0103e5 14710
1c710c3c 14711LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14712
af71363e 14713
1c710c3c
DJ
14714
14715: ${CONFIG_STATUS=./config.status}
5213506e 14716ac_write_fail=0
1c710c3c
DJ
14717ac_clean_files_save=$ac_clean_files
14718ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14719{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14720$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14721as_write_fail=0
14722cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14723#! $SHELL
14724# Generated by $as_me.
671aa708 14725# Run this file to recreate the current configuration.
671aa708 14726# Compiler output produced by configure, useful for debugging
1c710c3c 14727# configure, is in config.log if it exists.
0b0dc272 14728
1c710c3c
DJ
14729debug=false
14730ac_cs_recheck=false
14731ac_cs_silent=false
1c710c3c 14732
5213506e
RW
14733SHELL=\${CONFIG_SHELL-$SHELL}
14734export SHELL
14735_ASEOF
14736cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14737## -------------------- ##
14738## M4sh Initialization. ##
14739## -------------------- ##
14740
14741# Be more Bourne compatible
14742DUALCASE=1; export DUALCASE # for MKS sh
14743if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14744 emulate sh
14745 NULLCMD=:
5213506e 14746 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14747 # is contrary to our usage. Disable this feature.
14748 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14749 setopt NO_GLOB_SUBST
14750else
14751 case `(set -o) 2>/dev/null` in #(
14752 *posix*) :
14753 set -o posix ;; #(
14754 *) :
14755 ;;
14756esac
1c710c3c 14757fi
1c710c3c 14758
5213506e
RW
14759
14760as_nl='
14761'
14762export as_nl
14763# Printing a long string crashes Solaris 7 /usr/bin/printf.
14764as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14765as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14766as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14767# Prefer a ksh shell builtin over an external printf program on Solaris,
14768# but without wasting forks for bash or zsh.
14769if test -z "$BASH_VERSION$ZSH_VERSION" \
14770 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14771 as_echo='print -r --'
14772 as_echo_n='print -rn --'
14773elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14774 as_echo='printf %s\n'
14775 as_echo_n='printf %s'
14776else
14777 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14778 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14779 as_echo_n='/usr/ucb/echo -n'
14780 else
14781 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14782 as_echo_n_body='eval
14783 arg=$1;
14784 case $arg in #(
14785 *"$as_nl"*)
14786 expr "X$arg" : "X\\(.*\\)$as_nl";
14787 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14788 esac;
14789 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14790 '
14791 export as_echo_n_body
14792 as_echo_n='sh -c $as_echo_n_body as_echo'
14793 fi
14794 export as_echo_body
14795 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14796fi
14797
5213506e
RW
14798# The user is always right.
14799if test "${PATH_SEPARATOR+set}" != set; then
14800 PATH_SEPARATOR=:
14801 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14802 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14803 PATH_SEPARATOR=';'
14804 }
14805fi
14806
14807
14808# IFS
14809# We need space, tab and new line, in precisely that order. Quoting is
14810# there to prevent editors from complaining about space-tab.
14811# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14812# splitting by setting IFS to empty value.)
14813IFS=" "" $as_nl"
14814
14815# Find who we are. Look in the path if we contain no directory separator.
14816case $0 in #((
14817 *[\\/]* ) as_myself=$0 ;;
14818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819for as_dir in $PATH
14820do
14821 IFS=$as_save_IFS
14822 test -z "$as_dir" && as_dir=.
14823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14824 done
14825IFS=$as_save_IFS
14826
14827 ;;
14828esac
14829# We did not find ourselves, most probably we were run as `sh COMMAND'
14830# in which case we are not to be found in the path.
14831if test "x$as_myself" = x; then
14832 as_myself=$0
14833fi
14834if test ! -f "$as_myself"; then
14835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14836 exit 1
14837fi
1c710c3c 14838
5213506e
RW
14839# Unset variables that we do not need and which cause bugs (e.g. in
14840# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14841# suppresses any "Segmentation fault" message there. '((' could
14842# trigger a bug in pdksh 5.2.14.
14843for as_var in BASH_ENV ENV MAIL MAILPATH
14844do eval test x\${$as_var+set} = xset \
14845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14846done
1c710c3c
DJ
14847PS1='$ '
14848PS2='> '
14849PS4='+ '
14850
14851# NLS nuisances.
5213506e
RW
14852LC_ALL=C
14853export LC_ALL
14854LANGUAGE=C
14855export LANGUAGE
14856
14857# CDPATH.
14858(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14859
14860
14861# as_fn_error ERROR [LINENO LOG_FD]
14862# ---------------------------------
14863# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14864# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14865# script with status $?, using 1 if that was 0.
14866as_fn_error ()
14867{
14868 as_status=$?; test $as_status -eq 0 && as_status=1
14869 if test "$3"; then
14870 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14872 fi
5213506e
RW
14873 $as_echo "$as_me: error: $1" >&2
14874 as_fn_exit $as_status
14875} # as_fn_error
14876
14877
14878# as_fn_set_status STATUS
14879# -----------------------
14880# Set $? to STATUS, without forking.
14881as_fn_set_status ()
14882{
14883 return $1
14884} # as_fn_set_status
14885
14886# as_fn_exit STATUS
14887# -----------------
14888# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14889as_fn_exit ()
14890{
14891 set +e
14892 as_fn_set_status $1
14893 exit $1
14894} # as_fn_exit
14895
14896# as_fn_unset VAR
14897# ---------------
14898# Portably unset VAR.
14899as_fn_unset ()
14900{
14901 { eval $1=; unset $1;}
14902}
14903as_unset=as_fn_unset
14904# as_fn_append VAR VALUE
14905# ----------------------
14906# Append the text in VALUE to the end of the definition contained in VAR. Take
14907# advantage of any shell optimizations that allow amortized linear growth over
14908# repeated appends, instead of the typical quadratic growth present in naive
14909# implementations.
14910if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14911 eval 'as_fn_append ()
14912 {
14913 eval $1+=\$2
14914 }'
14915else
14916 as_fn_append ()
14917 {
14918 eval $1=\$$1\$2
14919 }
14920fi # as_fn_append
14921
14922# as_fn_arith ARG...
14923# ------------------
14924# Perform arithmetic evaluation on the ARGs, and store the result in the
14925# global $as_val. Take advantage of shells that can avoid forks. The arguments
14926# must be portable across $(()) and expr.
14927if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14928 eval 'as_fn_arith ()
14929 {
14930 as_val=$(( $* ))
14931 }'
14932else
14933 as_fn_arith ()
14934 {
14935 as_val=`expr "$@" || test $? -eq 1`
14936 }
14937fi # as_fn_arith
14938
1c710c3c 14939
5213506e
RW
14940if expr a : '\(a\)' >/dev/null 2>&1 &&
14941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14942 as_expr=expr
14943else
14944 as_expr=false
14945fi
14946
5213506e 14947if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14948 as_basename=basename
14949else
14950 as_basename=false
14951fi
14952
5213506e
RW
14953if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14954 as_dirname=dirname
14955else
14956 as_dirname=false
14957fi
1c710c3c 14958
5213506e 14959as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14960$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14961 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14963$as_echo X/"$0" |
14964 sed '/^.*\/\([^/][^/]*\)\/*$/{
14965 s//\1/
14966 q
14967 }
14968 /^X\/\(\/\/\)$/{
14969 s//\1/
14970 q
14971 }
14972 /^X\/\(\/\).*/{
14973 s//\1/
14974 q
14975 }
14976 s/.*/./; q'`
2aeb72e9 14977
2aeb72e9
DD
14978# Avoid depending upon Character Ranges.
14979as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14980as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14981as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14982as_cr_digits='0123456789'
14983as_cr_alnum=$as_cr_Letters$as_cr_digits
14984
5213506e
RW
14985ECHO_C= ECHO_N= ECHO_T=
14986case `echo -n x` in #(((((
14987-n*)
14988 case `echo 'xy\c'` in
14989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14990 xy) ECHO_C='\c';;
14991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14992 ECHO_T=' ';;
14993 esac;;
14994*)
14995 ECHO_N='-n';;
1c710c3c
DJ
14996esac
14997
5213506e
RW
14998rm -f conf$$ conf$$.exe conf$$.file
14999if test -d conf$$.dir; then
15000 rm -f conf$$.dir/conf$$.file
1c710c3c 15001else
5213506e
RW
15002 rm -f conf$$.dir
15003 mkdir conf$$.dir 2>/dev/null
1c710c3c 15004fi
5213506e
RW
15005if (echo >conf$$.file) 2>/dev/null; then
15006 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15007 as_ln_s='ln -s'
5213506e
RW
15008 # ... but there are two gotchas:
15009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15011 # In both cases, we have to default to `cp -p'.
15012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15013 as_ln_s='cp -p'
15014 elif ln conf$$.file conf$$ 2>/dev/null; then
15015 as_ln_s=ln
15016 else
15017 as_ln_s='cp -p'
2aeb72e9 15018 fi
1c710c3c
DJ
15019else
15020 as_ln_s='cp -p'
15021fi
5213506e
RW
15022rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15023rmdir conf$$.dir 2>/dev/null
15024
15025
15026# as_fn_mkdir_p
15027# -------------
15028# Create "$as_dir" as a directory, including parents if necessary.
15029as_fn_mkdir_p ()
15030{
15031
15032 case $as_dir in #(
15033 -*) as_dir=./$as_dir;;
15034 esac
15035 test -d "$as_dir" || eval $as_mkdir_p || {
15036 as_dirs=
15037 while :; do
15038 case $as_dir in #(
15039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15040 *) as_qdir=$as_dir;;
15041 esac
15042 as_dirs="'$as_qdir' $as_dirs"
15043 as_dir=`$as_dirname -- "$as_dir" ||
15044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15045 X"$as_dir" : 'X\(//\)[^/]' \| \
15046 X"$as_dir" : 'X\(//\)$' \| \
15047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15048$as_echo X"$as_dir" |
15049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\/\)[^/].*/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\/\)$/{
15058 s//\1/
15059 q
15060 }
15061 /^X\(\/\).*/{
15062 s//\1/
15063 q
15064 }
15065 s/.*/./; q'`
15066 test -d "$as_dir" && break
15067 done
15068 test -z "$as_dirs" || eval "mkdir $as_dirs"
15069 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15070
1c710c3c 15071
5213506e 15072} # as_fn_mkdir_p
1c710c3c 15073if mkdir -p . 2>/dev/null; then
5213506e 15074 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15075else
15076 test -d ./-p && rmdir ./-p
15077 as_mkdir_p=false
15078fi
15079
5213506e
RW
15080if test -x / >/dev/null 2>&1; then
15081 as_test_x='test -x'
15082else
15083 if ls -dL / >/dev/null 2>&1; then
15084 as_ls_L_option=L
15085 else
15086 as_ls_L_option=
15087 fi
15088 as_test_x='
15089 eval sh -c '\''
15090 if test -d "$1"; then
15091 test -d "$1/.";
15092 else
15093 case $1 in #(
15094 -*)set "./$1";;
15095 esac;
15096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15097 ???[sx]*):;;*)false;;esac;fi
15098 '\'' sh
15099 '
15100fi
15101as_executable_p=$as_test_x
1c710c3c
DJ
15102
15103# Sed expression to map a string onto a valid CPP name.
15104as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15105
15106# Sed expression to map a string onto a valid variable name.
15107as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15108
15109
1c710c3c 15110exec 6>&1
5213506e
RW
15111## ----------------------------------- ##
15112## Main body of $CONFIG_STATUS script. ##
15113## ----------------------------------- ##
15114_ASEOF
15115test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15116
15117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15118# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15119# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15120# values after options handling.
15121ac_log="
1c710c3c 15122This file was extended by $as_me, which was
5213506e 15123generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15124
15125 CONFIG_FILES = $CONFIG_FILES
15126 CONFIG_HEADERS = $CONFIG_HEADERS
15127 CONFIG_LINKS = $CONFIG_LINKS
15128 CONFIG_COMMANDS = $CONFIG_COMMANDS
15129 $ $0 $@
15130
5213506e
RW
15131on `(hostname || uname -n) 2>/dev/null | sed 1q`
15132"
15133
1c710c3c
DJ
15134_ACEOF
15135
5213506e
RW
15136case $ac_config_files in *"
15137"*) set x $ac_config_files; shift; ac_config_files=$*;;
15138esac
1c710c3c 15139
2aeb72e9 15140
2aeb72e9 15141
5213506e
RW
15142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15143# Files that config.status was made for.
15144config_files="$ac_config_files"
1c710c3c 15145
5213506e 15146_ACEOF
2aeb72e9 15147
5213506e 15148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15149ac_cs_usage="\
5213506e
RW
15150\`$as_me' instantiates files and other configuration actions
15151from templates according to the current configuration. Unless the files
15152and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15153
5213506e 15154Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15155
15156 -h, --help print this help, then exit
5213506e
RW
15157 -V, --version print version number and configuration settings, then exit
15158 -q, --quiet, --silent
15159 do not print progress messages
1c710c3c
DJ
15160 -d, --debug don't remove temporary files
15161 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15162 --file=FILE[:TEMPLATE]
15163 instantiate the configuration file FILE
1c710c3c
DJ
15164
15165Configuration files:
15166$config_files
15167
5213506e 15168Report bugs to the package provider."
2aeb72e9 15169
5213506e
RW
15170_ACEOF
15171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15172ac_cs_version="\\
15173config.status
5213506e
RW
15174configured by $0, generated by GNU Autoconf 2.64,
15175 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15176
5213506e 15177Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15178This config.status script is free software; the Free Software Foundation
15179gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15180
15181ac_pwd='$ac_pwd'
15182srcdir='$srcdir'
15183INSTALL='$INSTALL'
87264276 15184AWK='$AWK'
5213506e 15185test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15186_ACEOF
15187
5213506e
RW
15188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15189# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15190ac_need_defaults=:
15191while test $# != 0
a4b9e93e 15192do
1c710c3c
DJ
15193 case $1 in
15194 --*=*)
5213506e
RW
15195 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15196 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15197 ac_shift=:
15198 ;;
5213506e 15199 *)
1c710c3c
DJ
15200 ac_option=$1
15201 ac_optarg=$2
15202 ac_shift=shift
15203 ;;
1c710c3c
DJ
15204 esac
15205
15206 case $ac_option in
15207 # Handling of the options.
671aa708 15208 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15209 ac_cs_recheck=: ;;
5213506e
RW
15210 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15211 $as_echo "$ac_cs_version"; exit ;;
15212 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15213 debug=: ;;
15214 --file | --fil | --fi | --f )
15215 $ac_shift
5213506e
RW
15216 case $ac_optarg in
15217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15218 esac
15219 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15220 ac_need_defaults=false;;
5213506e
RW
15221 --he | --h | --help | --hel | -h )
15222 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15224 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15225 ac_cs_silent=: ;;
15226
15227 # This is an error.
5213506e
RW
15228 -*) as_fn_error "unrecognized option: \`$1'
15229Try \`$0 --help' for more information." ;;
1c710c3c 15230
5213506e
RW
15231 *) as_fn_append ac_config_targets " $1"
15232 ac_need_defaults=false ;;
1c710c3c 15233
0b0dc272 15234 esac
1c710c3c 15235 shift
0b0dc272
AM
15236done
15237
1c710c3c 15238ac_configure_extra_args=
0b0dc272 15239
1c710c3c
DJ
15240if $ac_cs_silent; then
15241 exec 6>/dev/null
15242 ac_configure_extra_args="$ac_configure_extra_args --silent"
15243fi
0b0dc272 15244
1c710c3c 15245_ACEOF
5213506e 15246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15247if \$ac_cs_recheck; then
5213506e
RW
15248 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15249 shift
15250 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15251 CONFIG_SHELL='$SHELL'
15252 export CONFIG_SHELL
15253 exec "\$@"
1c710c3c
DJ
15254fi
15255
15256_ACEOF
5213506e
RW
15257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15258exec 5>>config.log
15259{
15260 echo
15261 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15262## Running $as_me. ##
15263_ASBOX
15264 $as_echo "$ac_log"
15265} >&5
1c710c3c 15266
5213506e
RW
15267_ACEOF
15268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15269#
15270# INIT-COMMANDS
15271#
15272extrasub_build="$extrasub_build"
15273 extrasub_host="$extrasub_host"
15274 extrasub_target="$extrasub_target"
15275
5213506e 15276_ACEOF
1c710c3c 15277
5213506e 15278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15279
5213506e 15280# Handling of arguments.
1c710c3c
DJ
15281for ac_config_target in $ac_config_targets
15282do
5213506e
RW
15283 case $ac_config_target in
15284 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15285
15286 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15287 esac
15288done
15289
5213506e 15290
1c710c3c
DJ
15291# If the user did not use the arguments to specify the items to instantiate,
15292# then the envvar interface is used. Set only those that are not.
15293# We use the long form for the default assignment because of an extremely
15294# bizarre bug on SunOS 4.1.3.
15295if $ac_need_defaults; then
15296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15297fi
15298
15299# Have a temporary directory for convenience. Make it in the build tree
5213506e 15300# simply because there is no reason against having it here, and in addition,
1c710c3c 15301# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15302# Hook for its removal unless debugging.
15303# Note that there is a small window in which the directory will not be cleaned:
15304# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15305$debug ||
15306{
5213506e
RW
15307 tmp=
15308 trap 'exit_status=$?
15309 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15310' 0
15311 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15312}
1c710c3c
DJ
15313# Create a (secure) tmp directory for tmp files.
15314
15315{
5213506e 15316 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15317 test -n "$tmp" && test -d "$tmp"
15318} ||
15319{
5213506e
RW
15320 tmp=./conf$$-$RANDOM
15321 (umask 077 && mkdir "$tmp")
15322} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15323
15324# Set up the scripts for CONFIG_FILES section.
15325# No need to generate them if there are no CONFIG_FILES.
15326# This happens for instance with `./config.status config.h'.
15327if test -n "$CONFIG_FILES"; then
15328
15329if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15330 ac_cs_awk_getline=:
15331 ac_cs_awk_pipe_init=
15332 ac_cs_awk_read_file='
15333 while ((getline aline < (F[key])) > 0)
15334 print(aline)
15335 close(F[key])'
15336 ac_cs_awk_pipe_fini=
15337else
15338 ac_cs_awk_getline=false
15339 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15340 ac_cs_awk_read_file='
15341 print "|#_!!_#|"
15342 print "cat " F[key] " &&"
15343 '$ac_cs_awk_pipe_init
15344 # The final `:' finishes the AND list.
15345 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15346fi
15347ac_cr=`echo X | tr X '\015'`
15348# On cygwin, bash can eat \r inside `` if the user requested igncr.
15349# But we know of no other shell where ac_cr would be empty at this
15350# point, so we can use a bashism as a fallback.
15351if test "x$ac_cr" = x; then
15352 eval ac_cr=\$\'\\r\'
15353fi
15354ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15355if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15356 ac_cs_awk_cr='\r'
15357else
15358 ac_cs_awk_cr=$ac_cr
15359fi
15360
15361echo 'BEGIN {' >"$tmp/subs1.awk" &&
15362_ACEOF
15363
15364# Create commands to substitute file output variables.
1c710c3c 15365{
5213506e
RW
15366 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15367 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15368 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15369 echo "_ACAWK" &&
15370 echo "_ACEOF"
15371} >conf$$files.sh &&
15372. ./conf$$files.sh ||
15373 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15374rm -f conf$$files.sh
1c710c3c 15375
5213506e
RW
15376{
15377 echo "cat >conf$$subs.awk <<_ACEOF" &&
15378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15379 echo "_ACEOF"
15380} >conf$$subs.sh ||
15381 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15382ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15383ac_delim='%!_!# '
15384for ac_last_try in false false false false false :; do
15385 . ./conf$$subs.sh ||
15386 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15387
15388 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15389 if test $ac_delim_n = $ac_delim_num; then
15390 break
15391 elif $ac_last_try; then
15392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15393 else
15394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15395 fi
15396done
15397rm -f conf$$subs.sh
15398
15399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15400cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15401_ACEOF
5213506e
RW
15402sed -n '
15403h
15404s/^/S["/; s/!.*/"]=/
15405p
15406g
15407s/^[^!]*!//
15408:repl
15409t repl
15410s/'"$ac_delim"'$//
15411t delim
15412:nl
15413h
15414s/\(.\{148\}\).*/\1/
15415t more1
15416s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15417p
15418n
15419b repl
15420:more1
15421s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15422p
15423g
15424s/.\{148\}//
15425t nl
15426:delim
15427h
15428s/\(.\{148\}\).*/\1/
15429t more2
15430s/["\\]/\\&/g; s/^/"/; s/$/"/
15431p
15432b
15433:more2
15434s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15435p
15436g
15437s/.\{148\}//
15438t delim
15439' <conf$$subs.awk | sed '
15440/^[^""]/{
15441 N
15442 s/\n//
15443}
15444' >>$CONFIG_STATUS || ac_write_fail=1
15445rm -f conf$$subs.awk
15446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15447_ACAWK
15448cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15449 for (key in S) S_is_set[key] = 1
15450 FS = "\a"
15451 \$ac_cs_awk_pipe_init
15452}
15453{
15454 line = $ 0
15455 nfields = split(line, field, "@")
15456 substed = 0
15457 len = length(field[1])
15458 for (i = 2; i < nfields; i++) {
15459 key = field[i]
15460 keylen = length(key)
15461 if (S_is_set[key]) {
15462 value = S[key]
15463 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15464 len += length(value) + length(field[++i])
15465 substed = 1
15466 } else
15467 len += 1 + keylen
15468 }
15469 if (nfields == 3 && !substed) {
15470 key = field[2]
15471 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15472 \$ac_cs_awk_read_file
15473 next
15474 }
15475 }
15476 print line
15477}
15478\$ac_cs_awk_pipe_fini
15479_ACAWK
15480_ACEOF
15481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15482if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15484else
15485 cat
15486fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15487 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15488_ACEOF
15489
15490# VPATH may cause trouble with some makes, so we remove $(srcdir),
15491# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15492# trailing colons and then remove the whole line if VPATH becomes empty
15493# (actually we leave an empty line to preserve line numbers).
15494if test "x$srcdir" = x.; then
15495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15496s/:*\$(srcdir):*/:/
15497s/:*\${srcdir}:*/:/
15498s/:*@srcdir@:*/:/
15499s/^\([^=]*=[ ]*\):*/\1/
15500s/:*$//
15501s/^[^=]*=[ ]*$//
15502}'
15503fi
2aeb72e9 15504
5213506e
RW
15505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15506fi # test -n "$CONFIG_FILES"
2aeb72e9 15507
1c710c3c 15508
5213506e
RW
15509eval set X " :F $CONFIG_FILES "
15510shift
15511for ac_tag
15512do
15513 case $ac_tag in
15514 :[FHLC]) ac_mode=$ac_tag; continue;;
15515 esac
15516 case $ac_mode$ac_tag in
15517 :[FHL]*:*);;
15518 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15519 :[FH]-) ac_tag=-:-;;
15520 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15521 esac
15522 ac_save_IFS=$IFS
15523 IFS=:
15524 set x $ac_tag
15525 IFS=$ac_save_IFS
15526 shift
15527 ac_file=$1
15528 shift
79c06341 15529
5213506e
RW
15530 case $ac_mode in
15531 :L) ac_source=$1;;
15532 :[FH])
15533 ac_file_inputs=
15534 for ac_f
15535 do
15536 case $ac_f in
15537 -) ac_f="$tmp/stdin";;
15538 *) # Look for the file first in the build tree, then in the source tree
15539 # (if the path is not absolute). The absolute path cannot be DOS-style,
15540 # because $ac_f cannot contain `:'.
15541 test -f "$ac_f" ||
15542 case $ac_f in
15543 [\\/$]*) false;;
15544 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15545 esac ||
15546 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15547 esac
15548 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15549 as_fn_append ac_file_inputs " '$ac_f'"
15550 done
1c710c3c 15551
5213506e
RW
15552 # Let's still pretend it is `configure' which instantiates (i.e., don't
15553 # use $as_me), people would be surprised to read:
15554 # /* config.h. Generated by config.status. */
15555 configure_input='Generated from '`
15556 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15557 `' by configure.'
15558 if test x"$ac_file" != x-; then
15559 configure_input="$ac_file. $configure_input"
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15561$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15562 fi
5213506e
RW
15563 # Neutralize special characters interpreted by sed in replacement strings.
15564 case $configure_input in #(
15565 *\&* | *\|* | *\\* )
15566 ac_sed_conf_input=`$as_echo "$configure_input" |
15567 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15568 *) ac_sed_conf_input=$configure_input;;
15569 esac
11a67599 15570
5213506e
RW
15571 case $ac_tag in
15572 *:-:* | *:-) cat >"$tmp/stdin" \
15573 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15574 esac
15575 ;;
11a67599
ZW
15576 esac
15577
5213506e 15578 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15579$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15580 X"$ac_file" : 'X\(//\)[^/]' \| \
15581 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15582 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15583$as_echo X"$ac_file" |
15584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15585 s//\1/
15586 q
15587 }
15588 /^X\(\/\/\)[^/].*/{
15589 s//\1/
15590 q
15591 }
15592 /^X\(\/\/\)$/{
15593 s//\1/
15594 q
15595 }
15596 /^X\(\/\).*/{
15597 s//\1/
15598 q
15599 }
15600 s/.*/./; q'`
15601 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15602 ac_builddir=.
0b0dc272 15603
5213506e
RW
15604case "$ac_dir" in
15605.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15606*)
15607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15608 # A ".." for each directory in $ac_dir_suffix.
15609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15610 case $ac_top_builddir_sub in
15611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15613 esac ;;
15614esac
15615ac_abs_top_builddir=$ac_pwd
15616ac_abs_builddir=$ac_pwd$ac_dir_suffix
15617# for backward compatibility:
15618ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15619
15620case $srcdir in
5213506e 15621 .) # We are building in place.
1c710c3c 15622 ac_srcdir=.
5213506e
RW
15623 ac_top_srcdir=$ac_top_builddir_sub
15624 ac_abs_top_srcdir=$ac_pwd ;;
15625 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15626 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15627 ac_top_srcdir=$srcdir
15628 ac_abs_top_srcdir=$srcdir ;;
15629 *) # Relative name.
15630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15631 ac_top_srcdir=$ac_top_build_prefix$srcdir
15632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15633esac
5213506e 15634ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15635
0b0dc272 15636
5213506e
RW
15637 case $ac_mode in
15638 :F)
15639 #
15640 # CONFIG_FILE
15641 #
1c710c3c
DJ
15642
15643 case $INSTALL in
15644 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15645 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15646 esac
5213506e 15647_ACEOF
11a67599 15648
5213506e
RW
15649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650# If the template does not know about datarootdir, expand it.
15651# FIXME: This hack should be removed a few years after 2.60.
15652ac_datarootdir_hack=; ac_datarootdir_seen=
15653ac_sed_dataroot='
15654/datarootdir/ {
15655 p
15656 q
15657}
15658/@datadir@/p
15659/@docdir@/p
15660/@infodir@/p
15661/@localedir@/p
15662/@mandir@/p'
15663case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15664*datarootdir*) ac_datarootdir_seen=yes;;
15665*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15667$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15668_ACEOF
5213506e
RW
15669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15670 ac_datarootdir_hack='
15671 s&@datadir@&$datadir&g
15672 s&@docdir@&$docdir&g
15673 s&@infodir@&$infodir&g
15674 s&@localedir@&$localedir&g
15675 s&@mandir@&$mandir&g
15676 s&\\\${datarootdir}&$datarootdir&g' ;;
15677esac
15678_ACEOF
15679
15680# Neutralize VPATH when `$srcdir' = `.'.
15681# Shell code in configure.ac might set extrasub.
15682# FIXME: do we really want to maintain this feature?
15683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15684ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15685$extrasub
15686_ACEOF
5213506e 15687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15688:t
15689/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15690s|@configure_input@|$ac_sed_conf_input|;t t
15691s&@top_builddir@&$ac_top_builddir_sub&;t t
15692s&@top_build_prefix@&$ac_top_build_prefix&;t t
15693s&@srcdir@&$ac_srcdir&;t t
15694s&@abs_srcdir@&$ac_abs_srcdir&;t t
15695s&@top_srcdir@&$ac_top_srcdir&;t t
15696s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15697s&@builddir@&$ac_builddir&;t t
15698s&@abs_builddir@&$ac_abs_builddir&;t t
15699s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15700s&@INSTALL@&$ac_INSTALL&;t t
15701$ac_datarootdir_hack
15702"
15703eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15704if $ac_cs_awk_getline; then
15705 $AWK -f "$tmp/subs.awk"
15706else
15707 $AWK -f "$tmp/subs.awk" | $SHELL
15708fi >$tmp/out \
15709 || as_fn_error "could not create $ac_file" "$LINENO" 5
15710
15711test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15712 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15713 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15715which seems to be undefined. Please make sure it is defined." >&5
15716$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15717which seems to be undefined. Please make sure it is defined." >&2;}
15718
15719 rm -f "$tmp/stdin"
15720 case $ac_file in
15721 -) cat "$tmp/out" && rm -f "$tmp/out";;
15722 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15723 esac \
15724 || as_fn_error "could not create $ac_file" "$LINENO" 5
15725 ;;
11a67599 15726
11a67599 15727
79c06341 15728
5213506e
RW
15729 esac
15730
3e54529c
RW
15731
15732 case $ac_file$ac_mode in
15733 "Makefile":F) sed "$extrasub_build" Makefile |
15734 sed "$extrasub_host" |
15735 sed "$extrasub_target" > mf$$
15736 mv -f mf$$ Makefile ;;
15737
15738 esac
5213506e
RW
15739done # for ac_tag
15740
15741
15742as_fn_exit 0
1c710c3c 15743_ACEOF
1c710c3c
DJ
15744ac_clean_files=$ac_clean_files_save
15745
5213506e
RW
15746test $ac_write_fail = 0 ||
15747 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15748
1c710c3c
DJ
15749
15750# configure is writing to config.log, and then calls config.status.
15751# config.status does its own redirection, appending to config.log.
15752# Unfortunately, on DOS this fails, as config.log is still kept open
15753# by configure, so config.status won't be able to write to it; its
15754# output is simply discarded. So we exec the FD to /dev/null,
15755# effectively closing config.log, so it can be properly (re)opened and
15756# appended to by config.status. When coming back to configure, we
15757# need to make the FD available again.
15758if test "$no_create" != yes; then
15759 ac_cs_success=:
15760 ac_config_status_args=
15761 test "$silent" = yes &&
15762 ac_config_status_args="$ac_config_status_args --quiet"
15763 exec 5>/dev/null
15764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15765 exec 5>>config.log
15766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15767 # would make configure fail if this is the last instruction.
5213506e
RW
15768 $ac_cs_success || as_fn_exit $?
15769fi
15770if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15772$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15773fi
79c06341 15774
This page took 4.133922 seconds and 5 git commands to generate.