]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR c/45062 (Revision 162223 caused ICE at c-decl.c:4064)
[thirdparty/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
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
632e2a07 581GOC_FOR_TARGET
5213506e
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
607config_shell
608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
632e2a07 614GOC_FOR_BUILD
5213506e
RW
615GFORTRAN_FOR_BUILD
616GCJ_FOR_BUILD
617DLLTOOL_FOR_BUILD
618CXX_FOR_BUILD
619CXXFLAGS_FOR_BUILD
620CFLAGS_FOR_BUILD
621CC_FOR_BUILD
622AS_FOR_BUILD
623AR_FOR_BUILD
aae29963 624target_configdirs
5213506e 625configdirs
5213506e 626build_configdirs
5213506e
RW
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
ffedf511
RW
634target_configargs
635host_configargs
636build_configargs
e12c4094 637BUILD_CONFIG
5213506e
RW
638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
d7f09764 643extra_host_libiberty_configure_flags
5213506e
RW
644clooginc
645clooglibs
646pplinc
647ppllibs
5213506e 648poststage1_ldflags
ed2eaa9f 649poststage1_libs
5213506e
RW
650stage1_libs
651stage1_ldflags
652extra_mpc_mpfr_configure_flags
653extra_mpc_gmp_configure_flags
654extra_mpfr_configure_flags
655gmpinc
656gmplibs
657do_compare
658GNATMAKE
659GNATBIND
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_subdir
671host_subdir
672build_subdir
673build_libsubdir
87264276
PB
674AWK
675SED
5213506e
RW
676LN_S
677LN
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689target_noncanonical
690host_noncanonical
691build_noncanonical
692build_os
693build_vendor
694build_cpu
695build
696TOPLEVEL_CONFIGURE_ARGUMENTS
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files='serialization_dependencies
736host_makefile_frag
737target_makefile_frag
738alphaieee_frag
739ospace_frag'
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_gold
21539e2e 744enable_ld
5213506e
RW
745enable_libada
746enable_libssp
747enable_build_with_cxx
748with_mpc
749with_mpc_include
750with_mpc_lib
751with_mpfr_dir
752with_mpfr
753with_mpfr_include
754with_mpfr_lib
755with_gmp_dir
756with_gmp
757with_gmp_include
758with_gmp_lib
759with_host_libstdcxx
760with_stage1_ldflags
761with_stage1_libs
5213506e 762with_boot_libs
ed2eaa9f 763with_boot_ldflags
5213506e
RW
764with_ppl
765with_ppl_include
766with_ppl_lib
767enable_ppl_version_check
768with_cloog
769with_cloog_include
770with_cloog_lib
f16e2237 771enable_cloog_backend
5213506e 772enable_cloog_version_check
d7f09764 773enable_lto
5213506e
RW
774enable_stage1_languages
775enable_objc_gc
776with_build_sysroot
777with_debug_prefix_map
778enable_bootstrap
5646b7b9 779with_build_config
5213506e
RW
780enable_serial_configure
781with_build_time_tools
782enable_maintainer_mode
783enable_stage1_checking
784enable_werror
5213506e
RW
785'
786 ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794CXX
795CXXFLAGS
796CCC
ffedf511
RW
797build_configargs
798host_configargs
799target_configargs
5213506e
RW
800AR
801AS
802DLLTOOL
803LD
804LIPO
805NM
806RANLIB
807STRIP
808WINDRES
809WINDMC
810OBJCOPY
811OBJDUMP
812CC_FOR_TARGET
813CXX_FOR_TARGET
814GCC_FOR_TARGET
815GCJ_FOR_TARGET
816GFORTRAN_FOR_TARGET
632e2a07 817GOC_FOR_TARGET
5213506e
RW
818AR_FOR_TARGET
819AS_FOR_TARGET
820DLLTOOL_FOR_TARGET
821LD_FOR_TARGET
822LIPO_FOR_TARGET
823NM_FOR_TARGET
824OBJDUMP_FOR_TARGET
825RANLIB_FOR_TARGET
826STRIP_FOR_TARGET
827WINDRES_FOR_TARGET
828WINDMC_FOR_TARGET'
829
671aa708
NN
830
831# Initialize some variables set by options.
1c710c3c
DJ
832ac_init_help=
833ac_init_version=false
5213506e
RW
834ac_unrecognized_opts=
835ac_unrecognized_sep=
671aa708
NN
836# The variables have the same names as the options, with
837# dashes changed to underlines.
1c710c3c 838cache_file=/dev/null
671aa708 839exec_prefix=NONE
671aa708 840no_create=
671aa708
NN
841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
671aa708
NN
849verbose=
850x_includes=NONE
851x_libraries=NONE
1c710c3c
DJ
852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 858# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
5213506e
RW
862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
671aa708
NN
864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
671aa708
NN
867includedir='${prefix}/include'
868oldincludedir='/usr/include'
5213506e
RW
869docdir='${datarootdir}/doc/${PACKAGE}'
870infodir='${datarootdir}/info'
871htmldir='${docdir}'
872dvidir='${docdir}'
873pdfdir='${docdir}'
874psdir='${docdir}'
875libdir='${exec_prefix}/lib'
876localedir='${datarootdir}/locale'
877mandir='${datarootdir}/man'
79c06341 878
671aa708 879ac_prev=
5213506e 880ac_dashdash=
671aa708
NN
881for ac_option
882do
671aa708
NN
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
5213506e 885 eval $ac_prev=\$ac_option
671aa708
NN
886 ac_prev=
887 continue
888 fi
79c06341 889
5213506e
RW
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
671aa708
NN
894
895 # Accept the important Cygnus configure options, so we can diagnose typos.
896
5213506e
RW
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
671aa708
NN
900
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 904 bindir=$ac_optarg ;;
671aa708
NN
905
906 -build | --build | --buil | --bui | --bu)
1c710c3c 907 ac_prev=build_alias ;;
671aa708 908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 909 build_alias=$ac_optarg ;;
671aa708
NN
910
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
916 cache_file=$ac_optarg ;;
917
918 --config-cache | -C)
919 cache_file=config.cache ;;
671aa708 920
5213506e 921 -datadir | --datadir | --datadi | --datad)
671aa708 922 ac_prev=datadir ;;
5213506e 923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 924 datadir=$ac_optarg ;;
671aa708 925
5213506e
RW
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
932
671aa708 933 -disable-* | --disable-*)
5213506e 934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 935 # Reject names that are not valid shell variable names.
5213506e
RW
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942"enable_$ac_useropt"
943"*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
948
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
953
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
671aa708
NN
958
959 -enable-* | --enable-*)
5213506e 960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 961 # Reject names that are not valid shell variable names.
5213506e
RW
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968"enable_$ac_useropt"
969"*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
2aeb72e9 972 esac
5213506e 973 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
974
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
1c710c3c 982 exec_prefix=$ac_optarg ;;
671aa708
NN
983
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
987
1c710c3c
DJ
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
671aa708
NN
994
995 -host | --host | --hos | --ho)
1c710c3c 996 ac_prev=host_alias ;;
671aa708 997 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 998 host_alias=$ac_optarg ;;
671aa708 999
5213506e
RW
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1005
671aa708
NN
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1011 includedir=$ac_optarg ;;
671aa708
NN
1012
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1016 infodir=$ac_optarg ;;
671aa708
NN
1017
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1021 libdir=$ac_optarg ;;
671aa708
NN
1022
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1028 libexecdir=$ac_optarg ;;
671aa708 1029
5213506e
RW
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1034
671aa708 1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1036 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1040 localstatedir=$ac_optarg ;;
671aa708
NN
1041
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1045 mandir=$ac_optarg ;;
671aa708
NN
1046
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1050
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1052 | --no-cr | --no-c | -n)
671aa708
NN
1053 no_create=yes ;;
1054
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1058
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1066 oldincludedir=$ac_optarg ;;
671aa708
NN
1067
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1071 prefix=$ac_optarg ;;
671aa708
NN
1072
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1078 program_prefix=$ac_optarg ;;
671aa708
NN
1079
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1085 program_suffix=$ac_optarg ;;
671aa708
NN
1086
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1102 program_transform_name=$ac_optarg ;;
671aa708 1103
5213506e
RW
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1108
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1113
671aa708
NN
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1117
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1c710c3c 1122 sbindir=$ac_optarg ;;
671aa708
NN
1123
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1c710c3c 1133 sharedstatedir=$ac_optarg ;;
671aa708
NN
1134
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1c710c3c 1138 site=$ac_optarg ;;
671aa708
NN
1139
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1143 srcdir=$ac_optarg ;;
671aa708
NN
1144
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1150 sysconfdir=$ac_optarg ;;
671aa708
NN
1151
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1153 ac_prev=target_alias ;;
671aa708 1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1155 target_alias=$ac_optarg ;;
671aa708
NN
1156
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1159
1c710c3c
DJ
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
671aa708
NN
1162
1163 -with-* | --with-*)
5213506e 1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1165 # Reject names that are not valid shell variable names.
5213506e
RW
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
2aeb72e9 1176 esac
5213506e 1177 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1178
1179 -without-* | --without-*)
5213506e 1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1181 # Reject names that are not valid shell variable names.
5213506e
RW
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
671aa708
NN
1194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1204 x_includes=$ac_optarg ;;
671aa708
NN
1205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1211 x_libraries=$ac_optarg ;;
671aa708 1212
5213506e
RW
1213 -*) as_fn_error "unrecognized option: \`$ac_option'
1214Try \`$0 --help' for more information."
671aa708
NN
1215 ;;
1216
1c710c3c
DJ
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
5213506e
RW
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1225 export $ac_envvar ;;
1226
671aa708 1227 *)
1c710c3c 1228 # FIXME: should be removed in autoconf 3.0.
5213506e 1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1233 ;;
1234
1235 esac
1236done
1237
1238if test -n "$ac_prev"; then
1c710c3c 1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1240 as_fn_error "missing argument to $ac_option"
af71363e 1241fi
af71363e 1242
5213506e
RW
1243if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1248 esac
5213506e 1249fi
2aeb72e9 1250
5213506e
RW
1251# Check all directory arguments for consistency.
1252for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
2aeb72e9 1256do
5213506e
RW
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
2aeb72e9 1265 case $ac_val in
5213506e
RW
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1268 esac
5213506e 1269 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1270done
1271
1c710c3c
DJ
1272# There might be people who depend on the old broken behavior: `$host'
1273# used to hold the argument of --host etc.
1274# FIXME: To remove some day.
1275build=$build_alias
1276host=$host_alias
1277target=$target_alias
0b0dc272 1278
1c710c3c
DJ
1279# FIXME: To remove some day.
1280if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
5213506e 1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
671aa708 1294
671aa708 1295
5213506e
RW
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error "working directory cannot be determined"
1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error "pwd does not report name of working directory"
1302
1303
671aa708
NN
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
5213506e
RW
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
671aa708 1331 srcdir=$ac_confdir
5213506e 1332 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1333 srcdir=..
1334 fi
1335else
1336 ac_srcdir_defaulted=no
1337fi
5213506e
RW
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1345 pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
87841584
AM
1356case $srcdir in
1357 *" "*)
1358 as_fn_error "path to source, $srcdir, contains spaces"
1359 ;;
1360esac
ac9e6043
RW
1361ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1362
5213506e
RW
1363for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
1c710c3c
DJ
1369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377\`configure' configures this package to adapt to many kinds of systems.
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
1c710c3c
DJ
1397Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1399 [$ac_default_prefix]
1c710c3c 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1401 [PREFIX]
1c710c3c
DJ
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
5213506e
RW
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1430_ACEOF
1431
1432 cat <<\_ACEOF
1433
1434Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438
1439System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 --target=TARGET configure for building compilers for TARGET [HOST]
1443_ACEOF
1444fi
1445
1446if test -n "$ac_init_help"; then
1447
1448 cat <<\_ACEOF
1449
1450Optional Features:
5213506e 1451 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e
MK
1454 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1455 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
30b74385
RW
1456 --enable-libada build libada directory
1457 --enable-libssp build libssp directory
00020c16 1458 --enable-build-with-cxx build with C++ compiler instead of C compiler
d789184e 1459 --disable-ppl-version-check disable check for PPL version
39986460
TG
1460 --enable-cloog-backend[=BACKEND]
1461 set the CLooG BACKEND used to either isl, ppl or
1462 ppl-legacy (default)
d32ef397
AS
1463 --disable-cloog-version-check
1464 disable check for CLooG version
d7f09764 1465 --enable-lto enable link time optimization support
30b74385 1466 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 1467 stage1. Mostly useful for compiler development.
30b74385
RW
1468 --enable-objc-gc enable use of Boehm's garbage collector with the
1469 GNU Objective-C runtime
1470 --enable-bootstrap enable bootstrapping [yes if native build]
1471 --enable-serial-[{host,target,build}-]configure
1472 force sequential configuration of
1c710c3c 1473 sub-packages for the host, target or build
30b74385 1474 machine, or all sub-packages
1c710c3c
DJ
1475 --enable-maintainer-mode enable make rules and dependencies not useful
1476 (and sometimes confusing) to the casual installer
30b74385
RW
1477 --enable-stage1-checking[=all] choose additional checking for stage1
1478 of the compiler
1c710c3c
DJ
1479 --enable-werror enable -Werror in bootstrap stage2 and later
1480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
1485 --with-mpc=PATH specify prefix directory for installed MPC package.
1486 Equivalent to --with-mpc-include=PATH/include
1487 plus --with-mpc-lib=PATH/lib
1488 --with-mpc-include=PATH
1489 specify directory for installed MPC include files
1490 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1491 --with-mpfr-dir=PATH this option has been REMOVED
1492 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
1493 Equivalent to --with-mpfr-include=PATH/include
1494 plus --with-mpfr-lib=PATH/lib
1495 --with-mpfr-include=PATH
30b74385
RW
1496 specify directory for installed MPFR include files
1497 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1498 --with-gmp-dir=PATH this option has been REMOVED
1499 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
1500 Equivalent to --with-gmp-include=PATH/include
1501 plus --with-gmp-lib=PATH/lib
30b74385
RW
1502 --with-gmp-include=PATH specify directory for installed GMP include files
1503 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
1504 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1505 when linking with PPL
00020c16
ILT
1506 --with-stage1-ldflags=FLAGS Linker flags for stage1
1507 -with-stage1-libs=LIBS Libraries for stage1
00020c16 1508 --with-boot-libs=LIBS Libraries for stage2 and later
ed2eaa9f 1509 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
f8bf9252
SP
1510 --with-ppl=PATH Specify prefix directory for the installed PPL package
1511 Equivalent to --with-ppl-include=PATH/include
1512 plus --with-ppl-lib=PATH/lib
1513 --with-ppl-include=PATH Specify directory for installed PPL include files
1514 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d32ef397
AS
1515 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1516 package. Equivalent to
1517 --with-cloog-include=PATH/include plus
1518 --with-cloog-lib=PATH/lib
1519 --with-cloog-include=PATH
1520 Specify directory for installed CLooG include files
1521 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1522 library
30b74385 1523 --with-build-sysroot=SYSROOT
1c710c3c 1524 use sysroot as the system root during the build
c8aea42c
PB
1525 --with-debug-prefix-map='A=B C=D ...'
1526 map A to B, C to D ... in debug information
5646b7b9
AO
1527--with-build-config='NAME NAME2...'
1528 Use config/NAME.mk build configuration
30b74385 1529 --with-build-time-tools=PATH
1c710c3c 1530 use given path to find target tools during the build
1c710c3c
DJ
1531
1532Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
5213506e
RW
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
ffedf511
RW
1542 build_configargs
1543 additional configure arguments for build directories
1544 host_configargs
1545 additional configure arguments for host directories
1546 target_configargs
1547 additional configure arguments for target directories
278a7a38
AO
1548 AR AR for the host
1549 AS AS for the host
1550 DLLTOOL DLLTOOL for the host
1551 LD LD for the host
1552 LIPO LIPO for the host
1553 NM NM for the host
1554 RANLIB RANLIB for the host
1555 STRIP STRIP for the host
1556 WINDRES WINDRES for the host
901119ae 1557 WINDMC WINDMC for the host
278a7a38
AO
1558 OBJCOPY OBJCOPY for the host
1559 OBJDUMP OBJDUMP for the host
1560 CC_FOR_TARGET
1561 CC for the target
1562 CXX_FOR_TARGET
1563 CXX for the target
1564 GCC_FOR_TARGET
1565 GCC for the target
1566 GCJ_FOR_TARGET
1567 GCJ for the target
1568 GFORTRAN_FOR_TARGET
1569 GFORTRAN for the target
632e2a07
ILT
1570 GOC_FOR_TARGET
1571 GOC for the target
278a7a38
AO
1572 AR_FOR_TARGET
1573 AR for the target
1574 AS_FOR_TARGET
1575 AS for the target
1576 DLLTOOL_FOR_TARGET
1577 DLLTOOL for the target
1578 LD_FOR_TARGET
1579 LD for the target
1580 LIPO_FOR_TARGET
1581 LIPO for the target
1582 NM_FOR_TARGET
1583 NM for the target
1584 OBJDUMP_FOR_TARGET
1585 OBJDUMP for the target
1586 RANLIB_FOR_TARGET
1587 RANLIB for the target
1588 STRIP_FOR_TARGET
1589 STRIP for the target
1590 WINDRES_FOR_TARGET
1591 WINDRES for the target
901119ae
KT
1592 WINDMC_FOR_TARGET
1593 WINDMC for the target
1c710c3c
DJ
1594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
5213506e 1598Report bugs to the package provider.
1c710c3c 1599_ACEOF
5213506e 1600ac_status=$?
1c710c3c
DJ
1601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
1c710c3c 1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
1c710c3c
DJ
1609 ac_builddir=.
1610
5213506e
RW
1611case "$ac_dir" in
1612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613*)
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621esac
1622ac_abs_top_builddir=$ac_pwd
1623ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624# for backward compatibility:
1625ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1626
1627case $srcdir in
5213506e 1628 .) # We are building in place.
1c710c3c 1629 ac_srcdir=.
5213506e
RW
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1633 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1640esac
5213506e
RW
1641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1651 else
5213506e
RW
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1655 done
1656fi
1657
5213506e 1658test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1659if $ac_init_version; then
1660 cat <<\_ACEOF
5213506e
RW
1661configure
1662generated by GNU Autoconf 2.64
1c710c3c 1663
5213506e 1664Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1665This configure script is free software; the Free Software Foundation
1666gives unlimited permission to copy, distribute and modify it.
1667_ACEOF
5213506e 1668 exit
0b0dc272 1669fi
5213506e
RW
1670
1671## ------------------------ ##
1672## Autoconf initialization. ##
1673## ------------------------ ##
1674
1675# ac_fn_c_try_compile LINENO
1676# --------------------------
1677# Try to compile conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_compile ()
1679{
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1701 ac_retval=0
1702else
1703 $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707fi
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 return $ac_retval
1710
1711} # ac_fn_c_try_compile
1712
1713# ac_fn_cxx_try_compile LINENO
1714# ----------------------------
1715# Try to compile conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_cxx_try_compile ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1721case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1733 fi
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_cxx_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1739 ac_retval=0
1740else
1741 $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=1
1745fi
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 return $ac_retval
1748
1749} # ac_fn_cxx_try_compile
1750
1751# ac_fn_c_try_link LINENO
1752# -----------------------
1753# Try to link conftest.$ac_ext, and return whether this succeeded.
1754ac_fn_c_try_link ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1759case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 $as_test_x conftest$ac_exeext
1779 }; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786fi
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 return $ac_retval
1794
1795} # ac_fn_c_try_link
1796cat >config.log <<_ACEOF
1c710c3c
DJ
1797This file contains any messages produced by compilers while
1798running configure, to aid debugging if configure makes a mistake.
1799
1800It was created by $as_me, which was
5213506e 1801generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1802
1803 $ $0 $@
1804
1805_ACEOF
5213506e 1806exec 5>>config.log
1c710c3c
DJ
1807{
1808cat <<_ASUNAME
1809## --------- ##
1810## Platform. ##
1811## --------- ##
1812
1813hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1814uname -m = `(uname -m) 2>/dev/null || echo unknown`
1815uname -r = `(uname -r) 2>/dev/null || echo unknown`
1816uname -s = `(uname -s) 2>/dev/null || echo unknown`
1817uname -v = `(uname -v) 2>/dev/null || echo unknown`
1818
1819/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1820/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1821
1822/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1823/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1824/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1825/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1826/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1827/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1828/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1829
1830_ASUNAME
1831
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
5213506e
RW
1837 $as_echo "PATH: $as_dir"
1838 done
1839IFS=$as_save_IFS
1c710c3c
DJ
1840
1841} >&5
1842
1843cat >&5 <<_ACEOF
1844
1845
1846## ----------- ##
1847## Core tests. ##
1848## ----------- ##
1849
1850_ACEOF
1851
1852
1853# Keep a trace of the command line.
1854# Strip out --no-create and --no-recursion so they do not pile up.
1855# Strip out --silent because we don't want to record it for future runs.
1856# Also quote any args containing shell meta-characters.
1857# Make two passes to allow for proper duplicate-argument suppression.
1858ac_configure_args=
1859ac_configure_args0=
1860ac_configure_args1=
1c710c3c
DJ
1861ac_must_keep_next=false
1862for ac_pass in 1 2
1863do
1864 for ac_arg
1865 do
1866 case $ac_arg in
1867 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1869 | -silent | --silent | --silen | --sile | --sil)
1870 continue ;;
5213506e
RW
1871 *\'*)
1872 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1873 esac
1874 case $ac_pass in
5213506e 1875 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1876 2)
5213506e 1877 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1878 if test $ac_must_keep_next = true; then
1879 ac_must_keep_next=false # Got value, back to normal.
1880 else
1881 case $ac_arg in
1882 *=* | --config-cache | -C | -disable-* | --disable-* \
1883 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1884 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1885 | -with-* | --with-* | -without-* | --without-* | --x)
1886 case "$ac_configure_args0 " in
1887 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1888 esac
1889 ;;
1890 -* ) ac_must_keep_next=true ;;
1891 esac
1892 fi
5213506e 1893 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1894 ;;
1895 esac
1896 done
1897done
5213506e
RW
1898{ ac_configure_args0=; unset ac_configure_args0;}
1899{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1900
1901# When interrupted or exit'd, cleanup temporary files, and complete
1902# config.log. We remove comments because anyway the quotes in there
1903# would cause problems or look ugly.
5213506e
RW
1904# WARNING: Use '\'' to represent an apostrophe within the trap.
1905# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1906trap 'exit_status=$?
1907 # Save into config.log some information that might help in debugging.
1908 {
1909 echo
1910
1911 cat <<\_ASBOX
1912## ---------------- ##
1913## Cache variables. ##
1914## ---------------- ##
1915_ASBOX
1916 echo
1917 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1918(
1919 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in #(
1922 *${as_nl}*)
1923 case $ac_var in #(
1924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926 esac
1927 case $ac_var in #(
1928 _ | IFS | as_nl) ;; #(
1929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930 *) { eval $ac_var=; unset $ac_var;} ;;
1931 esac ;;
1932 esac
1933 done
1c710c3c 1934 (set) 2>&1 |
5213506e
RW
1935 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936 *${as_nl}ac_space=\ *)
1c710c3c 1937 sed -n \
5213506e
RW
1938 "s/'\''/'\''\\\\'\'''\''/g;
1939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940 ;; #(
1c710c3c 1941 *)
5213506e 1942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 1943 ;;
5213506e
RW
1944 esac |
1945 sort
1946)
1c710c3c
DJ
1947 echo
1948
1949 cat <<\_ASBOX
1950## ----------------- ##
1951## Output variables. ##
1952## ----------------- ##
1953_ASBOX
1954 echo
1955 for ac_var in $ac_subst_vars
1956 do
5213506e
RW
1957 eval ac_val=\$$ac_var
1958 case $ac_val in
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960 esac
1961 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1962 done | sort
1963 echo
1964
1965 if test -n "$ac_subst_files"; then
1966 cat <<\_ASBOX
5213506e
RW
1967## ------------------- ##
1968## File substitutions. ##
1969## ------------------- ##
1c710c3c
DJ
1970_ASBOX
1971 echo
1972 for ac_var in $ac_subst_files
1973 do
5213506e
RW
1974 eval ac_val=\$$ac_var
1975 case $ac_val in
1976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 esac
1978 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1979 done | sort
1980 echo
1981 fi
1982
1983 if test -s confdefs.h; then
1984 cat <<\_ASBOX
1985## ----------- ##
1986## confdefs.h. ##
1987## ----------- ##
1988_ASBOX
1989 echo
5213506e 1990 cat confdefs.h
1c710c3c
DJ
1991 echo
1992 fi
1993 test "$ac_signal" != 0 &&
5213506e
RW
1994 $as_echo "$as_me: caught signal $ac_signal"
1995 $as_echo "$as_me: exit $exit_status"
1c710c3c 1996 } >&5
5213506e
RW
1997 rm -f core *.core core.conftest.* &&
1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 1999 exit $exit_status
5213506e 2000' 0
1c710c3c 2001for ac_signal in 1 2 13 15; do
5213506e 2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2003done
2004ac_signal=0
2005
2006# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2007rm -f -r conftest* confdefs.h
2008
2009$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2010
2011# Predefined preprocessor variables.
2012
2013cat >>confdefs.h <<_ACEOF
2014#define PACKAGE_NAME "$PACKAGE_NAME"
2015_ACEOF
2016
1c710c3c
DJ
2017cat >>confdefs.h <<_ACEOF
2018#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2019_ACEOF
2020
1c710c3c
DJ
2021cat >>confdefs.h <<_ACEOF
2022#define PACKAGE_VERSION "$PACKAGE_VERSION"
2023_ACEOF
0b0dc272 2024
1c710c3c
DJ
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_STRING "$PACKAGE_STRING"
2027_ACEOF
2028
1c710c3c
DJ
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2031_ACEOF
2032
5213506e
RW
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_URL "$PACKAGE_URL"
2035_ACEOF
2036
1c710c3c
DJ
2037
2038# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2039# Prefer an explicitly selected file to automatically selected ones.
2040ac_site_file1=NONE
2041ac_site_file2=NONE
2042if test -n "$CONFIG_SITE"; then
2043 ac_site_file1=$CONFIG_SITE
2044elif test "x$prefix" != xNONE; then
2045 ac_site_file1=$prefix/share/config.site
2046 ac_site_file2=$prefix/etc/config.site
2047else
2048 ac_site_file1=$ac_default_prefix/share/config.site
2049 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2050fi
5213506e
RW
2051for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2052do
2053 test "x$ac_site_file" = xNONE && continue
671aa708 2054 if test -r "$ac_site_file"; then
5213506e
RW
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2056$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2057 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2058 . "$ac_site_file"
2059 fi
2060done
2061
2062if test -r "$cache_file"; then
1c710c3c
DJ
2063 # Some versions of bash will fail to source /dev/null (special
2064 # files actually), so we avoid doing that.
2065 if test -f "$cache_file"; then
5213506e
RW
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2068 case $cache_file in
5213506e
RW
2069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070 *) . "./$cache_file";;
1c710c3c
DJ
2071 esac
2072 fi
671aa708 2073else
5213506e
RW
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2076 >$cache_file
2077fi
2078
2079# Check that the precious variables saved in the cache have kept the same
2080# value.
2081ac_cache_corrupted=false
5213506e 2082for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2083 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2084 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2085 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2086 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2087 case $ac_old_set,$ac_new_set in
2088 set,)
5213506e
RW
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2090$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2091 ac_cache_corrupted=: ;;
2092 ,set)
5213506e
RW
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2094$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2095 ac_cache_corrupted=: ;;
2096 ,);;
2097 *)
2098 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2099 # differences in whitespace do not lead to failure.
2100 ac_old_val_w=`echo x $ac_old_val`
2101 ac_new_val_w=`echo x $ac_new_val`
2102 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2104$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2105 ac_cache_corrupted=:
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2108$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2109 eval $ac_var=\$ac_old_val
2110 fi
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2112$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2114$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2115 fi;;
2116 esac
2117 # Pass precious variables to config.status.
2118 if test "$ac_new_set" = set; then
2119 case $ac_new_val in
5213506e 2120 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2121 *) ac_arg=$ac_var=$ac_new_val ;;
2122 esac
2123 case " $ac_configure_args " in
2124 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2125 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2126 esac
2127 fi
2128done
2129if $ac_cache_corrupted; then
5213506e
RW
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2133$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2134 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2135fi
5213506e
RW
2136## -------------------- ##
2137## Main body of script. ##
2138## -------------------- ##
671aa708 2139
2aeb72e9
DD
2140ac_ext=c
2141ac_cpp='$CPP $CPPFLAGS'
2142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145
1c710c3c
DJ
2146
2147
2148
1c710c3c
DJ
2149
2150
0115d4a3 2151
1c710c3c 2152
ad33ff57
RW
2153
2154progname=$0
2155# if PWD already has a value, it is probably wrong.
2156if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2157
2158# Export original configure arguments for use by sub-configures.
2159# Quote arguments with shell meta charatcers.
2160TOPLEVEL_CONFIGURE_ARGUMENTS=
2161set -- "$progname" "$@"
2162for ac_arg
2163do
2164 case "$ac_arg" in
2165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2166 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2167 # if the argument is of the form -foo=baz, quote the baz part only
2168 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2169 *) ;;
2170 esac
2171 # Add the quoted argument to the list.
2172 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2173done
2174if test "$silent" = yes; then
2175 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2176fi
2177# Remove the initial space we just introduced and, as these will be
2178# expanded by make, quote '$'.
2179TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2180
1c710c3c
DJ
2181
2182# Find the build, host, and target systems.
671aa708 2183ac_aux_dir=
5213506e
RW
2184for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185 for ac_t in install-sh install.sh shtool; do
2186 if test -f "$ac_dir/$ac_t"; then
2187 ac_aux_dir=$ac_dir
2188 ac_install_sh="$ac_aux_dir/$ac_t -c"
2189 break 2
2190 fi
2191 done
671aa708
NN
2192done
2193if test -z "$ac_aux_dir"; then
5213506e 2194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2195fi
5213506e
RW
2196
2197# These three variables are undocumented and unsupported,
2198# and are intended to be withdrawn in a future Autoconf release.
2199# They can cause serious problems if a builder's source tree is in a directory
2200# whose full name contains unusual characters.
2201ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2202ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2203ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2204
671aa708 2205
1c710c3c 2206# Make sure we can run config.sub.
5213506e
RW
2207$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2209
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2211$as_echo_n "checking build system type... " >&6; }
2212if test "${ac_cv_build+set}" = set; then :
2213 $as_echo_n "(cached) " >&6
2214else
2215 ac_build_alias=$build_alias
2216test "x$ac_build_alias" = x &&
2217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2218test "x$ac_build_alias" = x &&
2219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2220ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2222
2223fi
2224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2225$as_echo "$ac_cv_build" >&6; }
2226case $ac_cv_build in
2227*-*-*) ;;
2228*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2229esac
1c710c3c 2230build=$ac_cv_build
5213506e
RW
2231ac_save_IFS=$IFS; IFS='-'
2232set x $ac_cv_build
2233shift
2234build_cpu=$1
2235build_vendor=$2
2236shift; shift
2237# Remember, the first character of IFS is used to create $*,
2238# except with old shells:
2239build_os=$*
2240IFS=$ac_save_IFS
2241case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2242
671aa708 2243
1c710c3c
DJ
2244 case ${build_alias} in
2245 "") build_noncanonical=${build} ;;
2246 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2247esac
2248
2249
af71363e 2250
1c710c3c
DJ
2251 case ${host_alias} in
2252 "") host_noncanonical=${build_noncanonical} ;;
2253 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2254esac
2255
af71363e 2256
1c710c3c
DJ
2257
2258 case ${target_alias} in
2259 "") target_noncanonical=${host_noncanonical} ;;
2260 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2261esac
2262
af71363e 2263
1c710c3c
DJ
2264
2265
2266test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2268 NONENONEs,x,x, &&
1c710c3c 2269 program_transform_name=s,y,y,
af71363e 2270
5213506e
RW
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2272$as_echo_n "checking host system type... " >&6; }
2273if test "${ac_cv_host+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
af71363e 2275else
5213506e
RW
2276 if test "x$host_alias" = x; then
2277 ac_cv_host=$ac_cv_build
2278else
2279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2280 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2281fi
1c710c3c 2282
af71363e 2283fi
5213506e
RW
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2285$as_echo "$ac_cv_host" >&6; }
2286case $ac_cv_host in
2287*-*-*) ;;
2288*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2289esac
1c710c3c 2290host=$ac_cv_host
5213506e
RW
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_host
2293shift
2294host_cpu=$1
2295host_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299host_os=$*
2300IFS=$ac_save_IFS
2301case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2302
2303
5213506e
RW
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2305$as_echo_n "checking target system type... " >&6; }
2306if test "${ac_cv_target+set}" = set; then :
2307 $as_echo_n "(cached) " >&6
1c710c3c 2308else
5213506e
RW
2309 if test "x$target_alias" = x; then
2310 ac_cv_target=$ac_cv_host
2311else
2312 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2313 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2314fi
1c710c3c
DJ
2315
2316fi
5213506e
RW
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2318$as_echo "$ac_cv_target" >&6; }
2319case $ac_cv_target in
2320*-*-*) ;;
2321*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2322esac
1c710c3c 2323target=$ac_cv_target
5213506e
RW
2324ac_save_IFS=$IFS; IFS='-'
2325set x $ac_cv_target
2326shift
2327target_cpu=$1
2328target_vendor=$2
2329shift; shift
2330# Remember, the first character of IFS is used to create $*,
2331# except with old shells:
2332target_os=$*
2333IFS=$ac_save_IFS
2334case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2335
2336
2337# The aliases save the names the user supplied, while $host etc.
2338# will get canonicalized.
2339test -n "$target_alias" &&
2340 test "$program_prefix$program_suffix$program_transform_name" = \
2341 NONENONEs,x,x, &&
2342 program_prefix=${target_alias}-
5213506e 2343
671aa708 2344test "$program_prefix" != NONE &&
5213506e 2345 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2346# Use a double $ so make ignores it.
2347test "$program_suffix" != NONE &&
5213506e
RW
2348 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2349# Double any \ or $.
1c710c3c 2350# By default was `s,x,x', remove it if useless.
5213506e
RW
2351ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2352program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2353
671aa708
NN
2354
2355
775956d0
NN
2356# Get 'install' or 'install-sh' and its variants.
2357# Find a good install program. We prefer a C program (faster),
2358# so one script is as good as another. But avoid the broken or
2359# incompatible versions:
2360# SysV /etc/install, /usr/sbin/install
2361# SunOS /usr/etc/install
2362# IRIX /sbin/install
2363# AIX /bin/install
1c710c3c 2364# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2368# OS/2's system install, which has a completely different semantic
775956d0 2369# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2370# Reject install programs that cannot install multiple files.
5213506e
RW
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2373if test -z "$INSTALL"; then
5213506e
RW
2374if test "${ac_cv_path_install+set}" = set; then :
2375 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2376else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378for as_dir in $PATH
2379do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
5213506e
RW
2382 # Account for people who put trailing slashes in PATH elements.
2383case $as_dir/ in #((
2384 ./ | .// | /[cC]/* | \
1c710c3c 2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2387 /usr/ucb/* ) ;;
2388 *)
2389 # OSF1 and SCO ODT 3.0 have their own names for install.
2390 # Don't use installbsd from OSF since it installs stuff as root
2391 # by default.
2392 for ac_prog in ginstall scoinst install; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2395 if test $ac_prog = install &&
1c710c3c 2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2397 # AIX install. It has an incompatible calling convention.
2398 :
1c710c3c
DJ
2399 elif test $ac_prog = install &&
2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # program-specific install script used by HP pwplus--don't use.
2402 :
775956d0 2403 else
38d24731
RW
2404 rm -rf conftest.one conftest.two conftest.dir
2405 echo one > conftest.one
2406 echo two > conftest.two
2407 mkdir conftest.dir
2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409 test -s conftest.one && test -s conftest.two &&
2410 test -s conftest.dir/conftest.one &&
2411 test -s conftest.dir/conftest.two
2412 then
2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2414 break 3
2415 fi
775956d0
NN
2416 fi
2417 fi
2418 done
1c710c3c
DJ
2419 done
2420 ;;
2421esac
5213506e
RW
2422
2423 done
2424IFS=$as_save_IFS
1c710c3c 2425
38d24731 2426rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2427
2428fi
2429 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2430 INSTALL=$ac_cv_path_install
775956d0 2431 else
38d24731
RW
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for INSTALL within a source directory, because that will
775956d0 2434 # break other packages using the cache if that directory is
38d24731 2435 # removed, or if the value is a relative name.
1c710c3c 2436 INSTALL=$ac_install_sh
775956d0
NN
2437 fi
2438fi
5213506e
RW
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440$as_echo "$INSTALL" >&6; }
775956d0
NN
2441
2442# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443# It thinks the first close brace ends the variable substitution.
2444test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2445
1c710c3c 2446test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2447
2448test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2449
5213506e
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2451$as_echo_n "checking whether ln works... " >&6; }
2452if test "${acx_cv_prog_LN+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
ad6717df
PB
2454else
2455 rm -f conftestdata_t
2456echo >conftestdata_f
2457if ln conftestdata_f conftestdata_t 2>/dev/null
2458then
2459 acx_cv_prog_LN=ln
2460else
2461 acx_cv_prog_LN=no
2462fi
2463rm -f conftestdata_f conftestdata_t
2464
2465fi
2466if test $acx_cv_prog_LN = no; then
2467 LN="cp"
5213506e
RW
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2469$as_echo "no, using $LN" >&6; }
ad6717df
PB
2470else
2471 LN="$acx_cv_prog_LN"
5213506e
RW
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473$as_echo "yes" >&6; }
ad6717df
PB
2474fi
2475
5213506e
RW
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2477$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2478LN_S=$as_ln_s
2479if test "$LN_S" = "ln -s"; then
5213506e
RW
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481$as_echo "yes" >&6; }
fb0103e5 2482else
5213506e
RW
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2484$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2485fi
2486
87264276
PB
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2488$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2489if test "${ac_cv_path_SED+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491else
2492 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2493 for ac_i in 1 2 3 4 5 6 7; do
2494 ac_script="$ac_script$as_nl$ac_script"
2495 done
2496 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2497 { ac_script=; unset ac_script;}
2498 if test -z "$SED"; then
2499 ac_path_SED_found=false
2500 # Loop through the user's path and test for each of PROGNAME-LIST
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_prog in sed gsed; do
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2509 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2510# Check for GNU ac_path_SED and select it if it is found.
2511 # Check for GNU $ac_path_SED
2512case `"$ac_path_SED" --version 2>&1` in
2513*GNU*)
2514 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2515*)
2516 ac_count=0
2517 $as_echo_n 0123456789 >"conftest.in"
2518 while :
2519 do
2520 cat "conftest.in" "conftest.in" >"conftest.tmp"
2521 mv "conftest.tmp" "conftest.in"
2522 cp "conftest.in" "conftest.nl"
2523 $as_echo '' >> "conftest.nl"
2524 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2526 as_fn_arith $ac_count + 1 && ac_count=$as_val
2527 if test $ac_count -gt ${ac_path_SED_max-0}; then
2528 # Best one so far, save it but keep looking for a better one
2529 ac_cv_path_SED="$ac_path_SED"
2530 ac_path_SED_max=$ac_count
2531 fi
2532 # 10*(2^10) chars as input seems more than enough
2533 test $ac_count -gt 10 && break
2534 done
2535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2536esac
2537
2538 $ac_path_SED_found && break 3
2539 done
2540 done
2541 done
2542IFS=$as_save_IFS
2543 if test -z "$ac_cv_path_SED"; then
2544 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2545 fi
2546else
2547 ac_cv_path_SED=$SED
2548fi
2549
2550fi
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2552$as_echo "$ac_cv_path_SED" >&6; }
2553 SED="$ac_cv_path_SED"
2554 rm -f conftest.sed
2555
2556for ac_prog in gawk mawk nawk awk
2557do
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559set dummy $ac_prog; ac_word=$2
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if test "${ac_cv_prog_AWK+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2564else
2565 if test -n "$AWK"; then
2566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_AWK="$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579done
2580 done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585AWK=$ac_cv_prog_AWK
2586if test -n "$AWK"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588$as_echo "$AWK" >&6; }
2589else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
2592fi
2593
2594
2595 test -n "$AWK" && break
2596done
2597
775956d0 2598
79c06341 2599### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
2600### If we are on Windows, search for the shell. This will permit people
2601### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2602### without also having to set CONFIG_SHELL. This code will work when
2603### using bash, which sets OSTYPE.
2604case "${OSTYPE}" in
2605*win32*)
671aa708
NN
2606 if test x${CONFIG_SHELL} = x ; then
2607 if test ! -f /bin/sh ; then
2608 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
2609 CONFIG_SHELL=${SHELL}
2610 export CONFIG_SHELL
2611 else
2612 for prog in sh sh.exe bash bash.exe; do
2613 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2614 for dir in $PATH; do
2615 test -z "$dir" && dir=.
2616 if test -f $dir/$prog; then
2617 CONFIG_SHELL=$dir/$prog
2618 export CONFIG_SHELL
2619 break
2620 fi
2621 done
2622 IFS="$save_ifs"
2623 test -n "${CONFIG_SHELL}" && break
2624 done
2625 fi
2626 fi
2627 fi
2628 ;;
2629esac
2630
2631config_shell=${CONFIG_SHELL-/bin/sh}
2632
671aa708 2633moveifchange=${srcdir}/move-if-change
79c06341 2634
ee6a22df
L
2635srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2636
2637# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2638# a relative path.
2639if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2640 INSTALL="${srcpwd}/install-sh -c"
2641fi
2642
671aa708
NN
2643# Set srcdir to "." if that's what it is.
2644# This is important for multilib support.
2645pwd=`${PWDCMD-pwd}`
671aa708
NN
2646if test "${pwd}" = "${srcpwd}" ; then
2647 srcdir=.
79c06341
JL
2648fi
2649
671aa708 2650topsrcdir=$srcpwd
5d4a5ee6 2651
671aa708 2652extra_host_args=
afabd8e6 2653
671aa708
NN
2654### To add a new directory to the tree, first choose whether it is a target
2655### or a host dependent tool. Then put it into the appropriate list
2656### (library or tools, host or target), doing a dependency sort.
79c06341 2657
1c710c3c 2658# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2659# configdirs, or target_configdirs; see the serialization section below.
79c06341 2660
1c710c3c
DJ
2661# Dependency sorting is only needed when *configuration* must be done in
2662# a particular order. In all cases a dependency should be specified in
671aa708 2663# the Makefile, whether or not it's implicitly specified here.
79c06341 2664
671aa708
NN
2665# Double entries in build_configdirs, configdirs, or target_configdirs may
2666# cause circular dependencies and break everything horribly.
79c06341 2667
23f6b2f9
PB
2668# these library is used by various programs built for the build
2669# environment
2670#
2671build_libs="build-libiberty"
2672
2673# these tools are built for the build environment
71b5d516 2674build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2675
671aa708
NN
2676# these libraries are used by various programs built for the host environment
2677#
f61428ed 2678host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
671aa708 2679
671aa708
NN
2680# these tools are built for the host environment
2681# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2682# know that we are building the simulator.
2683# binutils, gas and ld appear in that order because it makes sense to run
2684# "make check" in that particular order.
38e3d868 2685# If --enable-gold is used, "gold" may replace "ld".
8c32c9f0 2686host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
2687
2688# libgcj represents the runtime libraries only used by gcj.
2689libgcj="target-libffi \
671aa708
NN
2690 target-zlib \
2691 target-qthreads \
2692 target-libjava"
2693
2694# these libraries are built for the target environment, and are built after
2695# the host libraries and the host tools (which may be a cross compiler)
2696#
291f172e
DJ
2697target_libraries="target-libgcc \
2698 target-libiberty \
671aa708
NN
2699 target-libgloss \
2700 target-newlib \
6d3b5aea 2701 target-libgomp \
cb543528 2702 target-libstdc++-v3 \
6de9cd9a 2703 target-libmudflap \
77008252 2704 target-libssp \
1ec601bf 2705 target-libquadmath \
6de9cd9a 2706 target-libgfortran \
7cd0cf9c 2707 target-boehm-gc \
77d187bc 2708 ${libgcj} \
d9cdb878 2709 target-libobjc \
632e2a07
ILT
2710 target-libada \
2711 target-libgo"
671aa708 2712
4dbda6f0
NN
2713# these tools are built using the target libraries, and are intended to
2714# run only in the target environment
671aa708 2715#
4dbda6f0 2716# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
2717# list belongs in this list. those programs are also very likely
2718# candidates for the "native_only" list which follows
2719#
97286f7f 2720target_tools="target-examples target-groff target-gperf target-rda"
79c06341 2721
671aa708 2722################################################################################
79c06341 2723
671aa708
NN
2724## All tools belong in one of the four categories, and are assigned above
2725## We assign ${configdirs} this way to remove all embedded newlines. This
2726## is important because configure will choke if they ever get through.
2727## ${configdirs} is directories we build using the host tools.
2728## ${target_configdirs} is directories we build using the target tools.
671aa708 2729configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2730target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2731build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2732
ac9e6043
RW
2733
2734
671aa708 2735################################################################################
79c06341 2736
671aa708 2737srcname="gnu development package"
79c06341 2738
671aa708
NN
2739# This gets set non-empty for some net releases of packages.
2740appdirs=""
79c06341 2741
671aa708
NN
2742# Define is_cross_compiler to save on calls to 'test'.
2743is_cross_compiler=
2744if test x"${host}" = x"${target}" ; then
2745 is_cross_compiler=no
79c06341 2746else
671aa708 2747 is_cross_compiler=yes
1c710c3c 2748fi
79c06341 2749
b4acb5ef 2750# Find the build and target subdir names.
8b87bb96 2751
2e9e6f68
DJ
2752# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2753# have matching libraries, they should use host libraries: Makefile.tpl
2754# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2755# However, they still use the build modules, because the corresponding
2756# host modules (e.g. bison) are only built for the host when bootstrap
2757# finishes. So:
2758# - build_subdir is where we find build modules, and never changes.
2759# - build_libsubdir is where we find build libraries, and can be overridden.
2760
2761# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2762build_subdir="build-${build_noncanonical}"
1c710c3c 2763
5213506e
RW
2764# Check whether --with-build-libsubdir was given.
2765if test "${with_build_libsubdir+set}" = set; then :
2766 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2767else
2768 build_libsubdir="$build_subdir"
5213506e
RW
2769fi
2770
215c351a
PB
2771# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2772if ( test $srcdir = . && test -d gcc ) \
2773 || test -d $srcdir/../host-${host_noncanonical}; then
2774 host_subdir="host-${host_noncanonical}"
2775else
2776 host_subdir=.
2777fi
8b87bb96
NN
2778# No prefix.
2779target_subdir=${target_noncanonical}
1c710c3c 2780
0db770bd
RW
2781# Be sure to cover against remnants of an in-tree build.
2782if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2783 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2784Use a pristine source tree when building in a separate tree" "$LINENO" 5
2785fi
79c06341 2786
671aa708
NN
2787# Skipdirs are removed silently.
2788skipdirs=
2789# Noconfigdirs are removed loudly.
2790noconfigdirs=""
79c06341 2791
671aa708
NN
2792use_gnu_ld=
2793# Make sure we don't let GNU ld be added if we didn't want it.
2794if test x$with_gnu_ld = xno ; then
2795 use_gnu_ld=no
5afab7ad 2796 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2797fi
2798
671aa708
NN
2799use_gnu_as=
2800# Make sure we don't let GNU as be added if we didn't want it.
2801if test x$with_gnu_as = xno ; then
2802 use_gnu_as=no
2803 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2804fi
2805
d7f09764
DN
2806use_included_zlib=
2807# Make sure we don't let ZLIB be added if we didn't want it.
2808if test x$with_system_zlib = xyes ; then
2809 use_included_zlib=no
2810 noconfigdirs="$noconfigdirs zlib"
2811fi
2812
1c710c3c 2813# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2814# it's not even worth trying to configure, much less build, that tool.
79c06341 2815
671aa708
NN
2816case ${with_x} in
2817 yes | "") ;; # the default value for this tree is that X11 is available
2818 no)
b4f96efe 2819 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2820 # We won't be able to build gdbtk without X.
1c710c3c 2821 enable_gdbtk=no
671aa708
NN
2822 ;;
2823 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2824esac
79c06341 2825
671aa708 2826# Some tools are only suitable for building in a "native" situation.
1c710c3c 2827# Remove these if host!=target.
9e299237 2828native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 2829
671aa708
NN
2830# Similarly, some are only suitable for cross toolchains.
2831# Remove these if host=target.
2832cross_only="target-libgloss target-newlib target-opcodes"
2833
2834case $is_cross_compiler in
2835 no) skipdirs="${skipdirs} ${cross_only}" ;;
2836 yes) skipdirs="${skipdirs} ${native_only}" ;;
2837esac
79c06341 2838
671aa708
NN
2839# If both --with-headers and --with-libs are specified, default to
2840# --without-newlib.
ee6a22df
L
2841if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2842 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2843 if test x"${with_newlib}" = x ; then
2844 with_newlib=no
2845 fi
79c06341
JL
2846fi
2847
671aa708
NN
2848# Recognize --with-newlib/--without-newlib.
2849case ${with_newlib} in
2850 no) skipdirs="${skipdirs} target-newlib" ;;
2851 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2852esac
79c06341 2853
21539e2e
MK
2854# Handle --enable-gold, --enable-ld.
2855# --disable-gold [--enable-ld]
2856# Build only ld. Default option.
9580395f
L
2857# --enable-gold [--enable-ld]
2858# Build both gold and ld. Install gold as "ld.gold", install ld
2859# as "ld.bfd" and "ld".
2860# --enable-gold=default [--enable-ld]
21539e2e
MK
2861# Build both gold and ld. Install gold as "ld.gold" and "ld",
2862# install ld as "ld.bfd".
2863# --enable-gold[=default] --disable-ld
2864# Build only gold, which is then installed as both "ld.gold" and "ld".
2865# --enable-gold --enable-ld=default
9580395f
L
2866# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2867# and ld.bfd).
21539e2e
MK
2868# In other words, ld is default
2869# --enable-gold=default --enable-ld=default
2870# Error.
2871
2872default_ld=
5213506e
RW
2873# Check whether --enable-gold was given.
2874if test "${enable_gold+set}" = set; then :
2875 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2876else
2877 ENABLE_GOLD=no
5213506e
RW
2878fi
2879
21539e2e
MK
2880case "${ENABLE_GOLD}" in
2881 yes|default)
38e3d868
RM
2882 # Check for ELF target.
2883 is_elf=no
2884 case "${target}" in
2885 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2886 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2887 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2888 case "${target}" in
2889 *-*-linux*aout* | *-*-linux*oldld*)
2890 ;;
2891 *)
2892 is_elf=yes
2893 ;;
2894 esac
2895 esac
2896
2897 if test "$is_elf" = "yes"; then
2898 # Check for target supported by gold.
5afab7ad 2899 case "${target}" in
38e3d868 2900 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
21539e2e
MK
2901 configdirs="$configdirs gold"
2902 if test x${ENABLE_GOLD} = xdefault; then
2903 default_ld=gold
2904 fi
38e3d868 2905 ENABLE_GOLD=yes
5afab7ad
ILT
2906 ;;
2907 esac
38e3d868
RM
2908 fi
2909 ;;
2910 no)
2911 ;;
2912 *)
2913 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2914 ;;
21539e2e
MK
2915esac
2916
2917# Check whether --enable-ld was given.
2918if test "${enable_ld+set}" = set; then :
2919 enableval=$enable_ld; ENABLE_LD=$enableval
2920else
2921 ENABLE_LD=yes
2922fi
2923
2924
2925case "${ENABLE_LD}" in
2926 default)
9580395f 2927 if test x${default_ld} != x; then
21539e2e
MK
2928 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2929 fi
2930 ;;
2931 yes)
2932 ;;
2933 no)
2934 if test x${ENABLE_GOLD} != xyes; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2936$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2937 fi
2938 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2939 ;;
2940 *)
2941 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2942 ;;
2943esac
5afab7ad 2944
671aa708 2945# Configure extra directories which are host specific
79c06341 2946
671aa708
NN
2947case "${host}" in
2948 *-cygwin*)
2949 configdirs="$configdirs libtermcap" ;;
2950esac
79c06341 2951
4fab7234
HPN
2952# A target can indicate whether a language isn't supported for some reason.
2953# Only spaces may be used in this macro; not newlines or tabs.
2954unsupported_languages=
2955
1c710c3c 2956# Remove more programs from consideration, based on the host or
671aa708
NN
2957# target this usually means that a port of the program doesn't
2958# exist yet.
ec8d6ddc 2959
671aa708
NN
2960case "${host}" in
2961 hppa*64*-*-*)
2962 noconfigdirs="$noconfigdirs byacc"
2963 ;;
f2a0e225 2964 i[3456789]86-*-vsta)
b4f96efe 2965 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2966 ;;
f2a0e225 2967 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2968 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2969 ;;
95af8923
KT
2970 x86_64-*-mingw*)
2971 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2972 ;;
f2a0e225 2973 i[3456789]86-*-mingw32*)
b4f96efe 2974 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2975 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2976 ;;
f2a0e225 2977 i[3456789]86-*-beos*)
b4f96efe 2978 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2979 ;;
671aa708 2980 *-*-cygwin*)
a22c2d8d 2981 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2982 ;;
2983 *-*-netbsd*)
a22c2d8d 2984 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2985 ;;
2986 ppc*-*-pe)
b4f96efe 2987 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2988 ;;
2989 powerpc-*-beos*)
b4f96efe 2990 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2991 ;;
671aa708 2992esac
ec8d6ddc 2993
6de9cd9a 2994
5213506e
RW
2995# Check whether --enable-libada was given.
2996if test "${enable_libada+set}" = set; then :
2997 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
2998else
2999 ENABLE_LIBADA=yes
5213506e
RW
3000fi
3001
d9cdb878 3002if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3003 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3004fi
3005
5213506e
RW
3006# Check whether --enable-libssp was given.
3007if test "${enable_libssp+set}" = set; then :
3008 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3009else
3010 ENABLE_LIBSSP=yes
5213506e
RW
3011fi
3012
ef0087a7 3013
671aa708
NN
3014# Save it here so that, even in case of --enable-libgcj, if the Java
3015# front-end isn't enabled, we still get libgcj disabled.
3016libgcj_saved=$libgcj
3017case $enable_libgcj in
3018yes)
3019 # If we reset it here, it won't get added to noconfigdirs in the
3020 # target-specific build rules, so it will be forcibly enabled
3021 # (unless the Java language itself isn't enabled).
3022 libgcj=
3023 ;;
3024no)
3025 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3026 # Don't disable libffi, though, other languages use it.
3027 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
671aa708
NN
3028 ;;
3029esac
ec8d6ddc 3030
6de9cd9a 3031
27079765
AH
3032# Disable libmudflap on some systems.
3033if test x$enable_libmudflap = x ; then
dfcada9a 3034 case "${target}" in
416ac4d4 3035 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3036 # Enable libmudflap by default in GNU and friends.
dfcada9a 3037 ;;
a3e8d8b4
LR
3038 *-*-freebsd*)
3039 # Enable libmudflap by default in FreeBSD.
3040 ;;
dfcada9a
MM
3041 *)
3042 # Disable it by default everywhere else.
3043 noconfigdirs="$noconfigdirs target-libmudflap"
3044 ;;
3045 esac
27079765 3046fi
6de9cd9a 3047
27079765
AH
3048# Disable libgomp on non POSIX hosted systems.
3049if test x$enable_libgomp = x ; then
953ff289
DN
3050 # Enable libgomp by default on hosted POSIX systems.
3051 case "${target}" in
416ac4d4 3052 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
3053 ;;
3054 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3055 ;;
04879af3 3056 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3057 ;;
cac90078 3058 *-*-darwin* | *-*-aix*)
953ff289
DN
3059 ;;
3060 *)
3061 noconfigdirs="$noconfigdirs target-libgomp"
3062 ;;
3063 esac
27079765 3064fi
953ff289 3065
c03353e2
RIL
3066# Default libgloss CPU subdirectory.
3067libgloss_dir="$target_cpu"
6de9cd9a 3068
671aa708
NN
3069case "${target}" in
3070 *-*-chorusos)
cb253473 3071 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3072 ;;
75eeae1a 3073 powerpc-*-darwin*)
e1514c3f 3074 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3075 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3076 ;;
354ebf88
RW
3077 i[3456789]86-*-darwin*)
3078 noconfigdirs="$noconfigdirs ld gprof"
3079 noconfigdirs="$noconfigdirs sim target-rda"
3080 ;;
3081 x86_64-*-darwin[912]*)
0db3a858
TG
3082 noconfigdirs="$noconfigdirs ld gas gprof"
3083 noconfigdirs="$noconfigdirs sim target-rda"
3084 ;;
42c1cd8a
AT
3085 *-*-darwin*)
3086 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3087 noconfigdirs="$noconfigdirs sim target-rda"
3088 noconfigdirs="$noconfigdirs ${libgcj}"
3089 ;;
671aa708 3090 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 3091 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3092 ;;
c3f84f61 3093 *-*-freebsd*)
6de9cd9a
DN
3094 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3095 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3096 && test -f /usr/local/include/gmp.h; then
3097 with_gmp=/usr/local
3098 fi
3099
3100 # Skip some stuff that's unsupported on some FreeBSD configurations.
3101 case "${target}" in
3102 i*86-*-*) ;;
3103 alpha*-*-*) ;;
f3f623ae 3104 x86_64-*-*) ;;
6de9cd9a 3105 *)
cb253473 3106 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
3107 ;;
3108 esac
3109 ;;
ef4e7569
US
3110 *-*-kaos*)
3111 # Remove unsupported stuff on all kaOS configurations.
cb253473 3112 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
3113 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3114 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3115 noconfigdirs="$noconfigdirs target-libgloss"
3116 ;;
671aa708
NN
3117 *-*-netbsd*)
3118 # Skip some stuff on all NetBSD configurations.
3119 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3120
3121 # Skip some stuff that's unsupported on some NetBSD configurations.
3122 case "${target}" in
3123 i*86-*-netbsdelf*) ;;
0590b963 3124 arm*-*-netbsdelf*) ;;
671aa708 3125 *)
cb253473 3126 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3127 ;;
3128 esac
3129 ;;
61fec9ff 3130 *-*-netware*)
cb253473 3131 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
3132 ;;
3133 *-*-rtems*)
e4522f78 3134 skipdirs="${skipdirs} target-libiberty"
cb253473 3135 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3136 ;;
a8ba31f2
EC
3137 # The tpf target doesn't support gdb yet.
3138 *-*-tpf*)
cb253473 3139 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 3140 ;;
5785c0ed 3141 *-*-uclinux*)
cb253473 3142 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 3143 ;;
671aa708 3144 *-*-vxworks*)
cb253473 3145 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
3146 ;;
3147 alpha*-dec-osf*)
3148 # ld works, but does not support shared libraries.
3149 # newlib is not 64 bit ready. I'm not sure about fileutils.
3150 # gas doesn't generate exception information.
3151 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3152 ;;
3153 alpha*-*-*vms*)
8406cb62 3154 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708
NN
3155 ;;
3156 alpha*-*-linux*)
3157 # newlib is not 64 bit ready
3158 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3159 ;;
671aa708
NN
3160 alpha*-*-*)
3161 # newlib is not 64 bit ready
cb253473 3162 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3163 ;;
33952f6f 3164 am33_2.0-*-linux*)
cb253473 3165 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 3166 ;;
671aa708 3167 sh-*-linux*)
cb253473 3168 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 3169 ;;
671aa708 3170 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 3171 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3172 noconfigdirs="$noconfigdirs target-examples"
3173 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 3174 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3175 noconfigdirs="$noconfigdirs expect dejagnu"
3176 # the C++ libraries don't build on top of CE's C libraries
cb543528 3177 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
3178 noconfigdirs="$noconfigdirs target-newlib"
3179 case "${host}" in
3180 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 3181 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
3182 ;;
3183 esac
c03353e2 3184 libgloss_dir=wince
671aa708
NN
3185 ;;
3186 arc-*-*)
cb253473 3187 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3188 ;;
ee6a22df 3189 arm-semi-aof )
ee6a22df 3190 ;;
671aa708 3191 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 3192 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3193 libgloss_dir=arm
671aa708 3194 ;;
b3f8d95d 3195 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 3196 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 3197 libgloss_dir=arm
671aa708 3198 ;;
077fc835 3199 arm*-*-linux-gnueabi)
c4e9bf2b 3200 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
3201 case ${with_newlib} in
3202 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3203 esac
c03353e2 3204 libgloss_dir=arm
077fc835 3205 ;;
972974fc 3206 arm*-*-symbianelf*)
cb253473 3207 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 3208 libgloss_dir=arm
972974fc 3209 ;;
671aa708 3210 arm-*-pe*)
cb253473 3211 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3212 ;;
671aa708 3213 thumb-*-coff)
cb253473 3214 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3215 ;;
3216 thumb-*-elf)
cb253473 3217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3218 ;;
671aa708 3219 thumb-*-pe)
cb253473 3220 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3221 ;;
3222 arm-*-riscix*)
cb253473 3223 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
3224 ;;
3225 avr-*-*)
ac3949d9 3226 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 3227 ;;
6b65a26d 3228 bfin-*-*)
1c3c9f12
JZ
3229 unsupported_languages="$unsupported_languages java"
3230 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
61efc800 3231 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
3232 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3233 fi
3234 ;;
671aa708 3235 c4x-*-* | tic4x-*-*)
cb253473 3236 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3237 ;;
3238 c54x*-*-* | tic54x-*-*)
cb253473 3239 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 3240 ;;
c993ae60
SR
3241 cr16-*-*)
3242 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3243 ;;
40d64b5a 3244 cris-*-* | crisv32-*-*)
4fab7234 3245 unsupported_languages="$unsupported_languages java"
40d64b5a 3246 case "${target}" in
c2e0d3a9 3247 *-*-aout)
7f26dfa3 3248 unsupported_languages="$unsupported_languages fortran"
4fab7234 3249 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 3250 *-*-elf)
789ec619 3251 noconfigdirs="$noconfigdirs target-boehm-gc";;
c2e0d3a9 3252 *-*-linux*)
789ec619 3253 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 3254 *)
7f26dfa3 3255 unsupported_languages="$unsupported_languages fortran"
cb253473 3256 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 3257 esac
c03353e2 3258 libgloss_dir=cris
671aa708 3259 ;;
25b656e7 3260 crx-*-*)
cb253473 3261 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 3262 ;;
671aa708 3263 d10v-*-*)
cb253473 3264 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3265 ;;
3266 d30v-*-*)
cb253473 3267 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 3268 ;;
c03353e2
RIL
3269 ep9312-*-elf | ep9312-*-coff)
3270 libgloss_dir=arm
3271 ;;
671aa708 3272 fr30-*-elf*)
cb253473 3273 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3274 ;;
3275 frv-*-*)
cb253473 3276 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3277 ;;
55f2d967
AG
3278 moxie-*-*)
3279 noconfigdirs="$noconfigdirs ${libgcj}"
3280 noconfigdirs="$noconfigdirs gprof"
3281 ;;
671aa708 3282 h8300*-*-*)
cb253473 3283 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3284 ;;
3285 h8500-*-*)
cb253473 3286 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3287 ;;
ee6a22df 3288 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3289 ;;
671aa708
NN
3290 hppa*64*-*-linux* | parisc*64*-*-linux*)
3291 # In this case, it's because the hppa64-linux target is for
3292 # the kernel only at this point and has no libc, and thus no
3293 # headers, crt*.o, etc., all of which are needed by these.
3294 noconfigdirs="$noconfigdirs target-zlib"
3295 ;;
3e732ba0
JDA
3296 parisc*-*-linux* | hppa*-*-linux*)
3297 ;;
671aa708 3298 hppa*-*-*elf* | \
671aa708
NN
3299 hppa*-*-lites* | \
3300 hppa*-*-openbsd* | \
3301 hppa*64*-*-*)
cb253473 3302 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3303 ;;
2a332582
JDA
3304 hppa*-hp-hpux11*)
3305 noconfigdirs="$noconfigdirs ld shellutils"
3306 ;;
c03353e2
RIL
3307 hppa*-*-pro*)
3308 libgloss_dir=pa
3309 ;;
671aa708
NN
3310 hppa*-*-*)
3311 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3312 # build on HP-UX 10.20.
cb253473 3313 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 3314 ;;
fb87ad5d 3315 i960-*-*)
cb253473 3316 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 3317 ;;
671aa708
NN
3318 ia64*-*-elf*)
3319 # No gdb support yet.
b4f96efe 3320 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
3321 ;;
3322 ia64*-**-hpux*)
3323 # No gdb or ld support yet.
cb253473 3324 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
671aa708 3325 ;;
52535a64
DR
3326 ia64*-*-*vms*)
3327 # No gdb or ld support yet.
3328 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3329 ;;
ee6a22df 3330 i370-*-opened*)
ee6a22df 3331 ;;
f2a0e225 3332 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3333 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3334 libgloss_dir=i386
671aa708 3335 ;;
f2a0e225 3336 i[3456789]86-*-linux*)
671aa708
NN
3337 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3338 # not build java stuff by default.
3339 case "${target}" in
3340 *-*-*libc1*)
cb253473 3341 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
3342 esac
3343
3344 # This section makes it possible to build newlib natively on linux.
3345 # If we are using a cross compiler then don't configure newlib.
3346 if test x${is_cross_compiler} != xno ; then
3aa83176 3347 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3348 fi
3349 noconfigdirs="$noconfigdirs target-libgloss"
3350 # If we are not using a cross compiler, do configure newlib.
3351 # Note however, that newlib will only be configured in this situation
3352 # if the --with-newlib option has been given, because otherwise
3353 # 'target-newlib' will appear in skipdirs.
3354 ;;
ef4c4300
KT
3355 i[3456789]86-w64-mingw*)
3356 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3357 ;;
3358 i[3456789]86-*-mingw*)
b91f0a41
CV
3359 target_configdirs="$target_configdirs target-winsup"
3360 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3361 ;;
95af8923 3362 x86_64-*-mingw*)
95af8923 3363 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3364 ;;
671aa708
NN
3365 *-*-cygwin*)
3366 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 3367 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 3368 # always build newlib if winsup directory is present.
b91f0a41 3369 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3370 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3371 elif test -d "$srcdir/newlib"; then
b91f0a41 3372 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3373 fi
1c710c3c 3374 ;;
ee6a22df
L
3375 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3376 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 3377 ;;
f2a0e225 3378 i[3456789]86-*-pe)
cb253473 3379 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3380 ;;
f2a0e225 3381 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3382 # The linker does not yet know about weak symbols in COFF,
3383 # and is not configured to handle mixed ELF and COFF.
cb253473 3384 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 3385 ;;
f2a0e225 3386 i[3456789]86-*-sco*)
cb253473 3387 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3388 ;;
f2a0e225 3389 i[3456789]86-*-solaris2*)
671aa708
NN
3390 noconfigdirs="$noconfigdirs target-libgloss"
3391 ;;
f2a0e225 3392 i[3456789]86-*-sysv4*)
cb253473 3393 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3394 ;;
f2a0e225 3395 i[3456789]86-*-beos*)
cb253473 3396 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 3397 ;;
d1f8db0c
PB
3398 i[3456789]86-*-rdos*)
3399 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3400 ;;
fb87ad5d 3401 m32r-*-*)
cb253473 3402 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3403 ;;
671aa708 3404 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 3405 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 3406 libgloss_dir=m68hc11
671aa708
NN
3407 ;;
3408 m68k-*-elf*)
cb253473 3409 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3410 ;;
3411 m68k-*-coff*)
cb253473 3412 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3413 ;;
c03353e2
RIL
3414 m68*-*-* | fido-*-*)
3415 libgloss_dir=m68k
3416 ;;
671aa708
NN
3417 mcore-*-pe*)
3418 # The EPOC C++ environment does not support exceptions or rtti,
3419 # and so building libstdc++-v3 tends not to always work.
3420 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3421 ;;
3422 mmix-*-*)
4fab7234 3423 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 3424 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
3425 ;;
3426 mn10200-*-*)
cb253473 3427 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3428 ;;
3429 mn10300-*-*)
cb253473 3430 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3431 ;;
ab34901f 3432 mt-*-*)
79dd769c
AH
3433 noconfigdirs="$noconfigdirs sim"
3434 ;;
671aa708
NN
3435 powerpc-*-aix*)
3436 # copied from rs6000-*-* entry
a891a473 3437 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3438 ;;
3439 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3440 target_configdirs="$target_configdirs target-winsup"
cb253473 3441 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
3442 # always build newlib.
3443 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3444 ;;
3445 # This is temporary until we can link against shared libraries
3446 powerpcle-*-solaris*)
cb253473 3447 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 3448 libgloss_dir=rs6000
671aa708
NN
3449 ;;
3450 powerpc-*-beos*)
cb253473 3451 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 3452 ;;
671aa708 3453 powerpc-*-eabi)
cb253473 3454 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3455 libgloss_dir=rs6000
ee6a22df
L
3456 ;;
3457 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3458 libgloss_dir=rs6000
671aa708 3459 ;;
671aa708 3460 rs6000-*-lynxos*)
cb253473 3461 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3462 ;;
3463 rs6000-*-aix*)
a891a473 3464 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3465 ;;
3466 rs6000-*-*)
cb253473 3467 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3468 ;;
3469 m68k-apollo-*)
cb253473 3470 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 3471 ;;
ca9fe997 3472 microblaze*)
80920132 3473 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
ca9fe997 3474 ;;
d9dced13
RS
3475 mips*-sde-elf*)
3476 skipdirs="$skipdirs target-libiberty"
3477 noconfigdirs="$noconfigdirs ${libgcj}"
3478 if test x$with_newlib = xyes; then
3479 noconfigdirs="$noconfigdirs gprof"
3480 fi
3481 libgloss_dir=mips
3482 ;;
671aa708 3483 mips*-*-irix5*)
cb253473 3484 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
3485 ;;
3486 mips*-*-irix6*)
671aa708
NN
3487 # Linking libjava exceeds command-line length limits on at least
3488 # IRIX 6.2, but not on IRIX 6.5.
3489 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3490 # <oldham@codesourcery.com>
cb253473 3491 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3492 ;;
671aa708 3493 mips*-*-bsd*)
cb253473 3494 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3495 ;;
671aa708
NN
3496 mips*-*-linux*)
3497 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3498 ;;
3499 mips*-*-*)
cb253473 3500 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3501 libgloss_dir=mips
671aa708
NN
3502 ;;
3503 romp-*-*)
cb253473 3504 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 3505 ;;
669f01d8 3506 sh-*-* | sh64-*-*)
671aa708 3507 case "${host}" in
f2a0e225
KC
3508 i[3456789]86-*-vsta) ;; # don't add gprof back in
3509 i[3456789]86-*-go32*) ;; # don't add gprof back in
3510 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
3511 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3512 esac
ea2002ba
CB
3513 case "${target}" in
3514 sh*-*-elf)
3515 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3516 *)
3517 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3518 esac
671aa708 3519 ;;
c03353e2
RIL
3520 sparclet-*-aout* | sparc86x-*-*)
3521 libgloss_dir=sparc
3522 ;;
671aa708 3523 sparc-*-elf*)
cb253473 3524 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3525 ;;
3526 sparc64-*-elf*)
cb253473 3527 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3528 libgloss_dir=sparc
671aa708
NN
3529 ;;
3530 sparclite-*-*)
cb253473 3531 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3532 libgloss_dir=sparc
671aa708
NN
3533 ;;
3534 sparc-*-sunos4*)
cb253473 3535 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3536 if test x${is_cross_compiler} != xno ; then
3537 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3538 else
3539 use_gnu_ld=no
3540 fi
3541 ;;
bba5e0ca 3542 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 3543 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 3544 ;;
671aa708
NN
3545 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3546 ;;
b42f0d7e
JM
3547 tic6x-*-*)
3548 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3549 ;;
671aa708 3550 v810-*-*)
cb253473 3551 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708 3552 ;;
223a9d64 3553 v850*-*-*)
d4c1abb3 3554 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3555 ;;
3556 vax-*-vms)
cb253473 3557 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
3558 ;;
3559 vax-*-*)
cb253473 3560 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3561 ;;
aa12a573 3562 xtensa*-*-*)
cb253473 3563 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 3564 ;;
671aa708 3565 ip2k-*-*)
cb253473 3566 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3567 ;;
416ac4d4 3568 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3570 ;;
3571 *-*-lynxos*)
cb253473 3572 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3573 ;;
671aa708 3574 *-*-*)
cb253473 3575 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3576 ;;
3577esac
79c06341 3578
671aa708
NN
3579# If we aren't building newlib, then don't build libgloss, since libgloss
3580# depends upon some newlib header files.
3581case "${noconfigdirs}" in
3582 *target-libgloss*) ;;
3583 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3584esac
3585
671aa708
NN
3586# Work in distributions that contain no compiler tools, like Autoconf.
3587tentative_cc=""
3588host_makefile_frag=/dev/null
3589if test -d ${srcdir}/config ; then
3590case "${host}" in
3591 m68k-hp-hpux*)
3592 # Avoid "too much defining" errors from HPUX compiler.
3593 tentative_cc="cc -Wp,-H256000"
3594 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3595 # If it's HP/UX ar, this should be harmless.
3596 RANLIB="ar ts"
3597 ;;
3598 m68k-apollo-sysv*)
3599 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3600 ;;
3601 m68k-apollo-bsd*)
3602 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3603 # chokes on bfd, the compiler won't let you assign integers to enums, and
3604 # other problems. Defining CC to gcc is a questionable way to say "don't use
3605 # the apollo compiler" (the preferred version of GCC could be called cc,
3606 # or whatever), but I'm not sure leaving CC as cc is any better...
3607 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3608 # Used to have BISON=yacc.
3609 tentative_cc=gcc
3610 ;;
3611 m88k-dg-dgux*)
3612 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
3613 ;;
3614 m88k-harris-cxux*)
3615 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3616 tentative_cc="cc -Xa"
3617 host_makefile_frag="config/mh-cxux"
3618 ;;
3619 m88k-motorola-sysv*)
3620 ;;
3621 mips*-dec-ultrix*)
3622 tentative_cc="cc -Wf,-XNg1000"
3623 host_makefile_frag="config/mh-decstation"
3624 ;;
3625 mips*-nec-sysv4*)
3626 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3627 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3628 host_makefile_frag="config/mh-necv4"
3629 ;;
3630 mips*-sgi-irix4*)
3631 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3632 # environment. Also bump switch table size so that cp-parse will
3633 # compile. Bump string length limit so linker builds.
3634 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3635 ;;
3636 mips*-*-sysv4*)
3637 host_makefile_frag="config/mh-sysv4"
3638 ;;
3639 mips*-*-sysv*)
3640 # This is for a MIPS running RISC/os 4.52C.
3641
3642 # This is needed for GDB, but needs to be in the top-level make because
3643 # if a library is compiled with the bsd headers and gets linked with the
3644 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3645 # a different size).
3646 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3647 # known except to select the sysv environment. Could we use /proc instead?
3648 # These "sysv environments" and "bsd environments" often end up being a pain.
3649 #
3650 # This is not part of CFLAGS because perhaps not all C compilers have this
3651 # option.
3652 tentative_cc="cc -systype sysv"
3653 ;;
3654 i370-ibm-opened*)
3655 tentative_cc="c89"
3656 ;;
f2a0e225 3657 i[3456789]86-*-sysv5*)
671aa708
NN
3658 host_makefile_frag="config/mh-sysv5"
3659 ;;
f2a0e225 3660 i[3456789]86-*-dgux*)
671aa708
NN
3661 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3662 host_makefile_frag="config/mh-dgux386"
3663 ;;
f2a0e225 3664 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
3665 # The MetaWare compiler will generate a copyright message unless you
3666 # turn it off by adding the -Hnocopyr flag.
3667 tentative_cc="cc -Hnocopyr"
3668 ;;
f2a0e225 3669 i[3456789]86-ncr-sysv4*)
671aa708
NN
3670 # for an NCR 3000 (i486/SVR4) system.
3671 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3672 # This compiler not only emits obnoxious copyright messages every time
3673 # you run it, but it chokes and dies on a whole bunch of GNU source
3674 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3675 tentative_cc="/usr/ccs/ATT/cc"
3676 host_makefile_frag="config/mh-ncr3000"
3677 ;;
f2a0e225 3678 i[3456789]86-*-sco3.2v5*)
671aa708 3679 ;;
f2a0e225 3680 i[3456789]86-*-sco*)
671aa708
NN
3681 # The native C compiler botches some simple uses of const. Unfortunately,
3682 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3683 tentative_cc="cc -Dconst="
3684 host_makefile_frag="config/mh-sco"
3685 ;;
f2a0e225 3686 i[3456789]86-*-udk*)
671aa708
NN
3687 host_makefile_frag="config/mh-sysv5"
3688 ;;
f2a0e225 3689 i[3456789]86-*-solaris2*)
671aa708
NN
3690 host_makefile_frag="config/mh-sysv4"
3691 ;;
f2a0e225 3692 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3693 host_makefile_frag="config/mh-djgpp"
3694 ;;
3695 *-cygwin*)
2a79c47f 3696
5213506e
RW
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3698$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3699echo a >cygwin-cat-check
e25a8c82 3700if test `cat cygwin-cat-check` = a ; then
2a79c47f 3701 rm cygwin-cat-check
5213506e
RW
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703$as_echo "yes" >&6; }
2a79c47f
NC
3704else
3705 rm cygwin-cat-check
5213506e
RW
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707$as_echo "no" >&6; }
3708 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3709 Please either mount the build directory in binary mode or run the following
3710 commands before running any configure script:
3711set -o igncr
3712export SHELLOPTS
5213506e 3713 " "$LINENO" 5
2a79c47f
NC
3714fi
3715
671aa708
NN
3716 host_makefile_frag="config/mh-cygwin"
3717 ;;
c53a18d3 3718 *-mingw*)
1f5a6b84 3719 host_makefile_frag="config/mh-mingw"
95af8923 3720 ;;
671aa708
NN
3721 *-interix*)
3722 host_makefile_frag="config/mh-interix"
3723 ;;
3724 vax-*-ultrix2*)
3725 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3726 tentative_cc=gcc
3727 ;;
3728 *-*-solaris2*)
3729 host_makefile_frag="config/mh-solaris"
3730 ;;
3731 m68k-sun-sunos*)
3732 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3733 # without overflowing the jump tables (-J says to use a 32 bit table)
3734 tentative_cc="cc -J"
3735 ;;
efd41714 3736 hppa*-hp-hpux10*)
671aa708 3737 tentative_cc="cc -Wp,-H256000"
efd41714 3738 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3739 ;;
efd41714
PB
3740 hppa*-hp-hpux* | hppa*-*-hiux*)
3741 tentative_cc="cc -Wp,-H256000"
3742 host_makefile_frag="config/mh-pa"
3743 ;;
3744 hppa*-*)
3745 host_makefile_frag="config/mh-pa"
3746 ;;
3747 *-hp-hpux* | *-*-hiux*)
671aa708
NN
3748 tentative_cc="cc -Wp,-H256000"
3749 ;;
3750 rs6000-*-lynxos*)
3751 # /bin/cc is less than useful for our purposes. Always use GCC
3752 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3753 host_makefile_frag="config/mh-lynxrs6k"
3754 ;;
d8ed14ce
IS
3755 *-*-darwin*)
3756 host_makefile_frag="config/mh-darwin"
be8fff81 3757 ;;
d19bca38
PB
3758 powerpc-*-aix*)
3759 host_makefile_frag="config/mh-ppc-aix"
3760 ;;
3761 rs6000-*-aix*)
3762 host_makefile_frag="config/mh-ppc-aix"
3763 ;;
671aa708
NN
3764 *-*-lynxos*)
3765 # /bin/cc is less than useful for our purposes. Always use GCC
3766 tentative_cc="/bin/gcc"
3767 ;;
3768 *-*-sysv4*)
3769 host_makefile_frag="config/mh-sysv4"
3770 ;;
95c53c62
RS
3771 # This is placed last to prevent interfering with the cases above.
3772 i[3456789]86-*-*)
3773 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3774 host_makefile_frag="config/mh-x86omitfp"
3775 ;;
671aa708
NN
3776esac
3777fi
3778
55ffb5ed
NN
3779# If we aren't going to be using gcc, see if we can extract a definition
3780# of CC from the fragment.
3781# Actually, use the 'pre-extracted' version above.
3782if test -z "${CC}" && test "${build}" = "${host}" ; then
3783 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3784 found=
3785 for dir in $PATH; do
3786 test -z "$dir" && dir=.
3787 if test -f $dir/gcc; then
3788 found=yes
3789 break
3790 fi
3791 done
3792 IFS="$save_ifs"
3793 if test -z "${found}" && test -n "${tentative_cc}" ; then
3794 CC=$tentative_cc
3795 fi
3796fi
3797
3798if test "${build}" != "${host}" ; then
0999159b
PB
3799 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3800 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3801 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3802 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3803 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3804 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3805 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3806 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3807 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3808 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3809 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3810 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3811 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3812else
3813 AR_FOR_BUILD="\$(AR)"
3814 AS_FOR_BUILD="\$(AS)"
fb0103e5 3815 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3816 CXX_FOR_BUILD="\$(CXX)"
3817 GCJ_FOR_BUILD="\$(GCJ)"
3818 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3819 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3820 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3821 LD_FOR_BUILD="\$(LD)"
3822 NM_FOR_BUILD="\$(NM)"
3823 RANLIB_FOR_BUILD="\$(RANLIB)"
3824 WINDRES_FOR_BUILD="\$(WINDRES)"
3825 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3826fi
3827
3828ac_ext=c
1c710c3c
DJ
3829ac_cpp='$CPP $CPPFLAGS'
3830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833if test -n "$ac_tool_prefix"; then
3834 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3835set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837$as_echo_n "checking for $ac_word... " >&6; }
3838if test "${ac_cv_prog_CC+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3840else
3841 if test -n "$CC"; then
3842 ac_cv_prog_CC="$CC" # Let the user override the test.
3843else
3844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845for as_dir in $PATH
3846do
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
5213506e
RW
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3851 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3853 break 2
3854 fi
3855done
5213506e
RW
3856 done
3857IFS=$as_save_IFS
1c710c3c
DJ
3858
3859fi
3860fi
3861CC=$ac_cv_prog_CC
3862if test -n "$CC"; then
5213506e
RW
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3864$as_echo "$CC" >&6; }
1c710c3c 3865else
5213506e
RW
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867$as_echo "no" >&6; }
1c710c3c
DJ
3868fi
3869
5213506e 3870
1c710c3c
DJ
3871fi
3872if test -z "$ac_cv_prog_CC"; then
3873 ac_ct_CC=$CC
fb0103e5
RG
3874 # Extract the first word of "gcc", so it can be a program name with args.
3875set dummy gcc; ac_word=$2
5213506e
RW
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3877$as_echo_n "checking for $ac_word... " >&6; }
3878if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3879 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3880else
3881 if test -n "$ac_ct_CC"; then
3882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3883else
3884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885for as_dir in $PATH
3886do
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
5213506e
RW
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3891 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3893 break 2
3894 fi
3895done
5213506e
RW
3896 done
3897IFS=$as_save_IFS
1c710c3c
DJ
3898
3899fi
3900fi
3901ac_ct_CC=$ac_cv_prog_ac_ct_CC
3902if test -n "$ac_ct_CC"; then
5213506e
RW
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3904$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3905else
5213506e
RW
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3907$as_echo "no" >&6; }
1c710c3c
DJ
3908fi
3909
5213506e
RW
3910 if test "x$ac_ct_CC" = x; then
3911 CC=""
3912 else
3913 case $cross_compiling:$ac_tool_warned in
3914yes:)
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3916$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3917ac_tool_warned=yes ;;
3918esac
3919 CC=$ac_ct_CC
3920 fi
1c710c3c
DJ
3921else
3922 CC="$ac_cv_prog_CC"
3923fi
3924
3925if test -z "$CC"; then
5213506e
RW
3926 if test -n "$ac_tool_prefix"; then
3927 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3928set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
3931if test "${ac_cv_prog_CC+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3933else
3934 if test -n "$CC"; then
3935 ac_cv_prog_CC="$CC" # Let the user override the test.
3936else
1c710c3c
DJ
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
5213506e
RW
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3944 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3946 break 2
3947 fi
3948done
5213506e
RW
3949 done
3950IFS=$as_save_IFS
1c710c3c 3951
0b0dc272 3952fi
0b0dc272 3953fi
1c710c3c 3954CC=$ac_cv_prog_CC
af71363e 3955if test -n "$CC"; then
5213506e
RW
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3957$as_echo "$CC" >&6; }
2aeb72e9 3958else
5213506e
RW
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
2aeb72e9
DD
3961fi
3962
2aeb72e9 3963
5213506e 3964 fi
1c710c3c 3965fi
55ffb5ed
NN
3966if test -z "$CC"; then
3967 # Extract the first word of "cc", so it can be a program name with args.
3968set dummy cc; ac_word=$2
5213506e
RW
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970$as_echo_n "checking for $ac_word... " >&6; }
3971if test "${ac_cv_prog_CC+set}" = set; then :
3972 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3973else
3974 if test -n "$CC"; then
3975 ac_cv_prog_CC="$CC" # Let the user override the test.
3976else
0b0dc272 3977 ac_prog_rejected=no
1c710c3c
DJ
3978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979for as_dir in $PATH
3980do
3981 IFS=$as_save_IFS
3982 test -z "$as_dir" && as_dir=.
5213506e
RW
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3985 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3986 ac_prog_rejected=yes
3987 continue
3988 fi
3989 ac_cv_prog_CC="cc"
5213506e 3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3991 break 2
3992 fi
3993done
5213506e
RW
3994 done
3995IFS=$as_save_IFS
1c710c3c 3996
55ffb5ed
NN
3997if test $ac_prog_rejected = yes; then
3998 # We found a bogon in the path, so make sure we never use it.
3999 set dummy $ac_cv_prog_CC
4000 shift
1c710c3c 4001 if test $# != 0; then
55ffb5ed
NN
4002 # We chose a different compiler from the bogus one.
4003 # However, it has the same basename, so the bogon will be chosen
4004 # first if we set CC to just the basename; use the full file name.
4005 shift
1c710c3c 4006 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4007 fi
4008fi
4009fi
4010fi
1c710c3c 4011CC=$ac_cv_prog_CC
55ffb5ed 4012if test -n "$CC"; then
5213506e
RW
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4014$as_echo "$CC" >&6; }
55ffb5ed 4015else
5213506e
RW
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4017$as_echo "no" >&6; }
55ffb5ed
NN
4018fi
4019
5213506e 4020
1c710c3c
DJ
4021fi
4022if test -z "$CC"; then
4023 if test -n "$ac_tool_prefix"; then
5213506e 4024 for ac_prog in cl.exe
1c710c3c
DJ
4025 do
4026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029$as_echo_n "checking for $ac_word... " >&6; }
4030if test "${ac_cv_prog_CC+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4032else
4033 if test -n "$CC"; then
4034 ac_cv_prog_CC="$CC" # Let the user override the test.
4035else
1c710c3c
DJ
4036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037for as_dir in $PATH
4038do
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
5213506e
RW
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4043 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4045 break 2
4046 fi
4047done
5213506e
RW
4048 done
4049IFS=$as_save_IFS
1c710c3c 4050
55ffb5ed
NN
4051fi
4052fi
1c710c3c 4053CC=$ac_cv_prog_CC
55ffb5ed 4054if test -n "$CC"; then
5213506e
RW
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4056$as_echo "$CC" >&6; }
a4b9e93e 4057else
5213506e
RW
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059$as_echo "no" >&6; }
fb0103e5 4060fi
af71363e 4061
5213506e 4062
1c710c3c
DJ
4063 test -n "$CC" && break
4064 done
af71363e 4065fi
1c710c3c
DJ
4066if test -z "$CC"; then
4067 ac_ct_CC=$CC
5213506e 4068 for ac_prog in cl.exe
1c710c3c
DJ
4069do
4070 # Extract the first word of "$ac_prog", so it can be a program name with args.
4071set dummy $ac_prog; ac_word=$2
5213506e
RW
4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4073$as_echo_n "checking for $ac_word... " >&6; }
4074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4075 $as_echo_n "(cached) " >&6
0b0dc272 4076else
1c710c3c
DJ
4077 if test -n "$ac_ct_CC"; then
4078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4079else
1c710c3c
DJ
4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH
4082do
4083 IFS=$as_save_IFS
4084 test -z "$as_dir" && as_dir=.
5213506e
RW
4085 for ac_exec_ext in '' $ac_executable_extensions; do
4086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4087 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4089 break 2
4090 fi
4091done
5213506e
RW
4092 done
4093IFS=$as_save_IFS
1c710c3c 4094
af71363e
AS
4095fi
4096fi
1c710c3c
DJ
4097ac_ct_CC=$ac_cv_prog_ac_ct_CC
4098if test -n "$ac_ct_CC"; then
5213506e
RW
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4100$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4101else
5213506e
RW
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4103$as_echo "no" >&6; }
af71363e 4104fi
0b0dc272 4105
5213506e 4106
1c710c3c
DJ
4107 test -n "$ac_ct_CC" && break
4108done
4109
5213506e
RW
4110 if test "x$ac_ct_CC" = x; then
4111 CC=""
4112 else
4113 case $cross_compiling:$ac_tool_warned in
4114yes:)
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4117ac_tool_warned=yes ;;
4118esac
4119 CC=$ac_ct_CC
4120 fi
1c710c3c
DJ
4121fi
4122
4123fi
4124
4125
5213506e
RW
4126test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4128as_fn_error "no acceptable C compiler found in \$PATH
4129See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4130
4131# Provide some information about the compiler.
5213506e
RW
4132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4133set X $ac_compile
4134ac_compiler=$2
4135for ac_option in --version -v -V -qversion; do
4136 { { ac_try="$ac_compiler $ac_option >&5"
4137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4142$as_echo "$ac_try_echo"; } >&5
4143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4144 ac_status=$?
5213506e
RW
4145 if test -s conftest.err; then
4146 sed '10a\
4147... rest of stderr output deleted ...
4148 10q' conftest.err >conftest.er1
4149 cat conftest.er1 >&5
4150 rm -f conftest.er1 conftest.err
4151 fi
4152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4153 test $ac_status = 0; }
4154done
1c710c3c 4155
5213506e 4156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4157/* end confdefs.h. */
4158
4159int
4160main ()
4161{
4162
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167ac_clean_files_save=$ac_clean_files
5213506e 4168ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4169# Try to create an executable without -o first, disregard a.out.
4170# It will help us diagnose broken compilers, and finding out an intuition
4171# of exeext.
5213506e
RW
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4173$as_echo_n "checking for C compiler default output file name... " >&6; }
4174ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4175
4176# The possible output files:
4177ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4178
4179ac_rmfiles=
4180for ac_file in $ac_files
4181do
4182 case $ac_file in
4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4184 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4185 esac
4186done
4187rm -f $ac_rmfiles
4188
4189if { { ac_try="$ac_link_default"
4190case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193esac
4194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4195$as_echo "$ac_try_echo"; } >&5
4196 (eval "$ac_link_default") 2>&5
1c710c3c 4197 ac_status=$?
5213506e
RW
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }; then :
4200 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4201# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4202# in a Makefile. We should not override ac_cv_exeext if it was cached,
4203# so that the user can short-circuit this test for compilers unknown to
4204# Autoconf.
4205for ac_file in $ac_files ''
1c710c3c
DJ
4206do
4207 test -f "$ac_file" || continue
4208 case $ac_file in
5213506e 4209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4210 ;;
4211 [ab].out )
4212 # We found the default executable, but exeext='' is most
4213 # certainly right.
4214 break;;
4215 *.* )
5213506e
RW
4216 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4217 then :; else
4218 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4219 fi
4220 # We set ac_cv_exeext here because the later test for it is not
4221 # safe: cross compilers may not add the suffix if given an `-o'
4222 # argument, so we may need to know it at that point already.
4223 # Even if this section looks crufty: it has the advantage of
4224 # actually working.
1c710c3c
DJ
4225 break;;
4226 * )
4227 break;;
4228 esac
4229done
5213506e
RW
4230test "$ac_cv_exeext" = no && ac_cv_exeext=
4231
1c710c3c 4232else
5213506e
RW
4233 ac_file=''
4234fi
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4236$as_echo "$ac_file" >&6; }
4237if test -z "$ac_file"; then :
4238 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4239sed 's/^/| /' conftest.$ac_ext >&5
4240
5213506e
RW
4241{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4242$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4243{ as_fn_set_status 77
4244as_fn_error "C compiler cannot create executables
4245See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4246fi
1c710c3c 4247ac_exeext=$ac_cv_exeext
1c710c3c 4248
5213506e 4249# Check that the compiler produces executables we can run. If not, either
1c710c3c 4250# the compiler is broken, or we cross compile.
5213506e
RW
4251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4252$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4253# If not cross compiling, check that we can run a simple program.
4254if test "$cross_compiling" != yes; then
4255 if { ac_try='./$ac_file'
5213506e
RW
4256 { { case "(($ac_try" in
4257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4258 *) ac_try_echo=$ac_try;;
4259esac
4260eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4261$as_echo "$ac_try_echo"; } >&5
4262 (eval "$ac_try") 2>&5
1c710c3c 4263 ac_status=$?
5213506e
RW
4264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4265 test $ac_status = 0; }; }; then
1c710c3c
DJ
4266 cross_compiling=no
4267 else
4268 if test "$cross_compiling" = maybe; then
4269 cross_compiling=yes
4270 else
5213506e
RW
4271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273as_fn_error "cannot run C compiled programs.
1c710c3c 4274If you meant to cross compile, use \`--host'.
5213506e 4275See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4276 fi
4277 fi
4278fi
5213506e
RW
4279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4280$as_echo "yes" >&6; }
1c710c3c 4281
5213506e 4282rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4283ac_clean_files=$ac_clean_files_save
5213506e 4284# Check that the compiler produces executables we can run. If not, either
1c710c3c 4285# the compiler is broken, or we cross compile.
5213506e
RW
4286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4287$as_echo_n "checking whether we are cross compiling... " >&6; }
4288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4289$as_echo "$cross_compiling" >&6; }
4290
4291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4292$as_echo_n "checking for suffix of executables... " >&6; }
4293if { { ac_try="$ac_link"
4294case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297esac
4298eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4299$as_echo "$ac_try_echo"; } >&5
4300 (eval "$ac_link") 2>&5
1c710c3c 4301 ac_status=$?
5213506e
RW
4302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4303 test $ac_status = 0; }; then :
1c710c3c
DJ
4304 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4305# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4306# work properly (i.e., refer to `conftest.exe'), while it won't with
4307# `rm'.
4308for ac_file in conftest.exe conftest conftest.*; do
4309 test -f "$ac_file" || continue
4310 case $ac_file in
5213506e 4311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4312 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4313 break;;
4314 * ) break;;
4315 esac
4316done
af71363e 4317else
5213506e
RW
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320as_fn_error "cannot compute suffix of executables: cannot compile and link
4321See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4322fi
1c710c3c 4323rm -f conftest$ac_cv_exeext
5213506e
RW
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4325$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4326
4327rm -f conftest.$ac_ext
4328EXEEXT=$ac_cv_exeext
4329ac_exeext=$EXEEXT
5213506e
RW
4330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4331$as_echo_n "checking for suffix of object files... " >&6; }
4332if test "${ac_cv_objext+set}" = set; then :
4333 $as_echo_n "(cached) " >&6
1c710c3c 4334else
5213506e 4335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4336/* end confdefs.h. */
4337
4338int
4339main ()
4340{
4341
4342 ;
4343 return 0;
4344}
4345_ACEOF
4346rm -f conftest.o conftest.obj
5213506e
RW
4347if { { ac_try="$ac_compile"
4348case "(($ac_try" in
4349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350 *) ac_try_echo=$ac_try;;
4351esac
4352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4353$as_echo "$ac_try_echo"; } >&5
4354 (eval "$ac_compile") 2>&5
1c710c3c 4355 ac_status=$?
5213506e
RW
4356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4357 test $ac_status = 0; }; then :
4358 for ac_file in conftest.o conftest.obj conftest.*; do
4359 test -f "$ac_file" || continue;
1c710c3c 4360 case $ac_file in
5213506e 4361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4362 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4363 break;;
4364 esac
4365done
4366else
5213506e 4367 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4368sed 's/^/| /' conftest.$ac_ext >&5
4369
5213506e
RW
4370{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372as_fn_error "cannot compute suffix of object files: cannot compile
4373See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4374fi
1c710c3c
DJ
4375rm -f conftest.$ac_cv_objext conftest.$ac_ext
4376fi
5213506e
RW
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4378$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4379OBJEXT=$ac_cv_objext
4380ac_objext=$OBJEXT
5213506e
RW
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4382$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4383if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
1c710c3c 4385else
5213506e 4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4387/* end confdefs.h. */
4388
4389int
4390main ()
4391{
4392#ifndef __GNUC__
4393 choke me
4394#endif
4395
4396 ;
4397 return 0;
4398}
4399_ACEOF
5213506e 4400if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4401 ac_compiler_gnu=yes
4402else
5213506e 4403 ac_compiler_gnu=no
1c710c3c 4404fi
5213506e 4405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4406ac_cv_c_compiler_gnu=$ac_compiler_gnu
4407
4408fi
5213506e
RW
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4410$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4411if test $ac_compiler_gnu = yes; then
4412 GCC=yes
4413else
4414 GCC=
4415fi
1c710c3c
DJ
4416ac_test_CFLAGS=${CFLAGS+set}
4417ac_save_CFLAGS=$CFLAGS
5213506e
RW
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4419$as_echo_n "checking whether $CC accepts -g... " >&6; }
4420if test "${ac_cv_prog_cc_g+set}" = set; then :
4421 $as_echo_n "(cached) " >&6
4422else
4423 ac_save_c_werror_flag=$ac_c_werror_flag
4424 ac_c_werror_flag=yes
4425 ac_cv_prog_cc_g=no
4426 CFLAGS="-g"
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4428/* end confdefs.h. */
4429
4430int
4431main ()
4432{
4433
4434 ;
4435 return 0;
4436}
4437_ACEOF
5213506e 4438if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4439 ac_cv_prog_cc_g=yes
4440else
5213506e
RW
4441 CFLAGS=""
4442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4443/* end confdefs.h. */
4444
4445int
4446main ()
4447{
4448
4449 ;
4450 return 0;
4451}
4452_ACEOF
4453if ac_fn_c_try_compile "$LINENO"; then :
4454
4455else
4456 ac_c_werror_flag=$ac_save_c_werror_flag
4457 CFLAGS="-g"
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h. */
af71363e 4460
5213506e
RW
4461int
4462main ()
4463{
4464
4465 ;
4466 return 0;
4467}
4468_ACEOF
4469if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_prog_cc_g=yes
4471fi
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4473fi
5213506e 4474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4475fi
5213506e
RW
4476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 ac_c_werror_flag=$ac_save_c_werror_flag
4478fi
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4480$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4481if test "$ac_test_CFLAGS" = set; then
1c710c3c 4482 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4483elif test $ac_cv_prog_cc_g = yes; then
4484 if test "$GCC" = yes; then
4485 CFLAGS="-g -O2"
4486 else
4487 CFLAGS="-g"
4488 fi
4489else
4490 if test "$GCC" = yes; then
4491 CFLAGS="-O2"
4492 else
4493 CFLAGS=
4494 fi
4495fi
5213506e
RW
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4497$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4498if test "${ac_cv_prog_cc_c89+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
1c710c3c 4500else
5213506e 4501 ac_cv_prog_cc_c89=no
1c710c3c 4502ac_save_CC=$CC
5213506e 4503cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4504/* end confdefs.h. */
4505#include <stdarg.h>
4506#include <stdio.h>
4507#include <sys/types.h>
4508#include <sys/stat.h>
4509/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4510struct buf { int x; };
4511FILE * (*rcsopen) (struct buf *, struct stat *, int);
4512static char *e (p, i)
4513 char **p;
4514 int i;
4515{
4516 return p[i];
4517}
4518static char *f (char * (*g) (char **, int), char **p, ...)
4519{
4520 char *s;
4521 va_list v;
4522 va_start (v,p);
4523 s = g (p, va_arg (v,int));
4524 va_end (v);
4525 return s;
4526}
4527
4528/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4529 function prototypes and stuff, but not '\xHH' hex character constants.
4530 These don't provoke an error unfortunately, instead are silently treated
5213506e 4531 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4532 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4533 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4534 that's true only with -std. */
1c710c3c
DJ
4535int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4536
5213506e
RW
4537/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4538 inside strings and character constants. */
4539#define FOO(x) 'x'
4540int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4541
1c710c3c
DJ
4542int test (int i, double x);
4543struct s1 {int (*f) (int a);};
4544struct s2 {int (*f) (double a);};
4545int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4546int argc;
4547char **argv;
4548int
4549main ()
4550{
4551return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4552 ;
4553 return 0;
4554}
4555_ACEOF
5213506e
RW
4556for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4557 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4558do
4559 CC="$ac_save_CC $ac_arg"
5213506e
RW
4560 if ac_fn_c_try_compile "$LINENO"; then :
4561 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4562fi
5213506e
RW
4563rm -f core conftest.err conftest.$ac_objext
4564 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4565done
5213506e 4566rm -f conftest.$ac_ext
1c710c3c
DJ
4567CC=$ac_save_CC
4568
4569fi
5213506e
RW
4570# AC_CACHE_VAL
4571case "x$ac_cv_prog_cc_c89" in
4572 x)
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4574$as_echo "none needed" >&6; } ;;
4575 xno)
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4577$as_echo "unsupported" >&6; } ;;
1c710c3c 4578 *)
5213506e
RW
4579 CC="$CC $ac_cv_prog_cc_c89"
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4581$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4582esac
5213506e 4583if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4584
2aeb72e9
DD
4585fi
4586
2aeb72e9
DD
4587ac_ext=c
4588ac_cpp='$CPP $CPPFLAGS'
4589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4591ac_compiler_gnu=$ac_cv_c_compiler_gnu
4592
5213506e 4593ac_ext=cpp
2aeb72e9
DD
4594ac_cpp='$CXXCPP $CPPFLAGS'
4595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4598if test -z "$CXX"; then
4599 if test -n "$CCC"; then
4600 CXX=$CCC
4601 else
4602 if test -n "$ac_tool_prefix"; then
4603 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4604 do
4605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4606set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608$as_echo_n "checking for $ac_word... " >&6; }
4609if test "${ac_cv_prog_CXX+set}" = set; then :
4610 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4611else
4612 if test -n "$CXX"; then
4613 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4614else
4615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616for as_dir in $PATH
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
5213506e
RW
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4622 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4624 break 2
4625 fi
4626done
5213506e
RW
4627 done
4628IFS=$as_save_IFS
55ffb5ed 4629
c3a86da9
DJ
4630fi
4631fi
4632CXX=$ac_cv_prog_CXX
4633if test -n "$CXX"; then
5213506e
RW
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4635$as_echo "$CXX" >&6; }
c3a86da9 4636else
5213506e
RW
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638$as_echo "no" >&6; }
c3a86da9
DJ
4639fi
4640
5213506e 4641
c3a86da9
DJ
4642 test -n "$CXX" && break
4643 done
4644fi
4645if test -z "$CXX"; then
4646 ac_ct_CXX=$CXX
5213506e 4647 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4648do
4649 # Extract the first word of "$ac_prog", so it can be a program name with args.
4650set dummy $ac_prog; ac_word=$2
5213506e
RW
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652$as_echo_n "checking for $ac_word... " >&6; }
4653if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4654 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4655else
4656 if test -n "$ac_ct_CXX"; then
4657 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
5213506e
RW
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4666 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4668 break 2
4669 fi
4670done
5213506e
RW
4671 done
4672IFS=$as_save_IFS
c3a86da9
DJ
4673
4674fi
4675fi
4676ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4677if test -n "$ac_ct_CXX"; then
5213506e
RW
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4679$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4680else
5213506e
RW
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4682$as_echo "no" >&6; }
c3a86da9
DJ
4683fi
4684
5213506e 4685
c3a86da9
DJ
4686 test -n "$ac_ct_CXX" && break
4687done
c3a86da9 4688
5213506e
RW
4689 if test "x$ac_ct_CXX" = x; then
4690 CXX="g++"
4691 else
4692 case $cross_compiling:$ac_tool_warned in
4693yes:)
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696ac_tool_warned=yes ;;
4697esac
4698 CXX=$ac_ct_CXX
4699 fi
c3a86da9
DJ
4700fi
4701
5213506e
RW
4702 fi
4703fi
c3a86da9 4704# Provide some information about the compiler.
5213506e
RW
4705$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4706set X $ac_compile
4707ac_compiler=$2
4708for ac_option in --version -v -V -qversion; do
4709 { { ac_try="$ac_compiler $ac_option >&5"
4710case "(($ac_try" in
4711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712 *) ac_try_echo=$ac_try;;
4713esac
4714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4715$as_echo "$ac_try_echo"; } >&5
4716 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4717 ac_status=$?
5213506e
RW
4718 if test -s conftest.err; then
4719 sed '10a\
4720... rest of stderr output deleted ...
4721 10q' conftest.err >conftest.er1
4722 cat conftest.er1 >&5
4723 rm -f conftest.er1 conftest.err
4724 fi
4725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4726 test $ac_status = 0; }
4727done
c3a86da9 4728
5213506e
RW
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4730$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4731if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4732 $as_echo_n "(cached) " >&6
c3a86da9 4733else
5213506e 4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4735/* end confdefs.h. */
4736
4737int
4738main ()
4739{
4740#ifndef __GNUC__
4741 choke me
4742#endif
4743
4744 ;
4745 return 0;
4746}
4747_ACEOF
5213506e 4748if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4749 ac_compiler_gnu=yes
4750else
5213506e 4751 ac_compiler_gnu=no
c3a86da9 4752fi
5213506e 4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4754ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4755
4756fi
5213506e
RW
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4758$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4759if test $ac_compiler_gnu = yes; then
4760 GXX=yes
4761else
4762 GXX=
4763fi
c3a86da9
DJ
4764ac_test_CXXFLAGS=${CXXFLAGS+set}
4765ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4767$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4768if test "${ac_cv_prog_cxx_g+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4772 ac_cxx_werror_flag=yes
4773 ac_cv_prog_cxx_g=no
4774 CXXFLAGS="-g"
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4776/* end confdefs.h. */
4777
4778int
4779main ()
4780{
4781
4782 ;
4783 return 0;
4784}
4785_ACEOF
5213506e 4786if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4787 ac_cv_prog_cxx_g=yes
4788else
5213506e
RW
4789 CXXFLAGS=""
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4791/* end confdefs.h. */
5213506e 4792
c3a86da9
DJ
4793int
4794main ()
4795{
5213506e 4796
c3a86da9
DJ
4797 ;
4798 return 0;
4799}
4800_ACEOF
5213506e 4801if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4802
5213506e
RW
4803else
4804 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4805 CXXFLAGS="-g"
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4807/* end confdefs.h. */
5213506e 4808
c3a86da9
DJ
4809int
4810main ()
4811{
5213506e 4812
c3a86da9
DJ
4813 ;
4814 return 0;
4815}
4816_ACEOF
5213506e
RW
4817if ac_fn_cxx_try_compile "$LINENO"; then :
4818 ac_cv_prog_cxx_g=yes
11a67599 4819fi
5213506e
RW
4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821fi
4822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4823fi
4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4828$as_echo "$ac_cv_prog_cxx_g" >&6; }
4829if test "$ac_test_CXXFLAGS" = set; then
4830 CXXFLAGS=$ac_save_CXXFLAGS
4831elif test $ac_cv_prog_cxx_g = yes; then
4832 if test "$GXX" = yes; then
4833 CXXFLAGS="-g -O2"
4834 else
4835 CXXFLAGS="-g"
4836 fi
4837else
4838 if test "$GXX" = yes; then
4839 CXXFLAGS="-O2"
4840 else
4841 CXXFLAGS=
4842 fi
c3a86da9 4843fi
c3a86da9
DJ
4844ac_ext=c
4845ac_cpp='$CPP $CPPFLAGS'
4846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848ac_compiler_gnu=$ac_cv_c_compiler_gnu
4849
4850
4851# We must set the default linker to the linker used by gcc for the correct
4852# operation of libtool. If LD is not defined and we are using gcc, try to
4853# set the LD default to the ld used by gcc.
4854if test -z "$LD"; then
4855 if test "$GCC" = yes; then
4856 case $build in
4857 *-*-mingw*)
4858 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4859 *)
4860 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4861 esac
4862 case $gcc_prog_ld in
4863 # Accept absolute paths.
4864 [\\/]* | [A-Za-z]:[\\/]*)
4865 LD="$gcc_prog_ld" ;;
4866 esac
4867 fi
23f6b2f9
PB
4868fi
4869
23f6b2f9
PB
4870
4871
55ffb5ed 4872
1c710c3c
DJ
4873if test -n "$ac_tool_prefix"; then
4874 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4875set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877$as_echo_n "checking for $ac_word... " >&6; }
4878if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4880else
4881 if test -n "$GNATBIND"; then
4882 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4883else
1c710c3c
DJ
4884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885for as_dir in $PATH
4886do
4887 IFS=$as_save_IFS
4888 test -z "$as_dir" && as_dir=.
5213506e
RW
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4891 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4893 break 2
4894 fi
4895done
5213506e
RW
4896 done
4897IFS=$as_save_IFS
1c710c3c 4898
55ffb5ed
NN
4899fi
4900fi
1c710c3c 4901GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4902if test -n "$GNATBIND"; then
5213506e
RW
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4904$as_echo "$GNATBIND" >&6; }
55ffb5ed 4905else
5213506e
RW
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907$as_echo "no" >&6; }
55ffb5ed
NN
4908fi
4909
5213506e 4910
1c710c3c 4911fi
55ffb5ed 4912if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4913 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4914 # Extract the first word of "gnatbind", so it can be a program name with args.
4915set dummy gnatbind; ac_word=$2
5213506e
RW
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917$as_echo_n "checking for $ac_word... " >&6; }
4918if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
55ffb5ed 4920else
1c710c3c
DJ
4921 if test -n "$ac_ct_GNATBIND"; then
4922 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4923else
1c710c3c
DJ
4924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
5213506e
RW
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4931 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4933 break 2
4934 fi
4935done
5213506e
RW
4936 done
4937IFS=$as_save_IFS
1c710c3c 4938
55ffb5ed
NN
4939fi
4940fi
1c710c3c
DJ
4941ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4942if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4944$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4945else
5213506e
RW
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4947$as_echo "no" >&6; }
55ffb5ed
NN
4948fi
4949
5213506e
RW
4950 if test "x$ac_ct_GNATBIND" = x; then
4951 GNATBIND="no"
4952 else
4953 case $cross_compiling:$ac_tool_warned in
4954yes:)
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4956$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4957ac_tool_warned=yes ;;
4958esac
4959 GNATBIND=$ac_ct_GNATBIND
4960 fi
55ffb5ed 4961else
1c710c3c 4962 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4963fi
4964
1c710c3c
DJ
4965if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4967set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
4970if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
5305be7e
RG
4972else
4973 if test -n "$GNATMAKE"; then
4974 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4975else
1c710c3c
DJ
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
5213506e
RW
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4983 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4985 break 2
4986 fi
4987done
5213506e
RW
4988 done
4989IFS=$as_save_IFS
1c710c3c 4990
5305be7e
RG
4991fi
4992fi
1c710c3c 4993GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4994if test -n "$GNATMAKE"; then
5213506e
RW
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4996$as_echo "$GNATMAKE" >&6; }
5305be7e 4997else
5213506e
RW
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5305be7e
RG
5000fi
5001
5213506e 5002
1c710c3c 5003fi
5305be7e 5004if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5005 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5006 # Extract the first word of "gnatmake", so it can be a program name with args.
5007set dummy gnatmake; ac_word=$2
5213506e
RW
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5305be7e 5012else
1c710c3c
DJ
5013 if test -n "$ac_ct_GNATMAKE"; then
5014 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5015else
1c710c3c
DJ
5016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017for as_dir in $PATH
5018do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5213506e
RW
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5023 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5025 break 2
5026 fi
5027done
5213506e
RW
5028 done
5029IFS=$as_save_IFS
1c710c3c 5030
5305be7e
RG
5031fi
5032fi
1c710c3c
DJ
5033ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5034if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5036$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5037else
5213506e
RW
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039$as_echo "no" >&6; }
5305be7e
RG
5040fi
5041
5213506e
RW
5042 if test "x$ac_ct_GNATMAKE" = x; then
5043 GNATMAKE="no"
5044 else
5045 case $cross_compiling:$ac_tool_warned in
5046yes:)
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5049ac_tool_warned=yes ;;
5050esac
5051 GNATMAKE=$ac_ct_GNATMAKE
5052 fi
5305be7e 5053else
1c710c3c 5054 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5055fi
5056
5213506e
RW
5057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5058$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5059if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5060 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5061else
5062 cat >conftest.adb <<EOF
5063procedure conftest is begin null; end conftest;
5064EOF
5065acx_cv_cc_gcc_supports_ada=no
5066# There is a bug in old released versions of GCC which causes the
5067# driver to exit successfully when the appropriate language module
5068# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5069# Therefore we must check for the error message as well as an
5070# unsuccessful exit.
1db673ca
RO
5071# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5072# given a .adb file, but produce no object file. So we must check
5073# if an object file was really produced to guard against this.
55ffb5ed 5074errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5075if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5076 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5077fi
5078rm -f conftest.*
5079fi
5213506e
RW
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5081$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5082
5305be7e 5083if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5084 have_gnat=yes
5085else
5086 have_gnat=no
5087fi
5088
5213506e
RW
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5090$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5091if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5092 $as_echo_n "(cached) " >&6
a76494aa
PB
5093else
5094 echo abfoo >t1
5095 echo cdfoo >t2
5096 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5097 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5098 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5099 :
5100 else
5101 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5102 fi
5103 fi
a76494aa
PB
5104 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5105 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5106 :
a76494aa
PB
5107 else
5108 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5109 fi
5110 fi
5111 rm t1 t2
5112
5113fi
5213506e
RW
5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5115$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5116do_compare="$gcc_cv_prog_cmp_skip"
5117
5118
55ffb5ed 5119
00020c16 5120# See if we are building gcc with C++.
5213506e
RW
5121# Check whether --enable-build-with-cxx was given.
5122if test "${enable_build_with_cxx+set}" = set; then :
5123 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
5124else
5125 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
5126fi
5127
00020c16 5128
592c90ff
KG
5129# Used for setting $lt_cv_objdir
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5131$as_echo_n "checking for objdir... " >&6; }
5132if test "${lt_cv_objdir+set}" = set; then :
5133 $as_echo_n "(cached) " >&6
5134else
5135 rm -f .libs 2>/dev/null
5136mkdir .libs 2>/dev/null
5137if test -d .libs; then
5138 lt_cv_objdir=.libs
5139else
5140 # MS-DOS does not allow filenames that begin with a dot.
5141 lt_cv_objdir=_libs
5142fi
5143rmdir .libs 2>/dev/null
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5146$as_echo "$lt_cv_objdir" >&6; }
5147objdir=$lt_cv_objdir
5148
5149
5150
5151
5152
5153cat >>confdefs.h <<_ACEOF
5154#define LT_OBJDIR "$lt_cv_objdir/"
5155_ACEOF
5156
5157
5158
acd26225 5159# Check for GMP, MPFR and MPC
3a5729ea 5160gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5161gmpinc=
e69bf64b 5162have_gmp=no
acd26225
KG
5163
5164# Specify a location for mpc
5165# check for this first so it ends up on the link line before mpfr.
5166
5213506e
RW
5167# Check whether --with-mpc was given.
5168if test "${with_mpc+set}" = set; then :
5169 withval=$with_mpc;
5170fi
acd26225 5171
acd26225 5172
9965e3cd 5173# Check whether --with-mpc-include was given.
5213506e
RW
5174if test "${with_mpc_include+set}" = set; then :
5175 withval=$with_mpc_include;
5176fi
acd26225 5177
acd26225 5178
9965e3cd 5179# Check whether --with-mpc-lib was given.
5213506e
RW
5180if test "${with_mpc_lib+set}" = set; then :
5181 withval=$with_mpc_lib;
5182fi
acd26225 5183
acd26225
KG
5184
5185if test "x$with_mpc" != x; then
3a5729ea
KG
5186 gmplibs="-L$with_mpc/lib $gmplibs"
5187 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5188fi
5189if test "x$with_mpc_include" != x; then
3a5729ea 5190 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5191fi
5192if test "x$with_mpc_lib" != x; then
3a5729ea 5193 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5194fi
5195if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5196 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5197 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5198 # Do not test the mpc version. Assume that it is sufficient, since
5199 # it is in the source tree, and the library has not been built yet
5200 # but it would be included on the link line in the version check below
5201 # hence making the test fail.
3a5729ea 5202 have_gmp=yes
acd26225 5203fi
e69bf64b 5204
bebf829d
PB
5205# Specify a location for mpfr
5206# check for this first so it ends up on the link line before gmp.
1c710c3c 5207
5213506e
RW
5208# Check whether --with-mpfr-dir was given.
5209if test "${with_mpfr_dir+set}" = set; then :
5210 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5211Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5212fi
5213
bebf829d
PB
5214
5215
5213506e
RW
5216# Check whether --with-mpfr was given.
5217if test "${with_mpfr+set}" = set; then :
5218 withval=$with_mpfr;
5219fi
1c710c3c 5220
bebf829d 5221
9965e3cd 5222# Check whether --with-mpfr-include was given.
5213506e
RW
5223if test "${with_mpfr_include+set}" = set; then :
5224 withval=$with_mpfr_include;
5225fi
1c710c3c 5226
8a877c9c 5227
9965e3cd 5228# Check whether --with-mpfr-lib was given.
5213506e
RW
5229if test "${with_mpfr_lib+set}" = set; then :
5230 withval=$with_mpfr_lib;
5231fi
8a877c9c 5232
bebf829d
PB
5233
5234if test "x$with_mpfr" != x; then
5235 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5236 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5237fi
8a877c9c 5238if test "x$with_mpfr_include" != x; then
3a5729ea 5239 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5240fi
5241if test "x$with_mpfr_lib" != x; then
5242 gmplibs="-L$with_mpfr_lib $gmplibs"
5243fi
e69bf64b 5244if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5245 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5246 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5247 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5248 # Do not test the mpfr version. Assume that it is sufficient, since
5249 # it is in the source tree, and the library has not been built yet
5250 # but it would be included on the link line in the version check below
5251 # hence making the test fail.
5252 have_gmp=yes
5253fi
bebf829d 5254
6de9cd9a 5255# Specify a location for gmp
1c710c3c 5256
5213506e
RW
5257# Check whether --with-gmp-dir was given.
5258if test "${with_gmp_dir+set}" = set; then :
5259 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5260Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5261fi
5262
6de9cd9a 5263
6de9cd9a 5264
5213506e
RW
5265# Check whether --with-gmp was given.
5266if test "${with_gmp+set}" = set; then :
5267 withval=$with_gmp;
5268fi
1c710c3c 5269
6de9cd9a 5270
9965e3cd 5271# Check whether --with-gmp-include was given.
5213506e
RW
5272if test "${with_gmp_include+set}" = set; then :
5273 withval=$with_gmp_include;
5274fi
1c710c3c 5275
8a877c9c 5276
9965e3cd 5277# Check whether --with-gmp-lib was given.
5213506e
RW
5278if test "${with_gmp_lib+set}" = set; then :
5279 withval=$with_gmp_lib;
5280fi
8a877c9c
KG
5281
5282
6de9cd9a 5283
bebf829d
PB
5284if test "x$with_gmp" != x; then
5285 gmplibs="-L$with_gmp/lib $gmplibs"
5286 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5287fi
8a877c9c
KG
5288if test "x$with_gmp_include" != x; then
5289 gmpinc="-I$with_gmp_include $gmpinc"
5290fi
5291if test "x$with_gmp_lib" != x; then
5292 gmplibs="-L$with_gmp_lib $gmplibs"
5293fi
e69bf64b 5294if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5295 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5296 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5297 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5298 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5299 # Do not test the gmp version. Assume that it is sufficient, since
5300 # it is in the source tree, and the library has not been built yet
5301 # but it would be included on the link line in the version check below
5302 # hence making the test fail.
5303 have_gmp=yes
5304fi
6de9cd9a 5305
d943d7c4 5306if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5307 have_gmp=yes
5308 saved_CFLAGS="$CFLAGS"
5309 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5310 # Check for the recommended and required versions of GMP.
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5312$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5313
5314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5315/* end confdefs.h. */
5316#include "gmp.h"
5317int
5318main ()
5319{
5320
5321 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5322 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5323 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5324 choke me
5325 #endif
5326
5327 ;
5328 return 0;
5329}
5330_ACEOF
5331if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5333/* end confdefs.h. */
362c6d2f 5334#include <gmp.h>
1c710c3c
DJ
5335int
5336main ()
5337{
6de9cd9a 5338
362c6d2f
KG
5339 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5340 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5341 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5342 choke me
5343 #endif
1c710c3c
DJ
5344
5345 ;
5346 return 0;
5347}
5348_ACEOF
5213506e
RW
5349if ac_fn_c_try_compile "$LINENO"; then :
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351$as_echo "yes" >&6; }
362c6d2f
KG
5352else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5354$as_echo "buggy but acceptable" >&6; }
5355fi
5356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5357else
5213506e
RW
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5360fi
5213506e 5361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5362
acd26225 5363 # If we have GMP, check the MPFR version.
e69bf64b 5364 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5365 # Check for the recommended and required versions of MPFR.
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5367$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5369/* end confdefs.h. */
70ec446f 5370#include <gmp.h>
e69bf64b 5371 #include <mpfr.h>
1c710c3c
DJ
5372int
5373main ()
5374{
e48d66a9 5375
a3337ea2 5376 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5377 choke me
5378 #endif
1c710c3c
DJ
5379
5380 ;
5381 return 0;
5382}
5383_ACEOF
5213506e
RW
5384if ac_fn_c_try_compile "$LINENO"; then :
5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5386/* end confdefs.h. */
a3993f33 5387#include <gmp.h>
e69bf64b 5388 #include <mpfr.h>
1c710c3c
DJ
5389int
5390main ()
5391{
a3993f33 5392
362c6d2f 5393 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5394 choke me
5395 #endif
acd26225
KG
5396
5397 ;
5398 return 0;
5399}
5400_ACEOF
5213506e
RW
5401if ac_fn_c_try_compile "$LINENO"; then :
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5403$as_echo "yes" >&6; }
acd26225 5404else
5213506e
RW
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5406$as_echo "buggy but acceptable" >&6; }
acd26225 5407fi
5213506e 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5409else
5213506e
RW
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411$as_echo "no" >&6; }; have_gmp=no
acd26225 5412fi
5213506e 5413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5414 fi
5415
5416 # Check for the MPC header version.
3a5729ea 5417 if test x"$have_gmp" = xyes ; then
362c6d2f 5418 # Check for the recommended and required versions of MPC.
5213506e
RW
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5420$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5422/* end confdefs.h. */
5423#include <mpc.h>
5424int
5425main ()
5426{
5427
362c6d2f
KG
5428 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5429 choke me
5430 #endif
5431
5432 ;
5433 return 0;
5434}
5435_ACEOF
5436if ac_fn_c_try_compile "$LINENO"; then :
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439#include <mpc.h>
5440int
5441main ()
5442{
5443
5444 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5445 choke me
5446 #endif
5447
5448 ;
5449 return 0;
5450}
5451_ACEOF
5213506e
RW
5452if ac_fn_c_try_compile "$LINENO"; then :
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5454$as_echo "yes" >&6; }
362c6d2f
KG
5455else
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5457$as_echo "buggy but acceptable" >&6; }
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5460else
5213506e 5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5462$as_echo "no" >&6; }; have_gmp=no
acd26225 5463fi
5213506e 5464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5465 fi
5466
5467 # Now check the MPFR library.
5468 if test x"$have_gmp" = xyes; then
5469 saved_LIBS="$LIBS"
5470 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5472$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5474/* end confdefs.h. */
3a5729ea 5475#include <mpc.h>
acd26225
KG
5476int
5477main ()
5478{
5479
5480 mpfr_t n;
5481 mpfr_t x;
3a5729ea 5482 mpc_t c;
acd26225
KG
5483 int t;
5484 mpfr_init (n);
5485 mpfr_init (x);
5486 mpfr_atan2 (n, n, x, GMP_RNDN);
5487 mpfr_erfc (n, x, GMP_RNDN);
5488 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5489 mpfr_clear(n);
5490 mpfr_clear(x);
5491 mpc_init2 (c, 53);
5492 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5493 mpc_cosh (c, c, MPC_RNDNN);
5494 mpc_pow (c, c, c, MPC_RNDNN);
5495 mpc_acosh (c, c, MPC_RNDNN);
5496 mpc_clear (c);
1c710c3c
DJ
5497
5498 ;
5499 return 0;
5500}
5501_ACEOF
5213506e
RW
5502if ac_fn_c_try_link "$LINENO"; then :
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504$as_echo "yes" >&6; }
1c710c3c 5505else
5213506e
RW
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5508fi
5213506e
RW
5509rm -f core conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5511 LIBS="$saved_LIBS"
5512 fi
5513
e69bf64b 5514 CFLAGS="$saved_CFLAGS"
6de9cd9a 5515
362c6d2f
KG
5516# The library versions listed in the error message below should match
5517# the HARD-minimums enforced above.
e69bf64b 5518 if test x$have_gmp != xyes; then
362c6d2f 5519 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5520Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5521their locations. Source code for these libraries can be found at
5522their respective hosting sites as well as at
5523ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5524http://gcc.gnu.org/install/prerequisites.html for additional info. If
5525you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5526make sure that you have installed both the libraries and the header
5527files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5528 fi
70ec446f
KG
5529fi
5530
acd26225
KG
5531# Flags needed for both GMP, MPFR and/or MPC.
5532
5533
6de9cd9a
DN
5534
5535
5536
9e3eba15 5537
f38095f3
JM
5538# Allow host libstdc++ to be specified for static linking with PPL.
5539
5213506e
RW
5540# Check whether --with-host-libstdcxx was given.
5541if test "${with_host_libstdcxx+set}" = set; then :
5542 withval=$with_host_libstdcxx;
5543fi
f38095f3 5544
f38095f3
JM
5545
5546case $with_host_libstdcxx in
5547 no|yes)
5213506e 5548 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5549 ;;
5550esac
f8bf9252 5551
00020c16
ILT
5552# Linker flags to use for stage1 or when not boostrapping.
5553
5213506e
RW
5554# Check whether --with-stage1-ldflags was given.
5555if test "${with_stage1_ldflags+set}" = set; then :
5556 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5557 stage1_ldflags=
5558 else
5559 stage1_ldflags=$withval
5560 fi
5561else
5562 stage1_ldflags=
5213506e
RW
5563fi
5564
00020c16
ILT
5565
5566
5567# Libraries to use for stage1 or when not bootstrapping.
5568
5213506e
RW
5569# Check whether --with-stage1-libs was given.
5570if test "${with_stage1_libs+set}" = set; then :
5571 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5572 stage1_libs=
5573 else
5574 stage1_libs=$withval
5575 fi
5576else
5577 stage1_libs=$with_host_libstdcxx
5213506e
RW
5578fi
5579
00020c16
ILT
5580
5581
00020c16
ILT
5582# Libraries to use for stage2 and later builds. This defaults to the
5583# argument passed to --with-host-libstdcxx.
5584
5213506e
RW
5585# Check whether --with-boot-libs was given.
5586if test "${with_boot_libs+set}" = set; then :
5587 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5588 poststage1_libs=
5589 else
5590 poststage1_libs=$withval
5591 fi
5592else
00020c16 5593 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5594fi
5595
00020c16
ILT
5596
5597
ed2eaa9f
ILT
5598# Linker flags to use for stage2 and later builds.
5599
5600# Check whether --with-boot-ldflags was given.
5601if test "${with_boot_ldflags+set}" = set; then :
5602 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5603 poststage1_ldflags=
5604 else
5605 poststage1_ldflags=$withval
5606 fi
5607else
5608 poststage1_ldflags=
5609 # With --enable-build-with-cxx, default to linking libstdc++ and
5610 # libgcc statically. But if the user explicitly specified the
5611 # libraries to use, trust that they are doing what they want.
5612 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5613 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5614 fi
5615fi
5616
5617
5618
f8bf9252 5619# Check for PPL
00020c16 5620ppllibs=" -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5621pplinc=
5622
5623
5213506e
RW
5624# Check whether --with-ppl was given.
5625if test "${with_ppl+set}" = set; then :
5626 withval=$with_ppl;
5213506e 5627fi
f8bf9252 5628
f8bf9252 5629
9965e3cd 5630# Check whether --with-ppl-include was given.
5213506e
RW
5631if test "${with_ppl_include+set}" = set; then :
5632 withval=$with_ppl_include;
5633fi
5634
f8bf9252 5635
9965e3cd 5636# Check whether --with-ppl-lib was given.
5213506e
RW
5637if test "${with_ppl_lib+set}" = set; then :
5638 withval=$with_ppl_lib;
5639fi
f8bf9252 5640
f8bf9252 5641
53095c56
SP
5642case $with_ppl in
5643 no)
5644 ppllibs=
5645 ;;
f61428ed 5646 "" | yes)
ad0abd3c 5647 ;;
53095c56 5648 *)
00020c16 5649 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
53095c56 5650 pplinc="-I$with_ppl/include $pplinc"
53095c56
SP
5651 ;;
5652esac
f8bf9252
SP
5653if test "x$with_ppl_include" != x; then
5654 pplinc="-I$with_ppl_include $pplinc"
5655fi
5656if test "x$with_ppl_lib" != x; then
00020c16 5657 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5658fi
5659if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
592c90ff 5660 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
f61428ed
AO
5661 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5662 enable_ppl_version_check=no
f8bf9252
SP
5663fi
5664
5213506e
RW
5665# Check whether --enable-ppl-version-check was given.
5666if test "${enable_ppl_version_check+set}" = set; then :
5667 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
d789184e
SP
5668else
5669 ENABLE_PPL_CHECK=yes
5213506e
RW
5670fi
5671
f8bf9252 5672
ad0abd3c 5673if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
d789184e
SP
5674 saved_CFLAGS="$CFLAGS"
5675 CFLAGS="$CFLAGS $pplinc $gmpinc"
f1af9e5f
SP
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5677$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5213506e 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5679/* end confdefs.h. */
5680#include "ppl_c.h"
5681int
5682main ()
5683{
5684
f1af9e5f 5685 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
d789184e
SP
5686 choke me
5687 #endif
f8bf9252
SP
5688
5689 ;
5690 return 0;
5691}
5692_ACEOF
5213506e
RW
5693if ac_fn_c_try_compile "$LINENO"; then :
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5695$as_echo "yes" >&6; }
f8bf9252 5696else
5213506e 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5698$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5699fi
5213506e 5700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5701 CFLAGS="$saved_CFLAGS"
5702fi
5703
5704# Flags needed for PPL
5705
5706
f8bf9252 5707
f8bf9252 5708
d789184e 5709# Check for CLOOG
d32ef397 5710
d789184e
SP
5711
5712
5213506e
RW
5713# Check whether --with-cloog was given.
5714if test "${with_cloog+set}" = set; then :
5715 withval=$with_cloog;
5213506e
RW
5716fi
5717
d789184e 5718
9965e3cd 5719# Check whether --with-cloog-include was given.
5213506e
RW
5720if test "${with_cloog_include+set}" = set; then :
5721 withval=$with_cloog_include;
5722fi
d789184e 5723
d789184e 5724
9965e3cd 5725# Check whether --with-cloog-lib was given.
5213506e
RW
5726if test "${with_cloog_lib+set}" = set; then :
5727 withval=$with_cloog_lib;
5728fi
d789184e 5729
d789184e 5730
f16e2237
TG
5731 # Check whether --enable-cloog-backend was given.
5732if test "${enable_cloog_backend+set}" = set; then :
5733 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5734 cloog_backend=isl
5735 elif test "x${enableval}" = "xppl"; then
5736 cloog_backend=ppl
5737 else
5738 cloog_backend=ppl-legacy
5739 fi
5740else
5741 cloog_backend=ppl-legacy
5742fi
5743
d32ef397
AS
5744 # Check whether --enable-cloog-version-check was given.
5745if test "${enable_cloog_version_check+set}" = set; then :
5746 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5747else
5748 ENABLE_CLOOG_CHECK=yes
5749fi
5750
5751
5752 # Initialize clooglibs and clooginc.
5753 case $with_cloog in
5754 no)
5755 clooglibs=
5756 clooginc=
5757 ;;
5758 "" | yes)
5759 ;;
5760 *)
5761 clooglibs="-L$with_cloog/lib"
5762 clooginc="-I$with_cloog/include"
5763 ;;
5764 esac
5765 if test "x${with_cloog_include}" != x ; then
5766 clooginc="-I$with_cloog_include"
5767 fi
5768 if test "x${with_cloog_lib}" != x; then
5769 clooglibs="-L$with_cloog_lib"
5770 fi
5771
5772
5773
5774
5775
17e72e5d 5776if test "x$with_ppl" = "xno"; then
ad0abd3c
RG
5777 with_cloog=no
5778fi
d32ef397
AS
5779if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5780 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5781 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5782 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5783fi
5784if test "x$with_cloog" != "xno"; then
ad0abd3c 5785
d32ef397
AS
5786
5787
5788 _cloog_saved_CFLAGS=$CFLAGS
5789 _cloog_saved_CPPFLAGS=$CPPFLAGS
5790 _cloog_saved_LDFLAGS=$LDFLAGS
5791 _cloog_saved_LIBS=$LIBS
5792
d32ef397
AS
5793 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5794
f16e2237 5795 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
0bb52d68 5796 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
f16e2237
TG
5797 LDFLAGS="${LDFLAGS} ${clooglibs}"
5798
5799 case $cloog_backend in
5800 "ppl-legacy")
5801 CFLAGS="${CFLAGS} ${pplinc}"
5802 LDFLAGS="${LDFLAGS} ${ppllibs}"
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5804$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
d32ef397
AS
5805if test "${gcc_cv_cloog_type+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5807else
5808 LIBS="-lcloog ${_cloog_saved_LIBS}"
f16e2237 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5810/* end confdefs.h. */
0bb52d68 5811#include "cloog/cloog.h"
d32ef397
AS
5812int
5813main ()
5814{
0bb52d68
TG
5815#ifndef CLOOG_PPL_BACKEND
5816 choke me
5817 #endif
d32ef397
AS
5818 ;
5819 return 0;
5820}
5821_ACEOF
5822if ac_fn_c_try_link "$LINENO"; then :
5823 gcc_cv_cloog_type="PPL Legacy"
5824else
f16e2237
TG
5825 gcc_cv_cloog_type=no
5826fi
5827rm -f core conftest.err conftest.$ac_objext \
5828 conftest$ac_exeext conftest.$ac_ext
5829fi
5830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5831$as_echo "$gcc_cv_cloog_type" >&6; }
5832 ;;
5833 "isl")
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5835$as_echo_n "checking for installed CLooG ISL... " >&6; }
5836if test "${gcc_cv_cloog_type+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5838else
5839 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5841/* end confdefs.h. */
0bb52d68 5842#include "cloog/cloog.h"
d32ef397
AS
5843int
5844main ()
5845{
5846cloog_version ()
5847 ;
5848 return 0;
5849}
5850_ACEOF
5851if ac_fn_c_try_link "$LINENO"; then :
f16e2237
TG
5852 gcc_cv_cloog_type="ISL"
5853else
5854 gcc_cv_cloog_type=no
5855fi
5856rm -f core conftest.err conftest.$ac_objext \
5857 conftest$ac_exeext conftest.$ac_ext
5858fi
5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5860$as_echo "$gcc_cv_cloog_type" >&6; }
5861 ;;
5862 "ppl")
5863 CFLAGS="${CFLAGS} ${pplinc}"
5864 LDFLAGS="${LDFLAGS} ${ppllibs}"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5866$as_echo_n "checking for installed CLooG PPL... " >&6; }
5867if test "${gcc_cv_cloog_type+set}" = set; then :
5868 $as_echo_n "(cached) " >&6
d32ef397
AS
5869else
5870 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
f16e2237 5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5872/* end confdefs.h. */
0bb52d68 5873#include "cloog/cloog.h"
f16e2237 5874 #include "cloog/ppl/cloog.h"
d32ef397
AS
5875int
5876main ()
5877{
5878cloog_version ()
5879 ;
5880 return 0;
5881}
5882_ACEOF
5883if ac_fn_c_try_link "$LINENO"; then :
f16e2237 5884 gcc_cv_cloog_type="PPL"
d32ef397
AS
5885else
5886 gcc_cv_cloog_type=no
d789184e 5887fi
d32ef397
AS
5888rm -f core conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext conftest.$ac_ext
d789184e 5890fi
d32ef397
AS
5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5892$as_echo "$gcc_cv_cloog_type" >&6; }
f16e2237
TG
5893 ;;
5894 *)
5895 gcc_cv_cloog_type=""
5896 esac
5213506e 5897
d32ef397
AS
5898 case $gcc_cv_cloog_type in
5899 "PPL Legacy")
0bb52d68 5900 clooginc="${clooginc}"
d32ef397
AS
5901 clooglibs="${clooglibs} -lcloog"
5902 cloog_org=no
5903 ;;
5904 "ISL")
5905 clooginc="${clooginc} ${_cloogorginc}"
5906 clooglibs="${clooglibs} -lcloog-isl"
5907 cloog_org=yes
5908 ;;
5909 "PPL")
5910 clooginc="${clooginc} ${_cloogorginc}"
5911 clooglibs="${clooglibs} -lcloog-ppl"
5912 cloog_org=yes
5913 ;;
5914 *)
5915 clooglibs=
5916 clooginc=
5917 cloog_org=
5918 ;;
5919 esac
d789184e 5920
d32ef397
AS
5921 LIBS=$_cloog_saved_LIBS
5922 CFLAGS=$_cloog_saved_CFLAGS
5923 CPPFLAGS=$_cloog_saved_CPPFLAGS
5924 LDFLAGS=$_cloog_saved_LDFLAGS
5925
5926
5927
5928
5929
5930 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5931 _cloog_saved_CFLAGS=$CFLAGS
5932 _cloog_saved_LDFLAGS=$LDFLAGS
5933
5934 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
27882098 5935 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
d32ef397
AS
5936
5937 if test "${cloog_org}" = yes ; then
aba2b02e
TG
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5939$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
d32ef397
AS
5940if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5941 $as_echo_n "(cached) " >&6
5942else
5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h. */
5945#include "cloog/cloog.h"
5946int
5947main ()
5948{
5949#if CLOOG_VERSION_MAJOR != 0 \
5950 || CLOOG_VERSION_MINOR != 14 \
5951 || CLOOG_VERSION_REVISION < 0
5952 choke me
5953 #endif
5954 ;
5955 return 0;
5956}
5957_ACEOF
5958if ac_fn_c_try_compile "$LINENO"; then :
5959 gcc_cv_cloog_ct_0_14_0=yes
5960else
5961 gcc_cv_cloog_ct_0_14_0=no
5962fi
5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964fi
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5966$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5967 elif test "${cloog_org}" = no ; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
f264ed56 5969$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
d32ef397
AS
5970if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972else
5213506e 5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5974/* end confdefs.h. */
5975#include "cloog/cloog.h"
5976int
5977main ()
5978{
d32ef397
AS
5979#if CLOOG_VERSION_MAJOR != 0 \
5980 || CLOOG_VERSION_MINOR != 15 \
5981 || CLOOG_VERSION_REVISION < 5
5982 choke me
5983 #endif
f8bf9252
SP
5984 ;
5985 return 0;
5986}
5987_ACEOF
0333b9a6
SP
5988if ac_fn_c_try_compile "$LINENO"; then :
5989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5990/* end confdefs.h. */
5991#include "cloog/cloog.h"
5992int
5993main ()
5994{
d32ef397
AS
5995#if CLOOG_VERSION_MAJOR != 0 \
5996 || CLOOG_VERSION_MINOR != 15 \
5997 || CLOOG_VERSION_REVISION < 9
5998 choke me
5999 #endif
0333b9a6
SP
6000 ;
6001 return 0;
6002}
6003_ACEOF
5213506e 6004if ac_fn_c_try_compile "$LINENO"; then :
d32ef397 6005 gcc_cv_cloog_ct_0_15_5=yes
0333b9a6 6006else
d32ef397 6007 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
0333b9a6
SP
6008fi
6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 6010else
d32ef397 6011 gcc_cv_cloog_ct_0_15_5=no
f8bf9252 6012fi
5213506e 6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 6014fi
d32ef397
AS
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6016$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6017 fi
6018
6019 CFLAGS=$_cloog_saved_CFLAGS
6020 LDFLAGS=$_cloog_saved_LDFLAGS
6021 fi
f8bf9252 6022
f8bf9252
SP
6023
6024
6025
d32ef397
AS
6026
6027
6028
6029 if test "x${with_cloog}" != x \
6030 || test "x${with_cloog_include}" != x \
6031 || test "x${with_cloog_lib}" != x ; then
6032 graphite_requested=yes
6033 else
6034 graphite_requested=no
6035 fi
6036
6037
6038
6039 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6040 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6041 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6042 clooglibs=
6043 clooginc=
6044 fi
6045
6046 if test "${graphite_requested}" = yes \
6047 && test "x${clooglibs}" = x \
6048 && test "x${clooginc}" = x ; then
6049
6050 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6051 fi
6052
6053
6054fi
6055
d7f09764
DN
6056# Check for LTO support.
6057# Check whether --enable-lto was given.
6058if test "${enable_lto+set}" = set; then :
6059 enableval=$enable_lto; enable_lto=$enableval
6060else
6061 enable_lto=yes; default_enable_lto=yes
6062fi
6063
6064
7413962d 6065
9a02962b
DK
6066
6067
6068target_elf=no
6069case $target in
6070 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6071 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6072 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6073 target_elf=no
6074 ;;
6075 *)
6076 target_elf=yes
6077 ;;
6078esac
6079
6080if test $target_elf = yes; then :
48215350
DK
6081 # ELF platforms build the lto-plugin always.
6082 build_lto_plugin=yes
9a02962b 6083
9a02962b
DK
6084else
6085 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6086 case $target in
1cd0b716 6087 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
48215350 6088 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6089 *) enable_lto=no ;;
6090 esac
9a02962b 6091 else
db50fe7d
IS
6092 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6093 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6094 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6095 # warn during gcc/ subconfigure; unless you're bootstrapping with
6096 # -flto it won't be needed until after installation anyway.
6097 case $target in
1cd0b716 6098 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6099 *) if test x"$enable_lto" = x"yes"; then
6100 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6101 fi
6102 ;;
6103 esac
6104 fi
1cd0b716 6105 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6106 # Build it unless LTO was explicitly disabled.
1cd0b716 6107 case $target in
48215350 6108 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6109 *) ;;
6110 esac
48215350 6111
9a02962b
DK
6112fi
6113
d7f09764 6114
f8bf9252 6115
1e0f07d3 6116# By default, C is the only stage 1 language.
e1888513 6117stage1_languages=,c,
2805b53a 6118
00020c16 6119# Target libraries that we bootstrap.
ad1e5170 6120bootstrap_target_libs=,target-libgcc,
00020c16 6121
55ffb5ed
NN
6122# Figure out what language subdirectories are present.
6123# Look if the user specified --enable-languages="..."; if not, use
6124# the environment variable $LANGUAGES if defined. $LANGUAGES might
6125# go away some day.
6126# NB: embedded tabs in this IF block -- do not untabify
6127if test -d ${srcdir}/gcc; then
6128 if test x"${enable_languages+set}" != xset; then
6129 if test x"${LANGUAGES+set}" = xset; then
6130 enable_languages="${LANGUAGES}"
6131 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6132 else
6133 enable_languages=all
6134 fi
6135 else
6136 if test x"${enable_languages}" = x ||
6137 test x"${enable_languages}" = xyes;
6138 then
6139 echo configure.in: --enable-languages needs at least one language argument 1>&2
6140 exit 1
6141 fi
6142 fi
6143 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6144
7f26dfa3
FXC
6145 # 'f95' is the old name for the 'fortran' language. We issue a warning
6146 # and make the substitution.
6147 case ,${enable_languages}, in
6148 *,f95,*)
6149 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6150 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6151 ;;
6152 esac
6153
55ffb5ed
NN
6154 # First scan to see if an enabled language requires some other language.
6155 # We assume that a given config-lang.in will list all the language
6156 # front ends it requires, even if some are required indirectly.
6157 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6158 case ${lang_frag} in
6159 ..) ;;
6160 # The odd quoting in the next line works around
6161 # an apparent bug in bash 1.12 on linux.
6162 ${srcdir}/gcc/[*]/config-lang.in) ;;
6163 *)
69ecd18f
ILT
6164 # From the config-lang.in, get $language, $lang_requires, and
6165 # $lang_requires_boot_languages.
55ffb5ed
NN
6166 language=
6167 lang_requires=
69ecd18f 6168 lang_requires_boot_languages=
55ffb5ed 6169 . ${lang_frag}
69ecd18f 6170 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6171 case ,${enable_languages}, in
6172 *,$other,*) ;;
6173 *,all,*) ;;
6174 *,$language,*)
6175 echo " \`$other' language required by \`$language'; enabling" 1>&2
6176 enable_languages="${enable_languages},${other}"
6177 ;;
6178 esac
6179 done
69ecd18f
ILT
6180 for other in ${lang_requires_boot_languages} ; do
6181 if test "$other" != "c"; then
6182 case ,${enable_stage1_languages}, in
6183 *,$other,*) ;;
6184 *,all,*) ;;
6185 *)
6186 case ,${enable_languages}, in
6187 *,$language,*)
6188 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6189 enable_stage1_languages="$enable_stage1_languages,${other}"
6190 ;;
6191 esac
6192 ;;
6193 esac
6194 fi
6195 done
55ffb5ed
NN
6196 ;;
6197 esac
6198 done
6199
e1888513 6200 new_enable_languages=,c,
d7f09764
DN
6201
6202 # If LTO is enabled, add the LTO front end.
6203 extra_host_libiberty_configure_flags=
6204 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6205 case ,${enable_languages}, in
6206 *,lto,*) ;;
6207 *) enable_languages="${enable_languages},lto" ;;
6208 esac
1cd0b716 6209 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6210 configdirs="$configdirs lto-plugin"
6211 extra_host_libiberty_configure_flags=--enable-shared
6212 fi
6213 fi
6214
6215
55ffb5ed 6216 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6217 potential_languages=,c,
55ffb5ed 6218
4da3b0f8
ILT
6219 enabled_target_libs=
6220 disabled_target_libs=
6221
55ffb5ed
NN
6222 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6223 case ${lang_frag} in
6224 ..) ;;
6225 # The odd quoting in the next line works around
6226 # an apparent bug in bash 1.12 on linux.
6227 ${srcdir}/gcc/[*]/config-lang.in) ;;
6228 *)
1c710c3c 6229 # From the config-lang.in, get $language, $target_libs,
2805b53a 6230 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6231 language=
6232 target_libs=
6233 lang_dirs=
1546bb64 6234 subdir_requires=
e1888513
PB
6235 boot_language=no
6236 build_by_default=yes
55ffb5ed 6237 . ${lang_frag}
e1888513
PB
6238 if test x${language} = x; then
6239 echo "${lang_frag} doesn't set \$language." 1>&2
6240 exit 1
6241 fi
6242
f61428ed
AO
6243 if test "$language" = "c++" \
6244 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
00020c16
ILT
6245 boot_language=yes
6246 fi
6247
e1888513
PB
6248 case ,${enable_languages}, in
6249 *,${language},*)
55ffb5ed
NN
6250 # Language was explicitly selected; include it.
6251 add_this_lang=yes
6252 ;;
e1888513
PB
6253 *,all,*)
6254 # 'all' was selected, select it if it is a default language
6255 add_this_lang=${build_by_default}
55ffb5ed
NN
6256 ;;
6257 *)
6258 add_this_lang=no
6259 ;;
6260 esac
6de9cd9a 6261
1546bb64 6262 # Disable languages that need other directories if these aren't available.
95695ad3 6263 for i in $subdir_requires; do
b6348cb3 6264 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6265 case ,${enable_languages}, in
6266 *,${language},*)
6267 # Specifically requested language; tell them.
5213506e 6268 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6269 ;;
6270 *)
6271 # Silently disable.
e1888513 6272 add_this_lang=unsupported
1546bb64
PB
6273 ;;
6274 esac
6275 done
6276
e1888513
PB
6277 # Disable Ada if no preexisting GNAT is available.
6278 case ,${enable_languages},:${language}:${have_gnat} in
6279 *,${language},*:ada:no)
6280 # Specifically requested language; tell them.
5213506e 6281 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6282 ;;
6283 *:ada:no)
6284 # Silently disable.
6285 add_this_lang=unsupported
6286 ;;
6287 esac
6288
4fab7234
HPN
6289 # Disable a language that is unsupported by the target.
6290 case " $unsupported_languages " in
6291 *" $language "*)
e1888513 6292 add_this_lang=unsupported
4fab7234
HPN
6293 ;;
6294 esac
6295
6de9cd9a 6296 case $add_this_lang in
e1888513 6297 unsupported)
55ffb5ed 6298 # Remove language-dependent dirs.
4da3b0f8
ILT
6299 disabled_target_libs="$disabled_target_libs $target_libs"
6300 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6301 ;;
e1888513
PB
6302 no)
6303 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6304 disabled_target_libs="$disabled_target_libs $target_libs"
6305 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6306 potential_languages="${potential_languages}${language},"
6307 ;;
6308 yes)
6309 new_enable_languages="${new_enable_languages}${language},"
6310 potential_languages="${potential_languages}${language},"
2805b53a 6311 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6312 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6313 case "${boot_language}:,$enable_stage1_languages," in
6314 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6315 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6316 case ",$stage1_languages," in
6317 *,$language,* | ,yes, | ,all,) ;;
6318 *) stage1_languages="${stage1_languages}${language}," ;;
6319 esac
00020c16
ILT
6320 # We need to bootstrap any supporting libraries.
6321 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6322 ;;
6323 esac
6324 ;;
55ffb5ed
NN
6325 esac
6326 ;;
6327 esac
6328 done
6329
4da3b0f8
ILT
6330 # Add target libraries which are only needed for disabled languages
6331 # to noconfigdirs.
6332 if test -n "$disabled_target_libs"; then
6333 for dir in $disabled_target_libs; do
6334 case " $enabled_target_libs " in
6335 *" ${dir} "*) ;;
6336 *) noconfigdirs="$noconfigdirs $dir" ;;
6337 esac
6338 done
6339 fi
6340
5213506e
RW
6341 # Check whether --enable-stage1-languages was given.
6342if test "${enable_stage1_languages+set}" = set; then :
6343 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6344 ,no,|,,)
6345 # Set it to something that will have no effect in the loop below
6346 enable_stage1_languages=c ;;
6347 ,yes,)
6348 enable_stage1_languages=`echo $new_enable_languages | \
6349 sed -e "s/^,//" -e "s/,$//" ` ;;
6350 *,all,*)
6351 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6352 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6353 esac
6354
6355 # Add "good" languages from enable_stage1_languages to stage1_languages,
6356 # while "bad" languages go in missing_languages. Leave no duplicates.
6357 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6358 case $potential_languages in
6359 *,$i,*)
6360 case $stage1_languages in
6361 *,$i,*) ;;
6362 *) stage1_languages="$stage1_languages$i," ;;
6363 esac ;;
6364 *)
6365 case $missing_languages in
6366 *,$i,*) ;;
6367 *) missing_languages="$missing_languages$i," ;;
6368 esac ;;
6369 esac
6370 done
5213506e
RW
6371fi
6372
e1888513
PB
6373
6374 # Remove leading/trailing commas that were added for simplicity
6375 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6376 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6377 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6378 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6379
55ffb5ed 6380 if test "x$missing_languages" != x; then
5213506e 6381 as_fn_error "
0cf085e4 6382The following requested languages could not be built: ${missing_languages}
5213506e 6383Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6384 fi
55ffb5ed
NN
6385 if test "x$new_enable_languages" != "x$enable_languages"; then
6386 echo The following languages will be built: ${new_enable_languages}
e1888513 6387 enable_languages="$new_enable_languages"
55ffb5ed 6388 fi
e1888513 6389
1c710c3c 6390
b2eaac4a 6391 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6392fi
6393
27079765
AH
6394# Handle --disable-<component> generically.
6395for dir in $configdirs $build_configdirs $target_configdirs ; do
6396 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6397 varname=`echo $dirname | sed -e s/+/_/g`
6398 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6399 noconfigdirs="$noconfigdirs $dir"
6400 fi
6401done
6402
7cd0cf9c 6403# Check for Boehm's garbage collector
5213506e
RW
6404# Check whether --enable-objc-gc was given.
6405if test "${enable_objc_gc+set}" = set; then :
6406 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6407 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6408 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6409 ;;
6410esac
5213506e
RW
6411fi
6412
7cd0cf9c
DA
6413
6414# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6415case ,${enable_languages},:${enable_objc_gc} in
6416 *,objc,*:yes)
7cd0cf9c
DA
6417 # Keep target-boehm-gc if requested for Objective-C.
6418 ;;
7cd0cf9c 6419 *)
2a79fd67
DA
6420 # Otherwise remove target-boehm-gc depending on target-libjava.
6421 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6422 noconfigdirs="$noconfigdirs target-boehm-gc"
6423 fi
7cd0cf9c
DA
6424 ;;
6425esac
6426
ee6a22df
L
6427# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6428# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6429# If we have the source for $noconfigdirs entries, add them to $notsupp.
6430
6431notsupp=""
6432for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6433 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6434 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6435 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6436 if test -r $srcdir/$dirname/configure ; then
6437 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6438 true
6439 else
6440 notsupp="$notsupp $dir"
6441 fi
6442 fi
6443 fi
ee6a22df
L
6444 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6445 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6446 if test -r $srcdir/$dirname/configure ; then
6447 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6448 true
6449 else
6450 notsupp="$notsupp $dir"
6451 fi
6452 fi
6453 fi
55ffb5ed
NN
6454 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6455 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6456 if test -r $srcdir/$dirname/configure ; then
6457 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6458 true
6459 else
6460 notsupp="$notsupp $dir"
6461 fi
6462 fi
6463 fi
6464done
6465
6466# Sometimes the tools are distributed with libiberty but with no other
6467# libraries. In that case, we don't want to build target-libiberty.
54fdc474 6468# Don't let libgcc imply libiberty either.
55ffb5ed 6469if test -n "${target_configdirs}" ; then
54fdc474 6470 libgcc=
55ffb5ed
NN
6471 others=
6472 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
6473 if test "$i" = "libgcc"; then
6474 libgcc=target-libgcc
6475 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
6476 if test -r $srcdir/$i/configure ; then
6477 others=yes;
6478 break;
6479 fi
6480 fi
6481 done
6482 if test -z "${others}" ; then
54fdc474 6483 target_configdirs=$libgcc
55ffb5ed
NN
6484 fi
6485fi
6486
6487# Quietly strip out all directories which aren't configurable in this tree.
6488# This relies on all configurable subdirectories being autoconfiscated, which
6489# is now the case.
23f6b2f9
PB
6490build_configdirs_all="$build_configdirs"
6491build_configdirs=
6492for i in ${build_configdirs_all} ; do
1c710c3c 6493 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6494 if test -f ${srcdir}/$j/configure ; then
6495 build_configdirs="${build_configdirs} $i"
6496 fi
6497done
6498
55ffb5ed
NN
6499configdirs_all="$configdirs"
6500configdirs=
6501for i in ${configdirs_all} ; do
6502 if test -f ${srcdir}/$i/configure ; then
6503 configdirs="${configdirs} $i"
6504 fi
6505done
23f6b2f9 6506
55ffb5ed
NN
6507target_configdirs_all="$target_configdirs"
6508target_configdirs=
6509for i in ${target_configdirs_all} ; do
1c710c3c 6510 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6511 if test -f ${srcdir}/$j/configure ; then
6512 target_configdirs="${target_configdirs} $i"
6513 fi
6514done
6515
6516# Produce a warning message for the subdirs we can't configure.
6517# This isn't especially interesting in the Cygnus tree, but in the individual
6518# FSF releases, it's important to let people know when their machine isn't
6519# supported by the one or two programs in a package.
6520
6521if test -n "${notsupp}" && test -z "${norecursion}" ; then
6522 # If $appdirs is non-empty, at least one of those directories must still
6523 # be configured, or we error out. (E.g., if the gas release supports a
6524 # specified target in some subdirs but not the gas subdir, we shouldn't
6525 # pretend that all is well.)
6526 if test -n "$appdirs" ; then
6527 for dir in $appdirs ; do
6528 if test -r $dir/Makefile.in ; then
6529 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6530 appdirs=""
6531 break
6532 fi
23f6b2f9 6533 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6534 appdirs=""
6535 break
6536 fi
6537 fi
6538 done
6539 if test -n "$appdirs" ; then
6540 echo "*** This configuration is not supported by this package." 1>&2
6541 exit 1
6542 fi
6543 fi
6544 # Okay, some application will build, or we don't care to check. Still
6545 # notify of subdirs not getting built.
6546 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6547 echo " ${notsupp}" 1>&2
6548 echo " (Any other directories should still work fine.)" 1>&2
6549fi
6550
6551case "$host" in
6552 *msdosdjgpp*)
6553 enable_gdbtk=no ;;
6554esac
6555
c3a86da9
DJ
6556# To find our prefix, in gcc_cv_tool_prefix.
6557
6558# The user is always right.
6559if test "${PATH_SEPARATOR+set}" != set; then
6560 echo "#! /bin/sh" >conf$$.sh
6561 echo "exit 0" >>conf$$.sh
6562 chmod +x conf$$.sh
6563 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6564 PATH_SEPARATOR=';'
6565 else
6566 PATH_SEPARATOR=:
6567 fi
6568 rm -f conf$$.sh
6569fi
6570
6571
6572
6573if test "x$exec_prefix" = xNONE; then
6574 if test "x$prefix" = xNONE; then
6575 gcc_cv_tool_prefix=$ac_default_prefix
6576 else
6577 gcc_cv_tool_prefix=$prefix
6578 fi
6579else
6580 gcc_cv_tool_prefix=$exec_prefix
6581fi
6582
6583# If there is no compiler in the tree, use the PATH only. In any
6584# case, if there is no compiler in the tree nobody should use
6585# AS_FOR_TARGET and LD_FOR_TARGET.
6586if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6587 gcc_version=`cat $srcdir/gcc/BASE-VER`
6588 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6589 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6590 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6591 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6592 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6593 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6594else
6595 gcc_cv_tool_dirs=
6596fi
6597
6598if test x$build = x$target && test -n "$md_exec_prefix"; then
6599 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6600fi
6601
6602
6603
55ffb5ed
NN
6604copy_dirs=
6605
1c710c3c 6606
5213506e
RW
6607# Check whether --with-build-sysroot was given.
6608if test "${with_build_sysroot+set}" = set; then :
6609 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6610 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6611 fi
6612else
6613 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6614fi
526635cb
MM
6615
6616
c8aea42c 6617
5213506e
RW
6618
6619# Check whether --with-debug-prefix-map was given.
6620if test "${with_debug_prefix_map+set}" = set; then :
6621 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6622 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6623 for debug_map in $withval; do
6624 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6625 done
6626 fi
6627else
6628 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6629fi
6630
c8aea42c
PB
6631
6632
1c8bd6a3
PB
6633# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6634# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6635# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6636# We want to ensure that TARGET libraries (which we know are built with
6637# gcc) are built with "-O2 -g", so include those options when setting
6638# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6639if test "x$CFLAGS_FOR_TARGET" = x; then
6640 CFLAGS_FOR_TARGET=$CFLAGS
6641 case " $CFLAGS " in
6642 *" -O2 "*) ;;
6643 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6644 esac
6645 case " $CFLAGS " in
6646 *" -g "* | *" -g3 "*) ;;
6647 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6648 esac
6649fi
6650
6651
6652if test "x$CXXFLAGS_FOR_TARGET" = x; then
6653 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6654 case " $CXXFLAGS " in
6655 *" -O2 "*) ;;
6656 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6657 esac
6658 case " $CXXFLAGS " in
6659 *" -g "* | *" -g3 "*) ;;
6660 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6661 esac
6662fi
6663
6664
55ffb5ed
NN
6665# Handle --with-headers=XXX. If the value is not "yes", the contents of
6666# the named directory are copied to $(tooldir)/sys-include.
6667if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6668 if test x${is_cross_compiler} = xno ; then
6669 echo 1>&2 '***' --with-headers is only supported when cross compiling
6670 exit 1
6671 fi
6672 if test x"${with_headers}" != xyes ; then
c3a86da9 6673 x=${gcc_cv_tool_prefix}
1c710c3c 6674 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6675 fi
6676fi
6677
6678# Handle --with-libs=XXX. If the value is not "yes", the contents of
6679# the name directories are copied to $(tooldir)/lib. Multiple directories
6680# are permitted.
6681if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6682 if test x${is_cross_compiler} = xno ; then
6683 echo 1>&2 '***' --with-libs is only supported when cross compiling
6684 exit 1
6685 fi
6686 if test x"${with_libs}" != xyes ; then
6687 # Copy the libraries in reverse order, so that files in the first named
6688 # library override files in subsequent libraries.
c3a86da9 6689 x=${gcc_cv_tool_prefix}
55ffb5ed 6690 for l in ${with_libs}; do
1c710c3c 6691 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6692 done
6693 fi
6694fi
6695
d7f09764 6696# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6697#
6698# This is done by determining whether or not the appropriate directory
6699# is available, and by checking whether or not specific configurations
6700# have requested that this magic not happen.
1c710c3c
DJ
6701#
6702# The command line options always override the explicit settings in
e8b05380
PB
6703# configure.in, and the settings in configure.in override this magic.
6704#
1c710c3c 6705# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6706# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6707# --without-gnu-ld options for the configure script. Similarly, if
6708# the default is to use the included zlib and you don't want to do that,
6709# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6710
6711if test x${use_gnu_as} = x &&
6712 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6713 with_gnu_as=yes
6714 extra_host_args="$extra_host_args --with-gnu-as"
6715fi
6716
6717if test x${use_gnu_ld} = x &&
5afab7ad 6718 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6719 with_gnu_ld=yes
6720 extra_host_args="$extra_host_args --with-gnu-ld"
6721fi
6722
d7f09764
DN
6723if test x${use_included_zlib} = x &&
6724 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6725 :
6726else
6727 with_system_zlib=yes
6728 extra_host_args="$extra_host_args --with-system-zlib"
6729fi
6730
e8b05380
PB
6731# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6732# can detect this case.
6733
6734if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6735 with_newlib=yes
6736 extra_host_args="$extra_host_args --with-newlib"
6737fi
6738
55ffb5ed
NN
6739# Handle ${copy_dirs}
6740set fnord ${copy_dirs}
6741shift
6742while test $# != 0 ; do
6743 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6744 :
6745 else
6746 echo Copying $1 to $2
6747
6748 # Use the install script to create the directory and all required
6749 # parent directories.
6750 if test -d $2 ; then
6751 :
6752 else
6753 echo >config.temp
6754 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6755 fi
6756
6757 # Copy the directory, assuming we have tar.
6758 # FIXME: Should we use B in the second tar? Not all systems support it.
6759 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6760
6761 # It is the responsibility of the user to correctly adjust all
6762 # symlinks. If somebody can figure out how to handle them correctly
6763 # here, feel free to add the code.
6764
6765 echo $1 > $2/COPIED
6766 fi
6767 shift; shift
6768done
6769
e8b05380
PB
6770# Determine a target-dependent exec_prefix that the installed
6771# gcc will search in. Keep this list sorted by triplet, with
6772# the *-*-osname triplets last.
6773md_exec_prefix=
6774case "${target}" in
6775 alpha*-*-*vms*)
6776 md_exec_prefix=/gnu/lib/gcc-lib
6777 ;;
30b74385 6778 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6779 md_exec_prefix=/dev/env/DJDIR/bin
6780 ;;
30b74385 6781 i[34567]86-*-sco3.2v5*)
e8b05380
PB
6782 if test $with_gnu_as = yes; then
6783 md_exec_prefix=/usr/gnu/bin
6784 else
6785 md_exec_prefix=/usr/ccs/bin/elf
6786 fi
6787 ;;
6788
6789 mn10300-*-* | \
6790 powerpc-*-chorusos* | \
6791 powerpc*-*-eabi* | \
6792 powerpc*-*-sysv* | \
6793 powerpc*-*-kaos* | \
6794 s390x-ibm-tpf*)
6795 md_exec_prefix=/usr/ccs/bin
6796 ;;
6797 sparc64-*-elf*)
6798 ;;
6799 v850*-*-*)
6800 md_exec_prefix=/usr/ccs/bin
6801 ;;
aa12a573 6802 xtensa*-*-elf*)
e8b05380
PB
6803 ;;
6804
6805 *-*-beos* | \
6806 *-*-elf* | \
6807 *-*-hpux* | \
6808 *-*-netware* | \
6809 *-*-nto-qnx* | \
6810 *-*-rtems* | \
6811 *-*-solaris2* | \
30b74385 6812 *-*-sysv[45]* | \
e8b05380
PB
6813 *-*-vxworks* | \
6814 *-wrs-windiss)
6815 md_exec_prefix=/usr/ccs/bin
6816 ;;
6817esac
6818
671aa708
NN
6819extra_arflags_for_target=
6820extra_nmflags_for_target=
6821extra_ranlibflags_for_target=
6822target_makefile_frag=/dev/null
6823case "${target}" in
3e19841a
PB
6824 mep*-*-*)
6825 target_makefile_frag="config/mt-mep"
6826 ;;
58e24147
AM
6827 spu-*-*)
6828 target_makefile_frag="config/mt-spu"
6829 ;;
4bf6c438
RS
6830 mips*-sde-elf*)
6831 target_makefile_frag="config/mt-sde"
6832 ;;
1ec3b87b
RS
6833 mipsisa*-*-elfoabi*)
6834 target_makefile_frag="config/mt-mips-elfoabi"
6835 ;;
08d0963a
RS
6836 mips*-*-*linux* | mips*-*-gnu*)
6837 target_makefile_frag="config/mt-mips-gnu"
6838 ;;
61fec9ff 6839 *-*-netware*)
671aa708
NN
6840 target_makefile_frag="config/mt-netware"
6841 ;;
416ac4d4 6842 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6843 target_makefile_frag="config/mt-gnu"
671aa708
NN
6844 ;;
6845 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6846 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6847 # commands to handle both 32-bit and 64-bit objects. These flags are
6848 # harmless if we're using GNU nm or ar.
6849 extra_arflags_for_target=" -X32_64"
6850 extra_nmflags_for_target=" -B -X32_64"
6851 ;;
0aeb3cc6
JH
6852 *-*-darwin[3-9]*)
6853 # ranlib before Darwin10 requires the -c flag to look at common symbols.
671aa708
NN
6854 extra_ranlibflags_for_target=" -c"
6855 ;;
6856 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6857 target_makefile_frag="config/mt-wince"
6858 ;;
6859esac
6860
6861alphaieee_frag=/dev/null
6862case $target in
6863 alpha*-*-*)
6864 # This just makes sure to use the -mieee option to build target libs.
6865 # This should probably be set individually by each library.
6866 alphaieee_frag="config/mt-alphaieee"
6867 ;;
6868esac
6869
6870# If --enable-target-optspace always use -Os instead of -O2 to build
6871# the target libraries, similarly if it is not specified, use -Os
6872# on selected platforms.
6873ospace_frag=/dev/null
6874case "${enable_target_optspace}:${target}" in
6875 yes:*)
6876 ospace_frag="config/mt-ospace"
6877 ;;
6878 :d30v-*)
6879 ospace_frag="config/mt-d30v"
6880 ;;
6881 :m32r-* | :d10v-* | :fr30-*)
6882 ospace_frag="config/mt-ospace"
6883 ;;
6884 no:* | :*)
6885 ;;
6886 *)
6887 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6888 ;;
6889esac
6890
671aa708
NN
6891# Default to using --with-stabs for certain targets.
6892if test x${with_stabs} = x ; then
6893 case "${target}" in
89a95129 6894 mips*-*-irix[56]*)
671aa708
NN
6895 ;;
6896 mips*-*-* | alpha*-*-osf*)
6897 with_stabs=yes;
6898 extra_host_args="${extra_host_args} --with-stabs"
6899 ;;
6900 esac
6901fi
6902
6903# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6904# them automatically.
6905case "${host}" in
1c710c3c 6906 hppa*64*-*-hpux11*)
671aa708
NN
6907 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6908 ;;
6909esac
6910
671aa708
NN
6911# Some systems (e.g., one of the i386-aix systems the gas testers are
6912# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6913tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6914build_tooldir=${tooldir}
6915
671aa708
NN
6916# Create a .gdbinit file which runs the one in srcdir
6917# and tells GDB to look there for source files.
6918
6919if test -r ${srcdir}/.gdbinit ; then
6920 case ${srcdir} in
6921 .) ;;
6922 *) cat > ./.gdbinit <<EOF
6923# ${NO_EDIT}
6924dir ${srcdir}
6925dir .
6926source ${srcdir}/.gdbinit
6927EOF
6928 ;;
6929 esac
6930fi
6931
671aa708
NN
6932# Make sure that the compiler is able to generate an executable. If it
6933# can't, we are probably in trouble. We don't care whether we can run the
6934# executable--we might be using a cross compiler--we only care whether it
6935# can be created. At this point the main configure script has set CC.
6936we_are_ok=no
6937echo "int main () { return 0; }" > conftest.c
6938${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6939if test $? = 0 ; then
6940 if test -s conftest || test -s conftest.exe ; then
6941 we_are_ok=yes
6942 fi
1c710c3c 6943fi
671aa708
NN
6944case $we_are_ok in
6945 no)
6946 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6947 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6948 rm -f conftest*
6949 exit 1
6950 ;;
6951esac
6952rm -f conftest*
6953
6954# The Solaris /usr/ucb/cc compiler does not appear to work.
6955case "${host}" in
6956 sparc-sun-solaris2*)
6957 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6958 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6959 could_use=
6960 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6961 if test -d /opt/cygnus/bin ; then
6962 if test "$could_use" = "" ; then
6963 could_use="/opt/cygnus/bin"
6964 else
6965 could_use="$could_use or /opt/cygnus/bin"
6966 fi
6967 fi
6968 if test "$could_use" = "" ; then
6969 echo "Warning: compilation may fail because you're using"
6970 echo "/usr/ucb/cc. You should change your PATH or CC "
6971 echo "variable and rerun configure."
6972 else
6973 echo "Warning: compilation may fail because you're using"
6974 echo "/usr/ucb/cc, when you should use the C compiler from"
6975 echo "$could_use. You should change your"
6976 echo "PATH or CC variable and rerun configure."
6977 fi
6978 fi
6979 ;;
6980esac
6981
d89f0ad6 6982# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6983case "${host}" in
6984 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 6985 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6986 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6987 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6988esac
6989
d89f0ad6
AL
6990# On systems where the dynamic library environment variable is PATH,
6991# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6992# built executables to PATH.
6993if test "$RPATH_ENVVAR" = PATH; then
6994 GCC_SHLIB_SUBDIR=/shlib
6995else
6996 GCC_SHLIB_SUBDIR=
6997fi
6998
671aa708
NN
6999# Record target_configdirs and the configure arguments for target and
7000# build configuration in Makefile.
7001target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7002build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 7003
ad1e5170
JR
7004# If we are building libgomp, bootstrap it.
7005if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7006 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7007fi
7008
671aa708
NN
7009# Determine whether gdb needs tk/tcl or not.
7010# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7011# and in that case we want gdb to be built without tk. Ugh!
7012# In fact I believe gdb is the *only* package directly dependent on tk,
7013# so we should be able to put the 'maybe's in unconditionally and
7014# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7015# 100% sure that that's safe though.
e914a571 7016
b4f96efe 7017gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7018case "$enable_gdbtk" in
7019 no)
7020 GDB_TK="" ;;
e914a571
AC
7021 yes)
7022 GDB_TK="${gdb_tk}" ;;
671aa708 7023 *)
e914a571
AC
7024 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7025 # distro. Eventually someone will fix this and move Insight, nee
7026 # gdbtk to a separate directory.
7027 if test -d ${srcdir}/gdb/gdbtk ; then
7028 GDB_TK="${gdb_tk}"
7029 else
7030 GDB_TK=""
7031 fi
7032 ;;
671aa708 7033esac
ef9db8d5
DJ
7034CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7035INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7036
60975492 7037# Strip out unwanted targets.
8b87bb96
NN
7038
7039# While at that, we remove Makefiles if we were started for recursive
7040# configuration, so that the top-level Makefile reconfigures them,
7041# like we used to do when configure itself was recursive.
8b87bb96 7042
3e54529c
RW
7043# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7044# but now we're fixing up the Makefile ourselves with the additional
7045# commands passed to AC_CONFIG_FILES. Use separate variables
7046# extrasub-{build,host,target} not because there is any reason to split
7047# the substitutions up that way, but only to remain below the limit of
7048# 99 commands in a script, for HP-UX sed.
7049# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7050
5213506e
RW
7051# Check whether --enable-bootstrap was given.
7052if test "${enable_bootstrap+set}" = set; then :
7053 enableval=$enable_bootstrap;
f516a7da 7054else
ce521a9c 7055 enable_bootstrap=default
5213506e
RW
7056fi
7057
f516a7da 7058
ce521a9c
PB
7059# Issue errors and warnings for invalid/strange bootstrap combinations.
7060case "$configdirs" in
7061 *gcc*) have_compiler=yes ;;
7062 *) have_compiler=no ;;
7063esac
7064
7065case "$have_compiler:$host:$target:$enable_bootstrap" in
7066 *:*:*:no) ;;
7067
1ca26cd2 7068 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
7069 # and we are in a native configuration.
7070 yes:$build:$build:default)
1ca26cd2 7071 enable_bootstrap=yes ;;
ce521a9c
PB
7072
7073 *:*:*:default)
7074 enable_bootstrap=no ;;
7075
7076 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 7077 yes:$build:$build:yes)
ce521a9c
PB
7078 ;;
7079
7080 # Other configurations, but we have a compiler. Assume the user knows
7081 # what he's doing.
2d309510 7082 yes:*:*:yes)
5213506e
RW
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7084$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
7085 ;;
7086
7087 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 7088 no:*:*:yes)
5213506e 7089 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
7090
7091 # Fail if wrong command line
7092 *)
5213506e 7093 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
7094 ;;
7095esac
7096
ca6d0d62
RW
7097case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7098 *,c++,*:yes:yes) ;;
7099 *:yes:yes)
7100 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7101 ;;
7102esac
7103
79cd2b23
RW
7104case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7105 yes:yes:*\ gold\ *:*,c++,*) ;;
7106 yes:yes:*\ gold\ *:*)
7107 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7108 ;;
7109esac
7110
ce521a9c 7111# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7112case $enable_bootstrap in
f516a7da 7113 yes)
e12c4094
AO
7114 bootstrap_suffix=bootstrap
7115 BUILD_CONFIG=bootstrap-debug
7116 ;;
f516a7da 7117 no)
e12c4094
AO
7118 bootstrap_suffix=no-bootstrap
7119 BUILD_CONFIG=
7120 ;;
f516a7da
PB
7121esac
7122
e12c4094
AO
7123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7124$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7125
7126
7127# Check whether --with-build-config was given.
7128if test "${with_build_config+set}" = set; then :
7129 withval=$with_build_config; case $with_build_config in
7130 yes) with_build_config= ;;
7131 no) with_build_config= BUILD_CONFIG= ;;
7132 esac
7133fi
7134
7135
e12c4094
AO
7136if test "x${with_build_config}" != x; then
7137 BUILD_CONFIG=$with_build_config
7138else
7139 case $BUILD_CONFIG in
7140 bootstrap-debug)
7141 if echo "int f (void) { return 0; }" > conftest.c &&
7142 ${CC} -c conftest.c &&
7143 mv conftest.o conftest.o.g0 &&
7144 ${CC} -c -g conftest.c &&
7145 mv conftest.o conftest.o.g &&
615c8ffa 7146 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7147 :
7148 else
7149 BUILD_CONFIG=
7150 fi
7151 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7152 ;;
7153 esac
7154fi
7155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7156$as_echo "$BUILD_CONFIG" >&6; }
7157
7158
3e54529c 7159extrasub_build=
23f6b2f9 7160for module in ${build_configdirs} ; do
5607edfd
PB
7161 if test -z "${no_recursion}" \
7162 && test -f ${build_subdir}/${module}/Makefile; then
7163 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7164 rm -f ${build_subdir}/${module}/Makefile
7165 fi
3e54529c 7166 extrasub_build="$extrasub_build
5607edfd
PB
7167/^@if build-$module\$/d
7168/^@endif build-$module\$/d
7169/^@if build-$module-$bootstrap_suffix\$/d
7170/^@endif build-$module-$bootstrap_suffix\$/d"
7171done
3e54529c 7172extrasub_host=
5607edfd 7173for module in ${configdirs} ; do
a6fbc1e2 7174 if test -z "${no_recursion}"; then
f063a9ed 7175 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7176 if test -f ${file}; then
7177 echo 1>&2 "*** removing ${file} to force reconfigure"
7178 rm -f ${file}
7179 fi
7180 done
5607edfd 7181 fi
3e54529c 7182 extrasub_host="$extrasub_host
5607edfd
PB
7183/^@if $module\$/d
7184/^@endif $module\$/d
7185/^@if $module-$bootstrap_suffix\$/d
7186/^@endif $module-$bootstrap_suffix\$/d"
7187done
3e54529c 7188extrasub_target=
5607edfd
PB
7189for module in ${target_configdirs} ; do
7190 if test -z "${no_recursion}" \
7191 && test -f ${target_subdir}/${module}/Makefile; then
7192 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7193 rm -f ${target_subdir}/${module}/Makefile
7194 fi
00020c16
ILT
7195
7196 # We only bootstrap target libraries listed in bootstrap_target_libs.
7197 case $bootstrap_target_libs in
7198 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7199 *) target_bootstrap_suffix=no-bootstrap ;;
7200 esac
7201
3e54529c 7202 extrasub_target="$extrasub_target
5607edfd
PB
7203/^@if target-$module\$/d
7204/^@endif target-$module\$/d
00020c16
ILT
7205/^@if target-$module-$target_bootstrap_suffix\$/d
7206/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7207done
7208
3e54529c
RW
7209# Do the final fixup along with target modules.
7210extrasub_target="$extrasub_target
60975492 7211/^@if /,/^@endif /d"
671aa708
NN
7212
7213# Create the serialization dependencies. This uses a temporary file.
7214
5213506e
RW
7215# Check whether --enable-serial-configure was given.
7216if test "${enable_serial_configure+set}" = set; then :
7217 enableval=$enable_serial_configure;
7218fi
ade82b16
AO
7219
7220
bf1d3e81
NN
7221case ${enable_serial_configure} in
7222 yes)
7223 enable_serial_build_configure=yes
7224 enable_serial_host_configure=yes
7225 enable_serial_target_configure=yes
7226 ;;
7227esac
7228
671aa708
NN
7229# These force 'configure's to be done one at a time, to avoid problems
7230# with contention over a shared config.cache.
7231rm -f serdep.tmp
ade82b16 7232echo '# serdep.tmp' > serdep.tmp
671aa708 7233olditem=
bf1d3e81 7234test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7235for item in ${build_configdirs} ; do
7236 case ${olditem} in
7237 "") ;;
ade82b16 7238 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7239 esac
7240 olditem=${item}
7241done
7242olditem=
bf1d3e81 7243test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7244for item in ${configdirs} ; do
7245 case ${olditem} in
7246 "") ;;
ade82b16 7247 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7248 esac
7249 olditem=${item}
7250done
7251olditem=
bf1d3e81 7252test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7253for item in ${target_configdirs} ; do
7254 case ${olditem} in
7255 "") ;;
ade82b16 7256 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7257 esac
7258 olditem=${item}
7259done
7260serialization_dependencies=serdep.tmp
7261
7262
ade82b16 7263# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7264# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7265# might not want to pass down to subconfigures. The exception being
7266# --cache-file=/dev/null, which is used to turn off the use of cache
7267# files altogether, and which should be passed on to subconfigures.
7268# Also strip program-prefix, program-suffix, and program-transform-name,
7269# so that we can pass down a consistent program-transform-name.
1c710c3c
DJ
7270baseargs=
7271keep_next=no
7272skip_next=no
7273eval "set -- $ac_configure_args"
44bfc3ac
DJ
7274for ac_arg
7275do
1c710c3c
DJ
7276 if test X"$skip_next" = X"yes"; then
7277 skip_next=no
7278 continue
7279 fi
7280 if test X"$keep_next" = X"yes"; then
7281 case $ac_arg in
7282 *\'*)
7283 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7284 esac
7285 baseargs="$baseargs '$ac_arg'"
7286 keep_next=no
7287 continue
7288 fi
7289
7290 # Handle separated arguments. Based on the logic generated by
7291 # autoconf 2.59.
7292 case $ac_arg in
7293 *=* | --config-cache | -C | -disable-* | --disable-* \
7294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7296 | -with-* | --with-* | -without-* | --without-* | --x)
7297 separate_arg=no
7298 ;;
7299 -*)
7300 separate_arg=yes
7301 ;;
7302 *)
7303 separate_arg=no
7304 ;;
7305 esac
7306
7307 case "$ac_arg" in
f1a036e4
NC
7308 --cache-file=/dev/null | \
7309 -cache-file=/dev/null )
7310 # Handled here to avoid the test to skip args below.
7311 baseargs="$baseargs '$ac_arg'"
7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7314 ;;
1c710c3c
DJ
7315 --no*)
7316 continue
7317 ;;
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7334 ;;
7335 -*)
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
7342 keep_next=$separate_arg
7343 ;;
7344 *)
7345 # Either a variable assignment, or a nonopt (triplet). Don't
7346 # pass it down; let the Makefile handle this.
7347 continue
7348 ;;
7349 esac
7350done
7351# Remove the initial space we just introduced and, as these will be
7352# expanded by make, quote '$'.
7353baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7354
43bb47c2
DJ
7355# Add in --program-transform-name, after --program-prefix and
7356# --program-suffix have been applied to it. Autoconf has already
7357# doubled dollar signs and backslashes in program_transform_name; we want
7358# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7359# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7360# Also, because we want to override the logic in subdir configure scripts to
7361# choose program_transform_name, replace any s,x,x, with s,y,y,.
7362sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7363${program_transform_name}
7364EOF_SED
7365gcc_transform_name=`cat conftestsed.out`
7366rm -f conftestsed.out
7367baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7368if test "$silent" = yes; then
7369 baseargs="$baseargs --silent"
7370fi
0115d4a3 7371baseargs="$baseargs --disable-option-checking"
43bb47c2 7372
ffedf511
RW
7373# Record and document user additions to sub configure arguments.
7374
7375
7376
7377
671aa708
NN
7378# For the build-side libraries, we just need to pretend we're native,
7379# and not use the same cache file. Multilibs are neither needed nor
7380# desired.
ffedf511 7381build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7382
7383# For host modules, accept cache file option, or specification as blank.
7384case "${cache_file}" in
7385"") # empty
7386 cache_file_option="" ;;
7387/* | [A-Za-z]:[\\/]* ) # absolute path
7388 cache_file_option="--cache-file=${cache_file}" ;;
7389*) # relative path
7390 cache_file_option="--cache-file=../${cache_file}" ;;
7391esac
7392
09438bde
NN
7393# Host dirs don't like to share a cache file either, horribly enough.
7394# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7395host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7396
ffedf511 7397target_configargs="$target_configargs ${baseargs}"
671aa708
NN
7398
7399# Passing a --with-cross-host argument lets the target libraries know
7400# whether they are being built with a cross-compiler or being built
7401# native. However, it would be better to use other mechanisms to make the
7402# sorts of decisions they want to make on this basis. Please consider
7403# this option to be deprecated. FIXME.
7404if test x${is_cross_compiler} = xyes ; then
1c710c3c 7405 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7406fi
7407
dc683a3f
RW
7408# Default to --enable-multilib.
7409if test x${enable_multilib} = x ; then
671aa708 7410 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7411fi
671aa708
NN
7412
7413# Pass --with-newlib if appropriate. Note that target_configdirs has
7414# changed from the earlier setting of with_newlib.
7415if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7416 target_configargs="--with-newlib ${target_configargs}"
7417fi
7418
6b9eb62c
NN
7419# Different target subdirs use different values of certain variables
7420# (notably CXX). Worse, multilibs use *lots* of different values.
7421# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7422# it doesn't automatically accept command-line overrides of them.
7423# This means it's not safe for target subdirs to share a cache file,
7424# which is disgusting, but there you have it. Hopefully this can be
7425# fixed in future. It's still worthwhile to use a cache file for each
7426# directory. I think.
7427
bebcd931
MS
7428# Pass the appropriate --build, --host, --target and --cache-file arguments.
7429# We need to pass --target, as newer autoconf's requires consistency
7430# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7431target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7432
671aa708
NN
7433FLAGS_FOR_TARGET=
7434case " $target_configdirs " in
7435 *" newlib "*)
7436 case " $target_configargs " in
7437 *" --with-newlib "*)
7438 case "$target" in
5d571eaa
OS
7439 *-cygwin*)
7440 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7441 ;;
671aa708
NN
7442 esac
7443
7444 # If we're not building GCC, don't discard standard headers.
7445 if test -d ${srcdir}/gcc; then
7446 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7447
7448 if test "${build}" != "${host}"; then
7449 # On Canadian crosses, CC_FOR_TARGET will have already been set
7450 # by `configure', so we won't have an opportunity to add -Bgcc/
7451 # to it. This is right: we don't want to search that directory
7452 # for binaries, but we want the header files in there, so add
7453 # them explicitly.
0463992b 7454 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7455
7456 # Someone might think of using the pre-installed headers on
7457 # Canadian crosses, in case the installed compiler is not fully
7458 # compatible with the compiler being built. In this case, it
7459 # would be better to flag an error than risking having
7460 # incompatible object files being constructed. We can't
7461 # guarantee that an error will be flagged, but let's hope the
7462 # compiler will do it, when presented with incompatible header
7463 # files.
7464 fi
7465 fi
7466
7467 case "${target}-${is_cross_compiler}" in
f2a0e225 7468 i[3456789]86-*-linux*-no)
671aa708
NN
7469 # Here host == target, so we don't need to build gcc,
7470 # so we don't want to discard standard headers.
7471 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7472 ;;
7473 *)
7474 # If we're building newlib, use its generic headers last, but search
7475 # for any libc-related directories first (so make it the last -B
7476 # switch).
7477 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
7478
7479 # If we're building libgloss, find the startup file, simulator library
7480 # and linker script.
7481 case " $target_configdirs " in
7482 *" libgloss "*)
7483 # Look for startup file, simulator library and maybe linker script.
7484 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7485 # Look for libnosys.a in case the target needs it.
7486 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7487 # Most targets have the linker script in the source directory.
7488 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7489 ;;
7490 esac
671aa708
NN
7491 ;;
7492 esac
7493 ;;
7494 esac
7495 ;;
7496esac
5d571eaa 7497
b91f0a41 7498case "$target" in
5d571eaa
OS
7499 x86_64-*mingw* | *-w64-mingw*)
7500 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7501 # however, use a symlink named 'mingw' in ${prefix} .
7502 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7503 ;;
7504 *-mingw*)
7505 # MinGW can't be handled as Cygwin above since it does not use newlib.
7506 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'
7507 ;;
b91f0a41 7508esac
671aa708 7509
6691a79e
ME
7510# Allow the user to override the flags for
7511# our build compiler if desired.
f019adc1
MF
7512if test x"${build}" = x"${host}" ; then
7513 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7514 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7515 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7516fi
6691a79e 7517
671aa708
NN
7518# On Canadian crosses, we'll be searching the right directories for
7519# the previously-installed cross compiler, so don't bother to add
7520# flags for directories within the install tree of the compiler
7521# being built; programs in there won't even run.
7522if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7523 # Search for pre-installed headers if nothing else fits.
9124bc53 7524 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
7525fi
7526
7527if test "x${use_gnu_ld}" = x &&
7528 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7529 # Arrange for us to find uninstalled linker scripts.
215c351a 7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7531fi
7532
e88a2c09
DD
7533# Search for other target-specific linker scripts and such.
7534case "${target}" in
3e19841a
PB
7535 mep*)
7536 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7537 ;;
e88a2c09
DD
7538esac
7539
671aa708 7540# Makefile fragments.
7b61653a
PE
7541for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7542do
7543 eval fragval=\$$frag
7544 if test $fragval != /dev/null; then
7545 eval $frag=${srcdir}/$fragval
7546 fi
7547done
671aa708
NN
7548
7549
7550
7551
7552
7553# Miscellanea: directories, flags, etc.
7554
7555
7556
7557
7558
7559
7560
d89f0ad6 7561
23f6b2f9 7562# Build module lists & subconfigure args.
671aa708
NN
7563
7564
7565
2abefe3d
PB
7566# Host module lists & subconfigure args.
7567
7568
7569
aae29963 7570
2abefe3d
PB
7571# Target module lists & subconfigure args.
7572
7573
7574
7575# Build tools.
7576
7577
7578
0999159b
PB
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
632e2a07 7593
2abefe3d
PB
7594# Generate default definitions for YACC, M4, LEX and other programs that run
7595# on the build machine. These are used if the Makefile can't locate these
7596# programs in objdir.
7597MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7598
7599for ac_prog in 'bison -y' byacc yacc
7600do
1c710c3c 7601 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7602set dummy $ac_prog; ac_word=$2
5213506e
RW
7603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604$as_echo_n "checking for $ac_word... " >&6; }
7605if test "${ac_cv_prog_YACC+set}" = set; then :
7606 $as_echo_n "(cached) " >&6
2abefe3d
PB
7607else
7608 if test -n "$YACC"; then
7609 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7610else
1c710c3c
DJ
7611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7612for as_dir in $PATH
7613do
7614 IFS=$as_save_IFS
7615 test -z "$as_dir" && as_dir=.
5213506e
RW
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7618 ac_cv_prog_YACC="$ac_prog"
5213506e 7619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7620 break 2
7621 fi
7622done
5213506e
RW
7623 done
7624IFS=$as_save_IFS
1c710c3c 7625
2abefe3d
PB
7626fi
7627fi
1c710c3c 7628YACC=$ac_cv_prog_YACC
2abefe3d 7629if test -n "$YACC"; then
5213506e
RW
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7631$as_echo "$YACC" >&6; }
2abefe3d 7632else
5213506e
RW
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7634$as_echo "no" >&6; }
2abefe3d
PB
7635fi
7636
5213506e 7637
1c710c3c 7638 test -n "$YACC" && break
2abefe3d
PB
7639done
7640test -n "$YACC" || YACC="$MISSING bison -y"
7641
7642case " $build_configdirs " in
7643 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7644 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7645esac
7646
7647for ac_prog in bison
7648do
1c710c3c 7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7650set dummy $ac_prog; ac_word=$2
5213506e
RW
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652$as_echo_n "checking for $ac_word... " >&6; }
7653if test "${ac_cv_prog_BISON+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
2abefe3d
PB
7655else
7656 if test -n "$BISON"; then
7657 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7658else
1c710c3c
DJ
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
5213506e
RW
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7666 ac_cv_prog_BISON="$ac_prog"
5213506e 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7668 break 2
7669 fi
7670done
5213506e
RW
7671 done
7672IFS=$as_save_IFS
1c710c3c 7673
2abefe3d
PB
7674fi
7675fi
1c710c3c 7676BISON=$ac_cv_prog_BISON
2abefe3d 7677if test -n "$BISON"; then
5213506e
RW
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7679$as_echo "$BISON" >&6; }
2abefe3d 7680else
5213506e
RW
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
2abefe3d
PB
7683fi
7684
5213506e 7685
1c710c3c 7686 test -n "$BISON" && break
2abefe3d
PB
7687done
7688test -n "$BISON" || BISON="$MISSING bison"
7689
7690case " $build_configdirs " in
7691 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7692esac
7693
7694for ac_prog in gm4 gnum4 m4
7695do
1c710c3c 7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7697set dummy $ac_prog; ac_word=$2
5213506e
RW
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699$as_echo_n "checking for $ac_word... " >&6; }
7700if test "${ac_cv_prog_M4+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
2abefe3d
PB
7702else
7703 if test -n "$M4"; then
7704 ac_cv_prog_M4="$M4" # Let the user override the test.
7705else
1c710c3c
DJ
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
5213506e
RW
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7713 ac_cv_prog_M4="$ac_prog"
5213506e 7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7715 break 2
7716 fi
7717done
5213506e
RW
7718 done
7719IFS=$as_save_IFS
1c710c3c 7720
2abefe3d
PB
7721fi
7722fi
1c710c3c 7723M4=$ac_cv_prog_M4
2abefe3d 7724if test -n "$M4"; then
5213506e
RW
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7726$as_echo "$M4" >&6; }
2abefe3d 7727else
5213506e
RW
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
2abefe3d
PB
7730fi
7731
5213506e 7732
1c710c3c 7733 test -n "$M4" && break
2abefe3d
PB
7734done
7735test -n "$M4" || M4="$MISSING m4"
7736
7737case " $build_configdirs " in
7738 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7739esac
7740
7741for ac_prog in flex lex
7742do
1c710c3c 7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7744set dummy $ac_prog; ac_word=$2
5213506e
RW
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746$as_echo_n "checking for $ac_word... " >&6; }
7747if test "${ac_cv_prog_LEX+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
2abefe3d
PB
7749else
7750 if test -n "$LEX"; then
7751 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7752else
1c710c3c
DJ
7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
5213506e
RW
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7760 ac_cv_prog_LEX="$ac_prog"
5213506e 7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7762 break 2
7763 fi
7764done
5213506e
RW
7765 done
7766IFS=$as_save_IFS
1c710c3c 7767
2abefe3d
PB
7768fi
7769fi
1c710c3c 7770LEX=$ac_cv_prog_LEX
2abefe3d 7771if test -n "$LEX"; then
5213506e
RW
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7773$as_echo "$LEX" >&6; }
2abefe3d 7774else
5213506e
RW
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }
2abefe3d
PB
7777fi
7778
5213506e 7779
1c710c3c 7780 test -n "$LEX" && break
2abefe3d
PB
7781done
7782test -n "$LEX" || LEX="$MISSING flex"
7783
7784case " $build_configdirs " in
7785 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7786 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7787esac
7788
7789for ac_prog in flex
7790do
1c710c3c 7791 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7792set dummy $ac_prog; ac_word=$2
5213506e
RW
7793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794$as_echo_n "checking for $ac_word... " >&6; }
7795if test "${ac_cv_prog_FLEX+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
2abefe3d
PB
7797else
7798 if test -n "$FLEX"; then
7799 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7800else
1c710c3c
DJ
7801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7802for as_dir in $PATH
7803do
7804 IFS=$as_save_IFS
7805 test -z "$as_dir" && as_dir=.
5213506e
RW
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7808 ac_cv_prog_FLEX="$ac_prog"
5213506e 7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7810 break 2
7811 fi
7812done
5213506e
RW
7813 done
7814IFS=$as_save_IFS
1c710c3c 7815
2abefe3d
PB
7816fi
7817fi
1c710c3c 7818FLEX=$ac_cv_prog_FLEX
2abefe3d 7819if test -n "$FLEX"; then
5213506e
RW
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7821$as_echo "$FLEX" >&6; }
2abefe3d 7822else
5213506e
RW
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824$as_echo "no" >&6; }
2abefe3d
PB
7825fi
7826
5213506e 7827
1c710c3c 7828 test -n "$FLEX" && break
2abefe3d
PB
7829done
7830test -n "$FLEX" || FLEX="$MISSING flex"
7831
7832case " $build_configdirs " in
7833 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7834esac
7835
7836for ac_prog in makeinfo
7837do
1c710c3c 7838 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7839set dummy $ac_prog; ac_word=$2
5213506e
RW
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841$as_echo_n "checking for $ac_word... " >&6; }
7842if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
2abefe3d
PB
7844else
7845 if test -n "$MAKEINFO"; then
7846 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7847else
1c710c3c
DJ
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
5213506e
RW
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7855 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7857 break 2
7858 fi
7859done
5213506e
RW
7860 done
7861IFS=$as_save_IFS
1c710c3c 7862
2abefe3d
PB
7863fi
7864fi
1c710c3c 7865MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7866if test -n "$MAKEINFO"; then
5213506e
RW
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7868$as_echo "$MAKEINFO" >&6; }
2abefe3d 7869else
5213506e
RW
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871$as_echo "no" >&6; }
2abefe3d
PB
7872fi
7873
5213506e 7874
1c710c3c 7875 test -n "$MAKEINFO" && break
2abefe3d
PB
7876done
7877test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7878
7879case " $build_configdirs " in
7880 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7881 *)
7882
d18ff35a 7883 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7884 # higher, else we use the "missing" dummy.
7885 if ${MAKEINFO} --version \
d18ff35a 7886 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7887 :
7888 else
7889 MAKEINFO="$MISSING makeinfo"
7890 fi
7891 ;;
7892
7893esac
671aa708 7894
2abefe3d 7895# FIXME: expect and dejagnu may become build tools?
671aa708 7896
2abefe3d
PB
7897for ac_prog in expect
7898do
1c710c3c 7899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7900set dummy $ac_prog; ac_word=$2
5213506e
RW
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902$as_echo_n "checking for $ac_word... " >&6; }
7903if test "${ac_cv_prog_EXPECT+set}" = set; then :
7904 $as_echo_n "(cached) " >&6
2abefe3d
PB
7905else
7906 if test -n "$EXPECT"; then
7907 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7908else
1c710c3c
DJ
7909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH
7911do
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
5213506e
RW
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7916 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7918 break 2
7919 fi
7920done
5213506e
RW
7921 done
7922IFS=$as_save_IFS
1c710c3c 7923
2abefe3d
PB
7924fi
7925fi
1c710c3c 7926EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7927if test -n "$EXPECT"; then
5213506e
RW
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7929$as_echo "$EXPECT" >&6; }
2abefe3d 7930else
5213506e
RW
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932$as_echo "no" >&6; }
2abefe3d 7933fi
671aa708 7934
5213506e 7935
1c710c3c 7936 test -n "$EXPECT" && break
2abefe3d
PB
7937done
7938test -n "$EXPECT" || EXPECT="expect"
671aa708 7939
2abefe3d
PB
7940case " $configdirs " in
7941 *" expect "*)
7942 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7943 ;;
7944esac
671aa708 7945
2abefe3d
PB
7946for ac_prog in runtest
7947do
1c710c3c 7948 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7949set dummy $ac_prog; ac_word=$2
5213506e
RW
7950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951$as_echo_n "checking for $ac_word... " >&6; }
7952if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
2abefe3d
PB
7954else
7955 if test -n "$RUNTEST"; then
7956 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7957else
1c710c3c
DJ
7958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959for as_dir in $PATH
7960do
7961 IFS=$as_save_IFS
7962 test -z "$as_dir" && as_dir=.
5213506e
RW
7963 for ac_exec_ext in '' $ac_executable_extensions; do
7964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7965 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7967 break 2
7968 fi
7969done
5213506e
RW
7970 done
7971IFS=$as_save_IFS
1c710c3c 7972
2abefe3d
PB
7973fi
7974fi
1c710c3c 7975RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7976if test -n "$RUNTEST"; then
5213506e
RW
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7978$as_echo "$RUNTEST" >&6; }
2abefe3d 7979else
5213506e
RW
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981$as_echo "no" >&6; }
2abefe3d 7982fi
671aa708 7983
5213506e 7984
1c710c3c 7985 test -n "$RUNTEST" && break
2abefe3d
PB
7986done
7987test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7988
2abefe3d
PB
7989case " $configdirs " in
7990 *" dejagnu "*)
c394e891 7991 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7992 ;;
7993esac
671aa708
NN
7994
7995
671aa708 7996# Host tools.
ca9f4b81
AO
7997ncn_tool_prefix=
7998test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7999ncn_target_tool_prefix=
8000test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8001
278a7a38
AO
8002
8003
8004if test -n "$AR"; then
8005 ac_cv_prog_AR=$AR
8006elif test -n "$ac_cv_prog_AR"; then
8007 AR=$ac_cv_prog_AR
8008fi
8009
8010if test -n "$ac_cv_prog_AR"; then
8011 for ncn_progname in ar; do
8012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8013set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if test "${ac_cv_prog_AR+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
278a7a38
AO
8018else
8019 if test -n "$AR"; then
8020 ac_cv_prog_AR="$AR" # Let the user override the test.
8021else
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
5213506e
RW
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8029 ac_cv_prog_AR="${ncn_progname}"
5213506e 8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8031 break 2
8032 fi
8033done
5213506e
RW
8034 done
8035IFS=$as_save_IFS
278a7a38
AO
8036
8037fi
8038fi
8039AR=$ac_cv_prog_AR
8040if test -n "$AR"; then
5213506e
RW
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8042$as_echo "$AR" >&6; }
278a7a38 8043else
5213506e
RW
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
278a7a38
AO
8046fi
8047
5213506e 8048
278a7a38
AO
8049 done
8050fi
8051
8052for ncn_progname in ar; do
2693c0b0
PB
8053 if test -n "$ncn_tool_prefix"; then
8054 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8055set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057$as_echo_n "checking for $ac_word... " >&6; }
8058if test "${ac_cv_prog_AR+set}" = set; then :
8059 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8060else
8061 if test -n "$AR"; then
8062 ac_cv_prog_AR="$AR" # Let the user override the test.
8063else
1c710c3c
DJ
8064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065for as_dir in $PATH
8066do
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
5213506e
RW
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8071 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8073 break 2
8074 fi
8075done
5213506e
RW
8076 done
8077IFS=$as_save_IFS
1c710c3c 8078
ca9f4b81
AO
8079fi
8080fi
1c710c3c 8081AR=$ac_cv_prog_AR
ca9f4b81 8082if test -n "$AR"; then
5213506e
RW
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8084$as_echo "$AR" >&6; }
ca9f4b81 8085else
5213506e
RW
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087$as_echo "no" >&6; }
ca9f4b81
AO
8088fi
8089
5213506e 8090
2693c0b0
PB
8091 fi
8092 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8094set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8096$as_echo_n "checking for $ac_word... " >&6; }
8097if test "${ac_cv_prog_AR+set}" = set; then :
8098 $as_echo_n "(cached) " >&6
ca9f4b81 8099else
2693c0b0 8100 if test -n "$AR"; then
af71363e
AS
8101 ac_cv_prog_AR="$AR" # Let the user override the test.
8102else
1c710c3c
DJ
8103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104for as_dir in $PATH
8105do
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
5213506e
RW
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8110 ac_cv_prog_AR="${ncn_progname}"
5213506e 8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8112 break 2
8113 fi
8114done
5213506e
RW
8115 done
8116IFS=$as_save_IFS
1c710c3c 8117
ca9f4b81
AO
8118fi
8119fi
1c710c3c 8120AR=$ac_cv_prog_AR
2693c0b0 8121if test -n "$AR"; then
5213506e
RW
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8123$as_echo "$AR" >&6; }
ca9f4b81 8124else
5213506e
RW
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8126$as_echo "no" >&6; }
ca9f4b81 8127fi
1c710c3c 8128
5213506e 8129
2693c0b0
PB
8130 fi
8131 test -n "$ac_cv_prog_AR" && break
8132done
8133
8134if test -z "$ac_cv_prog_AR" ; then
8135 set dummy ar
8136 if test $build = $host ; then
8137 AR="$2"
ca9f4b81 8138 else
2693c0b0 8139 AR="${ncn_tool_prefix}$2"
ca9f4b81 8140 fi
ca9f4b81
AO
8141fi
8142
278a7a38
AO
8143
8144
8145if test -n "$AS"; then
8146 ac_cv_prog_AS=$AS
8147elif test -n "$ac_cv_prog_AS"; then
8148 AS=$ac_cv_prog_AS
8149fi
8150
8151if test -n "$ac_cv_prog_AS"; then
8152 for ncn_progname in as; do
8153 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8154set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156$as_echo_n "checking for $ac_word... " >&6; }
8157if test "${ac_cv_prog_AS+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
278a7a38
AO
8159else
8160 if test -n "$AS"; then
8161 ac_cv_prog_AS="$AS" # Let the user override the test.
8162else
8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
5213506e
RW
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8170 ac_cv_prog_AS="${ncn_progname}"
5213506e 8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8172 break 2
8173 fi
8174done
5213506e
RW
8175 done
8176IFS=$as_save_IFS
278a7a38
AO
8177
8178fi
8179fi
8180AS=$ac_cv_prog_AS
8181if test -n "$AS"; then
5213506e
RW
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8183$as_echo "$AS" >&6; }
278a7a38 8184else
5213506e
RW
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186$as_echo "no" >&6; }
278a7a38
AO
8187fi
8188
5213506e 8189
278a7a38
AO
8190 done
8191fi
8192
8193for ncn_progname in as; do
2693c0b0
PB
8194 if test -n "$ncn_tool_prefix"; then
8195 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8196set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198$as_echo_n "checking for $ac_word... " >&6; }
8199if test "${ac_cv_prog_AS+set}" = set; then :
8200 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8201else
8202 if test -n "$AS"; then
8203 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8204else
1c710c3c
DJ
8205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206for as_dir in $PATH
8207do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
5213506e
RW
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8212 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8214 break 2
8215 fi
8216done
5213506e
RW
8217 done
8218IFS=$as_save_IFS
1c710c3c 8219
ca9f4b81
AO
8220fi
8221fi
1c710c3c 8222AS=$ac_cv_prog_AS
ca9f4b81 8223if test -n "$AS"; then
5213506e
RW
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8225$as_echo "$AS" >&6; }
ca9f4b81 8226else
5213506e
RW
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228$as_echo "no" >&6; }
ca9f4b81
AO
8229fi
8230
5213506e 8231
2693c0b0
PB
8232 fi
8233 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8235set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8237$as_echo_n "checking for $ac_word... " >&6; }
8238if test "${ac_cv_prog_AS+set}" = set; then :
8239 $as_echo_n "(cached) " >&6
ca9f4b81 8240else
2693c0b0
PB
8241 if test -n "$AS"; then
8242 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8243else
1c710c3c
DJ
8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245for as_dir in $PATH
8246do
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
5213506e
RW
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8251 ac_cv_prog_AS="${ncn_progname}"
5213506e 8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8253 break 2
8254 fi
8255done
5213506e
RW
8256 done
8257IFS=$as_save_IFS
1c710c3c 8258
ca9f4b81
AO
8259fi
8260fi
1c710c3c 8261AS=$ac_cv_prog_AS
2693c0b0 8262if test -n "$AS"; then
5213506e
RW
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8264$as_echo "$AS" >&6; }
ca9f4b81 8265else
5213506e
RW
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8267$as_echo "no" >&6; }
ca9f4b81 8268fi
1c710c3c 8269
5213506e 8270
2693c0b0
PB
8271 fi
8272 test -n "$ac_cv_prog_AS" && break
8273done
8274
8275if test -z "$ac_cv_prog_AS" ; then
8276 set dummy as
8277 if test $build = $host ; then
8278 AS="$2"
ca9f4b81 8279 else
2693c0b0 8280 AS="${ncn_tool_prefix}$2"
ca9f4b81 8281 fi
ca9f4b81
AO
8282fi
8283
278a7a38
AO
8284
8285
8286if test -n "$DLLTOOL"; then
8287 ac_cv_prog_DLLTOOL=$DLLTOOL
8288elif test -n "$ac_cv_prog_DLLTOOL"; then
8289 DLLTOOL=$ac_cv_prog_DLLTOOL
8290fi
8291
8292if test -n "$ac_cv_prog_DLLTOOL"; then
8293 for ncn_progname in dlltool; do
8294 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8295set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297$as_echo_n "checking for $ac_word... " >&6; }
8298if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
278a7a38
AO
8300else
8301 if test -n "$DLLTOOL"; then
8302 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8303else
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
5213506e
RW
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8311 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8313 break 2
8314 fi
8315done
5213506e
RW
8316 done
8317IFS=$as_save_IFS
278a7a38
AO
8318
8319fi
8320fi
8321DLLTOOL=$ac_cv_prog_DLLTOOL
8322if test -n "$DLLTOOL"; then
5213506e
RW
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8324$as_echo "$DLLTOOL" >&6; }
278a7a38 8325else
5213506e
RW
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327$as_echo "no" >&6; }
278a7a38
AO
8328fi
8329
5213506e 8330
278a7a38
AO
8331 done
8332fi
8333
8334for ncn_progname in dlltool; do
2693c0b0
PB
8335 if test -n "$ncn_tool_prefix"; then
8336 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8337set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339$as_echo_n "checking for $ac_word... " >&6; }
8340if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8342else
8343 if test -n "$DLLTOOL"; then
8344 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8345else
1c710c3c
DJ
8346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347for as_dir in $PATH
8348do
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
5213506e
RW
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8353 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8355 break 2
8356 fi
8357done
5213506e
RW
8358 done
8359IFS=$as_save_IFS
1c710c3c 8360
ca9f4b81
AO
8361fi
8362fi
1c710c3c 8363DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8364if test -n "$DLLTOOL"; then
5213506e
RW
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8366$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8367else
5213506e
RW
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369$as_echo "no" >&6; }
ca9f4b81
AO
8370fi
8371
5213506e 8372
2693c0b0
PB
8373 fi
8374 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8376set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8378$as_echo_n "checking for $ac_word... " >&6; }
8379if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8380 $as_echo_n "(cached) " >&6
ca9f4b81 8381else
2693c0b0
PB
8382 if test -n "$DLLTOOL"; then
8383 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8384else
1c710c3c
DJ
8385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386for as_dir in $PATH
8387do
8388 IFS=$as_save_IFS
8389 test -z "$as_dir" && as_dir=.
5213506e
RW
8390 for ac_exec_ext in '' $ac_executable_extensions; do
8391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8392 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8394 break 2
8395 fi
8396done
5213506e
RW
8397 done
8398IFS=$as_save_IFS
1c710c3c 8399
ca9f4b81
AO
8400fi
8401fi
1c710c3c 8402DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8403if test -n "$DLLTOOL"; then
5213506e
RW
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8405$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8406else
5213506e
RW
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408$as_echo "no" >&6; }
ca9f4b81 8409fi
1c710c3c 8410
5213506e 8411
2693c0b0
PB
8412 fi
8413 test -n "$ac_cv_prog_DLLTOOL" && break
8414done
8415
8416if test -z "$ac_cv_prog_DLLTOOL" ; then
8417 set dummy dlltool
8418 if test $build = $host ; then
8419 DLLTOOL="$2"
ca9f4b81 8420 else
2693c0b0 8421 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8422 fi
ca9f4b81
AO
8423fi
8424
278a7a38
AO
8425
8426
8427if test -n "$LD"; then
8428 ac_cv_prog_LD=$LD
8429elif test -n "$ac_cv_prog_LD"; then
8430 LD=$ac_cv_prog_LD
8431fi
8432
8433if test -n "$ac_cv_prog_LD"; then
8434 for ncn_progname in ld; do
8435 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8436set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438$as_echo_n "checking for $ac_word... " >&6; }
8439if test "${ac_cv_prog_LD+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
278a7a38
AO
8441else
8442 if test -n "$LD"; then
8443 ac_cv_prog_LD="$LD" # Let the user override the test.
8444else
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
5213506e
RW
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8452 ac_cv_prog_LD="${ncn_progname}"
5213506e 8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8454 break 2
8455 fi
8456done
5213506e
RW
8457 done
8458IFS=$as_save_IFS
278a7a38
AO
8459
8460fi
8461fi
8462LD=$ac_cv_prog_LD
8463if test -n "$LD"; then
5213506e
RW
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8465$as_echo "$LD" >&6; }
278a7a38 8466else
5213506e
RW
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
278a7a38
AO
8469fi
8470
5213506e 8471
278a7a38
AO
8472 done
8473fi
8474
8475for ncn_progname in ld; do
2693c0b0
PB
8476 if test -n "$ncn_tool_prefix"; then
8477 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8478set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480$as_echo_n "checking for $ac_word... " >&6; }
8481if test "${ac_cv_prog_LD+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8483else
8484 if test -n "$LD"; then
8485 ac_cv_prog_LD="$LD" # Let the user override the test.
8486else
1c710c3c
DJ
8487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8488for as_dir in $PATH
8489do
8490 IFS=$as_save_IFS
8491 test -z "$as_dir" && as_dir=.
5213506e
RW
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8494 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8496 break 2
8497 fi
8498done
5213506e
RW
8499 done
8500IFS=$as_save_IFS
1c710c3c 8501
ca9f4b81
AO
8502fi
8503fi
1c710c3c 8504LD=$ac_cv_prog_LD
ca9f4b81 8505if test -n "$LD"; then
5213506e
RW
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8507$as_echo "$LD" >&6; }
ca9f4b81 8508else
5213506e
RW
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8510$as_echo "no" >&6; }
ca9f4b81
AO
8511fi
8512
5213506e 8513
2693c0b0
PB
8514 fi
8515 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8517set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519$as_echo_n "checking for $ac_word... " >&6; }
8520if test "${ac_cv_prog_LD+set}" = set; then :
8521 $as_echo_n "(cached) " >&6
ca9f4b81 8522else
2693c0b0
PB
8523 if test -n "$LD"; then
8524 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8525else
1c710c3c
DJ
8526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527for as_dir in $PATH
8528do
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
5213506e
RW
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8533 ac_cv_prog_LD="${ncn_progname}"
5213506e 8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8535 break 2
8536 fi
8537done
5213506e
RW
8538 done
8539IFS=$as_save_IFS
1c710c3c 8540
ca9f4b81
AO
8541fi
8542fi
1c710c3c 8543LD=$ac_cv_prog_LD
2693c0b0 8544if test -n "$LD"; then
5213506e
RW
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8546$as_echo "$LD" >&6; }
ca9f4b81 8547else
5213506e
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549$as_echo "no" >&6; }
ca9f4b81 8550fi
1c710c3c 8551
5213506e 8552
2693c0b0
PB
8553 fi
8554 test -n "$ac_cv_prog_LD" && break
8555done
8556
8557if test -z "$ac_cv_prog_LD" ; then
8558 set dummy ld
8559 if test $build = $host ; then
8560 LD="$2"
ca9f4b81 8561 else
2693c0b0 8562 LD="${ncn_tool_prefix}$2"
ca9f4b81 8563 fi
ca9f4b81
AO
8564fi
8565
278a7a38
AO
8566
8567
8568if test -n "$LIPO"; then
8569 ac_cv_prog_LIPO=$LIPO
8570elif test -n "$ac_cv_prog_LIPO"; then
8571 LIPO=$ac_cv_prog_LIPO
8572fi
8573
8574if test -n "$ac_cv_prog_LIPO"; then
8575 for ncn_progname in lipo; do
8576 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8577set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579$as_echo_n "checking for $ac_word... " >&6; }
8580if test "${ac_cv_prog_LIPO+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
278a7a38
AO
8582else
8583 if test -n "$LIPO"; then
8584 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8585else
8586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587for as_dir in $PATH
8588do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
5213506e
RW
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8593 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8595 break 2
8596 fi
8597done
5213506e
RW
8598 done
8599IFS=$as_save_IFS
278a7a38
AO
8600
8601fi
8602fi
8603LIPO=$ac_cv_prog_LIPO
8604if test -n "$LIPO"; then
5213506e
RW
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8606$as_echo "$LIPO" >&6; }
278a7a38 8607else
5213506e
RW
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609$as_echo "no" >&6; }
278a7a38
AO
8610fi
8611
5213506e 8612
278a7a38
AO
8613 done
8614fi
8615
8616for ncn_progname in lipo; do
2abefe3d
PB
8617 if test -n "$ncn_tool_prefix"; then
8618 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8619set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
8622if test "${ac_cv_prog_LIPO+set}" = set; then :
8623 $as_echo_n "(cached) " >&6
2abefe3d
PB
8624else
8625 if test -n "$LIPO"; then
8626 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8627else
1c710c3c
DJ
8628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8629for as_dir in $PATH
8630do
8631 IFS=$as_save_IFS
8632 test -z "$as_dir" && as_dir=.
5213506e
RW
8633 for ac_exec_ext in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8635 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8637 break 2
8638 fi
8639done
5213506e
RW
8640 done
8641IFS=$as_save_IFS
1c710c3c 8642
2abefe3d
PB
8643fi
8644fi
1c710c3c 8645LIPO=$ac_cv_prog_LIPO
2abefe3d 8646if test -n "$LIPO"; then
5213506e
RW
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8648$as_echo "$LIPO" >&6; }
2abefe3d 8649else
5213506e
RW
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8651$as_echo "no" >&6; }
2abefe3d
PB
8652fi
8653
5213506e 8654
2abefe3d
PB
8655 fi
8656 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8658set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8660$as_echo_n "checking for $ac_word... " >&6; }
8661if test "${ac_cv_prog_LIPO+set}" = set; then :
8662 $as_echo_n "(cached) " >&6
2abefe3d
PB
8663else
8664 if test -n "$LIPO"; then
8665 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8666else
1c710c3c
DJ
8667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
5213506e
RW
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8674 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8676 break 2
8677 fi
8678done
5213506e
RW
8679 done
8680IFS=$as_save_IFS
1c710c3c 8681
2abefe3d
PB
8682fi
8683fi
1c710c3c 8684LIPO=$ac_cv_prog_LIPO
2abefe3d 8685if test -n "$LIPO"; then
5213506e
RW
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8687$as_echo "$LIPO" >&6; }
2abefe3d 8688else
5213506e
RW
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690$as_echo "no" >&6; }
2abefe3d 8691fi
1c710c3c 8692
5213506e 8693
2abefe3d
PB
8694 fi
8695 test -n "$ac_cv_prog_LIPO" && break
8696done
8697
8698if test -z "$ac_cv_prog_LIPO" ; then
8699 set dummy lipo
8700 if test $build = $host ; then
8701 LIPO="$2"
8702 else
8703 LIPO="${ncn_tool_prefix}$2"
8704 fi
8705fi
8706
278a7a38
AO
8707
8708
8709if test -n "$NM"; then
8710 ac_cv_prog_NM=$NM
8711elif test -n "$ac_cv_prog_NM"; then
8712 NM=$ac_cv_prog_NM
8713fi
8714
8715if test -n "$ac_cv_prog_NM"; then
8716 for ncn_progname in nm; do
8717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8718set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8720$as_echo_n "checking for $ac_word... " >&6; }
8721if test "${ac_cv_prog_NM+set}" = set; then :
8722 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8723else
8724 if test -n "$NM"; then
8725 ac_cv_prog_NM="$NM" # Let the user override the test.
8726else
1c710c3c
DJ
8727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8728for as_dir in $PATH
8729do
8730 IFS=$as_save_IFS
8731 test -z "$as_dir" && as_dir=.
5213506e
RW
8732 for ac_exec_ext in '' $ac_executable_extensions; do
8733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8734 ac_cv_prog_NM="${ncn_progname}"
5213506e 8735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8736 break 2
8737 fi
8738done
5213506e
RW
8739 done
8740IFS=$as_save_IFS
1c710c3c 8741
ca9f4b81
AO
8742fi
8743fi
1c710c3c 8744NM=$ac_cv_prog_NM
ca9f4b81 8745if test -n "$NM"; then
5213506e
RW
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8747$as_echo "$NM" >&6; }
ca9f4b81 8748else
5213506e
RW
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8750$as_echo "no" >&6; }
ca9f4b81
AO
8751fi
8752
5213506e 8753
278a7a38
AO
8754 done
8755fi
8756
8757for ncn_progname in nm; do
8758 if test -n "$ncn_tool_prefix"; then
8759 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8760set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762$as_echo_n "checking for $ac_word... " >&6; }
8763if test "${ac_cv_prog_NM+set}" = set; then :
8764 $as_echo_n "(cached) " >&6
ca9f4b81 8765else
2693c0b0
PB
8766 if test -n "$NM"; then
8767 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8768else
1c710c3c
DJ
8769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770for as_dir in $PATH
8771do
8772 IFS=$as_save_IFS
8773 test -z "$as_dir" && as_dir=.
5213506e
RW
8774 for ac_exec_ext in '' $ac_executable_extensions; do
8775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8776 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8778 break 2
8779 fi
8780done
5213506e
RW
8781 done
8782IFS=$as_save_IFS
1c710c3c 8783
ca9f4b81
AO
8784fi
8785fi
1c710c3c 8786NM=$ac_cv_prog_NM
2693c0b0 8787if test -n "$NM"; then
5213506e
RW
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8789$as_echo "$NM" >&6; }
ca9f4b81 8790else
5213506e
RW
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8792$as_echo "no" >&6; }
ca9f4b81 8793fi
1c710c3c 8794
5213506e 8795
2693c0b0 8796 fi
278a7a38
AO
8797 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8799set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801$as_echo_n "checking for $ac_word... " >&6; }
8802if test "${ac_cv_prog_NM+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
278a7a38
AO
8804else
8805 if test -n "$NM"; then
8806 ac_cv_prog_NM="$NM" # Let the user override the test.
8807else
8808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8809for as_dir in $PATH
8810do
8811 IFS=$as_save_IFS
8812 test -z "$as_dir" && as_dir=.
5213506e
RW
8813 for ac_exec_ext in '' $ac_executable_extensions; do
8814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8815 ac_cv_prog_NM="${ncn_progname}"
5213506e 8816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8817 break 2
8818 fi
8819done
5213506e
RW
8820 done
8821IFS=$as_save_IFS
278a7a38
AO
8822
8823fi
8824fi
8825NM=$ac_cv_prog_NM
8826if test -n "$NM"; then
5213506e
RW
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8828$as_echo "$NM" >&6; }
278a7a38 8829else
5213506e
RW
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831$as_echo "no" >&6; }
278a7a38
AO
8832fi
8833
5213506e 8834
278a7a38
AO
8835 fi
8836 test -n "$ac_cv_prog_NM" && break
8837done
8838
8839if test -z "$ac_cv_prog_NM" ; then
8840 set dummy nm
8841 if test $build = $host ; then
8842 NM="$2"
8843 else
8844 NM="${ncn_tool_prefix}$2"
8845 fi
8846fi
8847
8848
8849
8850if test -n "$RANLIB"; then
8851 ac_cv_prog_RANLIB=$RANLIB
8852elif test -n "$ac_cv_prog_RANLIB"; then
8853 RANLIB=$ac_cv_prog_RANLIB
8854fi
8855
8856if test -n "$ac_cv_prog_RANLIB"; then
8857 for ncn_progname in ranlib; do
8858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8859set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8861$as_echo_n "checking for $ac_word... " >&6; }
8862if test "${ac_cv_prog_RANLIB+set}" = set; then :
8863 $as_echo_n "(cached) " >&6
278a7a38
AO
8864else
8865 if test -n "$RANLIB"; then
8866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8867else
8868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8869for as_dir in $PATH
8870do
8871 IFS=$as_save_IFS
8872 test -z "$as_dir" && as_dir=.
5213506e
RW
8873 for ac_exec_ext in '' $ac_executable_extensions; do
8874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8875 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8877 break 2
8878 fi
8879done
5213506e
RW
8880 done
8881IFS=$as_save_IFS
278a7a38
AO
8882
8883fi
8884fi
8885RANLIB=$ac_cv_prog_RANLIB
8886if test -n "$RANLIB"; then
5213506e
RW
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8888$as_echo "$RANLIB" >&6; }
278a7a38 8889else
5213506e
RW
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8891$as_echo "no" >&6; }
278a7a38
AO
8892fi
8893
5213506e 8894
278a7a38
AO
8895 done
8896fi
ca9f4b81 8897
278a7a38 8898for ncn_progname in ranlib; do
2693c0b0
PB
8899 if test -n "$ncn_tool_prefix"; then
8900 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8901set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903$as_echo_n "checking for $ac_word... " >&6; }
8904if test "${ac_cv_prog_RANLIB+set}" = set; then :
8905 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8906else
8907 if test -n "$RANLIB"; then
8908 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8909else
1c710c3c
DJ
8910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911for as_dir in $PATH
8912do
8913 IFS=$as_save_IFS
8914 test -z "$as_dir" && as_dir=.
5213506e
RW
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8917 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8919 break 2
8920 fi
8921done
5213506e
RW
8922 done
8923IFS=$as_save_IFS
1c710c3c 8924
ca9f4b81
AO
8925fi
8926fi
1c710c3c 8927RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8928if test -n "$RANLIB"; then
5213506e
RW
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8930$as_echo "$RANLIB" >&6; }
ca9f4b81 8931else
5213506e
RW
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933$as_echo "no" >&6; }
ca9f4b81
AO
8934fi
8935
5213506e 8936
2693c0b0
PB
8937 fi
8938 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8940set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942$as_echo_n "checking for $ac_word... " >&6; }
8943if test "${ac_cv_prog_RANLIB+set}" = set; then :
8944 $as_echo_n "(cached) " >&6
ca9f4b81 8945else
2693c0b0
PB
8946 if test -n "$RANLIB"; then
8947 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8948else
1c710c3c
DJ
8949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950for as_dir in $PATH
8951do
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
5213506e
RW
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8956 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8958 break 2
8959 fi
8960done
5213506e
RW
8961 done
8962IFS=$as_save_IFS
1c710c3c 8963
ca9f4b81
AO
8964fi
8965fi
1c710c3c 8966RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8967if test -n "$RANLIB"; then
5213506e
RW
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8969$as_echo "$RANLIB" >&6; }
ca9f4b81 8970else
5213506e
RW
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8972$as_echo "no" >&6; }
ca9f4b81 8973fi
1c710c3c 8974
5213506e 8975
ca9f4b81 8976 fi
2693c0b0
PB
8977 test -n "$ac_cv_prog_RANLIB" && break
8978done
8979
8980if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8981 RANLIB="true"
ca9f4b81
AO
8982fi
8983
278a7a38
AO
8984
8985
8986if test -n "$STRIP"; then
8987 ac_cv_prog_STRIP=$STRIP
8988elif test -n "$ac_cv_prog_STRIP"; then
8989 STRIP=$ac_cv_prog_STRIP
8990fi
8991
8992if test -n "$ac_cv_prog_STRIP"; then
8993 for ncn_progname in strip; do
8994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8995set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
8998if test "${ac_cv_prog_STRIP+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
278a7a38
AO
9000else
9001 if test -n "$STRIP"; then
9002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9003else
9004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005for as_dir in $PATH
9006do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
5213506e
RW
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9011 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9013 break 2
9014 fi
9015done
5213506e
RW
9016 done
9017IFS=$as_save_IFS
278a7a38
AO
9018
9019fi
9020fi
9021STRIP=$ac_cv_prog_STRIP
9022if test -n "$STRIP"; then
5213506e
RW
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9024$as_echo "$STRIP" >&6; }
278a7a38 9025else
5213506e
RW
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027$as_echo "no" >&6; }
278a7a38
AO
9028fi
9029
5213506e 9030
278a7a38
AO
9031 done
9032fi
9033
9034for ncn_progname in strip; do
2abefe3d
PB
9035 if test -n "$ncn_tool_prefix"; then
9036 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9037set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9039$as_echo_n "checking for $ac_word... " >&6; }
9040if test "${ac_cv_prog_STRIP+set}" = set; then :
9041 $as_echo_n "(cached) " >&6
2abefe3d
PB
9042else
9043 if test -n "$STRIP"; then
9044 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9045else
1c710c3c
DJ
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049 IFS=$as_save_IFS
9050 test -z "$as_dir" && as_dir=.
5213506e
RW
9051 for ac_exec_ext in '' $ac_executable_extensions; do
9052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9053 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9055 break 2
9056 fi
9057done
5213506e
RW
9058 done
9059IFS=$as_save_IFS
1c710c3c 9060
2abefe3d
PB
9061fi
9062fi
1c710c3c 9063STRIP=$ac_cv_prog_STRIP
2abefe3d 9064if test -n "$STRIP"; then
5213506e
RW
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9066$as_echo "$STRIP" >&6; }
2abefe3d 9067else
5213506e
RW
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9069$as_echo "no" >&6; }
2abefe3d
PB
9070fi
9071
5213506e 9072
2abefe3d
PB
9073 fi
9074 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9076set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078$as_echo_n "checking for $ac_word... " >&6; }
9079if test "${ac_cv_prog_STRIP+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
2abefe3d
PB
9081else
9082 if test -n "$STRIP"; then
9083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9084else
1c710c3c
DJ
9085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086for as_dir in $PATH
9087do
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
5213506e
RW
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9092 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9094 break 2
9095 fi
9096done
5213506e
RW
9097 done
9098IFS=$as_save_IFS
1c710c3c 9099
2abefe3d
PB
9100fi
9101fi
1c710c3c 9102STRIP=$ac_cv_prog_STRIP
2abefe3d 9103if test -n "$STRIP"; then
5213506e
RW
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9105$as_echo "$STRIP" >&6; }
2abefe3d 9106else
5213506e
RW
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108$as_echo "no" >&6; }
2abefe3d 9109fi
1c710c3c 9110
5213506e 9111
2abefe3d
PB
9112 fi
9113 test -n "$ac_cv_prog_STRIP" && break
9114done
9115
9116if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9117 STRIP="true"
2abefe3d
PB
9118fi
9119
278a7a38
AO
9120
9121
9122if test -n "$WINDRES"; then
9123 ac_cv_prog_WINDRES=$WINDRES
9124elif test -n "$ac_cv_prog_WINDRES"; then
9125 WINDRES=$ac_cv_prog_WINDRES
9126fi
9127
9128if test -n "$ac_cv_prog_WINDRES"; then
9129 for ncn_progname in windres; do
9130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9131set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133$as_echo_n "checking for $ac_word... " >&6; }
9134if test "${ac_cv_prog_WINDRES+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
278a7a38
AO
9136else
9137 if test -n "$WINDRES"; then
9138 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9139else
9140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141for as_dir in $PATH
9142do
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
5213506e
RW
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9147 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9149 break 2
9150 fi
9151done
5213506e
RW
9152 done
9153IFS=$as_save_IFS
278a7a38
AO
9154
9155fi
9156fi
9157WINDRES=$ac_cv_prog_WINDRES
9158if test -n "$WINDRES"; then
5213506e
RW
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9160$as_echo "$WINDRES" >&6; }
278a7a38 9161else
5213506e
RW
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163$as_echo "no" >&6; }
278a7a38
AO
9164fi
9165
5213506e 9166
278a7a38
AO
9167 done
9168fi
9169
9170for ncn_progname in windres; do
2693c0b0
PB
9171 if test -n "$ncn_tool_prefix"; then
9172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9173set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9175$as_echo_n "checking for $ac_word... " >&6; }
9176if test "${ac_cv_prog_WINDRES+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9178else
9179 if test -n "$WINDRES"; then
9180 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9181else
1c710c3c
DJ
9182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9183for as_dir in $PATH
9184do
9185 IFS=$as_save_IFS
9186 test -z "$as_dir" && as_dir=.
5213506e
RW
9187 for ac_exec_ext in '' $ac_executable_extensions; do
9188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9189 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9191 break 2
9192 fi
9193done
5213506e
RW
9194 done
9195IFS=$as_save_IFS
1c710c3c 9196
ca9f4b81
AO
9197fi
9198fi
1c710c3c 9199WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9200if test -n "$WINDRES"; then
5213506e
RW
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9202$as_echo "$WINDRES" >&6; }
ca9f4b81 9203else
5213506e
RW
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9205$as_echo "no" >&6; }
ca9f4b81
AO
9206fi
9207
5213506e 9208
2693c0b0
PB
9209 fi
9210 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9212set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214$as_echo_n "checking for $ac_word... " >&6; }
9215if test "${ac_cv_prog_WINDRES+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
ca9f4b81 9217else
2693c0b0
PB
9218 if test -n "$WINDRES"; then
9219 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9220else
1c710c3c
DJ
9221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9222for as_dir in $PATH
9223do
9224 IFS=$as_save_IFS
9225 test -z "$as_dir" && as_dir=.
5213506e
RW
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9228 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9230 break 2
9231 fi
9232done
5213506e
RW
9233 done
9234IFS=$as_save_IFS
1c710c3c 9235
ca9f4b81
AO
9236fi
9237fi
1c710c3c 9238WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9239if test -n "$WINDRES"; then
5213506e
RW
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9241$as_echo "$WINDRES" >&6; }
ca9f4b81 9242else
5213506e
RW
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244$as_echo "no" >&6; }
ca9f4b81 9245fi
1c710c3c 9246
5213506e 9247
2693c0b0
PB
9248 fi
9249 test -n "$ac_cv_prog_WINDRES" && break
9250done
9251
9252if test -z "$ac_cv_prog_WINDRES" ; then
9253 set dummy windres
9254 if test $build = $host ; then
9255 WINDRES="$2"
ca9f4b81 9256 else
2693c0b0 9257 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9258 fi
ca9f4b81
AO
9259fi
9260
278a7a38
AO
9261
9262
901119ae
KT
9263if test -n "$WINDMC"; then
9264 ac_cv_prog_WINDMC=$WINDMC
9265elif test -n "$ac_cv_prog_WINDMC"; then
9266 WINDMC=$ac_cv_prog_WINDMC
9267fi
9268
9269if test -n "$ac_cv_prog_WINDMC"; then
9270 for ncn_progname in windmc; do
9271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9272set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274$as_echo_n "checking for $ac_word... " >&6; }
9275if test "${ac_cv_prog_WINDMC+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
901119ae
KT
9277else
9278 if test -n "$WINDMC"; then
9279 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9280else
9281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282for as_dir in $PATH
9283do
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
5213506e
RW
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9288 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9290 break 2
9291 fi
9292done
5213506e
RW
9293 done
9294IFS=$as_save_IFS
901119ae
KT
9295
9296fi
9297fi
9298WINDMC=$ac_cv_prog_WINDMC
9299if test -n "$WINDMC"; then
5213506e
RW
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9301$as_echo "$WINDMC" >&6; }
901119ae 9302else
5213506e
RW
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304$as_echo "no" >&6; }
901119ae
KT
9305fi
9306
5213506e 9307
901119ae
KT
9308 done
9309fi
9310
9311for ncn_progname in windmc; do
9312 if test -n "$ncn_tool_prefix"; then
9313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9314set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9316$as_echo_n "checking for $ac_word... " >&6; }
9317if test "${ac_cv_prog_WINDMC+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
901119ae
KT
9319else
9320 if test -n "$WINDMC"; then
9321 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9322else
9323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324for as_dir in $PATH
9325do
9326 IFS=$as_save_IFS
9327 test -z "$as_dir" && as_dir=.
5213506e
RW
9328 for ac_exec_ext in '' $ac_executable_extensions; do
9329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9330 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9332 break 2
9333 fi
9334done
5213506e
RW
9335 done
9336IFS=$as_save_IFS
901119ae
KT
9337
9338fi
9339fi
9340WINDMC=$ac_cv_prog_WINDMC
9341if test -n "$WINDMC"; then
5213506e
RW
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9343$as_echo "$WINDMC" >&6; }
901119ae 9344else
5213506e
RW
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346$as_echo "no" >&6; }
901119ae
KT
9347fi
9348
5213506e 9349
901119ae
KT
9350 fi
9351 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9353set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9355$as_echo_n "checking for $ac_word... " >&6; }
9356if test "${ac_cv_prog_WINDMC+set}" = set; then :
9357 $as_echo_n "(cached) " >&6
901119ae
KT
9358else
9359 if test -n "$WINDMC"; then
9360 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9361else
9362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9363for as_dir in $PATH
9364do
9365 IFS=$as_save_IFS
9366 test -z "$as_dir" && as_dir=.
5213506e
RW
9367 for ac_exec_ext in '' $ac_executable_extensions; do
9368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9369 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9371 break 2
9372 fi
9373done
5213506e
RW
9374 done
9375IFS=$as_save_IFS
901119ae
KT
9376
9377fi
9378fi
9379WINDMC=$ac_cv_prog_WINDMC
9380if test -n "$WINDMC"; then
5213506e
RW
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9382$as_echo "$WINDMC" >&6; }
901119ae 9383else
5213506e
RW
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9385$as_echo "no" >&6; }
901119ae
KT
9386fi
9387
5213506e 9388
901119ae
KT
9389 fi
9390 test -n "$ac_cv_prog_WINDMC" && break
9391done
9392
9393if test -z "$ac_cv_prog_WINDMC" ; then
9394 set dummy windmc
9395 if test $build = $host ; then
9396 WINDMC="$2"
9397 else
9398 WINDMC="${ncn_tool_prefix}$2"
9399 fi
9400fi
9401
9402
9403
278a7a38
AO
9404if test -n "$OBJCOPY"; then
9405 ac_cv_prog_OBJCOPY=$OBJCOPY
9406elif test -n "$ac_cv_prog_OBJCOPY"; then
9407 OBJCOPY=$ac_cv_prog_OBJCOPY
9408fi
9409
9410if test -n "$ac_cv_prog_OBJCOPY"; then
9411 for ncn_progname in objcopy; do
9412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9413set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9415$as_echo_n "checking for $ac_word... " >&6; }
9416if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9417 $as_echo_n "(cached) " >&6
278a7a38
AO
9418else
9419 if test -n "$OBJCOPY"; then
9420 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9421else
9422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423for as_dir in $PATH
9424do
9425 IFS=$as_save_IFS
9426 test -z "$as_dir" && as_dir=.
5213506e
RW
9427 for ac_exec_ext in '' $ac_executable_extensions; do
9428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9429 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9431 break 2
9432 fi
9433done
5213506e
RW
9434 done
9435IFS=$as_save_IFS
278a7a38
AO
9436
9437fi
9438fi
9439OBJCOPY=$ac_cv_prog_OBJCOPY
9440if test -n "$OBJCOPY"; then
5213506e
RW
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9442$as_echo "$OBJCOPY" >&6; }
278a7a38 9443else
5213506e
RW
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9445$as_echo "no" >&6; }
278a7a38
AO
9446fi
9447
5213506e 9448
278a7a38
AO
9449 done
9450fi
9451
9452for ncn_progname in objcopy; do
2693c0b0
PB
9453 if test -n "$ncn_tool_prefix"; then
9454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9455set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457$as_echo_n "checking for $ac_word... " >&6; }
9458if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9460else
9461 if test -n "$OBJCOPY"; then
9462 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9463else
1c710c3c
DJ
9464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465for as_dir in $PATH
9466do
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
5213506e
RW
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9471 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9473 break 2
9474 fi
9475done
5213506e
RW
9476 done
9477IFS=$as_save_IFS
1c710c3c 9478
ca9f4b81
AO
9479fi
9480fi
1c710c3c 9481OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9482if test -n "$OBJCOPY"; then
5213506e
RW
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9484$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9485else
5213506e
RW
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487$as_echo "no" >&6; }
ca9f4b81
AO
9488fi
9489
5213506e 9490
2693c0b0
PB
9491 fi
9492 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9494set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9496$as_echo_n "checking for $ac_word... " >&6; }
9497if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9498 $as_echo_n "(cached) " >&6
ca9f4b81 9499else
2693c0b0
PB
9500 if test -n "$OBJCOPY"; then
9501 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9502else
1c710c3c
DJ
9503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9504for as_dir in $PATH
9505do
9506 IFS=$as_save_IFS
9507 test -z "$as_dir" && as_dir=.
5213506e
RW
9508 for ac_exec_ext in '' $ac_executable_extensions; do
9509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9510 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9512 break 2
9513 fi
9514done
5213506e
RW
9515 done
9516IFS=$as_save_IFS
1c710c3c 9517
ca9f4b81
AO
9518fi
9519fi
1c710c3c 9520OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9521if test -n "$OBJCOPY"; then
5213506e
RW
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9523$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9524else
5213506e
RW
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9526$as_echo "no" >&6; }
ca9f4b81 9527fi
1c710c3c 9528
5213506e 9529
2693c0b0
PB
9530 fi
9531 test -n "$ac_cv_prog_OBJCOPY" && break
9532done
9533
9534if test -z "$ac_cv_prog_OBJCOPY" ; then
9535 set dummy objcopy
9536 if test $build = $host ; then
9537 OBJCOPY="$2"
ca9f4b81 9538 else
2693c0b0 9539 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9540 fi
ca9f4b81
AO
9541fi
9542
278a7a38
AO
9543
9544
9545if test -n "$OBJDUMP"; then
9546 ac_cv_prog_OBJDUMP=$OBJDUMP
9547elif test -n "$ac_cv_prog_OBJDUMP"; then
9548 OBJDUMP=$ac_cv_prog_OBJDUMP
9549fi
9550
9551if test -n "$ac_cv_prog_OBJDUMP"; then
9552 for ncn_progname in objdump; do
9553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9554set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556$as_echo_n "checking for $ac_word... " >&6; }
9557if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
278a7a38
AO
9559else
9560 if test -n "$OBJDUMP"; then
9561 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9562else
9563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564for as_dir in $PATH
9565do
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
5213506e
RW
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9570 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9572 break 2
9573 fi
9574done
5213506e
RW
9575 done
9576IFS=$as_save_IFS
278a7a38
AO
9577
9578fi
9579fi
9580OBJDUMP=$ac_cv_prog_OBJDUMP
9581if test -n "$OBJDUMP"; then
5213506e
RW
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9583$as_echo "$OBJDUMP" >&6; }
278a7a38 9584else
5213506e
RW
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586$as_echo "no" >&6; }
278a7a38
AO
9587fi
9588
5213506e 9589
278a7a38
AO
9590 done
9591fi
9592
9593for ncn_progname in objdump; do
2693c0b0
PB
9594 if test -n "$ncn_tool_prefix"; then
9595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9596set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598$as_echo_n "checking for $ac_word... " >&6; }
9599if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9601else
9602 if test -n "$OBJDUMP"; then
9603 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9604else
1c710c3c
DJ
9605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606for as_dir in $PATH
9607do
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
5213506e
RW
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9612 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9614 break 2
9615 fi
9616done
5213506e
RW
9617 done
9618IFS=$as_save_IFS
1c710c3c 9619
ca9f4b81
AO
9620fi
9621fi
1c710c3c 9622OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9623if test -n "$OBJDUMP"; then
5213506e
RW
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9625$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9626else
5213506e
RW
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9628$as_echo "no" >&6; }
ca9f4b81
AO
9629fi
9630
5213506e 9631
2693c0b0
PB
9632 fi
9633 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9635set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9637$as_echo_n "checking for $ac_word... " >&6; }
9638if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9639 $as_echo_n "(cached) " >&6
ca9f4b81 9640else
2693c0b0
PB
9641 if test -n "$OBJDUMP"; then
9642 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9643else
1c710c3c
DJ
9644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
5213506e
RW
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9651 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9653 break 2
9654 fi
9655done
5213506e
RW
9656 done
9657IFS=$as_save_IFS
1c710c3c 9658
ca9f4b81
AO
9659fi
9660fi
1c710c3c 9661OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9662if test -n "$OBJDUMP"; then
5213506e
RW
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9664$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9665else
5213506e
RW
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667$as_echo "no" >&6; }
ca9f4b81 9668fi
1c710c3c 9669
5213506e 9670
2693c0b0
PB
9671 fi
9672 test -n "$ac_cv_prog_OBJDUMP" && break
9673done
9674
9675if test -z "$ac_cv_prog_OBJDUMP" ; then
9676 set dummy objdump
9677 if test $build = $host ; then
9678 OBJDUMP="$2"
ca9f4b81 9679 else
2693c0b0 9680 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9681 fi
ca9f4b81
AO
9682fi
9683
671aa708
NN
9684
9685
9686
9687
9688
2abefe3d 9689# Target tools.
1c710c3c 9690
5213506e
RW
9691# Check whether --with-build-time-tools was given.
9692if test "${with_build_time_tools+set}" = set; then :
9693 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9694 x/*) ;;
9695 *)
9696 with_build_time_tools=
5213506e
RW
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9698$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9699 ;;
9700 esac
ca9f4b81 9701else
e8b05380 9702 with_build_time_tools=
5213506e
RW
9703fi
9704
ca9f4b81 9705
278a7a38
AO
9706
9707
9708if test -n "$CC_FOR_TARGET"; then
9709 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9710elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9711 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9712fi
9713
9714if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9715 for ncn_progname in cc gcc; do
9716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9717set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719$as_echo_n "checking for $ac_word... " >&6; }
9720if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9721 $as_echo_n "(cached) " >&6
278a7a38
AO
9722else
9723 if test -n "$CC_FOR_TARGET"; then
9724 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9725else
9726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727for as_dir in $PATH
9728do
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
5213506e
RW
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9733 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9735 break 2
9736 fi
9737done
5213506e
RW
9738 done
9739IFS=$as_save_IFS
278a7a38
AO
9740
9741fi
9742fi
9743CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9744if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9746$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9747else
5213506e
RW
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749$as_echo "no" >&6; }
278a7a38
AO
9750fi
9751
5213506e 9752
278a7a38
AO
9753 done
9754fi
9755
9756if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9757 for ncn_progname in cc gcc; do
5213506e
RW
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9759$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9760 if test -x $with_build_time_tools/${ncn_progname}; then
9761 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9763$as_echo "yes" >&6; }
72a7ab82 9764 break
e8b05380 9765 else
5213506e
RW
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9767$as_echo "no" >&6; }
72a7ab82
AP
9768 fi
9769 done
4de997d1
PB
9770fi
9771
e8b05380
PB
9772if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9773 for ncn_progname in cc gcc; do
9774 if test -n "$ncn_target_tool_prefix"; then
9775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9776set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9778$as_echo_n "checking for $ac_word... " >&6; }
9779if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9780 $as_echo_n "(cached) " >&6
4de997d1
PB
9781else
9782 if test -n "$CC_FOR_TARGET"; then
9783 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9784else
1c710c3c
DJ
9785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786for as_dir in $PATH
9787do
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
5213506e
RW
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9792 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9794 break 2
9795 fi
9796done
5213506e
RW
9797 done
9798IFS=$as_save_IFS
1c710c3c 9799
4de997d1
PB
9800fi
9801fi
1c710c3c 9802CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9803if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9805$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9806else
5213506e
RW
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9808$as_echo "no" >&6; }
4de997d1
PB
9809fi
9810
5213506e 9811
e8b05380
PB
9812 fi
9813 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9815set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9817$as_echo_n "checking for $ac_word... " >&6; }
9818if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
4de997d1 9820else
2693c0b0
PB
9821 if test -n "$CC_FOR_TARGET"; then
9822 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9823else
1c710c3c
DJ
9824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825for as_dir in $PATH
9826do
9827 IFS=$as_save_IFS
9828 test -z "$as_dir" && as_dir=.
5213506e
RW
9829 for ac_exec_ext in '' $ac_executable_extensions; do
9830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9831 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9833 break 2
9834 fi
9835done
5213506e
RW
9836 done
9837IFS=$as_save_IFS
1c710c3c 9838
4de997d1
PB
9839fi
9840fi
1c710c3c 9841CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9842if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9844$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9845else
5213506e
RW
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847$as_echo "no" >&6; }
4de997d1 9848fi
1c710c3c 9849
5213506e 9850
e8b05380
PB
9851 fi
9852 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9853 done
9854fi
1c710c3c 9855
2693c0b0
PB
9856if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9857 set dummy cc gcc
9858 if test $build = $target ; then
9859 CC_FOR_TARGET="$2"
4de997d1 9860 else
2693c0b0 9861 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9862 fi
1c00b503
PB
9863else
9864 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9865fi
9866
278a7a38
AO
9867
9868
9869if test -n "$CXX_FOR_TARGET"; then
9870 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9871elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9872 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9873fi
9874
9875if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9876 for ncn_progname in c++ g++ cxx gxx; do
9877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9878set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880$as_echo_n "checking for $ac_word... " >&6; }
9881if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
278a7a38
AO
9883else
9884 if test -n "$CXX_FOR_TARGET"; then
9885 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9886else
9887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888for as_dir in $PATH
9889do
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
5213506e
RW
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9894 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9896 break 2
9897 fi
9898done
5213506e
RW
9899 done
9900IFS=$as_save_IFS
278a7a38
AO
9901
9902fi
9903fi
9904CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9905if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9907$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9908else
5213506e
RW
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910$as_echo "no" >&6; }
278a7a38
AO
9911fi
9912
5213506e 9913
278a7a38
AO
9914 done
9915fi
9916
9917if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9918 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9920$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9921 if test -x $with_build_time_tools/${ncn_progname}; then
9922 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924$as_echo "yes" >&6; }
e8b05380
PB
9925 break
9926 else
5213506e
RW
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928$as_echo "no" >&6; }
e8b05380
PB
9929 fi
9930 done
9931fi
9932
9933if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9934 for ncn_progname in c++ g++ cxx gxx; do
9935 if test -n "$ncn_target_tool_prefix"; then
9936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9937set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939$as_echo_n "checking for $ac_word... " >&6; }
9940if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
4de997d1
PB
9942else
9943 if test -n "$CXX_FOR_TARGET"; then
9944 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9945else
1c710c3c
DJ
9946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947for as_dir in $PATH
9948do
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
5213506e
RW
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9953 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9955 break 2
9956 fi
9957done
5213506e
RW
9958 done
9959IFS=$as_save_IFS
1c710c3c 9960
4de997d1
PB
9961fi
9962fi
1c710c3c 9963CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9964if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9966$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9967else
5213506e
RW
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969$as_echo "no" >&6; }
4de997d1
PB
9970fi
9971
5213506e 9972
e8b05380
PB
9973 fi
9974 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9976set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
9979if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
4de997d1 9981else
2693c0b0
PB
9982 if test -n "$CXX_FOR_TARGET"; then
9983 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9984else
1c710c3c
DJ
9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986for as_dir in $PATH
9987do
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
5213506e
RW
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9992 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9994 break 2
9995 fi
9996done
5213506e
RW
9997 done
9998IFS=$as_save_IFS
1c710c3c 9999
4de997d1
PB
10000fi
10001fi
1c710c3c 10002CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10003if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10005$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10006else
5213506e
RW
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
4de997d1 10009fi
1c710c3c 10010
5213506e 10011
e8b05380
PB
10012 fi
10013 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10014 done
10015fi
1c710c3c 10016
2693c0b0
PB
10017if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10018 set dummy c++ g++ cxx gxx
10019 if test $build = $target ; then
10020 CXX_FOR_TARGET="$2"
4de997d1 10021 else
2693c0b0 10022 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10023 fi
1c00b503
PB
10024else
10025 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10026fi
10027
278a7a38
AO
10028
10029
10030if test -n "$GCC_FOR_TARGET"; then
10031 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10032elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10033 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10034fi
10035
10036if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10037 for ncn_progname in gcc; do
10038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10039set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041$as_echo_n "checking for $ac_word... " >&6; }
10042if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
278a7a38
AO
10044else
10045 if test -n "$GCC_FOR_TARGET"; then
10046 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10047else
10048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $PATH
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
5213506e
RW
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10055 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10057 break 2
10058 fi
10059done
5213506e
RW
10060 done
10061IFS=$as_save_IFS
278a7a38
AO
10062
10063fi
10064fi
10065GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10066if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10068$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10069else
5213506e
RW
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071$as_echo "no" >&6; }
278a7a38
AO
10072fi
10073
5213506e 10074
278a7a38
AO
10075 done
10076fi
10077
10078if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10079 for ncn_progname in gcc; do
5213506e
RW
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10081$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10082 if test -x $with_build_time_tools/${ncn_progname}; then
10083 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10085$as_echo "yes" >&6; }
e8b05380
PB
10086 break
10087 else
5213506e
RW
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089$as_echo "no" >&6; }
e8b05380
PB
10090 fi
10091 done
10092fi
10093
10094if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10095 for ncn_progname in gcc; do
10096 if test -n "$ncn_target_tool_prefix"; then
10097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10098set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100$as_echo_n "checking for $ac_word... " >&6; }
10101if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
ca9f4b81 10103else
e8b05380
PB
10104 if test -n "$GCC_FOR_TARGET"; then
10105 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10106else
1c710c3c
DJ
10107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108for as_dir in $PATH
10109do
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
5213506e
RW
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10114 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10116 break 2
10117 fi
10118done
5213506e
RW
10119 done
10120IFS=$as_save_IFS
1c710c3c 10121
ca9f4b81
AO
10122fi
10123fi
1c710c3c 10124GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10125if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10127$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10128else
5213506e
RW
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130$as_echo "no" >&6; }
ca9f4b81
AO
10131fi
10132
5213506e 10133
e8b05380
PB
10134 fi
10135 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10137set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139$as_echo_n "checking for $ac_word... " >&6; }
10140if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
ca9f4b81 10142else
e8b05380
PB
10143 if test -n "$GCC_FOR_TARGET"; then
10144 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10145else
1c710c3c
DJ
10146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147for as_dir in $PATH
10148do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
5213506e
RW
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10153 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10155 break 2
10156 fi
10157done
5213506e
RW
10158 done
10159IFS=$as_save_IFS
1c710c3c 10160
ca9f4b81
AO
10161fi
10162fi
1c710c3c 10163GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10164if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10166$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10167else
5213506e
RW
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169$as_echo "no" >&6; }
ca9f4b81 10170fi
1c710c3c 10171
5213506e 10172
e8b05380
PB
10173 fi
10174 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10175 done
10176fi
1c710c3c 10177
e8b05380
PB
10178if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10179 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10180else
10181 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10182fi
10183
278a7a38
AO
10184
10185
10186if test -n "$GCJ_FOR_TARGET"; then
10187 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10188elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10189 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10190fi
10191
10192if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10193 for ncn_progname in gcj; do
10194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10195set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10197$as_echo_n "checking for $ac_word... " >&6; }
10198if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10199 $as_echo_n "(cached) " >&6
278a7a38
AO
10200else
10201 if test -n "$GCJ_FOR_TARGET"; then
10202 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10203else
10204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10205for as_dir in $PATH
10206do
10207 IFS=$as_save_IFS
10208 test -z "$as_dir" && as_dir=.
5213506e
RW
10209 for ac_exec_ext in '' $ac_executable_extensions; do
10210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10211 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10213 break 2
10214 fi
10215done
5213506e
RW
10216 done
10217IFS=$as_save_IFS
278a7a38
AO
10218
10219fi
10220fi
10221GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10222if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10224$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10225else
5213506e
RW
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10227$as_echo "no" >&6; }
278a7a38
AO
10228fi
10229
5213506e 10230
278a7a38
AO
10231 done
10232fi
10233
10234if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10235 for ncn_progname in gcj; do
5213506e
RW
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10237$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10238 if test -x $with_build_time_tools/${ncn_progname}; then
10239 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10241$as_echo "yes" >&6; }
e8b05380
PB
10242 break
10243 else
5213506e
RW
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10245$as_echo "no" >&6; }
e8b05380
PB
10246 fi
10247 done
10248fi
10249
10250if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10251 for ncn_progname in gcj; do
10252 if test -n "$ncn_target_tool_prefix"; then
10253 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10254set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10256$as_echo_n "checking for $ac_word... " >&6; }
10257if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10258 $as_echo_n "(cached) " >&6
e8b05380 10259else
fb0103e5
RG
10260 if test -n "$GCJ_FOR_TARGET"; then
10261 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10262else
1c710c3c
DJ
10263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10264for as_dir in $PATH
10265do
10266 IFS=$as_save_IFS
10267 test -z "$as_dir" && as_dir=.
5213506e
RW
10268 for ac_exec_ext in '' $ac_executable_extensions; do
10269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10270 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10272 break 2
10273 fi
10274done
5213506e
RW
10275 done
10276IFS=$as_save_IFS
1c710c3c 10277
e8b05380
PB
10278fi
10279fi
278a7a38
AO
10280GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10281if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10283$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10284else
5213506e
RW
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10286$as_echo "no" >&6; }
278a7a38
AO
10287fi
10288
5213506e 10289
278a7a38
AO
10290 fi
10291 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10293set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10295$as_echo_n "checking for $ac_word... " >&6; }
10296if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
278a7a38
AO
10298else
10299 if test -n "$GCJ_FOR_TARGET"; then
10300 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10301else
10302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $PATH
10304do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
5213506e
RW
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10309 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10311 break 2
10312 fi
10313done
5213506e
RW
10314 done
10315IFS=$as_save_IFS
278a7a38
AO
10316
10317fi
10318fi
10319GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10320if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10322$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10323else
5213506e
RW
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10325$as_echo "no" >&6; }
278a7a38
AO
10326fi
10327
5213506e 10328
278a7a38
AO
10329 fi
10330 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10331 done
10332fi
10333
10334if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10335 set dummy gcj
10336 if test $build = $target ; then
10337 GCJ_FOR_TARGET="$2"
10338 else
10339 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10340 fi
1c00b503
PB
10341else
10342 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10343fi
10344
10345
10346
10347if test -n "$GFORTRAN_FOR_TARGET"; then
10348 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10349elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10350 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10351fi
10352
278a7a38
AO
10353if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10354 for ncn_progname in gfortran; do
10355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10356set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358$as_echo_n "checking for $ac_word... " >&6; }
10359if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
e8b05380 10361else
278a7a38
AO
10362 if test -n "$GFORTRAN_FOR_TARGET"; then
10363 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10364else
1c710c3c
DJ
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
5213506e
RW
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10372 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10374 break 2
10375 fi
10376done
5213506e
RW
10377 done
10378IFS=$as_save_IFS
1c710c3c 10379
e8b05380
PB
10380fi
10381fi
278a7a38
AO
10382GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10383if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10385$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10386else
5213506e
RW
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388$as_echo "no" >&6; }
e8b05380 10389fi
1c710c3c 10390
5213506e 10391
e8b05380
PB
10392 done
10393fi
1c710c3c 10394
278a7a38 10395if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10396 for ncn_progname in gfortran; do
5213506e
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10398$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10399 if test -x $with_build_time_tools/${ncn_progname}; then
10400 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10402$as_echo "yes" >&6; }
e8b05380
PB
10403 break
10404 else
5213506e
RW
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406$as_echo "no" >&6; }
e8b05380
PB
10407 fi
10408 done
10409fi
10410
10411if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10412 for ncn_progname in gfortran; do
10413 if test -n "$ncn_target_tool_prefix"; then
10414 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10415set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417$as_echo_n "checking for $ac_word... " >&6; }
10418if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
e8b05380
PB
10420else
10421 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10422 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10423else
10424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425for as_dir in $PATH
10426do
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
5213506e
RW
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10431 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10433 break 2
10434 fi
10435done
5213506e
RW
10436 done
10437IFS=$as_save_IFS
1c710c3c 10438
e8b05380
PB
10439fi
10440fi
1c710c3c 10441GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10442if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10444$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10445else
5213506e
RW
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447$as_echo "no" >&6; }
e8b05380
PB
10448fi
10449
5213506e 10450
e8b05380
PB
10451 fi
10452 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10454set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456$as_echo_n "checking for $ac_word... " >&6; }
10457if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
e8b05380
PB
10459else
10460 if test -n "$GFORTRAN_FOR_TARGET"; then
10461 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10462else
1c710c3c
DJ
10463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464for as_dir in $PATH
10465do
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
5213506e
RW
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10470 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10472 break 2
10473 fi
10474done
5213506e
RW
10475 done
10476IFS=$as_save_IFS
1c710c3c 10477
e8b05380
PB
10478fi
10479fi
1c710c3c 10480GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10481if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10483$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10484else
5213506e
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486$as_echo "no" >&6; }
e8b05380 10487fi
1c710c3c 10488
5213506e 10489
e8b05380
PB
10490 fi
10491 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10492 done
10493fi
1c710c3c 10494
e8b05380
PB
10495if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10496 set dummy gfortran
2693c0b0 10497 if test $build = $target ; then
e8b05380 10498 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10499 else
e8b05380
PB
10500 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10501 fi
1c00b503
PB
10502else
10503 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10504fi
10505
10506
10507
632e2a07
ILT
10508if test -n "$GOC_FOR_TARGET"; then
10509 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10510elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10511 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10512fi
10513
10514if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10515 for ncn_progname in gccgo; do
10516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10517set dummy ${ncn_progname}; ac_word=$2
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519$as_echo_n "checking for $ac_word... " >&6; }
10520if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522else
10523 if test -n "$GOC_FOR_TARGET"; then
10524 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10525else
10526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527for as_dir in $PATH
10528do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10533 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10536 fi
10537done
10538 done
10539IFS=$as_save_IFS
10540
10541fi
10542fi
10543GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10544if test -n "$GOC_FOR_TARGET"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10546$as_echo "$GOC_FOR_TARGET" >&6; }
10547else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549$as_echo "no" >&6; }
10550fi
10551
10552
10553 done
10554fi
10555
10556if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10557 for ncn_progname in gccgo; do
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10559$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10560 if test -x $with_build_time_tools/${ncn_progname}; then
10561 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563$as_echo "yes" >&6; }
10564 break
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567$as_echo "no" >&6; }
10568 fi
10569 done
10570fi
10571
10572if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10573 for ncn_progname in gccgo; do
10574 if test -n "$ncn_target_tool_prefix"; then
10575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10576set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10578$as_echo_n "checking for $ac_word... " >&6; }
10579if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10581else
10582 if test -n "$GOC_FOR_TARGET"; then
10583 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10584else
10585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10595 fi
10596done
10597 done
10598IFS=$as_save_IFS
10599
10600fi
10601fi
10602GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10603if test -n "$GOC_FOR_TARGET"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10605$as_echo "$GOC_FOR_TARGET" >&6; }
10606else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608$as_echo "no" >&6; }
10609fi
10610
10611
10612 fi
10613 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10615set dummy ${ncn_progname}; ac_word=$2
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617$as_echo_n "checking for $ac_word... " >&6; }
10618if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10620else
10621 if test -n "$GOC_FOR_TARGET"; then
10622 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10623else
10624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625for as_dir in $PATH
10626do
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10634 fi
10635done
10636 done
10637IFS=$as_save_IFS
10638
10639fi
10640fi
10641GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10642if test -n "$GOC_FOR_TARGET"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10644$as_echo "$GOC_FOR_TARGET" >&6; }
10645else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
10648fi
10649
10650
10651 fi
10652 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10653 done
10654fi
10655
10656if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10657 set dummy gccgo
10658 if test $build = $target ; then
10659 GOC_FOR_TARGET="$2"
10660 else
10661 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10662 fi
10663else
10664 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10665fi
10666
10667
10668
e8b05380
PB
10669cat > conftest.c << \EOF
10670#ifdef __GNUC__
10671 gcc_yay;
10672#endif
10673EOF
10674if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10675 have_gcc_for_target=yes
10676else
10677 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10678 have_gcc_for_target=no
10679fi
10680rm conftest.c
10681
10682
10683
10684
10685if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
5213506e
RW
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10688$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10689 if test -x $with_build_time_tools/ar; then
10690 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10691 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10693$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10694 else
5213506e
RW
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
d1f8db0c 10697 fi
e8b05380
PB
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10700 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10701 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10702 fi
10703fi
3e19841a 10704if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10705 # Extract the first word of "ar", so it can be a program name with args.
10706set dummy ar; ac_word=$2
5213506e
RW
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708$as_echo_n "checking for $ac_word... " >&6; }
10709if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
e8b05380 10711else
1c710c3c
DJ
10712 case $AR_FOR_TARGET in
10713 [\\/]* | ?:[\\/]*)
e8b05380
PB
10714 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10715 ;;
e8b05380 10716 *)
1c710c3c
DJ
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $gcc_cv_tool_dirs
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
5213506e
RW
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10724 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10726 break 2
10727 fi
10728done
5213506e
RW
10729 done
10730IFS=$as_save_IFS
1c710c3c 10731
e8b05380
PB
10732 ;;
10733esac
10734fi
1c710c3c 10735AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10736if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10738$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10739else
5213506e
RW
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
4de997d1
PB
10742fi
10743
5213506e 10744
e8b05380
PB
10745fi
10746if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10747
10748
10749if test -n "$AR_FOR_TARGET"; then
10750 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10751elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10752 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10753fi
10754
10755if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10756 for ncn_progname in ar; do
10757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10758set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760$as_echo_n "checking for $ac_word... " >&6; }
10761if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
278a7a38
AO
10763else
10764 if test -n "$AR_FOR_TARGET"; then
10765 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10766else
10767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $PATH
10769do
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
5213506e
RW
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10774 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10776 break 2
10777 fi
10778done
5213506e
RW
10779 done
10780IFS=$as_save_IFS
278a7a38
AO
10781
10782fi
10783fi
10784AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10785if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10787$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10788else
5213506e
RW
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790$as_echo "no" >&6; }
278a7a38
AO
10791fi
10792
5213506e 10793
278a7a38
AO
10794 done
10795fi
10796
10797if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10798 for ncn_progname in ar; do
5213506e
RW
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10800$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10801 if test -x $with_build_time_tools/${ncn_progname}; then
10802 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804$as_echo "yes" >&6; }
e8b05380
PB
10805 break
10806 else
5213506e
RW
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808$as_echo "no" >&6; }
e8b05380
PB
10809 fi
10810 done
10811fi
10812
10813if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10814 for ncn_progname in ar; do
10815 if test -n "$ncn_target_tool_prefix"; then
10816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10817set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819$as_echo_n "checking for $ac_word... " >&6; }
10820if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
4de997d1 10822else
e8b05380
PB
10823 if test -n "$AR_FOR_TARGET"; then
10824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10825else
1c710c3c
DJ
10826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
5213506e
RW
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10833 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10835 break 2
10836 fi
10837done
5213506e
RW
10838 done
10839IFS=$as_save_IFS
1c710c3c 10840
4de997d1
PB
10841fi
10842fi
1c710c3c 10843AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10844if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10846$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10847else
5213506e
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849$as_echo "no" >&6; }
4de997d1
PB
10850fi
10851
5213506e 10852
e8b05380
PB
10853 fi
10854 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10856set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858$as_echo_n "checking for $ac_word... " >&6; }
10859if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
e8b05380
PB
10861else
10862 if test -n "$AR_FOR_TARGET"; then
10863 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10864else
1c710c3c
DJ
10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
5213506e
RW
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10872 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10874 break 2
10875 fi
10876done
5213506e
RW
10877 done
10878IFS=$as_save_IFS
1c710c3c 10879
e8b05380
PB
10880fi
10881fi
1c710c3c 10882AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10883if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10885$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10886else
5213506e
RW
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888$as_echo "no" >&6; }
e8b05380 10889fi
1c710c3c 10890
5213506e 10891
e8b05380
PB
10892 fi
10893 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10894 done
10895fi
1c710c3c 10896
e8b05380
PB
10897if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10898 set dummy ar
10899 if test $build = $target ; then
10900 AR_FOR_TARGET="$2"
10901 else
10902 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10903 fi
1c00b503
PB
10904else
10905 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10906fi
10907
d1f8db0c
PB
10908else
10909 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10910fi
10911
10912
10913
10914
10915if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10916 if test -n "$with_build_time_tools"; then
5213506e
RW
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10918$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10919 if test -x $with_build_time_tools/as; then
10920 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10921 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10923$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10924 else
5213506e
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926$as_echo "no" >&6; }
d1f8db0c 10927 fi
e8b05380
PB
10928 elif test $build != $host && test $have_gcc_for_target = yes; then
10929 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10930 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10931 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10932 fi
10933fi
3e19841a 10934if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10935 # Extract the first word of "as", so it can be a program name with args.
10936set dummy as; ac_word=$2
5213506e
RW
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
10939if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
e8b05380 10941else
1c710c3c
DJ
10942 case $AS_FOR_TARGET in
10943 [\\/]* | ?:[\\/]*)
e8b05380
PB
10944 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10945 ;;
e8b05380 10946 *)
1c710c3c
DJ
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $gcc_cv_tool_dirs
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
5213506e
RW
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10954 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10956 break 2
10957 fi
10958done
5213506e
RW
10959 done
10960IFS=$as_save_IFS
1c710c3c 10961
e8b05380
PB
10962 ;;
10963esac
10964fi
1c710c3c 10965AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10966if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10968$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10969else
5213506e
RW
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
e8b05380
PB
10972fi
10973
5213506e 10974
e8b05380
PB
10975fi
10976if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10977
10978
10979if test -n "$AS_FOR_TARGET"; then
10980 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10981elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10982 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10983fi
10984
10985if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10986 for ncn_progname in as; do
10987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10988set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990$as_echo_n "checking for $ac_word... " >&6; }
10991if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
278a7a38
AO
10993else
10994 if test -n "$AS_FOR_TARGET"; then
10995 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10996else
10997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998for as_dir in $PATH
10999do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
5213506e
RW
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11004 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11006 break 2
11007 fi
11008done
5213506e
RW
11009 done
11010IFS=$as_save_IFS
278a7a38
AO
11011
11012fi
11013fi
11014AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11015if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11017$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11018else
5213506e
RW
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020$as_echo "no" >&6; }
278a7a38
AO
11021fi
11022
5213506e 11023
278a7a38
AO
11024 done
11025fi
11026
11027if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11028 for ncn_progname in as; do
5213506e
RW
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11030$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11031 if test -x $with_build_time_tools/${ncn_progname}; then
11032 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11034$as_echo "yes" >&6; }
e8b05380
PB
11035 break
11036 else
5213506e
RW
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038$as_echo "no" >&6; }
e8b05380
PB
11039 fi
11040 done
11041fi
11042
11043if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11044 for ncn_progname in as; do
11045 if test -n "$ncn_target_tool_prefix"; then
11046 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11047set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049$as_echo_n "checking for $ac_word... " >&6; }
11050if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
e8b05380
PB
11052else
11053 if test -n "$AS_FOR_TARGET"; then
11054 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11055else
1c710c3c
DJ
11056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $PATH
11058do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
5213506e
RW
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11063 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11065 break 2
11066 fi
11067done
5213506e
RW
11068 done
11069IFS=$as_save_IFS
1c710c3c 11070
e8b05380
PB
11071fi
11072fi
1c710c3c 11073AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11074if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11076$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11077else
5213506e
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079$as_echo "no" >&6; }
e8b05380
PB
11080fi
11081
5213506e 11082
e8b05380
PB
11083 fi
11084 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11086set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088$as_echo_n "checking for $ac_word... " >&6; }
11089if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
4de997d1 11091else
e8b05380
PB
11092 if test -n "$AS_FOR_TARGET"; then
11093 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11094else
1c710c3c
DJ
11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096for as_dir in $PATH
11097do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
5213506e
RW
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11102 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11104 break 2
11105 fi
11106done
5213506e
RW
11107 done
11108IFS=$as_save_IFS
1c710c3c 11109
4de997d1
PB
11110fi
11111fi
1c710c3c 11112AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11113if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11115$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11116else
5213506e
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118$as_echo "no" >&6; }
4de997d1 11119fi
1c710c3c 11120
5213506e 11121
e8b05380
PB
11122 fi
11123 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11124 done
11125fi
1c710c3c 11126
e8b05380
PB
11127if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11128 set dummy as
11129 if test $build = $target ; then
11130 AS_FOR_TARGET="$2"
11131 else
11132 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11133 fi
1c00b503
PB
11134else
11135 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11136fi
2693c0b0 11137
d1f8db0c
PB
11138else
11139 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11140fi
11141
e8b05380
PB
11142
11143
11144
11145if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11146 if test -n "$with_build_time_tools"; then
5213506e
RW
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11148$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11149 if test -x $with_build_time_tools/dlltool; then
11150 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11151 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11153$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11154 else
5213506e
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156$as_echo "no" >&6; }
d1f8db0c 11157 fi
e8b05380
PB
11158 elif test $build != $host && test $have_gcc_for_target = yes; then
11159 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11160 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11161 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11162 fi
11163fi
3e19841a 11164if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11165 # Extract the first word of "dlltool", so it can be a program name with args.
11166set dummy dlltool; ac_word=$2
5213506e
RW
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
11169if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
4de997d1 11171else
1c710c3c
DJ
11172 case $DLLTOOL_FOR_TARGET in
11173 [\\/]* | ?:[\\/]*)
e8b05380
PB
11174 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11175 ;;
e8b05380 11176 *)
1c710c3c
DJ
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178for as_dir in $gcc_cv_tool_dirs
11179do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
5213506e
RW
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11184 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11186 break 2
11187 fi
11188done
5213506e
RW
11189 done
11190IFS=$as_save_IFS
1c710c3c 11191
e8b05380
PB
11192 ;;
11193esac
4de997d1 11194fi
1c710c3c 11195DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11196if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11198$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11199else
5213506e
RW
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
4de997d1
PB
11202fi
11203
5213506e 11204
e8b05380
PB
11205fi
11206if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11207
11208
11209if test -n "$DLLTOOL_FOR_TARGET"; then
11210 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11211elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11212 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11213fi
11214
11215if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11216 for ncn_progname in dlltool; do
11217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11218set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220$as_echo_n "checking for $ac_word... " >&6; }
11221if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
278a7a38
AO
11223else
11224 if test -n "$DLLTOOL_FOR_TARGET"; then
11225 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11226else
11227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228for as_dir in $PATH
11229do
11230 IFS=$as_save_IFS
11231 test -z "$as_dir" && as_dir=.
5213506e
RW
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11234 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11236 break 2
11237 fi
11238done
5213506e
RW
11239 done
11240IFS=$as_save_IFS
278a7a38
AO
11241
11242fi
11243fi
11244DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11245if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11247$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11248else
5213506e
RW
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250$as_echo "no" >&6; }
278a7a38
AO
11251fi
11252
5213506e 11253
278a7a38
AO
11254 done
11255fi
11256
11257if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11258 for ncn_progname in dlltool; do
5213506e
RW
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11260$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11261 if test -x $with_build_time_tools/${ncn_progname}; then
11262 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264$as_echo "yes" >&6; }
e8b05380
PB
11265 break
11266 else
5213506e
RW
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268$as_echo "no" >&6; }
e8b05380
PB
11269 fi
11270 done
11271fi
11272
11273if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11274 for ncn_progname in dlltool; do
11275 if test -n "$ncn_target_tool_prefix"; then
11276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11277set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279$as_echo_n "checking for $ac_word... " >&6; }
11280if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
4de997d1 11282else
e8b05380
PB
11283 if test -n "$DLLTOOL_FOR_TARGET"; then
11284 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11285else
1c710c3c
DJ
11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $PATH
11288do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
5213506e
RW
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11293 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11295 break 2
11296 fi
11297done
5213506e
RW
11298 done
11299IFS=$as_save_IFS
1c710c3c 11300
4de997d1
PB
11301fi
11302fi
1c710c3c 11303DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11304if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11306$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11307else
5213506e
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
4de997d1 11310fi
4de997d1 11311
5213506e 11312
e8b05380
PB
11313 fi
11314 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11316set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318$as_echo_n "checking for $ac_word... " >&6; }
11319if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
4de997d1 11321else
e8b05380
PB
11322 if test -n "$DLLTOOL_FOR_TARGET"; then
11323 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11324else
1c710c3c
DJ
11325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326for as_dir in $PATH
11327do
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
5213506e
RW
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11332 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11334 break 2
11335 fi
11336done
5213506e
RW
11337 done
11338IFS=$as_save_IFS
1c710c3c 11339
4de997d1
PB
11340fi
11341fi
1c710c3c 11342DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11343if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11345$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11346else
5213506e
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
4de997d1 11349fi
1c710c3c 11350
5213506e 11351
e8b05380
PB
11352 fi
11353 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11354 done
11355fi
1c710c3c 11356
e8b05380
PB
11357if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11358 set dummy dlltool
11359 if test $build = $target ; then
11360 DLLTOOL_FOR_TARGET="$2"
11361 else
11362 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11363 fi
1c00b503
PB
11364else
11365 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11366fi
11367
d1f8db0c
PB
11368else
11369 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11370fi
11371
4de997d1 11372
e8b05380
PB
11373
11374
11375if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11376 if test -n "$with_build_time_tools"; then
5213506e
RW
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11378$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11379 if test -x $with_build_time_tools/ld; then
11380 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11381 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11383$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11384 else
5213506e
RW
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386$as_echo "no" >&6; }
d1f8db0c 11387 fi
e8b05380
PB
11388 elif test $build != $host && test $have_gcc_for_target = yes; then
11389 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11390 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11391 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11392 fi
e8b05380 11393fi
3e19841a 11394if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11395 # Extract the first word of "ld", so it can be a program name with args.
11396set dummy ld; ac_word=$2
5213506e
RW
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
11399if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
4de997d1 11401else
1c710c3c
DJ
11402 case $LD_FOR_TARGET in
11403 [\\/]* | ?:[\\/]*)
e8b05380
PB
11404 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11405 ;;
e8b05380 11406 *)
1c710c3c
DJ
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408for as_dir in $gcc_cv_tool_dirs
11409do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
5213506e
RW
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11414 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11416 break 2
11417 fi
11418done
5213506e
RW
11419 done
11420IFS=$as_save_IFS
1c710c3c 11421
e8b05380
PB
11422 ;;
11423esac
4de997d1 11424fi
1c710c3c 11425LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11426if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11428$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11429else
5213506e
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431$as_echo "no" >&6; }
4de997d1 11432fi
2693c0b0 11433
5213506e 11434
e8b05380
PB
11435fi
11436if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11437
11438
11439if test -n "$LD_FOR_TARGET"; then
11440 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11441elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11442 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11443fi
11444
11445if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11446 for ncn_progname in ld; do
11447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11448set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450$as_echo_n "checking for $ac_word... " >&6; }
11451if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
278a7a38
AO
11453else
11454 if test -n "$LD_FOR_TARGET"; then
11455 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11456else
11457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458for as_dir in $PATH
11459do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
5213506e
RW
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11464 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11466 break 2
11467 fi
11468done
5213506e
RW
11469 done
11470IFS=$as_save_IFS
278a7a38
AO
11471
11472fi
11473fi
11474LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11475if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11477$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11478else
5213506e
RW
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480$as_echo "no" >&6; }
278a7a38
AO
11481fi
11482
5213506e 11483
278a7a38
AO
11484 done
11485fi
11486
11487if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11488 for ncn_progname in ld; do
5213506e
RW
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11490$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11491 if test -x $with_build_time_tools/${ncn_progname}; then
11492 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11494$as_echo "yes" >&6; }
e8b05380
PB
11495 break
11496 else
5213506e
RW
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498$as_echo "no" >&6; }
e8b05380
PB
11499 fi
11500 done
ca9f4b81
AO
11501fi
11502
e8b05380
PB
11503if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11504 for ncn_progname in ld; do
11505 if test -n "$ncn_target_tool_prefix"; then
11506 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11507set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509$as_echo_n "checking for $ac_word... " >&6; }
11510if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
ca9f4b81 11512else
4de997d1
PB
11513 if test -n "$LD_FOR_TARGET"; then
11514 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11515else
1c710c3c
DJ
11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
5213506e
RW
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11523 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11525 break 2
11526 fi
11527done
5213506e
RW
11528 done
11529IFS=$as_save_IFS
1c710c3c 11530
ca9f4b81
AO
11531fi
11532fi
1c710c3c 11533LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11534if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11536$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11537else
5213506e
RW
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539$as_echo "no" >&6; }
ca9f4b81
AO
11540fi
11541
5213506e 11542
e8b05380
PB
11543 fi
11544 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11546set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548$as_echo_n "checking for $ac_word... " >&6; }
11549if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
ca9f4b81 11551else
2693c0b0
PB
11552 if test -n "$LD_FOR_TARGET"; then
11553 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11554else
1c710c3c
DJ
11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
5213506e
RW
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11562 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11564 break 2
11565 fi
11566done
5213506e
RW
11567 done
11568IFS=$as_save_IFS
1c710c3c 11569
ca9f4b81
AO
11570fi
11571fi
1c710c3c 11572LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11573if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11575$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11576else
5213506e
RW
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578$as_echo "no" >&6; }
ca9f4b81 11579fi
1c710c3c 11580
5213506e 11581
e8b05380
PB
11582 fi
11583 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11584 done
11585fi
1c710c3c 11586
2693c0b0
PB
11587if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11588 set dummy ld
11589 if test $build = $target ; then
11590 LD_FOR_TARGET="$2"
ca9f4b81 11591 else
2693c0b0 11592 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11593 fi
1c00b503
PB
11594else
11595 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11596fi
11597
d1f8db0c
PB
11598else
11599 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11600fi
11601
11602
11603
11604
11605if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11606 if test -n "$with_build_time_tools"; then
5213506e
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11608$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11609 if test -x $with_build_time_tools/lipo; then
11610 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11611 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11613$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11614 else
5213506e
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
d1f8db0c 11617 fi
e8b05380
PB
11618 elif test $build != $host && test $have_gcc_for_target = yes; then
11619 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11620 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11621 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11622 fi
11623fi
278a7a38
AO
11624if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11625 # Extract the first word of "lipo", so it can be a program name with args.
11626set dummy lipo; ac_word=$2
5213506e
RW
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
11629if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
278a7a38
AO
11631else
11632 case $LIPO_FOR_TARGET in
11633 [\\/]* | ?:[\\/]*)
11634 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11635 ;;
11636 *)
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $gcc_cv_tool_dirs
11639do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
5213506e
RW
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11644 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11646 break 2
11647 fi
11648done
5213506e
RW
11649 done
11650IFS=$as_save_IFS
278a7a38
AO
11651
11652 ;;
11653esac
11654fi
11655LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11656if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11658$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11659else
5213506e
RW
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
278a7a38
AO
11662fi
11663
5213506e 11664
278a7a38
AO
11665fi
11666if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11667
11668
11669if test -n "$LIPO_FOR_TARGET"; then
11670 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11671elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11672 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11673fi
11674
11675if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11676 for ncn_progname in lipo; do
11677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11678set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680$as_echo_n "checking for $ac_word... " >&6; }
11681if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
e8b05380 11683else
278a7a38
AO
11684 if test -n "$LIPO_FOR_TARGET"; then
11685 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11686else
11687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688for as_dir in $PATH
1c710c3c
DJ
11689do
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
5213506e
RW
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11694 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11696 break 2
11697 fi
11698done
5213506e
RW
11699 done
11700IFS=$as_save_IFS
1c710c3c 11701
e8b05380 11702fi
278a7a38
AO
11703fi
11704LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11705if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11707$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11708else
5213506e
RW
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710$as_echo "no" >&6; }
e8b05380
PB
11711fi
11712
5213506e 11713
278a7a38 11714 done
e8b05380 11715fi
278a7a38
AO
11716
11717if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11718 for ncn_progname in lipo; do
5213506e
RW
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11720$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11721 if test -x $with_build_time_tools/${ncn_progname}; then
11722 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724$as_echo "yes" >&6; }
e8b05380
PB
11725 break
11726 else
5213506e
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
e8b05380
PB
11729 fi
11730 done
11731fi
11732
11733if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11734 for ncn_progname in lipo; do
11735 if test -n "$ncn_target_tool_prefix"; then
11736 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11737set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739$as_echo_n "checking for $ac_word... " >&6; }
11740if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11741 $as_echo_n "(cached) " >&6
040b1c5a
GK
11742else
11743 if test -n "$LIPO_FOR_TARGET"; then
11744 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11745else
1c710c3c
DJ
11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
5213506e
RW
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11753 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11755 break 2
11756 fi
11757done
5213506e
RW
11758 done
11759IFS=$as_save_IFS
1c710c3c 11760
040b1c5a
GK
11761fi
11762fi
1c710c3c 11763LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11764if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11766$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11767else
5213506e
RW
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
040b1c5a
GK
11770fi
11771
5213506e 11772
e8b05380
PB
11773 fi
11774 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11776set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778$as_echo_n "checking for $ac_word... " >&6; }
11779if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
040b1c5a
GK
11781else
11782 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11783 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11784else
1c710c3c
DJ
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
5213506e
RW
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11792 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11794 break 2
11795 fi
11796done
5213506e
RW
11797 done
11798IFS=$as_save_IFS
1c710c3c 11799
040b1c5a
GK
11800fi
11801fi
1c710c3c 11802LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11803if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11805$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11806else
5213506e
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
040b1c5a 11809fi
1c710c3c 11810
5213506e 11811
e8b05380
PB
11812 fi
11813 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11814 done
11815fi
1c710c3c 11816
040b1c5a
GK
11817if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11818 set dummy lipo
11819 if test $build = $target ; then
11820 LIPO_FOR_TARGET="$2"
11821 else
11822 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11823 fi
1c00b503
PB
11824else
11825 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11826fi
11827
d1f8db0c
PB
11828else
11829 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11830fi
11831
11832
11833
11834
11835if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11836 if test -n "$with_build_time_tools"; then
5213506e
RW
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11838$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11839 if test -x $with_build_time_tools/nm; then
11840 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11841 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11843$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11844 else
5213506e
RW
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846$as_echo "no" >&6; }
d1f8db0c 11847 fi
e8b05380
PB
11848 elif test $build != $host && test $have_gcc_for_target = yes; then
11849 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11850 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11851 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11852 fi
11853fi
3e19841a 11854if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11855 # Extract the first word of "nm", so it can be a program name with args.
11856set dummy nm; ac_word=$2
5213506e
RW
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
11859if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
e8b05380 11861else
1c710c3c
DJ
11862 case $NM_FOR_TARGET in
11863 [\\/]* | ?:[\\/]*)
e8b05380
PB
11864 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11865 ;;
e8b05380 11866 *)
1c710c3c
DJ
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $gcc_cv_tool_dirs
11869do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
5213506e
RW
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11874 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11876 break 2
11877 fi
11878done
5213506e
RW
11879 done
11880IFS=$as_save_IFS
1c710c3c 11881
e8b05380
PB
11882 ;;
11883esac
11884fi
1c710c3c 11885NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11886if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11888$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11889else
5213506e
RW
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
e8b05380
PB
11892fi
11893
5213506e 11894
e8b05380
PB
11895fi
11896if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11897
11898
11899if test -n "$NM_FOR_TARGET"; then
11900 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11901elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11902 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11903fi
11904
11905if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11906 for ncn_progname in nm; do
11907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11908set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910$as_echo_n "checking for $ac_word... " >&6; }
11911if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
278a7a38
AO
11913else
11914 if test -n "$NM_FOR_TARGET"; then
11915 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11916else
11917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918for as_dir in $PATH
11919do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
5213506e
RW
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11924 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11926 break 2
11927 fi
11928done
5213506e
RW
11929 done
11930IFS=$as_save_IFS
278a7a38
AO
11931
11932fi
11933fi
11934NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11935if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11937$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11938else
5213506e
RW
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940$as_echo "no" >&6; }
278a7a38
AO
11941fi
11942
5213506e 11943
278a7a38
AO
11944 done
11945fi
11946
11947if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11948 for ncn_progname in nm; do
5213506e
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11950$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11951 if test -x $with_build_time_tools/${ncn_progname}; then
11952 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954$as_echo "yes" >&6; }
e8b05380
PB
11955 break
11956 else
5213506e
RW
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958$as_echo "no" >&6; }
e8b05380
PB
11959 fi
11960 done
11961fi
11962
11963if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11964 for ncn_progname in nm; do
11965 if test -n "$ncn_target_tool_prefix"; then
11966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11967set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969$as_echo_n "checking for $ac_word... " >&6; }
11970if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
ca9f4b81 11972else
4de997d1
PB
11973 if test -n "$NM_FOR_TARGET"; then
11974 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11975else
1c710c3c
DJ
11976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977for as_dir in $PATH
11978do
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
5213506e
RW
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11983 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11985 break 2
11986 fi
11987done
5213506e
RW
11988 done
11989IFS=$as_save_IFS
1c710c3c 11990
ca9f4b81
AO
11991fi
11992fi
1c710c3c 11993NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11994if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11996$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11997else
5213506e
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
ca9f4b81
AO
12000fi
12001
5213506e 12002
e8b05380
PB
12003 fi
12004 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12006set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008$as_echo_n "checking for $ac_word... " >&6; }
12009if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
ca9f4b81 12011else
2693c0b0
PB
12012 if test -n "$NM_FOR_TARGET"; then
12013 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12014else
1c710c3c
DJ
12015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
5213506e
RW
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12022 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12024 break 2
12025 fi
12026done
5213506e
RW
12027 done
12028IFS=$as_save_IFS
1c710c3c 12029
ca9f4b81
AO
12030fi
12031fi
1c710c3c 12032NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12033if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12035$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12036else
5213506e
RW
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
ca9f4b81 12039fi
1c710c3c 12040
5213506e 12041
e8b05380
PB
12042 fi
12043 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12044 done
12045fi
1c710c3c 12046
2693c0b0
PB
12047if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12048 set dummy nm
12049 if test $build = $target ; then
12050 NM_FOR_TARGET="$2"
ca9f4b81 12051 else
2693c0b0 12052 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12053 fi
1c00b503
PB
12054else
12055 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12056fi
12057
d1f8db0c
PB
12058else
12059 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12060fi
12061
12062
12063
12064
12065if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12066 if test -n "$with_build_time_tools"; then
5213506e
RW
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12068$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12069 if test -x $with_build_time_tools/objdump; then
12070 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12071 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12073$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12074 else
5213506e
RW
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076$as_echo "no" >&6; }
d1f8db0c 12077 fi
e8b05380
PB
12078 elif test $build != $host && test $have_gcc_for_target = yes; then
12079 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12080 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12081 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12082 fi
12083fi
3e19841a 12084if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12085 # Extract the first word of "objdump", so it can be a program name with args.
12086set dummy objdump; ac_word=$2
5213506e
RW
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
12089if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
e8b05380 12091else
1c710c3c
DJ
12092 case $OBJDUMP_FOR_TARGET in
12093 [\\/]* | ?:[\\/]*)
e8b05380
PB
12094 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12095 ;;
e8b05380 12096 *)
1c710c3c
DJ
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $gcc_cv_tool_dirs
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
5213506e
RW
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12104 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12106 break 2
12107 fi
12108done
5213506e
RW
12109 done
12110IFS=$as_save_IFS
1c710c3c 12111
e8b05380
PB
12112 ;;
12113esac
12114fi
1c710c3c 12115OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12116if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12118$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12119else
5213506e
RW
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
e8b05380
PB
12122fi
12123
5213506e 12124
e8b05380
PB
12125fi
12126if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12127
12128
12129if test -n "$OBJDUMP_FOR_TARGET"; then
12130 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12131elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12132 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12133fi
12134
12135if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12136 for ncn_progname in objdump; do
12137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12138set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140$as_echo_n "checking for $ac_word... " >&6; }
12141if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
278a7a38
AO
12143else
12144 if test -n "$OBJDUMP_FOR_TARGET"; then
12145 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12146else
12147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH
12149do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
5213506e
RW
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12154 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12156 break 2
12157 fi
12158done
5213506e
RW
12159 done
12160IFS=$as_save_IFS
278a7a38
AO
12161
12162fi
12163fi
12164OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12165if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12167$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12168else
5213506e
RW
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170$as_echo "no" >&6; }
278a7a38
AO
12171fi
12172
5213506e 12173
278a7a38
AO
12174 done
12175fi
12176
12177if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12178 for ncn_progname in objdump; do
5213506e
RW
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12180$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12181 if test -x $with_build_time_tools/${ncn_progname}; then
12182 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12184$as_echo "yes" >&6; }
e8b05380
PB
12185 break
12186 else
5213506e
RW
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188$as_echo "no" >&6; }
e8b05380
PB
12189 fi
12190 done
12191fi
12192
12193if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12194 for ncn_progname in objdump; do
12195 if test -n "$ncn_target_tool_prefix"; then
12196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12197set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
12200if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
d739199a
DJ
12202else
12203 if test -n "$OBJDUMP_FOR_TARGET"; then
12204 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12205else
1c710c3c
DJ
12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
5213506e
RW
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12213 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12215 break 2
12216 fi
12217done
5213506e
RW
12218 done
12219IFS=$as_save_IFS
1c710c3c 12220
d739199a
DJ
12221fi
12222fi
1c710c3c 12223OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12224if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12226$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12227else
5213506e
RW
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
d739199a
DJ
12230fi
12231
5213506e 12232
e8b05380
PB
12233 fi
12234 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12236set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238$as_echo_n "checking for $ac_word... " >&6; }
12239if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
d739199a
DJ
12241else
12242 if test -n "$OBJDUMP_FOR_TARGET"; then
12243 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12244else
1c710c3c
DJ
12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
5213506e
RW
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12252 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12254 break 2
12255 fi
12256done
5213506e
RW
12257 done
12258IFS=$as_save_IFS
1c710c3c 12259
d739199a
DJ
12260fi
12261fi
1c710c3c 12262OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12263if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12265$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12266else
5213506e
RW
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
d739199a 12269fi
1c710c3c 12270
5213506e 12271
e8b05380
PB
12272 fi
12273 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12274 done
12275fi
1c710c3c 12276
d739199a
DJ
12277if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12278 set dummy objdump
12279 if test $build = $target ; then
12280 OBJDUMP_FOR_TARGET="$2"
12281 else
12282 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12283 fi
1c00b503
PB
12284else
12285 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12286fi
12287
d1f8db0c
PB
12288else
12289 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12290fi
12291
12292
12293
12294
12295if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12296 if test -n "$with_build_time_tools"; then
5213506e
RW
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12298$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12299 if test -x $with_build_time_tools/ranlib; then
12300 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12301 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12303$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12304 else
5213506e
RW
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
d1f8db0c 12307 fi
e8b05380
PB
12308 elif test $build != $host && test $have_gcc_for_target = yes; then
12309 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12310 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12311 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12312 fi
12313fi
3e19841a 12314if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12315 # Extract the first word of "ranlib", so it can be a program name with args.
12316set dummy ranlib; ac_word=$2
5213506e
RW
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
12319if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
e8b05380 12321else
1c710c3c
DJ
12322 case $RANLIB_FOR_TARGET in
12323 [\\/]* | ?:[\\/]*)
e8b05380
PB
12324 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12325 ;;
e8b05380 12326 *)
1c710c3c
DJ
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $gcc_cv_tool_dirs
12329do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
5213506e
RW
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12334 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12336 break 2
12337 fi
12338done
5213506e
RW
12339 done
12340IFS=$as_save_IFS
1c710c3c 12341
e8b05380
PB
12342 ;;
12343esac
12344fi
1c710c3c 12345RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12346if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12348$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12349else
5213506e
RW
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
e8b05380
PB
12352fi
12353
5213506e 12354
e8b05380
PB
12355fi
12356if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12357
12358
12359if test -n "$RANLIB_FOR_TARGET"; then
12360 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12361elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12362 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12363fi
12364
12365if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12366 for ncn_progname in ranlib; do
12367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12368set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370$as_echo_n "checking for $ac_word... " >&6; }
12371if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
278a7a38
AO
12373else
12374 if test -n "$RANLIB_FOR_TARGET"; then
12375 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12376else
12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378for as_dir in $PATH
12379do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
5213506e
RW
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12384 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12386 break 2
12387 fi
12388done
5213506e
RW
12389 done
12390IFS=$as_save_IFS
278a7a38
AO
12391
12392fi
12393fi
12394RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12395if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12397$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12398else
5213506e
RW
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; }
278a7a38
AO
12401fi
12402
5213506e 12403
278a7a38
AO
12404 done
12405fi
12406
12407if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12408 for ncn_progname in ranlib; do
5213506e
RW
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12410$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12411 if test -x $with_build_time_tools/${ncn_progname}; then
12412 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414$as_echo "yes" >&6; }
e8b05380
PB
12415 break
12416 else
5213506e
RW
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418$as_echo "no" >&6; }
e8b05380
PB
12419 fi
12420 done
12421fi
12422
12423if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12424 for ncn_progname in ranlib; do
12425 if test -n "$ncn_target_tool_prefix"; then
12426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12427set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429$as_echo_n "checking for $ac_word... " >&6; }
12430if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
ca9f4b81 12432else
4de997d1
PB
12433 if test -n "$RANLIB_FOR_TARGET"; then
12434 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12435else
1c710c3c
DJ
12436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437for as_dir in $PATH
12438do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
5213506e
RW
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12443 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12445 break 2
12446 fi
12447done
5213506e
RW
12448 done
12449IFS=$as_save_IFS
1c710c3c 12450
ca9f4b81
AO
12451fi
12452fi
1c710c3c 12453RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12454if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12456$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12457else
5213506e
RW
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459$as_echo "no" >&6; }
ca9f4b81
AO
12460fi
12461
5213506e 12462
e8b05380
PB
12463 fi
12464 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12466set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468$as_echo_n "checking for $ac_word... " >&6; }
12469if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
ca9f4b81 12471else
2693c0b0
PB
12472 if test -n "$RANLIB_FOR_TARGET"; then
12473 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12474else
1c710c3c
DJ
12475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476for as_dir in $PATH
12477do
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
5213506e
RW
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12482 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12484 break 2
12485 fi
12486done
5213506e
RW
12487 done
12488IFS=$as_save_IFS
1c710c3c 12489
ca9f4b81
AO
12490fi
12491fi
1c710c3c 12492RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12493if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12495$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12496else
5213506e
RW
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
ca9f4b81 12499fi
1c710c3c 12500
5213506e 12501
e8b05380
PB
12502 fi
12503 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12504 done
12505fi
1c710c3c 12506
e8b05380
PB
12507if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12508 set dummy ranlib
12509 if test $build = $target ; then
12510 RANLIB_FOR_TARGET="$2"
12511 else
12512 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12513 fi
1c00b503
PB
12514else
12515 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12516fi
2693c0b0 12517
d1f8db0c
PB
12518else
12519 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12520fi
12521
e8b05380
PB
12522
12523
12524
12525if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12526 if test -n "$with_build_time_tools"; then
5213506e
RW
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12528$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12529 if test -x $with_build_time_tools/strip; then
12530 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12531 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12533$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12534 else
5213506e
RW
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536$as_echo "no" >&6; }
d1f8db0c 12537 fi
e8b05380
PB
12538 elif test $build != $host && test $have_gcc_for_target = yes; then
12539 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12540 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12541 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12542 fi
12543fi
3e19841a 12544if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12545 # Extract the first word of "strip", so it can be a program name with args.
12546set dummy strip; ac_word=$2
5213506e
RW
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
e8b05380 12551else
1c710c3c
DJ
12552 case $STRIP_FOR_TARGET in
12553 [\\/]* | ?:[\\/]*)
e8b05380
PB
12554 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12555 ;;
e8b05380 12556 *)
1c710c3c
DJ
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $gcc_cv_tool_dirs
12559do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
5213506e
RW
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12564 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12566 break 2
12567 fi
12568done
5213506e
RW
12569 done
12570IFS=$as_save_IFS
1c710c3c 12571
e8b05380
PB
12572 ;;
12573esac
12574fi
1c710c3c 12575STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12576if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12578$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12579else
5213506e
RW
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
e8b05380
PB
12582fi
12583
5213506e 12584
e8b05380
PB
12585fi
12586if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12587
12588
12589if test -n "$STRIP_FOR_TARGET"; then
12590 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12591elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12592 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12593fi
12594
12595if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12596 for ncn_progname in strip; do
12597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12598set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600$as_echo_n "checking for $ac_word... " >&6; }
12601if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
278a7a38
AO
12603else
12604 if test -n "$STRIP_FOR_TARGET"; then
12605 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12606else
12607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608for as_dir in $PATH
12609do
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
5213506e
RW
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12614 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12616 break 2
12617 fi
12618done
5213506e
RW
12619 done
12620IFS=$as_save_IFS
278a7a38
AO
12621
12622fi
12623fi
12624STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12625if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12627$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12628else
5213506e
RW
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630$as_echo "no" >&6; }
278a7a38
AO
12631fi
12632
5213506e 12633
278a7a38
AO
12634 done
12635fi
12636
12637if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12638 for ncn_progname in strip; do
5213506e
RW
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12640$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12641 if test -x $with_build_time_tools/${ncn_progname}; then
12642 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12644$as_echo "yes" >&6; }
e8b05380
PB
12645 break
12646 else
5213506e
RW
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648$as_echo "no" >&6; }
e8b05380
PB
12649 fi
12650 done
12651fi
12652
12653if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12654 for ncn_progname in strip; do
12655 if test -n "$ncn_target_tool_prefix"; then
12656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12657set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659$as_echo_n "checking for $ac_word... " >&6; }
12660if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
af71363e
AS
12662else
12663 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12664 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12665else
12666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667for as_dir in $PATH
12668do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
5213506e
RW
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12673 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12675 break 2
12676 fi
12677done
5213506e
RW
12678 done
12679IFS=$as_save_IFS
1c710c3c 12680
040b1c5a
GK
12681fi
12682fi
1c710c3c 12683STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12684if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12686$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12687else
5213506e
RW
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689$as_echo "no" >&6; }
040b1c5a
GK
12690fi
12691
5213506e 12692
e8b05380
PB
12693 fi
12694 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12696set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
12699if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
040b1c5a
GK
12701else
12702 if test -n "$STRIP_FOR_TARGET"; then
12703 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12704else
1c710c3c
DJ
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
5213506e
RW
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12712 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12714 break 2
12715 fi
12716done
5213506e
RW
12717 done
12718IFS=$as_save_IFS
1c710c3c 12719
040b1c5a
GK
12720fi
12721fi
1c710c3c 12722STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12723if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12725$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12726else
5213506e
RW
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
040b1c5a 12729fi
1c710c3c 12730
5213506e 12731
e8b05380
PB
12732 fi
12733 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12734 done
12735fi
1c710c3c 12736
040b1c5a
GK
12737if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12738 set dummy strip
12739 if test $build = $target ; then
12740 STRIP_FOR_TARGET="$2"
12741 else
12742 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12743 fi
1c00b503
PB
12744else
12745 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12746fi
12747
d1f8db0c
PB
12748else
12749 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12750fi
12751
12752
12753
12754
12755if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12756 if test -n "$with_build_time_tools"; then
5213506e
RW
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12758$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12759 if test -x $with_build_time_tools/windres; then
12760 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12761 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12763$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12764 else
5213506e
RW
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
d1f8db0c 12767 fi
e8b05380
PB
12768 elif test $build != $host && test $have_gcc_for_target = yes; then
12769 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12770 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12771 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
12772 fi
12773fi
3e19841a 12774if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12775 # Extract the first word of "windres", so it can be a program name with args.
12776set dummy windres; ac_word=$2
5213506e
RW
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
12779if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
e8b05380 12781else
1c710c3c
DJ
12782 case $WINDRES_FOR_TARGET in
12783 [\\/]* | ?:[\\/]*)
e8b05380
PB
12784 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12785 ;;
e8b05380 12786 *)
1c710c3c
DJ
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $gcc_cv_tool_dirs
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
5213506e
RW
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12794 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12796 break 2
12797 fi
12798done
5213506e
RW
12799 done
12800IFS=$as_save_IFS
1c710c3c 12801
e8b05380
PB
12802 ;;
12803esac
12804fi
1c710c3c 12805WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 12806if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12808$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 12809else
5213506e
RW
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
e8b05380
PB
12812fi
12813
5213506e 12814
e8b05380
PB
12815fi
12816if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
12817
12818
12819if test -n "$WINDRES_FOR_TARGET"; then
12820 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12821elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12822 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12823fi
12824
12825if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12826 for ncn_progname in windres; do
12827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12828set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830$as_echo_n "checking for $ac_word... " >&6; }
12831if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12832 $as_echo_n "(cached) " >&6
278a7a38
AO
12833else
12834 if test -n "$WINDRES_FOR_TARGET"; then
12835 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12836else
12837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838for as_dir in $PATH
12839do
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
5213506e
RW
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12844 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12846 break 2
12847 fi
12848done
5213506e
RW
12849 done
12850IFS=$as_save_IFS
278a7a38
AO
12851
12852fi
12853fi
12854WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12855if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12857$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 12858else
5213506e
RW
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860$as_echo "no" >&6; }
278a7a38
AO
12861fi
12862
5213506e 12863
278a7a38
AO
12864 done
12865fi
12866
12867if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12868 for ncn_progname in windres; do
5213506e
RW
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12870$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12871 if test -x $with_build_time_tools/${ncn_progname}; then
12872 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874$as_echo "yes" >&6; }
e8b05380
PB
12875 break
12876 else
5213506e
RW
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878$as_echo "no" >&6; }
e8b05380
PB
12879 fi
12880 done
12881fi
12882
12883if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12884 for ncn_progname in windres; do
12885 if test -n "$ncn_target_tool_prefix"; then
12886 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12887set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889$as_echo_n "checking for $ac_word... " >&6; }
12890if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
ca9f4b81 12892else
4de997d1
PB
12893 if test -n "$WINDRES_FOR_TARGET"; then
12894 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12895else
1c710c3c
DJ
12896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897for as_dir in $PATH
12898do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
5213506e
RW
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12903 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12905 break 2
12906 fi
12907done
5213506e
RW
12908 done
12909IFS=$as_save_IFS
1c710c3c 12910
ca9f4b81
AO
12911fi
12912fi
1c710c3c 12913WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 12914if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12916$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12917else
5213506e
RW
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919$as_echo "no" >&6; }
ca9f4b81
AO
12920fi
12921
5213506e 12922
e8b05380
PB
12923 fi
12924 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12926set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928$as_echo_n "checking for $ac_word... " >&6; }
12929if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
ca9f4b81 12931else
2693c0b0
PB
12932 if test -n "$WINDRES_FOR_TARGET"; then
12933 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12934else
1c710c3c
DJ
12935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936for as_dir in $PATH
12937do
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
5213506e
RW
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12942 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12944 break 2
12945 fi
12946done
5213506e
RW
12947 done
12948IFS=$as_save_IFS
1c710c3c 12949
ca9f4b81
AO
12950fi
12951fi
1c710c3c 12952WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 12953if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12955$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12956else
5213506e
RW
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958$as_echo "no" >&6; }
ca9f4b81 12959fi
1c710c3c 12960
5213506e 12961
e8b05380
PB
12962 fi
12963 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12964 done
12965fi
1c710c3c 12966
2693c0b0
PB
12967if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12968 set dummy windres
12969 if test $build = $target ; then
12970 WINDRES_FOR_TARGET="$2"
ca9f4b81 12971 else
2693c0b0 12972 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12973 fi
1c00b503
PB
12974else
12975 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
12976fi
12977
d1f8db0c
PB
12978else
12979 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
12980fi
12981
4977bab6 12982
901119ae
KT
12983
12984
12985if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12986 if test -n "$with_build_time_tools"; then
5213506e
RW
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12988$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
12989 if test -x $with_build_time_tools/windmc; then
12990 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12991 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12993$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 12994 else
5213506e
RW
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
901119ae
KT
12997 fi
12998 elif test $build != $host && test $have_gcc_for_target = yes; then
12999 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13000 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13001 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13002 fi
13003fi
13004if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13005 # Extract the first word of "windmc", so it can be a program name with args.
13006set dummy windmc; ac_word=$2
5213506e
RW
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
13009if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
901119ae
KT
13011else
13012 case $WINDMC_FOR_TARGET in
13013 [\\/]* | ?:[\\/]*)
13014 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13015 ;;
13016 *)
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018for as_dir in $gcc_cv_tool_dirs
13019do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
5213506e
RW
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13024 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13026 break 2
13027 fi
13028done
5213506e
RW
13029 done
13030IFS=$as_save_IFS
901119ae
KT
13031
13032 ;;
13033esac
13034fi
13035WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13036if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13038$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13039else
5213506e
RW
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
901119ae
KT
13042fi
13043
5213506e 13044
901119ae
KT
13045fi
13046if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13047
13048
13049if test -n "$WINDMC_FOR_TARGET"; then
13050 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13051elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13052 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13053fi
13054
13055if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13056 for ncn_progname in windmc; do
13057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13058set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060$as_echo_n "checking for $ac_word... " >&6; }
13061if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13062 $as_echo_n "(cached) " >&6
901119ae
KT
13063else
13064 if test -n "$WINDMC_FOR_TARGET"; then
13065 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13066else
13067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068for as_dir in $PATH
13069do
13070 IFS=$as_save_IFS
13071 test -z "$as_dir" && as_dir=.
5213506e
RW
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13074 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13076 break 2
13077 fi
13078done
5213506e
RW
13079 done
13080IFS=$as_save_IFS
901119ae
KT
13081
13082fi
13083fi
13084WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13085if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13087$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13088else
5213506e
RW
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090$as_echo "no" >&6; }
901119ae
KT
13091fi
13092
5213506e 13093
901119ae
KT
13094 done
13095fi
13096
13097if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13098 for ncn_progname in windmc; do
5213506e
RW
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13100$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13101 if test -x $with_build_time_tools/${ncn_progname}; then
13102 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104$as_echo "yes" >&6; }
901119ae
KT
13105 break
13106 else
5213506e
RW
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108$as_echo "no" >&6; }
901119ae
KT
13109 fi
13110 done
13111fi
13112
13113if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13114 for ncn_progname in windmc; do
13115 if test -n "$ncn_target_tool_prefix"; then
13116 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13117set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119$as_echo_n "checking for $ac_word... " >&6; }
13120if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
901119ae
KT
13122else
13123 if test -n "$WINDMC_FOR_TARGET"; then
13124 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13125else
13126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127for as_dir in $PATH
13128do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
5213506e
RW
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13133 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13135 break 2
13136 fi
13137done
5213506e
RW
13138 done
13139IFS=$as_save_IFS
901119ae
KT
13140
13141fi
13142fi
13143WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13144if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13146$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13147else
5213506e
RW
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
901119ae
KT
13150fi
13151
5213506e 13152
901119ae
KT
13153 fi
13154 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13156set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
13159if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
901119ae
KT
13161else
13162 if test -n "$WINDMC_FOR_TARGET"; then
13163 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13164else
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
5213506e
RW
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13172 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13174 break 2
13175 fi
13176done
5213506e
RW
13177 done
13178IFS=$as_save_IFS
901119ae
KT
13179
13180fi
13181fi
13182WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13183if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13185$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13186else
5213506e
RW
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
901119ae
KT
13189fi
13190
5213506e 13191
901119ae
KT
13192 fi
13193 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13194 done
13195fi
13196
13197if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13198 set dummy windmc
13199 if test $build = $target ; then
13200 WINDMC_FOR_TARGET="$2"
13201 else
13202 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13203 fi
1c00b503
PB
13204else
13205 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13206fi
13207
13208else
13209 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13210fi
13211
13212
2abefe3d
PB
13213RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13214
5213506e
RW
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13216$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13217if test "x${build}" != "x${host}" ; then
e8b05380
PB
13218 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13219 # We already found the complete path
172e41aa 13220 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13222$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13223 else
13224 # Canadian cross, just use what we found
5213506e
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13226$as_echo "pre-installed" >&6; }
e8b05380 13227 fi
2abefe3d
PB
13228else
13229 ok=yes
13230 case " ${configdirs} " in
13231 *" binutils "*) ;;
13232 *) ok=no ;;
13233 esac
1c710c3c 13234
2abefe3d
PB
13235 if test $ok = yes; then
13236 # An in-tree tool is available and we can use it
13237 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13239$as_echo "just compiled" >&6; }
e8b05380
PB
13240 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13241 # We already found the complete path
172e41aa 13242 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13244$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13245 elif test "x$target" = "x$host"; then
13246 # We can use an host tool
13247 AR_FOR_TARGET='$(AR)'
5213506e
RW
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13249$as_echo "host tool" >&6; }
2abefe3d
PB
13250 else
13251 # We need a cross tool
5213506e
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13253$as_echo "pre-installed" >&6; }
2abefe3d
PB
13254 fi
13255fi
0b0dc272 13256
5213506e
RW
13257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13258$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13259if test "x${build}" != "x${host}" ; then
e8b05380
PB
13260 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13261 # We already found the complete path
172e41aa 13262 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13264$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13265 else
13266 # Canadian cross, just use what we found
5213506e
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13268$as_echo "pre-installed" >&6; }
e8b05380 13269 fi
2abefe3d
PB
13270else
13271 ok=yes
13272 case " ${configdirs} " in
13273 *" gas "*) ;;
13274 *) ok=no ;;
13275 esac
1c710c3c 13276
2abefe3d
PB
13277 if test $ok = yes; then
13278 # An in-tree tool is available and we can use it
13279 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13281$as_echo "just compiled" >&6; }
e8b05380
PB
13282 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13283 # We already found the complete path
172e41aa 13284 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13286$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13287 elif test "x$target" = "x$host"; then
13288 # We can use an host tool
13289 AS_FOR_TARGET='$(AS)'
5213506e
RW
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13291$as_echo "host tool" >&6; }
2abefe3d
PB
13292 else
13293 # We need a cross tool
5213506e
RW
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13295$as_echo "pre-installed" >&6; }
2abefe3d
PB
13296 fi
13297fi
0b0dc272 13298
5213506e
RW
13299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13300$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13301if test "x${build}" != "x${host}" ; then
e8b05380
PB
13302 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13303 # We already found the complete path
172e41aa 13304 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13306$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13307 else
13308 # Canadian cross, just use what we found
5213506e
RW
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13310$as_echo "pre-installed" >&6; }
e8b05380 13311 fi
2abefe3d
PB
13312else
13313 ok=yes
13314 case " ${configdirs} " in
13315 *" gcc "*) ;;
13316 *) ok=no ;;
13317 esac
1c710c3c 13318
2abefe3d
PB
13319 if test $ok = yes; then
13320 # An in-tree tool is available and we can use it
13321 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13323$as_echo "just compiled" >&6; }
e8b05380
PB
13324 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13325 # We already found the complete path
172e41aa 13326 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13328$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13329 elif test "x$target" = "x$host"; then
13330 # We can use an host tool
13331 CC_FOR_TARGET='$(CC)'
5213506e
RW
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13333$as_echo "host tool" >&6; }
2abefe3d
PB
13334 else
13335 # We need a cross tool
5213506e
RW
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13337$as_echo "pre-installed" >&6; }
2abefe3d
PB
13338 fi
13339fi
0b0dc272 13340
5213506e
RW
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13342$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13343if test "x${build}" != "x${host}" ; then
e8b05380
PB
13344 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13345 # We already found the complete path
172e41aa 13346 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13348$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13349 else
13350 # Canadian cross, just use what we found
5213506e
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13352$as_echo "pre-installed" >&6; }
e8b05380 13353 fi
2abefe3d
PB
13354else
13355 ok=yes
13356 case " ${configdirs} " in
13357 *" gcc "*) ;;
13358 *) ok=no ;;
13359 esac
13360 case ,${enable_languages}, in
13361 *,c++,*) ;;
13362 *) ok=no ;;
13363 esac
13364 if test $ok = yes; then
13365 # An in-tree tool is available and we can use it
9aff220f 13366 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
5213506e
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13368$as_echo "just compiled" >&6; }
e8b05380
PB
13369 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13370 # We already found the complete path
172e41aa 13371 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13373$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13374 elif test "x$target" = "x$host"; then
13375 # We can use an host tool
13376 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13378$as_echo "host tool" >&6; }
2abefe3d
PB
13379 else
13380 # We need a cross tool
5213506e
RW
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13382$as_echo "pre-installed" >&6; }
2abefe3d
PB
13383 fi
13384fi
0b0dc272 13385
5213506e
RW
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13387$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13388if test "x${build}" != "x${host}" ; then
e8b05380
PB
13389 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13390 # We already found the complete path
172e41aa 13391 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13393$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13394 else
13395 # Canadian cross, just use what we found
5213506e
RW
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13397$as_echo "pre-installed" >&6; }
e8b05380 13398 fi
2abefe3d
PB
13399else
13400 ok=yes
13401 case " ${configdirs} " in
13402 *" gcc "*) ;;
13403 *) ok=no ;;
13404 esac
13405 case ,${enable_languages}, in
13406 *,c++,*) ;;
13407 *) ok=no ;;
13408 esac
13409 if test $ok = yes; then
13410 # An in-tree tool is available and we can use it
13411 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'
5213506e
RW
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13413$as_echo "just compiled" >&6; }
e8b05380
PB
13414 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13415 # We already found the complete path
172e41aa 13416 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13418$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13419 elif test "x$target" = "x$host"; then
13420 # We can use an host tool
13421 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13423$as_echo "host tool" >&6; }
2abefe3d
PB
13424 else
13425 # We need a cross tool
5213506e
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13427$as_echo "pre-installed" >&6; }
2abefe3d
PB
13428 fi
13429fi
0b0dc272 13430
5213506e
RW
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13432$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13433if test "x${build}" != "x${host}" ; then
e8b05380
PB
13434 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13435 # We already found the complete path
172e41aa 13436 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13438$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13439 else
13440 # Canadian cross, just use what we found
5213506e
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13442$as_echo "pre-installed" >&6; }
e8b05380 13443 fi
2abefe3d
PB
13444else
13445 ok=yes
13446 case " ${configdirs} " in
13447 *" binutils "*) ;;
13448 *) ok=no ;;
13449 esac
1c710c3c 13450
2abefe3d
PB
13451 if test $ok = yes; then
13452 # An in-tree tool is available and we can use it
13453 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13455$as_echo "just compiled" >&6; }
e8b05380
PB
13456 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13457 # We already found the complete path
172e41aa 13458 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13460$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13461 elif test "x$target" = "x$host"; then
13462 # We can use an host tool
13463 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13465$as_echo "host tool" >&6; }
2abefe3d
PB
13466 else
13467 # We need a cross tool
5213506e
RW
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13469$as_echo "pre-installed" >&6; }
2abefe3d
PB
13470 fi
13471fi
0b0dc272 13472
5213506e
RW
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13474$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13475if test "x${build}" != "x${host}" ; then
e8b05380
PB
13476 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13477 # We already found the complete path
172e41aa 13478 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13480$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13481 else
13482 # Canadian cross, just use what we found
5213506e
RW
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13484$as_echo "pre-installed" >&6; }
e8b05380 13485 fi
2abefe3d
PB
13486else
13487 ok=yes
13488 case " ${configdirs} " in
13489 *" gcc "*) ;;
13490 *) ok=no ;;
13491 esac
1c710c3c 13492
2abefe3d
PB
13493 if test $ok = yes; then
13494 # An in-tree tool is available and we can use it
13495 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13497$as_echo "just compiled" >&6; }
e8b05380
PB
13498 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13499 # We already found the complete path
172e41aa 13500 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13502$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13503 elif test "x$target" = "x$host"; then
13504 # We can use an host tool
13505 GCC_FOR_TARGET='$()'
5213506e
RW
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13507$as_echo "host tool" >&6; }
2abefe3d
PB
13508 else
13509 # We need a cross tool
5213506e
RW
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13511$as_echo "pre-installed" >&6; }
2abefe3d
PB
13512 fi
13513fi
0b0dc272 13514
5213506e
RW
13515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13516$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13517if test "x${build}" != "x${host}" ; then
e8b05380
PB
13518 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13519 # We already found the complete path
172e41aa 13520 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13522$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13523 else
13524 # Canadian cross, just use what we found
5213506e
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13526$as_echo "pre-installed" >&6; }
e8b05380 13527 fi
2abefe3d
PB
13528else
13529 ok=yes
13530 case " ${configdirs} " in
13531 *" gcc "*) ;;
13532 *) ok=no ;;
13533 esac
13534 case ,${enable_languages}, in
13535 *,java,*) ;;
13536 *) ok=no ;;
13537 esac
13538 if test $ok = yes; then
13539 # An in-tree tool is available and we can use it
13540 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13542$as_echo "just compiled" >&6; }
e8b05380
PB
13543 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13544 # We already found the complete path
172e41aa 13545 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13547$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13548 elif test "x$target" = "x$host"; then
13549 # We can use an host tool
13550 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13552$as_echo "host tool" >&6; }
2abefe3d
PB
13553 else
13554 # We need a cross tool
5213506e
RW
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13556$as_echo "pre-installed" >&6; }
2abefe3d
PB
13557 fi
13558fi
0b0dc272 13559
5213506e
RW
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13561$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13562if test "x${build}" != "x${host}" ; then
e8b05380
PB
13563 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13564 # We already found the complete path
172e41aa 13565 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13567$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13568 else
13569 # Canadian cross, just use what we found
5213506e
RW
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571$as_echo "pre-installed" >&6; }
e8b05380 13572 fi
2abefe3d
PB
13573else
13574 ok=yes
13575 case " ${configdirs} " in
13576 *" gcc "*) ;;
13577 *) ok=no ;;
13578 esac
13579 case ,${enable_languages}, in
13580 *,fortran,*) ;;
13581 *) ok=no ;;
13582 esac
13583 if test $ok = yes; then
13584 # An in-tree tool is available and we can use it
13585 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13587$as_echo "just compiled" >&6; }
e8b05380
PB
13588 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13589 # We already found the complete path
172e41aa 13590 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13592$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13593 elif test "x$target" = "x$host"; then
13594 # We can use an host tool
13595 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13597$as_echo "host tool" >&6; }
2abefe3d
PB
13598 else
13599 # We need a cross tool
5213506e
RW
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13601$as_echo "pre-installed" >&6; }
2abefe3d
PB
13602 fi
13603fi
0b0dc272 13604
632e2a07
ILT
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13606$as_echo_n "checking where to find the target gccgo... " >&6; }
13607if test "x${build}" != "x${host}" ; then
13608 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13609 # We already found the complete path
13610 ac_dir=`dirname $GOC_FOR_TARGET`
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13612$as_echo "pre-installed in $ac_dir" >&6; }
13613 else
13614 # Canadian cross, just use what we found
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13616$as_echo "pre-installed" >&6; }
13617 fi
13618else
13619 ok=yes
13620 case " ${configdirs} " in
13621 *" gcc "*) ;;
13622 *) ok=no ;;
13623 esac
13624 case ,${enable_languages}, in
13625 *,go,*) ;;
13626 *) ok=no ;;
13627 esac
13628 if test $ok = yes; then
13629 # An in-tree tool is available and we can use it
13630 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13632$as_echo "just compiled" >&6; }
13633 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13634 # We already found the complete path
13635 ac_dir=`dirname $GOC_FOR_TARGET`
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13637$as_echo "pre-installed in $ac_dir" >&6; }
13638 elif test "x$target" = "x$host"; then
13639 # We can use an host tool
13640 GOC_FOR_TARGET='$(GOC)'
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13642$as_echo "host tool" >&6; }
13643 else
13644 # We need a cross tool
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13646$as_echo "pre-installed" >&6; }
13647 fi
13648fi
13649
5213506e
RW
13650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13651$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13652if test "x${build}" != "x${host}" ; then
e8b05380
PB
13653 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13654 # We already found the complete path
172e41aa 13655 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13657$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13658 else
13659 # Canadian cross, just use what we found
5213506e
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13661$as_echo "pre-installed" >&6; }
e8b05380 13662 fi
2abefe3d
PB
13663else
13664 ok=yes
13665 case " ${configdirs} " in
13666 *" ld "*) ;;
13667 *) ok=no ;;
13668 esac
1c710c3c 13669
2abefe3d
PB
13670 if test $ok = yes; then
13671 # An in-tree tool is available and we can use it
13672 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13674$as_echo "just compiled" >&6; }
e8b05380
PB
13675 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13676 # We already found the complete path
172e41aa 13677 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13679$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13680 elif test "x$target" = "x$host"; then
13681 # We can use an host tool
13682 LD_FOR_TARGET='$(LD)'
5213506e
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13684$as_echo "host tool" >&6; }
2abefe3d
PB
13685 else
13686 # We need a cross tool
5213506e
RW
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13688$as_echo "pre-installed" >&6; }
2abefe3d
PB
13689 fi
13690fi
0b0dc272 13691
5213506e
RW
13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13693$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13694if test "x${build}" != "x${host}" ; then
e8b05380
PB
13695 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13696 # We already found the complete path
172e41aa 13697 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13699$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13700 else
13701 # Canadian cross, just use what we found
5213506e
RW
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13703$as_echo "pre-installed" >&6; }
e8b05380 13704 fi
2abefe3d 13705else
e8b05380
PB
13706 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13707 # We already found the complete path
172e41aa 13708 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13710$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13711 elif test "x$target" = "x$host"; then
2abefe3d
PB
13712 # We can use an host tool
13713 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13715$as_echo "host tool" >&6; }
2abefe3d
PB
13716 else
13717 # We need a cross tool
5213506e
RW
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13719$as_echo "pre-installed" >&6; }
2abefe3d
PB
13720 fi
13721fi
0b0dc272 13722
5213506e
RW
13723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13724$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13725if test "x${build}" != "x${host}" ; then
e8b05380
PB
13726 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
172e41aa 13728 ac_dir=`dirname $NM_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; }
e8b05380
PB
13731 else
13732 # Canadian cross, just use what we found
5213506e
RW
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13734$as_echo "pre-installed" >&6; }
e8b05380 13735 fi
2abefe3d
PB
13736else
13737 ok=yes
13738 case " ${configdirs} " in
13739 *" binutils "*) ;;
13740 *) ok=no ;;
13741 esac
1c710c3c 13742
2abefe3d
PB
13743 if test $ok = yes; then
13744 # An in-tree tool is available and we can use it
13745 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13747$as_echo "just compiled" >&6; }
e8b05380
PB
13748 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13749 # We already found the complete path
172e41aa 13750 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13752$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13753 elif test "x$target" = "x$host"; then
13754 # We can use an host tool
13755 NM_FOR_TARGET='$(NM)'
5213506e
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13757$as_echo "host tool" >&6; }
2abefe3d
PB
13758 else
13759 # We need a cross tool
5213506e
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13761$as_echo "pre-installed" >&6; }
2abefe3d
PB
13762 fi
13763fi
0b0dc272 13764
5213506e
RW
13765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13766$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13767if test "x${build}" != "x${host}" ; then
e8b05380
PB
13768 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
172e41aa 13770 ac_dir=`dirname $OBJDUMP_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; }
e8b05380
PB
13773 else
13774 # Canadian cross, just use what we found
5213506e
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13776$as_echo "pre-installed" >&6; }
e8b05380 13777 fi
2abefe3d
PB
13778else
13779 ok=yes
13780 case " ${configdirs} " in
13781 *" binutils "*) ;;
13782 *) ok=no ;;
13783 esac
1c710c3c 13784
2abefe3d
PB
13785 if test $ok = yes; then
13786 # An in-tree tool is available and we can use it
13787 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13789$as_echo "just compiled" >&6; }
e8b05380
PB
13790 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13791 # We already found the complete path
172e41aa 13792 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13794$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13795 elif test "x$target" = "x$host"; then
13796 # We can use an host tool
13797 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13799$as_echo "host tool" >&6; }
2abefe3d
PB
13800 else
13801 # We need a cross tool
5213506e
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13803$as_echo "pre-installed" >&6; }
2abefe3d
PB
13804 fi
13805fi
0b0dc272 13806
5213506e
RW
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13808$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 13809if test "x${build}" != "x${host}" ; then
e8b05380
PB
13810 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13811 # We already found the complete path
172e41aa 13812 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13814$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13815 else
13816 # Canadian cross, just use what we found
5213506e
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13818$as_echo "pre-installed" >&6; }
e8b05380 13819 fi
2abefe3d
PB
13820else
13821 ok=yes
13822 case " ${configdirs} " in
13823 *" binutils "*) ;;
13824 *) ok=no ;;
13825 esac
1c710c3c 13826
2abefe3d
PB
13827 if test $ok = yes; then
13828 # An in-tree tool is available and we can use it
13829 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13831$as_echo "just compiled" >&6; }
e8b05380
PB
13832 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
172e41aa 13834 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13837 elif test "x$target" = "x$host"; then
13838 # We can use an host tool
13839 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13841$as_echo "host tool" >&6; }
2abefe3d
PB
13842 else
13843 # We need a cross tool
5213506e
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13845$as_echo "pre-installed" >&6; }
2abefe3d
PB
13846 fi
13847fi
0b0dc272 13848
5213506e
RW
13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13850$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 13851if test "x${build}" != "x${host}" ; then
e8b05380
PB
13852 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13853 # We already found the complete path
172e41aa 13854 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13856$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13857 else
13858 # Canadian cross, just use what we found
5213506e
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13860$as_echo "pre-installed" >&6; }
e8b05380 13861 fi
2abefe3d
PB
13862else
13863 ok=yes
13864 case " ${configdirs} " in
13865 *" binutils "*) ;;
13866 *) ok=no ;;
13867 esac
1c710c3c 13868
2abefe3d
PB
13869 if test $ok = yes; then
13870 # An in-tree tool is available and we can use it
455c8f48 13871 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13873$as_echo "just compiled" >&6; }
e8b05380
PB
13874 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
172e41aa 13876 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13879 elif test "x$target" = "x$host"; then
13880 # We can use an host tool
13881 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13883$as_echo "host tool" >&6; }
2abefe3d
PB
13884 else
13885 # We need a cross tool
5213506e
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13887$as_echo "pre-installed" >&6; }
2abefe3d
PB
13888 fi
13889fi
0b0dc272 13890
5213506e
RW
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13892$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 13893if test "x${build}" != "x${host}" ; then
e8b05380
PB
13894 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13895 # We already found the complete path
172e41aa 13896 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13898$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13899 else
13900 # Canadian cross, just use what we found
5213506e
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13902$as_echo "pre-installed" >&6; }
e8b05380 13903 fi
2abefe3d
PB
13904else
13905 ok=yes
13906 case " ${configdirs} " in
13907 *" binutils "*) ;;
13908 *) ok=no ;;
13909 esac
1c710c3c 13910
2abefe3d
PB
13911 if test $ok = yes; then
13912 # An in-tree tool is available and we can use it
13913 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13915$as_echo "just compiled" >&6; }
e8b05380
PB
13916 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
172e41aa 13918 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13920$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13921 elif test "x$target" = "x$host"; then
13922 # We can use an host tool
13923 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13925$as_echo "host tool" >&6; }
2abefe3d
PB
13926 else
13927 # We need a cross tool
5213506e
RW
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13929$as_echo "pre-installed" >&6; }
2abefe3d 13930 fi
671aa708 13931fi
be912515 13932
5213506e
RW
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13934$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
13935if test "x${build}" != "x${host}" ; then
13936 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
13938 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13941 else
13942 # Canadian cross, just use what we found
5213506e
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13944$as_echo "pre-installed" >&6; }
901119ae
KT
13945 fi
13946else
13947 ok=yes
13948 case " ${configdirs} " in
13949 *" binutils "*) ;;
13950 *) ok=no ;;
13951 esac
13952
13953 if test $ok = yes; then
13954 # An in-tree tool is available and we can use it
13955 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13957$as_echo "just compiled" >&6; }
901119ae
KT
13958 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13959 # We already found the complete path
13960 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13962$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13963 elif test "x$target" = "x$host"; then
13964 # We can use an host tool
13965 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13967$as_echo "host tool" >&6; }
901119ae
KT
13968 else
13969 # We need a cross tool
5213506e
RW
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971$as_echo "pre-installed" >&6; }
901119ae
KT
13972 fi
13973fi
13974
be912515
NN
13975
13976
2abefe3d 13977
0b0dc272 13978
671aa708
NN
13979# Certain tools may need extra flags.
13980AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13981RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13982NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13983
2abefe3d
PB
13984# When building target libraries, except in a Canadian cross, we use
13985# the same toolchain as the compiler we just built.
13986COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13987COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13988COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13989if test $host = $build; then
13990 case " $configdirs " in
13991 *" gcc "*)
13992 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13993 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13994 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13995 ;;
13996 esac
13997fi
13998
13999
14000
14001
14002
5213506e
RW
14003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14004$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14005# Check whether --enable-maintainer-mode was given.
14006if test "${enable_maintainer_mode+set}" = set; then :
14007 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14008else
14009 USE_MAINTAINER_MODE=no
5213506e
RW
14010fi
14011
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14013$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14014
14015
14016if test "$USE_MAINTAINER_MODE" = yes; then
14017 MAINTAINER_MODE_TRUE=
14018 MAINTAINER_MODE_FALSE='#'
14019else
14020 MAINTAINER_MODE_TRUE='#'
14021 MAINTAINER_MODE_FALSE=
1c710c3c 14022fi
ee03dc5e
AO
14023MAINT=$MAINTAINER_MODE_TRUE
14024
2805b53a
NN
14025# ---------------------
14026# GCC bootstrap support
14027# ---------------------
14028
14029# Stage specific cflags for build.
14030stage1_cflags="-g"
14031case $build in
14032 vax-*-*)
14033 case ${GCC} in
14034 yes) stage1_cflags="-g -Wa,-J" ;;
14035 *) stage1_cflags="-g -J" ;;
14036 esac ;;
2805b53a
NN
14037esac
14038
0b50988a 14039# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 14040if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
14041 saved_CFLAGS="$CFLAGS"
14042
14043 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14044 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14046$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
14048/* end confdefs.h. */
14049
9cc1244e
JJ
14050#if (__GNUC__ < 3) \
14051 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14052 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14053#error http://gcc.gnu.org/PR29382
14054#endif
14055
1c710c3c
DJ
14056int
14057main ()
14058{
14059
14060 ;
14061 return 0;
14062}
14063_ACEOF
5213506e
RW
14064if ac_fn_c_try_compile "$LINENO"; then :
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14066$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 14067else
5213506e
RW
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069$as_echo "no" >&6; }
1c710c3c 14070fi
5213506e 14071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
14072
14073 CFLAGS="$saved_CFLAGS"
14074fi
14075
14076
2805b53a 14077
8efea775 14078# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14079# Check whether --enable-stage1-checking was given.
14080if test "${enable_stage1_checking+set}" = set; then :
14081 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14082else
e643dc23 14083 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14084 stage1_checking=--enable-checking=yes,types
8efea775 14085else
e643dc23 14086 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14087fi
5213506e 14088fi
8efea775
PB
14089
14090
2aeb72e9 14091
5213506e
RW
14092# Enable -Werror in bootstrap stage2 and later.
14093# Check whether --enable-werror was given.
14094if test "${enable_werror+set}" = set; then :
14095 enableval=$enable_werror;
2805b53a 14096else
416cfb5e 14097 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14098 enable_werror=yes
88fceb68
PB
14099else
14100 enable_werror=no
14101fi
5213506e
RW
14102fi
14103
09a9c095
NN
14104case ${enable_werror} in
14105 yes) stage2_werror_flag="--enable-werror-always" ;;
14106 *) stage2_werror_flag="" ;;
2805b53a
NN
14107esac
14108
14109
f2689b09
SE
14110# Specify what files to not compare during bootstrap.
14111
14112compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14113case "$target" in
14114 hppa*64*-*-hpux*) ;;
14115 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14116esac
f61428ed
AO
14117case " $configdirs " in
14118*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14119esac
f2689b09
SE
14120
14121
5213506e
RW
14122ac_config_files="$ac_config_files Makefile"
14123
1c710c3c 14124cat >confcache <<\_ACEOF
671aa708
NN
14125# This file is a shell script that caches the results of configure
14126# tests run on this system so they can be shared between configure
1c710c3c
DJ
14127# scripts and configure runs, see configure's option --config-cache.
14128# It is not useful on other systems. If it contains results you don't
14129# want to keep, you may remove or edit it.
671aa708 14130#
1c710c3c
DJ
14131# config.status only pays attention to the cache file if you give it
14132# the --recheck option to rerun configure.
671aa708 14133#
1c710c3c
DJ
14134# `ac_cv_env_foo' variables (set or unset) will be overridden when
14135# loading this file, other *unset* `ac_cv_foo' will be assigned the
14136# following values.
14137
14138_ACEOF
14139
671aa708
NN
14140# The following way of writing the cache mishandles newlines in values,
14141# but we know of no workaround that is simple, portable, and efficient.
5213506e 14142# So, we kill variables containing newlines.
671aa708
NN
14143# Ultrix sh set writes to stderr and can't be redirected directly,
14144# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14145(
14146 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14147 eval ac_val=\$$ac_var
14148 case $ac_val in #(
14149 *${as_nl}*)
14150 case $ac_var in #(
14151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14152$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14153 esac
14154 case $ac_var in #(
14155 _ | IFS | as_nl) ;; #(
14156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14157 *) { eval $ac_var=; unset $ac_var;} ;;
14158 esac ;;
14159 esac
14160 done
14161
1c710c3c 14162 (set) 2>&1 |
5213506e
RW
14163 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14164 *${as_nl}ac_space=\ *)
14165 # `set' does not quote correctly, so add quotes: double-quote
14166 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14167 sed -n \
14168 "s/'/'\\\\''/g;
14169 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14170 ;; #(
1c710c3c
DJ
14171 *)
14172 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14173 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14174 ;;
5213506e
RW
14175 esac |
14176 sort
14177) |
1c710c3c 14178 sed '
5213506e 14179 /^ac_cv_env_/b end
1c710c3c 14180 t clear
5213506e 14181 :clear
1c710c3c
DJ
14182 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14183 t end
5213506e
RW
14184 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14185 :end' >>confcache
14186if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14187 if test -w "$cache_file"; then
14188 test "x$cache_file" != "x/dev/null" &&
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14190$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14191 cat confcache >$cache_file
671aa708 14192 else
5213506e
RW
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14194$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14195 fi
4977bab6 14196fi
671aa708 14197rm -f confcache
79c06341 14198
671aa708
NN
14199test "x$prefix" = xNONE && prefix=$ac_default_prefix
14200# Let make expand exec_prefix.
14201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14202
671aa708
NN
14203# Transform confdefs.h into DEFS.
14204# Protect against shell expansion while executing Makefile rules.
14205# Protect against Makefile macro expansion.
1c710c3c
DJ
14206#
14207# If the first sed substitution is executed (which looks for macros that
5213506e 14208# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14209# look for a macro that doesn't take arguments.
5213506e
RW
14210ac_script='
14211:mline
14212/\\$/{
14213 N
14214 s,\\\n,,
14215 b mline
14216}
1c710c3c 14217t clear
5213506e
RW
14218:clear
14219s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14220t quote
5213506e 14221s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14222t quote
5213506e
RW
14223b any
14224:quote
14225s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14226s/\[/\\&/g
14227s/\]/\\&/g
14228s/\$/$$/g
14229H
14230:any
14231${
14232 g
14233 s/^\n//
14234 s/\n/ /g
14235 p
14236}
14237'
14238DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14239
14240
14241ac_libobjs=
14242ac_ltlibobjs=
14243for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14244 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14246 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14248 # will be set to the directory where LIBOBJS objects are built.
14249 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14250 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14251done
14252LIBOBJS=$ac_libobjs
fb0103e5 14253
1c710c3c 14254LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14255
af71363e 14256
1c710c3c
DJ
14257
14258: ${CONFIG_STATUS=./config.status}
5213506e 14259ac_write_fail=0
1c710c3c
DJ
14260ac_clean_files_save=$ac_clean_files
14261ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14262{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14263$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14264as_write_fail=0
14265cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14266#! $SHELL
14267# Generated by $as_me.
671aa708 14268# Run this file to recreate the current configuration.
671aa708 14269# Compiler output produced by configure, useful for debugging
1c710c3c 14270# configure, is in config.log if it exists.
0b0dc272 14271
1c710c3c
DJ
14272debug=false
14273ac_cs_recheck=false
14274ac_cs_silent=false
1c710c3c 14275
5213506e
RW
14276SHELL=\${CONFIG_SHELL-$SHELL}
14277export SHELL
14278_ASEOF
14279cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14280## -------------------- ##
14281## M4sh Initialization. ##
14282## -------------------- ##
14283
14284# Be more Bourne compatible
14285DUALCASE=1; export DUALCASE # for MKS sh
14286if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14287 emulate sh
14288 NULLCMD=:
5213506e 14289 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14290 # is contrary to our usage. Disable this feature.
14291 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14292 setopt NO_GLOB_SUBST
14293else
14294 case `(set -o) 2>/dev/null` in #(
14295 *posix*) :
14296 set -o posix ;; #(
14297 *) :
14298 ;;
14299esac
1c710c3c 14300fi
1c710c3c 14301
5213506e
RW
14302
14303as_nl='
14304'
14305export as_nl
14306# Printing a long string crashes Solaris 7 /usr/bin/printf.
14307as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14308as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14309as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14310# Prefer a ksh shell builtin over an external printf program on Solaris,
14311# but without wasting forks for bash or zsh.
14312if test -z "$BASH_VERSION$ZSH_VERSION" \
14313 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14314 as_echo='print -r --'
14315 as_echo_n='print -rn --'
14316elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14317 as_echo='printf %s\n'
14318 as_echo_n='printf %s'
14319else
14320 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14321 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14322 as_echo_n='/usr/ucb/echo -n'
14323 else
14324 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14325 as_echo_n_body='eval
14326 arg=$1;
14327 case $arg in #(
14328 *"$as_nl"*)
14329 expr "X$arg" : "X\\(.*\\)$as_nl";
14330 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14331 esac;
14332 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14333 '
14334 export as_echo_n_body
14335 as_echo_n='sh -c $as_echo_n_body as_echo'
14336 fi
14337 export as_echo_body
14338 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14339fi
14340
5213506e
RW
14341# The user is always right.
14342if test "${PATH_SEPARATOR+set}" != set; then
14343 PATH_SEPARATOR=:
14344 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14345 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14346 PATH_SEPARATOR=';'
14347 }
14348fi
14349
14350
14351# IFS
14352# We need space, tab and new line, in precisely that order. Quoting is
14353# there to prevent editors from complaining about space-tab.
14354# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14355# splitting by setting IFS to empty value.)
14356IFS=" "" $as_nl"
14357
14358# Find who we are. Look in the path if we contain no directory separator.
14359case $0 in #((
14360 *[\\/]* ) as_myself=$0 ;;
14361 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362for as_dir in $PATH
14363do
14364 IFS=$as_save_IFS
14365 test -z "$as_dir" && as_dir=.
14366 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14367 done
14368IFS=$as_save_IFS
14369
14370 ;;
14371esac
14372# We did not find ourselves, most probably we were run as `sh COMMAND'
14373# in which case we are not to be found in the path.
14374if test "x$as_myself" = x; then
14375 as_myself=$0
14376fi
14377if test ! -f "$as_myself"; then
14378 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14379 exit 1
14380fi
1c710c3c 14381
5213506e
RW
14382# Unset variables that we do not need and which cause bugs (e.g. in
14383# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14384# suppresses any "Segmentation fault" message there. '((' could
14385# trigger a bug in pdksh 5.2.14.
14386for as_var in BASH_ENV ENV MAIL MAILPATH
14387do eval test x\${$as_var+set} = xset \
14388 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14389done
1c710c3c
DJ
14390PS1='$ '
14391PS2='> '
14392PS4='+ '
14393
14394# NLS nuisances.
5213506e
RW
14395LC_ALL=C
14396export LC_ALL
14397LANGUAGE=C
14398export LANGUAGE
14399
14400# CDPATH.
14401(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14402
14403
14404# as_fn_error ERROR [LINENO LOG_FD]
14405# ---------------------------------
14406# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14407# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14408# script with status $?, using 1 if that was 0.
14409as_fn_error ()
14410{
14411 as_status=$?; test $as_status -eq 0 && as_status=1
14412 if test "$3"; then
14413 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14414 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14415 fi
5213506e
RW
14416 $as_echo "$as_me: error: $1" >&2
14417 as_fn_exit $as_status
14418} # as_fn_error
14419
14420
14421# as_fn_set_status STATUS
14422# -----------------------
14423# Set $? to STATUS, without forking.
14424as_fn_set_status ()
14425{
14426 return $1
14427} # as_fn_set_status
14428
14429# as_fn_exit STATUS
14430# -----------------
14431# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14432as_fn_exit ()
14433{
14434 set +e
14435 as_fn_set_status $1
14436 exit $1
14437} # as_fn_exit
14438
14439# as_fn_unset VAR
14440# ---------------
14441# Portably unset VAR.
14442as_fn_unset ()
14443{
14444 { eval $1=; unset $1;}
14445}
14446as_unset=as_fn_unset
14447# as_fn_append VAR VALUE
14448# ----------------------
14449# Append the text in VALUE to the end of the definition contained in VAR. Take
14450# advantage of any shell optimizations that allow amortized linear growth over
14451# repeated appends, instead of the typical quadratic growth present in naive
14452# implementations.
14453if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14454 eval 'as_fn_append ()
14455 {
14456 eval $1+=\$2
14457 }'
14458else
14459 as_fn_append ()
14460 {
14461 eval $1=\$$1\$2
14462 }
14463fi # as_fn_append
14464
14465# as_fn_arith ARG...
14466# ------------------
14467# Perform arithmetic evaluation on the ARGs, and store the result in the
14468# global $as_val. Take advantage of shells that can avoid forks. The arguments
14469# must be portable across $(()) and expr.
14470if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14471 eval 'as_fn_arith ()
14472 {
14473 as_val=$(( $* ))
14474 }'
14475else
14476 as_fn_arith ()
14477 {
14478 as_val=`expr "$@" || test $? -eq 1`
14479 }
14480fi # as_fn_arith
14481
1c710c3c 14482
5213506e
RW
14483if expr a : '\(a\)' >/dev/null 2>&1 &&
14484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14485 as_expr=expr
14486else
14487 as_expr=false
14488fi
14489
5213506e 14490if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14491 as_basename=basename
14492else
14493 as_basename=false
14494fi
14495
5213506e
RW
14496if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14497 as_dirname=dirname
14498else
14499 as_dirname=false
14500fi
1c710c3c 14501
5213506e 14502as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14503$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14504 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14505 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14506$as_echo X/"$0" |
14507 sed '/^.*\/\([^/][^/]*\)\/*$/{
14508 s//\1/
14509 q
14510 }
14511 /^X\/\(\/\/\)$/{
14512 s//\1/
14513 q
14514 }
14515 /^X\/\(\/\).*/{
14516 s//\1/
14517 q
14518 }
14519 s/.*/./; q'`
2aeb72e9 14520
2aeb72e9
DD
14521# Avoid depending upon Character Ranges.
14522as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14523as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14524as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14525as_cr_digits='0123456789'
14526as_cr_alnum=$as_cr_Letters$as_cr_digits
14527
5213506e
RW
14528ECHO_C= ECHO_N= ECHO_T=
14529case `echo -n x` in #(((((
14530-n*)
14531 case `echo 'xy\c'` in
14532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14533 xy) ECHO_C='\c';;
14534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14535 ECHO_T=' ';;
14536 esac;;
14537*)
14538 ECHO_N='-n';;
1c710c3c
DJ
14539esac
14540
5213506e
RW
14541rm -f conf$$ conf$$.exe conf$$.file
14542if test -d conf$$.dir; then
14543 rm -f conf$$.dir/conf$$.file
1c710c3c 14544else
5213506e
RW
14545 rm -f conf$$.dir
14546 mkdir conf$$.dir 2>/dev/null
1c710c3c 14547fi
5213506e
RW
14548if (echo >conf$$.file) 2>/dev/null; then
14549 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14550 as_ln_s='ln -s'
5213506e
RW
14551 # ... but there are two gotchas:
14552 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14553 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14554 # In both cases, we have to default to `cp -p'.
14555 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14556 as_ln_s='cp -p'
14557 elif ln conf$$.file conf$$ 2>/dev/null; then
14558 as_ln_s=ln
14559 else
14560 as_ln_s='cp -p'
2aeb72e9 14561 fi
1c710c3c
DJ
14562else
14563 as_ln_s='cp -p'
14564fi
5213506e
RW
14565rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14566rmdir conf$$.dir 2>/dev/null
14567
14568
14569# as_fn_mkdir_p
14570# -------------
14571# Create "$as_dir" as a directory, including parents if necessary.
14572as_fn_mkdir_p ()
14573{
14574
14575 case $as_dir in #(
14576 -*) as_dir=./$as_dir;;
14577 esac
14578 test -d "$as_dir" || eval $as_mkdir_p || {
14579 as_dirs=
14580 while :; do
14581 case $as_dir in #(
14582 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14583 *) as_qdir=$as_dir;;
14584 esac
14585 as_dirs="'$as_qdir' $as_dirs"
14586 as_dir=`$as_dirname -- "$as_dir" ||
14587$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14588 X"$as_dir" : 'X\(//\)[^/]' \| \
14589 X"$as_dir" : 'X\(//\)$' \| \
14590 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14591$as_echo X"$as_dir" |
14592 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14593 s//\1/
14594 q
14595 }
14596 /^X\(\/\/\)[^/].*/{
14597 s//\1/
14598 q
14599 }
14600 /^X\(\/\/\)$/{
14601 s//\1/
14602 q
14603 }
14604 /^X\(\/\).*/{
14605 s//\1/
14606 q
14607 }
14608 s/.*/./; q'`
14609 test -d "$as_dir" && break
14610 done
14611 test -z "$as_dirs" || eval "mkdir $as_dirs"
14612 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14613
1c710c3c 14614
5213506e 14615} # as_fn_mkdir_p
1c710c3c 14616if mkdir -p . 2>/dev/null; then
5213506e 14617 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14618else
14619 test -d ./-p && rmdir ./-p
14620 as_mkdir_p=false
14621fi
14622
5213506e
RW
14623if test -x / >/dev/null 2>&1; then
14624 as_test_x='test -x'
14625else
14626 if ls -dL / >/dev/null 2>&1; then
14627 as_ls_L_option=L
14628 else
14629 as_ls_L_option=
14630 fi
14631 as_test_x='
14632 eval sh -c '\''
14633 if test -d "$1"; then
14634 test -d "$1/.";
14635 else
14636 case $1 in #(
14637 -*)set "./$1";;
14638 esac;
14639 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14640 ???[sx]*):;;*)false;;esac;fi
14641 '\'' sh
14642 '
14643fi
14644as_executable_p=$as_test_x
1c710c3c
DJ
14645
14646# Sed expression to map a string onto a valid CPP name.
14647as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14648
14649# Sed expression to map a string onto a valid variable name.
14650as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14651
14652
1c710c3c 14653exec 6>&1
5213506e
RW
14654## ----------------------------------- ##
14655## Main body of $CONFIG_STATUS script. ##
14656## ----------------------------------- ##
14657_ASEOF
14658test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14659
14660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14661# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14662# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14663# values after options handling.
14664ac_log="
1c710c3c 14665This file was extended by $as_me, which was
5213506e 14666generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14667
14668 CONFIG_FILES = $CONFIG_FILES
14669 CONFIG_HEADERS = $CONFIG_HEADERS
14670 CONFIG_LINKS = $CONFIG_LINKS
14671 CONFIG_COMMANDS = $CONFIG_COMMANDS
14672 $ $0 $@
14673
5213506e
RW
14674on `(hostname || uname -n) 2>/dev/null | sed 1q`
14675"
14676
1c710c3c
DJ
14677_ACEOF
14678
5213506e
RW
14679case $ac_config_files in *"
14680"*) set x $ac_config_files; shift; ac_config_files=$*;;
14681esac
1c710c3c 14682
2aeb72e9 14683
2aeb72e9 14684
5213506e
RW
14685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14686# Files that config.status was made for.
14687config_files="$ac_config_files"
1c710c3c 14688
5213506e 14689_ACEOF
2aeb72e9 14690
5213506e 14691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14692ac_cs_usage="\
5213506e
RW
14693\`$as_me' instantiates files and other configuration actions
14694from templates according to the current configuration. Unless the files
14695and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14696
5213506e 14697Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14698
14699 -h, --help print this help, then exit
5213506e
RW
14700 -V, --version print version number and configuration settings, then exit
14701 -q, --quiet, --silent
14702 do not print progress messages
1c710c3c
DJ
14703 -d, --debug don't remove temporary files
14704 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14705 --file=FILE[:TEMPLATE]
14706 instantiate the configuration file FILE
1c710c3c
DJ
14707
14708Configuration files:
14709$config_files
14710
5213506e 14711Report bugs to the package provider."
2aeb72e9 14712
5213506e
RW
14713_ACEOF
14714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14715ac_cs_version="\\
14716config.status
5213506e
RW
14717configured by $0, generated by GNU Autoconf 2.64,
14718 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14719
5213506e 14720Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14721This config.status script is free software; the Free Software Foundation
14722gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14723
14724ac_pwd='$ac_pwd'
14725srcdir='$srcdir'
14726INSTALL='$INSTALL'
87264276 14727AWK='$AWK'
5213506e 14728test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14729_ACEOF
14730
5213506e
RW
14731cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14732# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14733ac_need_defaults=:
14734while test $# != 0
a4b9e93e 14735do
1c710c3c
DJ
14736 case $1 in
14737 --*=*)
5213506e
RW
14738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14739 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14740 ac_shift=:
14741 ;;
5213506e 14742 *)
1c710c3c
DJ
14743 ac_option=$1
14744 ac_optarg=$2
14745 ac_shift=shift
14746 ;;
1c710c3c
DJ
14747 esac
14748
14749 case $ac_option in
14750 # Handling of the options.
671aa708 14751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14752 ac_cs_recheck=: ;;
5213506e
RW
14753 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14754 $as_echo "$ac_cs_version"; exit ;;
14755 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14756 debug=: ;;
14757 --file | --fil | --fi | --f )
14758 $ac_shift
5213506e
RW
14759 case $ac_optarg in
14760 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14761 esac
14762 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14763 ac_need_defaults=false;;
5213506e
RW
14764 --he | --h | --help | --hel | -h )
14765 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
14766 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14767 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14768 ac_cs_silent=: ;;
14769
14770 # This is an error.
5213506e
RW
14771 -*) as_fn_error "unrecognized option: \`$1'
14772Try \`$0 --help' for more information." ;;
1c710c3c 14773
5213506e
RW
14774 *) as_fn_append ac_config_targets " $1"
14775 ac_need_defaults=false ;;
1c710c3c 14776
0b0dc272 14777 esac
1c710c3c 14778 shift
0b0dc272
AM
14779done
14780
1c710c3c 14781ac_configure_extra_args=
0b0dc272 14782
1c710c3c
DJ
14783if $ac_cs_silent; then
14784 exec 6>/dev/null
14785 ac_configure_extra_args="$ac_configure_extra_args --silent"
14786fi
0b0dc272 14787
1c710c3c 14788_ACEOF
5213506e 14789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 14790if \$ac_cs_recheck; then
5213506e
RW
14791 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14792 shift
14793 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14794 CONFIG_SHELL='$SHELL'
14795 export CONFIG_SHELL
14796 exec "\$@"
1c710c3c
DJ
14797fi
14798
14799_ACEOF
5213506e
RW
14800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14801exec 5>>config.log
14802{
14803 echo
14804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14805## Running $as_me. ##
14806_ASBOX
14807 $as_echo "$ac_log"
14808} >&5
1c710c3c 14809
5213506e
RW
14810_ACEOF
14811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
14812#
14813# INIT-COMMANDS
14814#
14815extrasub_build="$extrasub_build"
14816 extrasub_host="$extrasub_host"
14817 extrasub_target="$extrasub_target"
14818
5213506e 14819_ACEOF
1c710c3c 14820
5213506e 14821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 14822
5213506e 14823# Handling of arguments.
1c710c3c
DJ
14824for ac_config_target in $ac_config_targets
14825do
5213506e
RW
14826 case $ac_config_target in
14827 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14828
14829 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
14830 esac
14831done
14832
5213506e 14833
1c710c3c
DJ
14834# If the user did not use the arguments to specify the items to instantiate,
14835# then the envvar interface is used. Set only those that are not.
14836# We use the long form for the default assignment because of an extremely
14837# bizarre bug on SunOS 4.1.3.
14838if $ac_need_defaults; then
14839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14840fi
14841
14842# Have a temporary directory for convenience. Make it in the build tree
5213506e 14843# simply because there is no reason against having it here, and in addition,
1c710c3c 14844# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
14845# Hook for its removal unless debugging.
14846# Note that there is a small window in which the directory will not be cleaned:
14847# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
14848$debug ||
14849{
5213506e
RW
14850 tmp=
14851 trap 'exit_status=$?
14852 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14853' 0
14854 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 14855}
1c710c3c
DJ
14856# Create a (secure) tmp directory for tmp files.
14857
14858{
5213506e 14859 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
14860 test -n "$tmp" && test -d "$tmp"
14861} ||
14862{
5213506e
RW
14863 tmp=./conf$$-$RANDOM
14864 (umask 077 && mkdir "$tmp")
14865} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14866
14867# Set up the scripts for CONFIG_FILES section.
14868# No need to generate them if there are no CONFIG_FILES.
14869# This happens for instance with `./config.status config.h'.
14870if test -n "$CONFIG_FILES"; then
14871
14872if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14873 ac_cs_awk_getline=:
14874 ac_cs_awk_pipe_init=
14875 ac_cs_awk_read_file='
14876 while ((getline aline < (F[key])) > 0)
14877 print(aline)
14878 close(F[key])'
14879 ac_cs_awk_pipe_fini=
14880else
14881 ac_cs_awk_getline=false
14882 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14883 ac_cs_awk_read_file='
14884 print "|#_!!_#|"
14885 print "cat " F[key] " &&"
14886 '$ac_cs_awk_pipe_init
14887 # The final `:' finishes the AND list.
14888 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14889fi
14890ac_cr=`echo X | tr X '\015'`
14891# On cygwin, bash can eat \r inside `` if the user requested igncr.
14892# But we know of no other shell where ac_cr would be empty at this
14893# point, so we can use a bashism as a fallback.
14894if test "x$ac_cr" = x; then
14895 eval ac_cr=\$\'\\r\'
14896fi
14897ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14898if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14899 ac_cs_awk_cr='\r'
14900else
14901 ac_cs_awk_cr=$ac_cr
14902fi
14903
14904echo 'BEGIN {' >"$tmp/subs1.awk" &&
14905_ACEOF
14906
14907# Create commands to substitute file output variables.
1c710c3c 14908{
5213506e
RW
14909 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14910 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14911 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14912 echo "_ACAWK" &&
14913 echo "_ACEOF"
14914} >conf$$files.sh &&
14915. ./conf$$files.sh ||
14916 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14917rm -f conf$$files.sh
1c710c3c 14918
5213506e
RW
14919{
14920 echo "cat >conf$$subs.awk <<_ACEOF" &&
14921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14922 echo "_ACEOF"
14923} >conf$$subs.sh ||
14924 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14925ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14926ac_delim='%!_!# '
14927for ac_last_try in false false false false false :; do
14928 . ./conf$$subs.sh ||
14929 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14930
14931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14932 if test $ac_delim_n = $ac_delim_num; then
14933 break
14934 elif $ac_last_try; then
14935 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14936 else
14937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14938 fi
14939done
14940rm -f conf$$subs.sh
14941
14942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14943cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 14944_ACEOF
5213506e
RW
14945sed -n '
14946h
14947s/^/S["/; s/!.*/"]=/
14948p
14949g
14950s/^[^!]*!//
14951:repl
14952t repl
14953s/'"$ac_delim"'$//
14954t delim
14955:nl
14956h
14957s/\(.\{148\}\).*/\1/
14958t more1
14959s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14960p
14961n
14962b repl
14963:more1
14964s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14965p
14966g
14967s/.\{148\}//
14968t nl
14969:delim
14970h
14971s/\(.\{148\}\).*/\1/
14972t more2
14973s/["\\]/\\&/g; s/^/"/; s/$/"/
14974p
14975b
14976:more2
14977s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14978p
14979g
14980s/.\{148\}//
14981t delim
14982' <conf$$subs.awk | sed '
14983/^[^""]/{
14984 N
14985 s/\n//
14986}
14987' >>$CONFIG_STATUS || ac_write_fail=1
14988rm -f conf$$subs.awk
14989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14990_ACAWK
14991cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14992 for (key in S) S_is_set[key] = 1
14993 FS = "\a"
14994 \$ac_cs_awk_pipe_init
14995}
14996{
14997 line = $ 0
14998 nfields = split(line, field, "@")
14999 substed = 0
15000 len = length(field[1])
15001 for (i = 2; i < nfields; i++) {
15002 key = field[i]
15003 keylen = length(key)
15004 if (S_is_set[key]) {
15005 value = S[key]
15006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15007 len += length(value) + length(field[++i])
15008 substed = 1
15009 } else
15010 len += 1 + keylen
15011 }
15012 if (nfields == 3 && !substed) {
15013 key = field[2]
15014 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15015 \$ac_cs_awk_read_file
15016 next
15017 }
15018 }
15019 print line
15020}
15021\$ac_cs_awk_pipe_fini
15022_ACAWK
15023_ACEOF
15024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15025if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15027else
15028 cat
15029fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15030 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15031_ACEOF
15032
15033# VPATH may cause trouble with some makes, so we remove $(srcdir),
15034# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15035# trailing colons and then remove the whole line if VPATH becomes empty
15036# (actually we leave an empty line to preserve line numbers).
15037if test "x$srcdir" = x.; then
15038 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15039s/:*\$(srcdir):*/:/
15040s/:*\${srcdir}:*/:/
15041s/:*@srcdir@:*/:/
15042s/^\([^=]*=[ ]*\):*/\1/
15043s/:*$//
15044s/^[^=]*=[ ]*$//
15045}'
15046fi
2aeb72e9 15047
5213506e
RW
15048cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15049fi # test -n "$CONFIG_FILES"
2aeb72e9 15050
1c710c3c 15051
5213506e
RW
15052eval set X " :F $CONFIG_FILES "
15053shift
15054for ac_tag
15055do
15056 case $ac_tag in
15057 :[FHLC]) ac_mode=$ac_tag; continue;;
15058 esac
15059 case $ac_mode$ac_tag in
15060 :[FHL]*:*);;
15061 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15062 :[FH]-) ac_tag=-:-;;
15063 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15064 esac
15065 ac_save_IFS=$IFS
15066 IFS=:
15067 set x $ac_tag
15068 IFS=$ac_save_IFS
15069 shift
15070 ac_file=$1
15071 shift
79c06341 15072
5213506e
RW
15073 case $ac_mode in
15074 :L) ac_source=$1;;
15075 :[FH])
15076 ac_file_inputs=
15077 for ac_f
15078 do
15079 case $ac_f in
15080 -) ac_f="$tmp/stdin";;
15081 *) # Look for the file first in the build tree, then in the source tree
15082 # (if the path is not absolute). The absolute path cannot be DOS-style,
15083 # because $ac_f cannot contain `:'.
15084 test -f "$ac_f" ||
15085 case $ac_f in
15086 [\\/$]*) false;;
15087 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15088 esac ||
15089 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15090 esac
15091 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15092 as_fn_append ac_file_inputs " '$ac_f'"
15093 done
1c710c3c 15094
5213506e
RW
15095 # Let's still pretend it is `configure' which instantiates (i.e., don't
15096 # use $as_me), people would be surprised to read:
15097 # /* config.h. Generated by config.status. */
15098 configure_input='Generated from '`
15099 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15100 `' by configure.'
15101 if test x"$ac_file" != x-; then
15102 configure_input="$ac_file. $configure_input"
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15104$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15105 fi
5213506e
RW
15106 # Neutralize special characters interpreted by sed in replacement strings.
15107 case $configure_input in #(
15108 *\&* | *\|* | *\\* )
15109 ac_sed_conf_input=`$as_echo "$configure_input" |
15110 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15111 *) ac_sed_conf_input=$configure_input;;
15112 esac
11a67599 15113
5213506e
RW
15114 case $ac_tag in
15115 *:-:* | *:-) cat >"$tmp/stdin" \
15116 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15117 esac
15118 ;;
11a67599
ZW
15119 esac
15120
5213506e 15121 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15122$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15123 X"$ac_file" : 'X\(//\)[^/]' \| \
15124 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15125 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15126$as_echo X"$ac_file" |
15127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15128 s//\1/
15129 q
15130 }
15131 /^X\(\/\/\)[^/].*/{
15132 s//\1/
15133 q
15134 }
15135 /^X\(\/\/\)$/{
15136 s//\1/
15137 q
15138 }
15139 /^X\(\/\).*/{
15140 s//\1/
15141 q
15142 }
15143 s/.*/./; q'`
15144 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15145 ac_builddir=.
0b0dc272 15146
5213506e
RW
15147case "$ac_dir" in
15148.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15149*)
15150 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15151 # A ".." for each directory in $ac_dir_suffix.
15152 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15153 case $ac_top_builddir_sub in
15154 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15155 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15156 esac ;;
15157esac
15158ac_abs_top_builddir=$ac_pwd
15159ac_abs_builddir=$ac_pwd$ac_dir_suffix
15160# for backward compatibility:
15161ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15162
15163case $srcdir in
5213506e 15164 .) # We are building in place.
1c710c3c 15165 ac_srcdir=.
5213506e
RW
15166 ac_top_srcdir=$ac_top_builddir_sub
15167 ac_abs_top_srcdir=$ac_pwd ;;
15168 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15169 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15170 ac_top_srcdir=$srcdir
15171 ac_abs_top_srcdir=$srcdir ;;
15172 *) # Relative name.
15173 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15174 ac_top_srcdir=$ac_top_build_prefix$srcdir
15175 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15176esac
5213506e 15177ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15178
0b0dc272 15179
5213506e
RW
15180 case $ac_mode in
15181 :F)
15182 #
15183 # CONFIG_FILE
15184 #
1c710c3c
DJ
15185
15186 case $INSTALL in
15187 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15188 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15189 esac
5213506e 15190_ACEOF
11a67599 15191
5213506e
RW
15192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15193# If the template does not know about datarootdir, expand it.
15194# FIXME: This hack should be removed a few years after 2.60.
15195ac_datarootdir_hack=; ac_datarootdir_seen=
15196ac_sed_dataroot='
15197/datarootdir/ {
15198 p
15199 q
15200}
15201/@datadir@/p
15202/@docdir@/p
15203/@infodir@/p
15204/@localedir@/p
15205/@mandir@/p'
15206case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15207*datarootdir*) ac_datarootdir_seen=yes;;
15208*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15210$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15211_ACEOF
5213506e
RW
15212cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15213 ac_datarootdir_hack='
15214 s&@datadir@&$datadir&g
15215 s&@docdir@&$docdir&g
15216 s&@infodir@&$infodir&g
15217 s&@localedir@&$localedir&g
15218 s&@mandir@&$mandir&g
15219 s&\\\${datarootdir}&$datarootdir&g' ;;
15220esac
15221_ACEOF
15222
15223# Neutralize VPATH when `$srcdir' = `.'.
15224# Shell code in configure.ac might set extrasub.
15225# FIXME: do we really want to maintain this feature?
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15227ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15228$extrasub
15229_ACEOF
5213506e 15230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15231:t
15232/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15233s|@configure_input@|$ac_sed_conf_input|;t t
15234s&@top_builddir@&$ac_top_builddir_sub&;t t
15235s&@top_build_prefix@&$ac_top_build_prefix&;t t
15236s&@srcdir@&$ac_srcdir&;t t
15237s&@abs_srcdir@&$ac_abs_srcdir&;t t
15238s&@top_srcdir@&$ac_top_srcdir&;t t
15239s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15240s&@builddir@&$ac_builddir&;t t
15241s&@abs_builddir@&$ac_abs_builddir&;t t
15242s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15243s&@INSTALL@&$ac_INSTALL&;t t
15244$ac_datarootdir_hack
15245"
15246eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15247if $ac_cs_awk_getline; then
15248 $AWK -f "$tmp/subs.awk"
15249else
15250 $AWK -f "$tmp/subs.awk" | $SHELL
15251fi >$tmp/out \
15252 || as_fn_error "could not create $ac_file" "$LINENO" 5
15253
15254test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15255 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15256 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15258which seems to be undefined. Please make sure it is defined." >&5
15259$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15260which seems to be undefined. Please make sure it is defined." >&2;}
15261
15262 rm -f "$tmp/stdin"
15263 case $ac_file in
15264 -) cat "$tmp/out" && rm -f "$tmp/out";;
15265 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15266 esac \
15267 || as_fn_error "could not create $ac_file" "$LINENO" 5
15268 ;;
11a67599 15269
11a67599 15270
79c06341 15271
5213506e
RW
15272 esac
15273
3e54529c
RW
15274
15275 case $ac_file$ac_mode in
15276 "Makefile":F) sed "$extrasub_build" Makefile |
15277 sed "$extrasub_host" |
15278 sed "$extrasub_target" > mf$$
15279 mv -f mf$$ Makefile ;;
15280
15281 esac
5213506e
RW
15282done # for ac_tag
15283
15284
15285as_fn_exit 0
1c710c3c 15286_ACEOF
1c710c3c
DJ
15287ac_clean_files=$ac_clean_files_save
15288
5213506e
RW
15289test $ac_write_fail = 0 ||
15290 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15291
1c710c3c
DJ
15292
15293# configure is writing to config.log, and then calls config.status.
15294# config.status does its own redirection, appending to config.log.
15295# Unfortunately, on DOS this fails, as config.log is still kept open
15296# by configure, so config.status won't be able to write to it; its
15297# output is simply discarded. So we exec the FD to /dev/null,
15298# effectively closing config.log, so it can be properly (re)opened and
15299# appended to by config.status. When coming back to configure, we
15300# need to make the FD available again.
15301if test "$no_create" != yes; then
15302 ac_cs_success=:
15303 ac_config_status_args=
15304 test "$silent" = yes &&
15305 ac_config_status_args="$ac_config_status_args --quiet"
15306 exec 5>/dev/null
15307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15308 exec 5>>config.log
15309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15310 # would make configure fail if this is the last instruction.
5213506e
RW
15311 $ac_cs_success || as_fn_exit $?
15312fi
15313if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15315$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15316fi
79c06341 15317