]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR bootstrap/54820 (ada: cannot find -lstdc++ since 4.8.0 20121002)
[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
e7a82751 573READELF_FOR_TARGET
5213506e
RW
574RANLIB_FOR_TARGET
575OBJDUMP_FOR_TARGET
576NM_FOR_TARGET
577LIPO_FOR_TARGET
578LD_FOR_TARGET
579DLLTOOL_FOR_TARGET
580AS_FOR_TARGET
581AR_FOR_TARGET
632e2a07 582GOC_FOR_TARGET
5213506e
RW
583GFORTRAN_FOR_TARGET
584GCJ_FOR_TARGET
585GCC_FOR_TARGET
586CXX_FOR_TARGET
587CC_FOR_TARGET
e7a82751 588READELF
5213506e
RW
589OBJDUMP
590OBJCOPY
591WINDMC
592WINDRES
593STRIP
594RANLIB
595NM
596LIPO
597LD
598DLLTOOL
599AS
600AR
601RUNTEST
602EXPECT
603MAKEINFO
604FLEX
605LEX
606M4
607BISON
608YACC
5213506e
RW
609WINDRES_FOR_BUILD
610WINDMC_FOR_BUILD
611RANLIB_FOR_BUILD
612NM_FOR_BUILD
613LD_FOR_BUILD
614LDFLAGS_FOR_BUILD
632e2a07 615GOC_FOR_BUILD
5213506e
RW
616GFORTRAN_FOR_BUILD
617GCJ_FOR_BUILD
618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
aae29963 625target_configdirs
5213506e 626configdirs
5213506e 627build_configdirs
5213506e
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
ffedf511
RW
635target_configargs
636host_configargs
637build_configargs
e12c4094 638BUILD_CONFIG
6f57bdf6 639LDFLAGS_FOR_TARGET
5213506e
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
644stage1_languages
d7f09764 645extra_host_libiberty_configure_flags
5213506e
RW
646clooginc
647clooglibs
33ad93b9 648islinc
5213506e 649poststage1_ldflags
ed2eaa9f 650poststage1_libs
5213506e 651stage1_ldflags
0b21f5d3 652stage1_libs
0ff2d841 653extra_isl_gmp_configure_flags
5213506e
RW
654extra_mpc_mpfr_configure_flags
655extra_mpc_gmp_configure_flags
656extra_mpfr_configure_flags
657gmpinc
658gmplibs
659do_compare
660GNATMAKE
661GNATBIND
662ac_ct_CXX
663CXXFLAGS
664CXX
665OBJEXT
666EXEEXT
667ac_ct_CC
668CPPFLAGS
669LDFLAGS
670CFLAGS
671CC
a4a2c37d 672EXTRA_CONFIGARGS_LIBJAVA
5213506e
RW
673target_subdir
674host_subdir
675build_subdir
676build_libsubdir
87264276
PB
677AWK
678SED
5213506e
RW
679LN_S
680LN
681INSTALL_DATA
682INSTALL_SCRIPT
683INSTALL_PROGRAM
684target_os
685target_vendor
686target_cpu
687target
688host_os
689host_vendor
690host_cpu
691host
692target_noncanonical
693host_noncanonical
694build_noncanonical
695build_os
696build_vendor
697build_cpu
698build
699TOPLEVEL_CONFIGURE_ARGUMENTS
700target_alias
701host_alias
702build_alias
703LIBS
704ECHO_T
705ECHO_N
706ECHO_C
707DEFS
708mandir
709localedir
710libdir
711psdir
712pdfdir
713dvidir
714htmldir
715infodir
716docdir
717oldincludedir
718includedir
719localstatedir
720sharedstatedir
721sysconfdir
722datadir
723datarootdir
724libexecdir
725sbindir
726bindir
727program_transform_name
728prefix
729exec_prefix
730PACKAGE_URL
731PACKAGE_BUGREPORT
732PACKAGE_STRING
733PACKAGE_VERSION
734PACKAGE_TARNAME
735PACKAGE_NAME
736PATH_SEPARATOR
737SHELL'
738ac_subst_files='serialization_dependencies
739host_makefile_frag
740target_makefile_frag
741alphaieee_frag
742ospace_frag'
743ac_user_opts='
744enable_option_checking
745with_build_libsubdir
746enable_gold
21539e2e 747enable_ld
87e6d9dc
TB
748enable_libquadmath
749enable_libquadmath_support
5213506e
RW
750enable_libada
751enable_libssp
a4a2c37d 752enable_static_libjava
ff3ac0f4 753enable_bootstrap
5213506e
RW
754with_mpc
755with_mpc_include
756with_mpc_lib
757with_mpfr_dir
758with_mpfr
759with_mpfr_include
760with_mpfr_lib
761with_gmp_dir
762with_gmp
763with_gmp_include
764with_gmp_lib
765with_host_libstdcxx
5213506e 766with_stage1_libs
0b21f5d3 767with_stage1_ldflags
5213506e 768with_boot_libs
ed2eaa9f 769with_boot_ldflags
625afa23 770with_cloog
33ad93b9
RG
771with_isl
772with_isl_include
773with_isl_lib
774enable_isl_version_check
5213506e
RW
775with_cloog_include
776with_cloog_lib
777enable_cloog_version_check
d7f09764 778enable_lto
5213506e
RW
779enable_stage1_languages
780enable_objc_gc
781with_build_sysroot
782with_debug_prefix_map
5646b7b9 783with_build_config
5213506e
RW
784enable_serial_configure
785with_build_time_tools
786enable_maintainer_mode
787enable_stage1_checking
788enable_werror
5213506e
RW
789'
790 ac_precious_vars='build_alias
791host_alias
792target_alias
793CC
794CFLAGS
795LDFLAGS
796LIBS
797CPPFLAGS
798CXX
799CXXFLAGS
800CCC
ffedf511
RW
801build_configargs
802host_configargs
803target_configargs
5213506e
RW
804AR
805AS
806DLLTOOL
807LD
808LIPO
809NM
810RANLIB
811STRIP
812WINDRES
813WINDMC
814OBJCOPY
815OBJDUMP
e7a82751 816READELF
5213506e
RW
817CC_FOR_TARGET
818CXX_FOR_TARGET
819GCC_FOR_TARGET
820GCJ_FOR_TARGET
821GFORTRAN_FOR_TARGET
632e2a07 822GOC_FOR_TARGET
5213506e
RW
823AR_FOR_TARGET
824AS_FOR_TARGET
825DLLTOOL_FOR_TARGET
826LD_FOR_TARGET
827LIPO_FOR_TARGET
828NM_FOR_TARGET
829OBJDUMP_FOR_TARGET
830RANLIB_FOR_TARGET
e7a82751 831READELF_FOR_TARGET
5213506e
RW
832STRIP_FOR_TARGET
833WINDRES_FOR_TARGET
834WINDMC_FOR_TARGET'
835
671aa708
NN
836
837# Initialize some variables set by options.
1c710c3c
DJ
838ac_init_help=
839ac_init_version=false
5213506e
RW
840ac_unrecognized_opts=
841ac_unrecognized_sep=
671aa708
NN
842# The variables have the same names as the options, with
843# dashes changed to underlines.
1c710c3c 844cache_file=/dev/null
671aa708 845exec_prefix=NONE
671aa708 846no_create=
671aa708
NN
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
671aa708
NN
855verbose=
856x_includes=NONE
857x_libraries=NONE
1c710c3c
DJ
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 864# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
5213506e
RW
868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
671aa708
NN
870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
671aa708
NN
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
5213506e
RW
875docdir='${datarootdir}/doc/${PACKAGE}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
79c06341 884
671aa708 885ac_prev=
5213506e 886ac_dashdash=
671aa708
NN
887for ac_option
888do
671aa708
NN
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
5213506e 891 eval $ac_prev=\$ac_option
671aa708
NN
892 ac_prev=
893 continue
894 fi
79c06341 895
5213506e
RW
896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
671aa708
NN
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
5213506e
RW
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
671aa708
NN
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 910 bindir=$ac_optarg ;;
671aa708
NN
911
912 -build | --build | --buil | --bui | --bu)
1c710c3c 913 ac_prev=build_alias ;;
671aa708 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 915 build_alias=$ac_optarg ;;
671aa708
NN
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
671aa708 926
5213506e 927 -datadir | --datadir | --datadi | --datad)
671aa708 928 ac_prev=datadir ;;
5213506e 929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 930 datadir=$ac_optarg ;;
671aa708 931
5213506e
RW
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
671aa708 939 -disable-* | --disable-*)
5213506e 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 941 # Reject names that are not valid shell variable names.
5213506e
RW
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
671aa708
NN
964
965 -enable-* | --enable-*)
5213506e 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 967 # Reject names that are not valid shell variable names.
5213506e
RW
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
2aeb72e9 978 esac
5213506e 979 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
1c710c3c 988 exec_prefix=$ac_optarg ;;
671aa708
NN
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
1c710c3c
DJ
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
671aa708
NN
1000
1001 -host | --host | --hos | --ho)
1c710c3c 1002 ac_prev=host_alias ;;
671aa708 1003 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1004 host_alias=$ac_optarg ;;
671aa708 1005
5213506e
RW
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
671aa708
NN
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1017 includedir=$ac_optarg ;;
671aa708
NN
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1022 infodir=$ac_optarg ;;
671aa708
NN
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1027 libdir=$ac_optarg ;;
671aa708
NN
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1034 libexecdir=$ac_optarg ;;
671aa708 1035
5213506e
RW
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
671aa708 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1042 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1046 localstatedir=$ac_optarg ;;
671aa708
NN
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1051 mandir=$ac_optarg ;;
671aa708
NN
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1058 | --no-cr | --no-c | -n)
671aa708
NN
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1072 oldincludedir=$ac_optarg ;;
671aa708
NN
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1077 prefix=$ac_optarg ;;
671aa708
NN
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1084 program_prefix=$ac_optarg ;;
671aa708
NN
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1091 program_suffix=$ac_optarg ;;
671aa708
NN
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1108 program_transform_name=$ac_optarg ;;
671aa708 1109
5213506e
RW
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
671aa708
NN
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1c710c3c 1128 sbindir=$ac_optarg ;;
671aa708
NN
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1c710c3c 1139 sharedstatedir=$ac_optarg ;;
671aa708
NN
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1c710c3c 1144 site=$ac_optarg ;;
671aa708
NN
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1149 srcdir=$ac_optarg ;;
671aa708
NN
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1156 sysconfdir=$ac_optarg ;;
671aa708
NN
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1159 ac_prev=target_alias ;;
671aa708 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1161 target_alias=$ac_optarg ;;
671aa708
NN
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1c710c3c
DJ
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
671aa708
NN
1168
1169 -with-* | --with-*)
5213506e 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1171 # Reject names that are not valid shell variable names.
5213506e
RW
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
2aeb72e9 1182 esac
5213506e 1183 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1184
1185 -without-* | --without-*)
5213506e 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1187 # Reject names that are not valid shell variable names.
5213506e
RW
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
671aa708
NN
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1210 x_includes=$ac_optarg ;;
671aa708
NN
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1217 x_libraries=$ac_optarg ;;
671aa708 1218
5213506e
RW
1219 -*) as_fn_error "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information."
671aa708
NN
1221 ;;
1222
1c710c3c
DJ
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
5213506e
RW
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1231 export $ac_envvar ;;
1232
671aa708 1233 *)
1c710c3c 1234 # FIXME: should be removed in autoconf 3.0.
5213506e 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1239 ;;
1240
1241 esac
1242done
1243
1244if test -n "$ac_prev"; then
1c710c3c 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1246 as_fn_error "missing argument to $ac_option"
af71363e 1247fi
af71363e 1248
5213506e
RW
1249if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1254 esac
5213506e 1255fi
2aeb72e9 1256
5213506e
RW
1257# Check all directory arguments for consistency.
1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
2aeb72e9 1262do
5213506e
RW
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
2aeb72e9 1271 case $ac_val in
5213506e
RW
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1274 esac
5213506e 1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1276done
1277
1c710c3c
DJ
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
0b0dc272 1284
1c710c3c
DJ
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
5213506e 1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294fi
1295
1296ac_tool_prefix=
1297test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299test "$silent" = yes && exec 6>/dev/null
671aa708 1300
671aa708 1301
5213506e
RW
1302ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303ac_ls_di=`ls -di .` &&
1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined"
1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory"
1308
1309
671aa708
NN
1310# Find the source files, if location was not specified.
1311if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
5213506e
RW
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319$as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
671aa708 1337 srcdir=$ac_confdir
5213506e 1338 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1339 srcdir=..
1340 fi
1341else
1342 ac_srcdir_defaulted=no
1343fi
5213506e
RW
1344if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347fi
1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 pwd)`
1352# When building in place, set srcdir=.
1353if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355fi
1356# Remove unnecessary trailing slashes from srcdir.
1357# Double slashes in file names in object file debugging info
1358# mess up M-x gdb in Emacs.
1359case $srcdir in
1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361esac
87841584
AM
1362case $srcdir in
1363 *" "*)
1364 as_fn_error "path to source, $srcdir, contains spaces"
1365 ;;
1366esac
ac9e6043
RW
1367ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1368
5213506e
RW
1369for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374done
1c710c3c
DJ
1375
1376#
1377# Report the --help message.
1378#
1379if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383\`configure' configures this package to adapt to many kinds of systems.
1384
1385Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390Defaults for the options are specified in brackets.
1391
1392Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1c710c3c
DJ
1403Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1405 [$ac_default_prefix]
1c710c3c 1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1407 [PREFIX]
1c710c3c
DJ
1408
1409By default, \`make install' will install all the files in
1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412for instance \`--prefix=\$HOME'.
1413
1414For better control, use the options below.
1415
1416Fine tuning of the installation directories:
5213506e
RW
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1436_ACEOF
1437
1438 cat <<\_ACEOF
1439
1440Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 --target=TARGET configure for building compilers for TARGET [HOST]
1449_ACEOF
1450fi
1451
1452if test -n "$ac_init_help"; then
1453
1454 cat <<\_ACEOF
1455
1456Optional Features:
5213506e 1457 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1460 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1461 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1462 --disable-libquadmath do not build libquadmath directory
1463 --disable-libquadmath-support
1464 disable libquadmath support for Fortran
30b74385
RW
1465 --enable-libada build libada directory
1466 --enable-libssp build libssp directory
a4a2c37d
MK
1467 --enable-static-libjava[=ARG]
1468 build static libjava [default=no]
ff3ac0f4 1469 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9
RG
1470 --disable-isl-version-check
1471 disable check for ISL version
d32ef397
AS
1472 --disable-cloog-version-check
1473 disable check for CLooG version
d7f09764 1474 --enable-lto enable link time optimization support
33e39b66
AS
1475 --enable-stage1-languages[=all]
1476 choose additional languages to build during stage1.
1477 Mostly useful for compiler development
1478 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1479 Objective-C runtime
30b74385 1480 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1481 force sequential configuration of sub-packages for
1482 the host, target or build machine, or all
1483 sub-packages
1484 --enable-maintainer-mode
1485 enable make rules and dependencies not useful (and
1486 sometimes confusing) to the casual installer
1487 --enable-stage1-checking[=all]
1488 choose additional checking for stage1 of the
1489 compiler
1c710c3c
DJ
1490 --enable-werror enable -Werror in bootstrap stage2 and later
1491
1492Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1496 --with-mpc=PATH specify prefix directory for installed MPC package.
1497 Equivalent to --with-mpc-include=PATH/include plus
1498 --with-mpc-lib=PATH/lib
1499 --with-mpc-include=PATH specify directory for installed MPC include files
1500 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1501 --with-mpfr-dir=PATH this option has been REMOVED
1502 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1503 Equivalent to --with-mpfr-include=PATH/include plus
1504 --with-mpfr-lib=PATH/lib
1c710c3c 1505 --with-mpfr-include=PATH
30b74385
RW
1506 specify directory for installed MPFR include files
1507 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1508 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1509 --with-gmp=PATH specify prefix directory for the installed GMP
1510 package. Equivalent to
1511 --with-gmp-include=PATH/include plus
1512 --with-gmp-lib=PATH/lib
30b74385
RW
1513 --with-gmp-include=PATH specify directory for installed GMP include files
1514 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1515 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1516 linking with PPL
0b21f5d3 1517 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1518 --with-stage1-ldflags=FLAGS
1519 linker flags for stage1
33e39b66
AS
1520 --with-boot-libs=LIBS libraries for stage2 and later
1521 --with-boot-ldflags=FLAGS
1522 linker flags for stage2 and later
625afa23
RG
1523 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1524 package. Equivalent to
1525 --with-cloog-include=PATH/include plus
1526 --with-cloog-lib=PATH/lib
33ad93b9 1527 --with-isl=PATH Specify prefix directory for the installed ISL
33e39b66 1528 package. Equivalent to
33ad93b9
RG
1529 --with-isl-include=PATH/include plus
1530 --with-isl-lib=PATH/lib
1531 --with-isl-include=PATH Specify directory for installed ISL include files
1532 --with-isl-lib=PATH Specify the directory for the installed ISL library
d32ef397
AS
1533 --with-cloog-include=PATH
1534 Specify directory for installed CLooG include files
1535 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1536 library
30b74385 1537 --with-build-sysroot=SYSROOT
1c710c3c 1538 use sysroot as the system root during the build
c8aea42c 1539 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1540 map A to B, C to D ... in debug information
1541 --with-build-config='NAME NAME2...'
1542 use config/NAME.mk build configuration
30b74385 1543 --with-build-time-tools=PATH
1c710c3c 1544 use given path to find target tools during the build
1c710c3c
DJ
1545
1546Some influential environment variables:
1547 CC C compiler command
1548 CFLAGS C compiler flags
1549 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1550 nonstandard directory <lib dir>
5213506e
RW
1551 LIBS libraries to pass to the linker, e.g. -l<library>
1552 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1553 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1554 CXX C++ compiler command
1555 CXXFLAGS C++ compiler flags
ffedf511
RW
1556 build_configargs
1557 additional configure arguments for build directories
1558 host_configargs
1559 additional configure arguments for host directories
1560 target_configargs
1561 additional configure arguments for target directories
278a7a38
AO
1562 AR AR for the host
1563 AS AS for the host
1564 DLLTOOL DLLTOOL for the host
1565 LD LD for the host
1566 LIPO LIPO for the host
1567 NM NM for the host
1568 RANLIB RANLIB for the host
1569 STRIP STRIP for the host
1570 WINDRES WINDRES for the host
901119ae 1571 WINDMC WINDMC for the host
278a7a38
AO
1572 OBJCOPY OBJCOPY for the host
1573 OBJDUMP OBJDUMP for the host
e7a82751 1574 READELF READELF for the host
278a7a38
AO
1575 CC_FOR_TARGET
1576 CC for the target
1577 CXX_FOR_TARGET
1578 CXX for the target
1579 GCC_FOR_TARGET
1580 GCC for the target
1581 GCJ_FOR_TARGET
1582 GCJ for the target
1583 GFORTRAN_FOR_TARGET
1584 GFORTRAN for the target
632e2a07
ILT
1585 GOC_FOR_TARGET
1586 GOC for the target
278a7a38
AO
1587 AR_FOR_TARGET
1588 AR for the target
1589 AS_FOR_TARGET
1590 AS for the target
1591 DLLTOOL_FOR_TARGET
1592 DLLTOOL for the target
1593 LD_FOR_TARGET
1594 LD for the target
1595 LIPO_FOR_TARGET
1596 LIPO for the target
1597 NM_FOR_TARGET
1598 NM for the target
1599 OBJDUMP_FOR_TARGET
1600 OBJDUMP for the target
1601 RANLIB_FOR_TARGET
1602 RANLIB for the target
e7a82751
RM
1603 READELF_FOR_TARGET
1604 READELF for the target
278a7a38
AO
1605 STRIP_FOR_TARGET
1606 STRIP for the target
1607 WINDRES_FOR_TARGET
1608 WINDRES for the target
901119ae
KT
1609 WINDMC_FOR_TARGET
1610 WINDMC for the target
1c710c3c
DJ
1611
1612Use these variables to override the choices made by `configure' or to help
1613it to find libraries and programs with nonstandard names/locations.
1614
5213506e 1615Report bugs to the package provider.
1c710c3c 1616_ACEOF
5213506e 1617ac_status=$?
1c710c3c
DJ
1618fi
1619
1620if test "$ac_init_help" = "recursive"; then
1621 # If there are subdirs, report their specific --help.
1c710c3c 1622 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1623 test -d "$ac_dir" ||
1624 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1625 continue
1c710c3c
DJ
1626 ac_builddir=.
1627
5213506e
RW
1628case "$ac_dir" in
1629.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630*)
1631 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1632 # A ".." for each directory in $ac_dir_suffix.
1633 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1634 case $ac_top_builddir_sub in
1635 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1637 esac ;;
1638esac
1639ac_abs_top_builddir=$ac_pwd
1640ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641# for backward compatibility:
1642ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1643
1644case $srcdir in
5213506e 1645 .) # We are building in place.
1c710c3c 1646 ac_srcdir=.
5213506e
RW
1647 ac_top_srcdir=$ac_top_builddir_sub
1648 ac_abs_top_srcdir=$ac_pwd ;;
1649 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1650 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1651 ac_top_srcdir=$srcdir
1652 ac_abs_top_srcdir=$srcdir ;;
1653 *) # Relative name.
1654 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655 ac_top_srcdir=$ac_top_build_prefix$srcdir
1656 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1657esac
5213506e
RW
1658ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1659
1660 cd "$ac_dir" || { ac_status=$?; continue; }
1661 # Check for guested configure.
1662 if test -f "$ac_srcdir/configure.gnu"; then
1663 echo &&
1664 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665 elif test -f "$ac_srcdir/configure"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1668 else
5213506e
RW
1669 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1670 fi || ac_status=$?
1671 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1672 done
1673fi
1674
5213506e 1675test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1676if $ac_init_version; then
1677 cat <<\_ACEOF
5213506e
RW
1678configure
1679generated by GNU Autoconf 2.64
1c710c3c 1680
5213506e 1681Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1682This configure script is free software; the Free Software Foundation
1683gives unlimited permission to copy, distribute and modify it.
1684_ACEOF
5213506e 1685 exit
0b0dc272 1686fi
5213506e
RW
1687
1688## ------------------------ ##
1689## Autoconf initialization. ##
1690## ------------------------ ##
1691
1692# ac_fn_c_try_compile LINENO
1693# --------------------------
1694# Try to compile conftest.$ac_ext, and return whether this succeeded.
1695ac_fn_c_try_compile ()
1696{
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 rm -f conftest.$ac_objext
1699 if { { ac_try="$ac_compile"
1700case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703esac
1704eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705$as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_compile") 2>conftest.err
1707 ac_status=$?
1708 if test -s conftest.err; then
1709 grep -v '^ *+' conftest.err >conftest.er1
1710 cat conftest.er1 >&5
1711 mv -f conftest.er1 conftest.err
1712 fi
1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1714 test $ac_status = 0; } && {
1715 test -z "$ac_c_werror_flag" ||
1716 test ! -s conftest.err
1717 } && test -s conftest.$ac_objext; then :
1718 ac_retval=0
1719else
1720 $as_echo "$as_me: failed program was:" >&5
1721sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1
1724fi
1725 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1726 return $ac_retval
1727
1728} # ac_fn_c_try_compile
1729
1730# ac_fn_cxx_try_compile LINENO
1731# ----------------------------
1732# Try to compile conftest.$ac_ext, and return whether this succeeded.
1733ac_fn_cxx_try_compile ()
1734{
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 rm -f conftest.$ac_objext
1737 if { { ac_try="$ac_compile"
1738case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741esac
1742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743$as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_compile") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && {
1753 test -z "$ac_cxx_werror_flag" ||
1754 test ! -s conftest.err
1755 } && test -s conftest.$ac_objext; then :
1756 ac_retval=0
1757else
1758 $as_echo "$as_me: failed program was:" >&5
1759sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1
1762fi
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1765
1766} # ac_fn_cxx_try_compile
1767
0b21f5d3
EB
1768# ac_fn_cxx_try_link LINENO
1769# -------------------------
1770# Try to link conftest.$ac_ext, and return whether this succeeded.
1771ac_fn_cxx_try_link ()
1772{
1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774 rm -f conftest.$ac_objext conftest$ac_exeext
1775 if { { ac_try="$ac_link"
1776case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779esac
1780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781$as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>conftest.err
1783 ac_status=$?
1784 if test -s conftest.err; then
1785 grep -v '^ *+' conftest.err >conftest.er1
1786 cat conftest.er1 >&5
1787 mv -f conftest.er1 conftest.err
1788 fi
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && {
1791 test -z "$ac_cxx_werror_flag" ||
1792 test ! -s conftest.err
1793 } && test -s conftest$ac_exeext && {
1794 test "$cross_compiling" = yes ||
1795 $as_test_x conftest$ac_exeext
1796 }; then :
1797 ac_retval=0
1798else
1799 $as_echo "$as_me: failed program was:" >&5
1800sed 's/^/| /' conftest.$ac_ext >&5
1801
1802 ac_retval=1
1803fi
1804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1806 # interfere with the next link command; also delete a directory that is
1807 # left behind by Apple's compiler. We do this before executing the actions.
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1810 return $ac_retval
1811
1812} # ac_fn_cxx_try_link
1813
5213506e
RW
1814# ac_fn_c_try_link LINENO
1815# -----------------------
1816# Try to link conftest.$ac_ext, and return whether this succeeded.
1817ac_fn_c_try_link ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 rm -f conftest.$ac_objext conftest$ac_exeext
1821 if { { ac_try="$ac_link"
1822case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825esac
1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827$as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>conftest.err
1829 ac_status=$?
1830 if test -s conftest.err; then
1831 grep -v '^ *+' conftest.err >conftest.er1
1832 cat conftest.er1 >&5
1833 mv -f conftest.er1 conftest.err
1834 fi
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && {
1837 test -z "$ac_c_werror_flag" ||
1838 test ! -s conftest.err
1839 } && test -s conftest$ac_exeext && {
1840 test "$cross_compiling" = yes ||
1841 $as_test_x conftest$ac_exeext
1842 }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1
1849fi
1850 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1851 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1852 # interfere with the next link command; also delete a directory that is
1853 # left behind by Apple's compiler. We do this before executing the actions.
1854 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 return $ac_retval
1857
1858} # ac_fn_c_try_link
33ad93b9
RG
1859
1860# ac_fn_c_try_run LINENO
1861# ----------------------
1862# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1863# that executables *can* be run.
1864ac_fn_c_try_run ()
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 if { { ac_try="$ac_link"
1868case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871esac
1872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873$as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>&5
1875 ac_status=$?
1876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1877 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1878 { { case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_try") 2>&5
1885 ac_status=$?
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; }; }; then :
1888 ac_retval=0
1889else
1890 $as_echo "$as_me: program exited with status $ac_status" >&5
1891 $as_echo "$as_me: failed program was:" >&5
1892sed 's/^/| /' conftest.$ac_ext >&5
1893
1894 ac_retval=$ac_status
1895fi
1896 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1897 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898 return $ac_retval
1899
1900} # ac_fn_c_try_run
5213506e 1901cat >config.log <<_ACEOF
1c710c3c
DJ
1902This file contains any messages produced by compilers while
1903running configure, to aid debugging if configure makes a mistake.
1904
1905It was created by $as_me, which was
5213506e 1906generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1907
1908 $ $0 $@
1909
1910_ACEOF
5213506e 1911exec 5>>config.log
1c710c3c
DJ
1912{
1913cat <<_ASUNAME
1914## --------- ##
1915## Platform. ##
1916## --------- ##
1917
1918hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1919uname -m = `(uname -m) 2>/dev/null || echo unknown`
1920uname -r = `(uname -r) 2>/dev/null || echo unknown`
1921uname -s = `(uname -s) 2>/dev/null || echo unknown`
1922uname -v = `(uname -v) 2>/dev/null || echo unknown`
1923
1924/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1925/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1926
1927/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1928/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1929/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1930/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1931/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1932/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1933/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1934
1935_ASUNAME
1936
1937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1938for as_dir in $PATH
1939do
1940 IFS=$as_save_IFS
1941 test -z "$as_dir" && as_dir=.
5213506e
RW
1942 $as_echo "PATH: $as_dir"
1943 done
1944IFS=$as_save_IFS
1c710c3c
DJ
1945
1946} >&5
1947
1948cat >&5 <<_ACEOF
1949
1950
1951## ----------- ##
1952## Core tests. ##
1953## ----------- ##
1954
1955_ACEOF
1956
1957
1958# Keep a trace of the command line.
1959# Strip out --no-create and --no-recursion so they do not pile up.
1960# Strip out --silent because we don't want to record it for future runs.
1961# Also quote any args containing shell meta-characters.
1962# Make two passes to allow for proper duplicate-argument suppression.
1963ac_configure_args=
1964ac_configure_args0=
1965ac_configure_args1=
1c710c3c
DJ
1966ac_must_keep_next=false
1967for ac_pass in 1 2
1968do
1969 for ac_arg
1970 do
1971 case $ac_arg in
1972 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1973 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1974 | -silent | --silent | --silen | --sile | --sil)
1975 continue ;;
5213506e
RW
1976 *\'*)
1977 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1978 esac
1979 case $ac_pass in
5213506e 1980 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1981 2)
5213506e 1982 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1983 if test $ac_must_keep_next = true; then
1984 ac_must_keep_next=false # Got value, back to normal.
1985 else
1986 case $ac_arg in
1987 *=* | --config-cache | -C | -disable-* | --disable-* \
1988 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1989 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1990 | -with-* | --with-* | -without-* | --without-* | --x)
1991 case "$ac_configure_args0 " in
1992 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1993 esac
1994 ;;
1995 -* ) ac_must_keep_next=true ;;
1996 esac
1997 fi
5213506e 1998 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1999 ;;
2000 esac
2001 done
2002done
5213506e
RW
2003{ ac_configure_args0=; unset ac_configure_args0;}
2004{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
2005
2006# When interrupted or exit'd, cleanup temporary files, and complete
2007# config.log. We remove comments because anyway the quotes in there
2008# would cause problems or look ugly.
5213506e
RW
2009# WARNING: Use '\'' to represent an apostrophe within the trap.
2010# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2011trap 'exit_status=$?
2012 # Save into config.log some information that might help in debugging.
2013 {
2014 echo
2015
2016 cat <<\_ASBOX
2017## ---------------- ##
2018## Cache variables. ##
2019## ---------------- ##
2020_ASBOX
2021 echo
2022 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2023(
2024 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2025 eval ac_val=\$$ac_var
2026 case $ac_val in #(
2027 *${as_nl}*)
2028 case $ac_var in #(
2029 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2030$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2031 esac
2032 case $ac_var in #(
2033 _ | IFS | as_nl) ;; #(
2034 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2035 *) { eval $ac_var=; unset $ac_var;} ;;
2036 esac ;;
2037 esac
2038 done
1c710c3c 2039 (set) 2>&1 |
5213506e
RW
2040 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2041 *${as_nl}ac_space=\ *)
1c710c3c 2042 sed -n \
5213506e
RW
2043 "s/'\''/'\''\\\\'\'''\''/g;
2044 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2045 ;; #(
1c710c3c 2046 *)
5213506e 2047 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2048 ;;
5213506e
RW
2049 esac |
2050 sort
2051)
1c710c3c
DJ
2052 echo
2053
2054 cat <<\_ASBOX
2055## ----------------- ##
2056## Output variables. ##
2057## ----------------- ##
2058_ASBOX
2059 echo
2060 for ac_var in $ac_subst_vars
2061 do
5213506e
RW
2062 eval ac_val=\$$ac_var
2063 case $ac_val in
2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2065 esac
2066 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2067 done | sort
2068 echo
2069
2070 if test -n "$ac_subst_files"; then
2071 cat <<\_ASBOX
5213506e
RW
2072## ------------------- ##
2073## File substitutions. ##
2074## ------------------- ##
1c710c3c
DJ
2075_ASBOX
2076 echo
2077 for ac_var in $ac_subst_files
2078 do
5213506e
RW
2079 eval ac_val=\$$ac_var
2080 case $ac_val in
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2082 esac
2083 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2084 done | sort
2085 echo
2086 fi
2087
2088 if test -s confdefs.h; then
2089 cat <<\_ASBOX
2090## ----------- ##
2091## confdefs.h. ##
2092## ----------- ##
2093_ASBOX
2094 echo
5213506e 2095 cat confdefs.h
1c710c3c
DJ
2096 echo
2097 fi
2098 test "$ac_signal" != 0 &&
5213506e
RW
2099 $as_echo "$as_me: caught signal $ac_signal"
2100 $as_echo "$as_me: exit $exit_status"
1c710c3c 2101 } >&5
5213506e
RW
2102 rm -f core *.core core.conftest.* &&
2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2104 exit $exit_status
5213506e 2105' 0
1c710c3c 2106for ac_signal in 1 2 13 15; do
5213506e 2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2108done
2109ac_signal=0
2110
2111# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2112rm -f -r conftest* confdefs.h
2113
2114$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2115
2116# Predefined preprocessor variables.
2117
2118cat >>confdefs.h <<_ACEOF
2119#define PACKAGE_NAME "$PACKAGE_NAME"
2120_ACEOF
2121
1c710c3c
DJ
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124_ACEOF
2125
1c710c3c
DJ
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_VERSION "$PACKAGE_VERSION"
2128_ACEOF
0b0dc272 2129
1c710c3c
DJ
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_STRING "$PACKAGE_STRING"
2132_ACEOF
2133
1c710c3c
DJ
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136_ACEOF
2137
5213506e
RW
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_URL "$PACKAGE_URL"
2140_ACEOF
2141
1c710c3c
DJ
2142
2143# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2144# Prefer an explicitly selected file to automatically selected ones.
2145ac_site_file1=NONE
2146ac_site_file2=NONE
2147if test -n "$CONFIG_SITE"; then
2148 ac_site_file1=$CONFIG_SITE
2149elif test "x$prefix" != xNONE; then
2150 ac_site_file1=$prefix/share/config.site
2151 ac_site_file2=$prefix/etc/config.site
2152else
2153 ac_site_file1=$ac_default_prefix/share/config.site
2154 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2155fi
5213506e
RW
2156for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2157do
2158 test "x$ac_site_file" = xNONE && continue
671aa708 2159 if test -r "$ac_site_file"; then
5213506e
RW
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2161$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2162 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2163 . "$ac_site_file"
2164 fi
2165done
2166
2167if test -r "$cache_file"; then
1c710c3c
DJ
2168 # Some versions of bash will fail to source /dev/null (special
2169 # files actually), so we avoid doing that.
2170 if test -f "$cache_file"; then
5213506e
RW
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2172$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2173 case $cache_file in
5213506e
RW
2174 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2175 *) . "./$cache_file";;
1c710c3c
DJ
2176 esac
2177 fi
671aa708 2178else
5213506e
RW
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2180$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2181 >$cache_file
2182fi
2183
2184# Check that the precious variables saved in the cache have kept the same
2185# value.
2186ac_cache_corrupted=false
5213506e 2187for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2188 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2189 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2190 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2191 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2192 case $ac_old_set,$ac_new_set in
2193 set,)
5213506e
RW
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2195$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2196 ac_cache_corrupted=: ;;
2197 ,set)
5213506e
RW
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2199$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2200 ac_cache_corrupted=: ;;
2201 ,);;
2202 *)
2203 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2204 # differences in whitespace do not lead to failure.
2205 ac_old_val_w=`echo x $ac_old_val`
2206 ac_new_val_w=`echo x $ac_new_val`
2207 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2209$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2210 ac_cache_corrupted=:
2211 else
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2213$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2214 eval $ac_var=\$ac_old_val
2215 fi
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2217$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2219$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2220 fi;;
2221 esac
2222 # Pass precious variables to config.status.
2223 if test "$ac_new_set" = set; then
2224 case $ac_new_val in
5213506e 2225 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2226 *) ac_arg=$ac_var=$ac_new_val ;;
2227 esac
2228 case " $ac_configure_args " in
2229 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2230 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2231 esac
2232 fi
2233done
2234if $ac_cache_corrupted; then
5213506e
RW
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2238$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2239 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2240fi
5213506e
RW
2241## -------------------- ##
2242## Main body of script. ##
2243## -------------------- ##
671aa708 2244
2aeb72e9
DD
2245ac_ext=c
2246ac_cpp='$CPP $CPPFLAGS'
2247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2249ac_compiler_gnu=$ac_cv_c_compiler_gnu
2250
1c710c3c
DJ
2251
2252
2253
1c710c3c
DJ
2254
2255
0115d4a3 2256
1c710c3c 2257
ad33ff57
RW
2258
2259progname=$0
2260# if PWD already has a value, it is probably wrong.
2261if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2262
2263# Export original configure arguments for use by sub-configures.
2264# Quote arguments with shell meta charatcers.
2265TOPLEVEL_CONFIGURE_ARGUMENTS=
2266set -- "$progname" "$@"
2267for ac_arg
2268do
2269 case "$ac_arg" in
2270 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2272 # if the argument is of the form -foo=baz, quote the baz part only
2273 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2274 *) ;;
2275 esac
2276 # Add the quoted argument to the list.
2277 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2278done
2279if test "$silent" = yes; then
2280 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2281fi
2282# Remove the initial space we just introduced and, as these will be
2283# expanded by make, quote '$'.
2284TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2285
1c710c3c
DJ
2286
2287# Find the build, host, and target systems.
671aa708 2288ac_aux_dir=
5213506e
RW
2289for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2290 for ac_t in install-sh install.sh shtool; do
2291 if test -f "$ac_dir/$ac_t"; then
2292 ac_aux_dir=$ac_dir
2293 ac_install_sh="$ac_aux_dir/$ac_t -c"
2294 break 2
2295 fi
2296 done
671aa708
NN
2297done
2298if test -z "$ac_aux_dir"; then
5213506e 2299 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2300fi
5213506e
RW
2301
2302# These three variables are undocumented and unsupported,
2303# and are intended to be withdrawn in a future Autoconf release.
2304# They can cause serious problems if a builder's source tree is in a directory
2305# whose full name contains unusual characters.
2306ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2307ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2308ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2309
671aa708 2310
1c710c3c 2311# Make sure we can run config.sub.
5213506e
RW
2312$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2313 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2314
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2316$as_echo_n "checking build system type... " >&6; }
2317if test "${ac_cv_build+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
2319else
2320 ac_build_alias=$build_alias
2321test "x$ac_build_alias" = x &&
2322 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2323test "x$ac_build_alias" = x &&
2324 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2325ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2326 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2327
2328fi
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2330$as_echo "$ac_cv_build" >&6; }
2331case $ac_cv_build in
2332*-*-*) ;;
2333*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2334esac
1c710c3c 2335build=$ac_cv_build
5213506e
RW
2336ac_save_IFS=$IFS; IFS='-'
2337set x $ac_cv_build
2338shift
2339build_cpu=$1
2340build_vendor=$2
2341shift; shift
2342# Remember, the first character of IFS is used to create $*,
2343# except with old shells:
2344build_os=$*
2345IFS=$ac_save_IFS
2346case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2347
671aa708 2348
1c710c3c
DJ
2349 case ${build_alias} in
2350 "") build_noncanonical=${build} ;;
2351 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2352esac
2353
2354
af71363e 2355
1c710c3c
DJ
2356 case ${host_alias} in
2357 "") host_noncanonical=${build_noncanonical} ;;
2358 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2359esac
2360
af71363e 2361
1c710c3c
DJ
2362
2363 case ${target_alias} in
2364 "") target_noncanonical=${host_noncanonical} ;;
2365 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2366esac
2367
af71363e 2368
1c710c3c
DJ
2369
2370
2371test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2372 test "$program_prefix$program_suffix$program_transform_name" = \
2373 NONENONEs,x,x, &&
1c710c3c 2374 program_transform_name=s,y,y,
af71363e 2375
5213506e
RW
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2377$as_echo_n "checking host system type... " >&6; }
2378if test "${ac_cv_host+set}" = set; then :
2379 $as_echo_n "(cached) " >&6
af71363e 2380else
5213506e
RW
2381 if test "x$host_alias" = x; then
2382 ac_cv_host=$ac_cv_build
2383else
2384 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2385 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2386fi
1c710c3c 2387
af71363e 2388fi
5213506e
RW
2389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2390$as_echo "$ac_cv_host" >&6; }
2391case $ac_cv_host in
2392*-*-*) ;;
2393*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2394esac
1c710c3c 2395host=$ac_cv_host
5213506e
RW
2396ac_save_IFS=$IFS; IFS='-'
2397set x $ac_cv_host
2398shift
2399host_cpu=$1
2400host_vendor=$2
2401shift; shift
2402# Remember, the first character of IFS is used to create $*,
2403# except with old shells:
2404host_os=$*
2405IFS=$ac_save_IFS
2406case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2407
2408
5213506e
RW
2409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2410$as_echo_n "checking target system type... " >&6; }
2411if test "${ac_cv_target+set}" = set; then :
2412 $as_echo_n "(cached) " >&6
1c710c3c 2413else
5213506e
RW
2414 if test "x$target_alias" = x; then
2415 ac_cv_target=$ac_cv_host
2416else
2417 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2418 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2419fi
1c710c3c
DJ
2420
2421fi
5213506e
RW
2422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2423$as_echo "$ac_cv_target" >&6; }
2424case $ac_cv_target in
2425*-*-*) ;;
2426*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2427esac
1c710c3c 2428target=$ac_cv_target
5213506e
RW
2429ac_save_IFS=$IFS; IFS='-'
2430set x $ac_cv_target
2431shift
2432target_cpu=$1
2433target_vendor=$2
2434shift; shift
2435# Remember, the first character of IFS is used to create $*,
2436# except with old shells:
2437target_os=$*
2438IFS=$ac_save_IFS
2439case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2440
2441
2442# The aliases save the names the user supplied, while $host etc.
2443# will get canonicalized.
2444test -n "$target_alias" &&
2445 test "$program_prefix$program_suffix$program_transform_name" = \
2446 NONENONEs,x,x, &&
2447 program_prefix=${target_alias}-
5213506e 2448
671aa708 2449test "$program_prefix" != NONE &&
5213506e 2450 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2451# Use a double $ so make ignores it.
2452test "$program_suffix" != NONE &&
5213506e
RW
2453 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2454# Double any \ or $.
1c710c3c 2455# By default was `s,x,x', remove it if useless.
5213506e
RW
2456ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2457program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2458
671aa708
NN
2459
2460
775956d0
NN
2461# Get 'install' or 'install-sh' and its variants.
2462# Find a good install program. We prefer a C program (faster),
2463# so one script is as good as another. But avoid the broken or
2464# incompatible versions:
2465# SysV /etc/install, /usr/sbin/install
2466# SunOS /usr/etc/install
2467# IRIX /sbin/install
2468# AIX /bin/install
1c710c3c 2469# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2470# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2471# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2472# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2473# OS/2's system install, which has a completely different semantic
775956d0 2474# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2475# Reject install programs that cannot install multiple files.
5213506e
RW
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2477$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2478if test -z "$INSTALL"; then
5213506e
RW
2479if test "${ac_cv_path_install+set}" = set; then :
2480 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2481else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483for as_dir in $PATH
2484do
2485 IFS=$as_save_IFS
2486 test -z "$as_dir" && as_dir=.
5213506e
RW
2487 # Account for people who put trailing slashes in PATH elements.
2488case $as_dir/ in #((
2489 ./ | .// | /[cC]/* | \
1c710c3c 2490 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2491 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2492 /usr/ucb/* ) ;;
2493 *)
2494 # OSF1 and SCO ODT 3.0 have their own names for install.
2495 # Don't use installbsd from OSF since it installs stuff as root
2496 # by default.
2497 for ac_prog in ginstall scoinst install; do
2498 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2499 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2500 if test $ac_prog = install &&
1c710c3c 2501 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2502 # AIX install. It has an incompatible calling convention.
2503 :
1c710c3c
DJ
2504 elif test $ac_prog = install &&
2505 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2506 # program-specific install script used by HP pwplus--don't use.
2507 :
775956d0 2508 else
38d24731
RW
2509 rm -rf conftest.one conftest.two conftest.dir
2510 echo one > conftest.one
2511 echo two > conftest.two
2512 mkdir conftest.dir
2513 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2514 test -s conftest.one && test -s conftest.two &&
2515 test -s conftest.dir/conftest.one &&
2516 test -s conftest.dir/conftest.two
2517 then
2518 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2519 break 3
2520 fi
775956d0
NN
2521 fi
2522 fi
2523 done
1c710c3c
DJ
2524 done
2525 ;;
2526esac
5213506e
RW
2527
2528 done
2529IFS=$as_save_IFS
1c710c3c 2530
38d24731 2531rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2532
2533fi
2534 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2535 INSTALL=$ac_cv_path_install
775956d0 2536 else
38d24731
RW
2537 # As a last resort, use the slow shell script. Don't cache a
2538 # value for INSTALL within a source directory, because that will
775956d0 2539 # break other packages using the cache if that directory is
38d24731 2540 # removed, or if the value is a relative name.
1c710c3c 2541 INSTALL=$ac_install_sh
775956d0
NN
2542 fi
2543fi
5213506e
RW
2544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2545$as_echo "$INSTALL" >&6; }
775956d0
NN
2546
2547# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2548# It thinks the first close brace ends the variable substitution.
2549test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2550
1c710c3c 2551test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2552
2553test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2554
5213506e
RW
2555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2556$as_echo_n "checking whether ln works... " >&6; }
2557if test "${acx_cv_prog_LN+set}" = set; then :
2558 $as_echo_n "(cached) " >&6
ad6717df
PB
2559else
2560 rm -f conftestdata_t
2561echo >conftestdata_f
2562if ln conftestdata_f conftestdata_t 2>/dev/null
2563then
2564 acx_cv_prog_LN=ln
2565else
2566 acx_cv_prog_LN=no
2567fi
2568rm -f conftestdata_f conftestdata_t
2569
2570fi
2571if test $acx_cv_prog_LN = no; then
2572 LN="cp"
5213506e
RW
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2574$as_echo "no, using $LN" >&6; }
ad6717df
PB
2575else
2576 LN="$acx_cv_prog_LN"
5213506e
RW
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2578$as_echo "yes" >&6; }
ad6717df
PB
2579fi
2580
5213506e
RW
2581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2582$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2583LN_S=$as_ln_s
2584if test "$LN_S" = "ln -s"; then
5213506e
RW
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2586$as_echo "yes" >&6; }
fb0103e5 2587else
5213506e
RW
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2589$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2590fi
2591
87264276
PB
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2593$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2594if test "${ac_cv_path_SED+set}" = set; then :
2595 $as_echo_n "(cached) " >&6
2596else
2597 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2598 for ac_i in 1 2 3 4 5 6 7; do
2599 ac_script="$ac_script$as_nl$ac_script"
2600 done
2601 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2602 { ac_script=; unset ac_script;}
2603 if test -z "$SED"; then
2604 ac_path_SED_found=false
2605 # Loop through the user's path and test for each of PROGNAME-LIST
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607for as_dir in $PATH
2608do
2609 IFS=$as_save_IFS
2610 test -z "$as_dir" && as_dir=.
2611 for ac_prog in sed gsed; do
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2614 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2615# Check for GNU ac_path_SED and select it if it is found.
2616 # Check for GNU $ac_path_SED
2617case `"$ac_path_SED" --version 2>&1` in
2618*GNU*)
2619 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2620*)
2621 ac_count=0
2622 $as_echo_n 0123456789 >"conftest.in"
2623 while :
2624 do
2625 cat "conftest.in" "conftest.in" >"conftest.tmp"
2626 mv "conftest.tmp" "conftest.in"
2627 cp "conftest.in" "conftest.nl"
2628 $as_echo '' >> "conftest.nl"
2629 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2631 as_fn_arith $ac_count + 1 && ac_count=$as_val
2632 if test $ac_count -gt ${ac_path_SED_max-0}; then
2633 # Best one so far, save it but keep looking for a better one
2634 ac_cv_path_SED="$ac_path_SED"
2635 ac_path_SED_max=$ac_count
2636 fi
2637 # 10*(2^10) chars as input seems more than enough
2638 test $ac_count -gt 10 && break
2639 done
2640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2641esac
2642
2643 $ac_path_SED_found && break 3
2644 done
2645 done
2646 done
2647IFS=$as_save_IFS
2648 if test -z "$ac_cv_path_SED"; then
2649 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2650 fi
2651else
2652 ac_cv_path_SED=$SED
2653fi
2654
2655fi
2656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2657$as_echo "$ac_cv_path_SED" >&6; }
2658 SED="$ac_cv_path_SED"
2659 rm -f conftest.sed
2660
2661for ac_prog in gawk mawk nawk awk
2662do
2663 # Extract the first word of "$ac_prog", so it can be a program name with args.
2664set dummy $ac_prog; ac_word=$2
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666$as_echo_n "checking for $ac_word... " >&6; }
2667if test "${ac_cv_prog_AWK+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2669else
2670 if test -n "$AWK"; then
2671 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2672else
2673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_AWK="$ac_prog"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 break 2
2683 fi
2684done
2685 done
2686IFS=$as_save_IFS
2687
2688fi
2689fi
2690AWK=$ac_cv_prog_AWK
2691if test -n "$AWK"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2693$as_echo "$AWK" >&6; }
2694else
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696$as_echo "no" >&6; }
2697fi
2698
2699
2700 test -n "$AWK" && break
2701done
2702
775956d0 2703
ee6a22df
L
2704srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2705
2706# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2707# a relative path.
2708if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2709 INSTALL="${srcpwd}/install-sh -c"
2710fi
2711
671aa708
NN
2712# Set srcdir to "." if that's what it is.
2713# This is important for multilib support.
2714pwd=`${PWDCMD-pwd}`
671aa708
NN
2715if test "${pwd}" = "${srcpwd}" ; then
2716 srcdir=.
79c06341
JL
2717fi
2718
671aa708 2719topsrcdir=$srcpwd
5d4a5ee6 2720
671aa708 2721extra_host_args=
afabd8e6 2722
671aa708
NN
2723### To add a new directory to the tree, first choose whether it is a target
2724### or a host dependent tool. Then put it into the appropriate list
2725### (library or tools, host or target), doing a dependency sort.
79c06341 2726
1c710c3c 2727# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2728# configdirs, or target_configdirs; see the serialization section below.
79c06341 2729
1c710c3c
DJ
2730# Dependency sorting is only needed when *configuration* must be done in
2731# a particular order. In all cases a dependency should be specified in
671aa708 2732# the Makefile, whether or not it's implicitly specified here.
79c06341 2733
671aa708
NN
2734# Double entries in build_configdirs, configdirs, or target_configdirs may
2735# cause circular dependencies and break everything horribly.
79c06341 2736
23f6b2f9
PB
2737# these library is used by various programs built for the build
2738# environment
2739#
2740build_libs="build-libiberty"
2741
2742# these tools are built for the build environment
85bfb75e 2743build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2744
671aa708
NN
2745# these libraries are used by various programs built for the host environment
2746#
eff02e4f 2747host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
671aa708 2748
671aa708
NN
2749# these tools are built for the host environment
2750# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2751# know that we are building the simulator.
2752# binutils, gas and ld appear in that order because it makes sense to run
2753# "make check" in that particular order.
38e3d868 2754# If --enable-gold is used, "gold" may replace "ld".
85bfb75e 2755host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
671aa708
NN
2756
2757# libgcj represents the runtime libraries only used by gcj.
2758libgcj="target-libffi \
671aa708 2759 target-zlib \
671aa708
NN
2760 target-libjava"
2761
2762# these libraries are built for the target environment, and are built after
2763# the host libraries and the host tools (which may be a cross compiler)
8499116a 2764# Note that libiberty is not a target library.
291f172e 2765target_libraries="target-libgcc \
eff02e4f 2766 target-libbacktrace \
671aa708
NN
2767 target-libgloss \
2768 target-newlib \
6d3b5aea 2769 target-libgomp \
48310492 2770 target-libatomic \
0a35513e 2771 target-libitm \
cb543528 2772 target-libstdc++-v3 \
6de9cd9a 2773 target-libmudflap \
77008252 2774 target-libssp \
1ec601bf 2775 target-libquadmath \
6de9cd9a 2776 target-libgfortran \
7cd0cf9c 2777 target-boehm-gc \
77d187bc 2778 ${libgcj} \
d9cdb878 2779 target-libobjc \
632e2a07
ILT
2780 target-libada \
2781 target-libgo"
671aa708 2782
4dbda6f0
NN
2783# these tools are built using the target libraries, and are intended to
2784# run only in the target environment
671aa708 2785#
4dbda6f0 2786# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2787# list belongs in this list.
671aa708 2788#
85bfb75e 2789target_tools="target-rda"
79c06341 2790
671aa708 2791################################################################################
79c06341 2792
671aa708
NN
2793## All tools belong in one of the four categories, and are assigned above
2794## We assign ${configdirs} this way to remove all embedded newlines. This
2795## is important because configure will choke if they ever get through.
2796## ${configdirs} is directories we build using the host tools.
2797## ${target_configdirs} is directories we build using the target tools.
671aa708 2798configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2799target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2800build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2801
ac9e6043
RW
2802
2803
671aa708 2804################################################################################
79c06341 2805
671aa708 2806srcname="gnu development package"
79c06341 2807
671aa708
NN
2808# This gets set non-empty for some net releases of packages.
2809appdirs=""
79c06341 2810
671aa708
NN
2811# Define is_cross_compiler to save on calls to 'test'.
2812is_cross_compiler=
2813if test x"${host}" = x"${target}" ; then
2814 is_cross_compiler=no
79c06341 2815else
671aa708 2816 is_cross_compiler=yes
1c710c3c 2817fi
79c06341 2818
b4acb5ef 2819# Find the build and target subdir names.
8b87bb96 2820
2e9e6f68
DJ
2821# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2822# have matching libraries, they should use host libraries: Makefile.tpl
2823# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2824# However, they still use the build modules, because the corresponding
2825# host modules (e.g. bison) are only built for the host when bootstrap
2826# finishes. So:
2827# - build_subdir is where we find build modules, and never changes.
2828# - build_libsubdir is where we find build libraries, and can be overridden.
2829
2830# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2831build_subdir="build-${build_noncanonical}"
1c710c3c 2832
5213506e
RW
2833# Check whether --with-build-libsubdir was given.
2834if test "${with_build_libsubdir+set}" = set; then :
2835 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2836else
2837 build_libsubdir="$build_subdir"
5213506e
RW
2838fi
2839
215c351a
PB
2840# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2841if ( test $srcdir = . && test -d gcc ) \
2842 || test -d $srcdir/../host-${host_noncanonical}; then
2843 host_subdir="host-${host_noncanonical}"
2844else
2845 host_subdir=.
2846fi
8b87bb96
NN
2847# No prefix.
2848target_subdir=${target_noncanonical}
1c710c3c 2849
0db770bd
RW
2850# Be sure to cover against remnants of an in-tree build.
2851if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2852 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2853Use a pristine source tree when building in a separate tree" "$LINENO" 5
2854fi
79c06341 2855
671aa708
NN
2856# Skipdirs are removed silently.
2857skipdirs=
2858# Noconfigdirs are removed loudly.
2859noconfigdirs=""
79c06341 2860
671aa708
NN
2861use_gnu_ld=
2862# Make sure we don't let GNU ld be added if we didn't want it.
2863if test x$with_gnu_ld = xno ; then
2864 use_gnu_ld=no
5afab7ad 2865 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2866fi
2867
671aa708
NN
2868use_gnu_as=
2869# Make sure we don't let GNU as be added if we didn't want it.
2870if test x$with_gnu_as = xno ; then
2871 use_gnu_as=no
2872 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2873fi
2874
d7f09764
DN
2875use_included_zlib=
2876# Make sure we don't let ZLIB be added if we didn't want it.
2877if test x$with_system_zlib = xyes ; then
2878 use_included_zlib=no
2879 noconfigdirs="$noconfigdirs zlib"
2880fi
2881
1c710c3c 2882# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2883# it's not even worth trying to configure, much less build, that tool.
79c06341 2884
671aa708
NN
2885case ${with_x} in
2886 yes | "") ;; # the default value for this tree is that X11 is available
2887 no)
b4f96efe 2888 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2889 # We won't be able to build gdbtk without X.
1c710c3c 2890 enable_gdbtk=no
671aa708
NN
2891 ;;
2892 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2893esac
79c06341 2894
1bcce263 2895# Some are only suitable for cross toolchains.
671aa708
NN
2896# Remove these if host=target.
2897cross_only="target-libgloss target-newlib target-opcodes"
2898
2899case $is_cross_compiler in
2900 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2901esac
79c06341 2902
671aa708
NN
2903# If both --with-headers and --with-libs are specified, default to
2904# --without-newlib.
ee6a22df
L
2905if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2906 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2907 if test x"${with_newlib}" = x ; then
2908 with_newlib=no
2909 fi
79c06341
JL
2910fi
2911
671aa708
NN
2912# Recognize --with-newlib/--without-newlib.
2913case ${with_newlib} in
2914 no) skipdirs="${skipdirs} target-newlib" ;;
2915 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2916esac
79c06341 2917
21539e2e
MK
2918# Handle --enable-gold, --enable-ld.
2919# --disable-gold [--enable-ld]
2920# Build only ld. Default option.
9580395f
L
2921# --enable-gold [--enable-ld]
2922# Build both gold and ld. Install gold as "ld.gold", install ld
2923# as "ld.bfd" and "ld".
2924# --enable-gold=default [--enable-ld]
21539e2e
MK
2925# Build both gold and ld. Install gold as "ld.gold" and "ld",
2926# install ld as "ld.bfd".
2927# --enable-gold[=default] --disable-ld
2928# Build only gold, which is then installed as both "ld.gold" and "ld".
2929# --enable-gold --enable-ld=default
9580395f
L
2930# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2931# and ld.bfd).
21539e2e
MK
2932# In other words, ld is default
2933# --enable-gold=default --enable-ld=default
2934# Error.
2935
2936default_ld=
5213506e
RW
2937# Check whether --enable-gold was given.
2938if test "${enable_gold+set}" = set; then :
2939 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2940else
2941 ENABLE_GOLD=no
5213506e
RW
2942fi
2943
21539e2e
MK
2944case "${ENABLE_GOLD}" in
2945 yes|default)
38e3d868
RM
2946 # Check for ELF target.
2947 is_elf=no
2948 case "${target}" in
2949 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2950 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a
JM
2951 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2952 | *-*-solaris2* | *-*-nto*)
38e3d868
RM
2953 case "${target}" in
2954 *-*-linux*aout* | *-*-linux*oldld*)
2955 ;;
2956 *)
2957 is_elf=yes
2958 ;;
2959 esac
2960 esac
2961
2962 if test "$is_elf" = "yes"; then
2963 # Check for target supported by gold.
5afab7ad 2964 case "${target}" in
8750dfc5 2965 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
21539e2e
MK
2966 configdirs="$configdirs gold"
2967 if test x${ENABLE_GOLD} = xdefault; then
2968 default_ld=gold
2969 fi
38e3d868 2970 ENABLE_GOLD=yes
5afab7ad
ILT
2971 ;;
2972 esac
38e3d868
RM
2973 fi
2974 ;;
2975 no)
2976 ;;
2977 *)
2978 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2979 ;;
21539e2e
MK
2980esac
2981
2982# Check whether --enable-ld was given.
2983if test "${enable_ld+set}" = set; then :
2984 enableval=$enable_ld; ENABLE_LD=$enableval
2985else
2986 ENABLE_LD=yes
2987fi
2988
2989
2990case "${ENABLE_LD}" in
2991 default)
9580395f 2992 if test x${default_ld} != x; then
21539e2e
MK
2993 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2994 fi
2995 ;;
2996 yes)
2997 ;;
2998 no)
2999 if test x${ENABLE_GOLD} != xyes; then
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3001$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3002 fi
3003 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3004 ;;
3005 *)
3006 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3007 ;;
3008esac
5afab7ad 3009
671aa708 3010# Configure extra directories which are host specific
79c06341 3011
671aa708
NN
3012case "${host}" in
3013 *-cygwin*)
3014 configdirs="$configdirs libtermcap" ;;
3015esac
79c06341 3016
4fab7234
HPN
3017# A target can indicate whether a language isn't supported for some reason.
3018# Only spaces may be used in this macro; not newlines or tabs.
3019unsupported_languages=
3020
1c710c3c 3021# Remove more programs from consideration, based on the host or
671aa708
NN
3022# target this usually means that a port of the program doesn't
3023# exist yet.
ec8d6ddc 3024
671aa708 3025case "${host}" in
111eeb6e 3026 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3027 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3028 ;;
671aa708 3029esac
ec8d6ddc 3030
6de9cd9a 3031
87e6d9dc
TB
3032# Check whether --enable-libquadmath was given.
3033if test "${enable_libquadmath+set}" = set; then :
3034 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3035else
3036 ENABLE_LIBQUADMATH=yes
3037fi
3038
3039if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3040 noconfigdirs="$noconfigdirs target-libquadmath"
3041fi
3042
3043
3044# Check whether --enable-libquadmath-support was given.
3045if test "${enable_libquadmath_support+set}" = set; then :
3046 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3047else
3048 ENABLE_LIBQUADMATH_SUPPORT=yes
3049fi
3050
3051enable_libquadmath_support=
3052if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3053 enable_libquadmath_support=no
3054fi
3055
3056
5213506e
RW
3057# Check whether --enable-libada was given.
3058if test "${enable_libada+set}" = set; then :
3059 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3060else
3061 ENABLE_LIBADA=yes
5213506e
RW
3062fi
3063
d9cdb878 3064if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3065 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3066fi
3067
5213506e
RW
3068# Check whether --enable-libssp was given.
3069if test "${enable_libssp+set}" = set; then :
3070 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3071else
3072 ENABLE_LIBSSP=yes
5213506e
RW
3073fi
3074
ef0087a7 3075
671aa708
NN
3076# Save it here so that, even in case of --enable-libgcj, if the Java
3077# front-end isn't enabled, we still get libgcj disabled.
3078libgcj_saved=$libgcj
3079case $enable_libgcj in
3080yes)
3081 # If we reset it here, it won't get added to noconfigdirs in the
3082 # target-specific build rules, so it will be forcibly enabled
3083 # (unless the Java language itself isn't enabled).
3084 libgcj=
3085 ;;
3086no)
3087 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3088 # Don't disable libffi, though, other languages use it.
3089 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3090 # Clear libgcj_saved so that even if java is enabled libffi won't be
3091 # built.
3092 libgcj_saved=
671aa708
NN
3093 ;;
3094esac
ec8d6ddc 3095
a4a2c37d
MK
3096# Check whether --enable-static-libjava was given.
3097if test "${enable_static_libjava+set}" = set; then :
3098 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3099else
3100 ENABLE_STATIC_LIBJAVA=no
3101fi
3102
3103enable_static_libjava=
3104if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3105 enable_static_libjava=yes
3106fi
3107
3108if test x$enable_static_libjava != xyes ; then
3109 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3110fi
3111
6de9cd9a 3112
27079765
AH
3113# Disable libmudflap on some systems.
3114if test x$enable_libmudflap = x ; then
dfcada9a 3115 case "${target}" in
416ac4d4 3116 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3117 # Enable libmudflap by default in GNU and friends.
dfcada9a 3118 ;;
a3e8d8b4
LR
3119 *-*-freebsd*)
3120 # Enable libmudflap by default in FreeBSD.
3121 ;;
dfcada9a
MM
3122 *)
3123 # Disable it by default everywhere else.
3124 noconfigdirs="$noconfigdirs target-libmudflap"
3125 ;;
3126 esac
27079765 3127fi
6de9cd9a 3128
27079765
AH
3129# Disable libgomp on non POSIX hosted systems.
3130if test x$enable_libgomp = x ; then
953ff289
DN
3131 # Enable libgomp by default on hosted POSIX systems.
3132 case "${target}" in
416ac4d4 3133 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3134 ;;
8c6d158a 3135 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3136 ;;
b24513a1 3137 *-*-solaris2* | *-*-hpux11*)
953ff289 3138 ;;
cac90078 3139 *-*-darwin* | *-*-aix*)
953ff289
DN
3140 ;;
3141 *)
3142 noconfigdirs="$noconfigdirs target-libgomp"
3143 ;;
3144 esac
27079765 3145fi
953ff289 3146
48310492
RH
3147# Disable libatomic on unsupported systems.
3148if test -d ${srcdir}/libatomic; then
3149 if test x$enable_libatomic = x; then
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3151$as_echo_n "checking for libatomic support... " >&6; }
3152 if (srcdir=${srcdir}/libatomic; \
3153 . ${srcdir}/configure.tgt; \
3154 test -n "$UNSUPPORTED")
3155 then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157$as_echo "no" >&6; }
3158 noconfigdirs="$noconfigdirs target-libatomic"
3159 else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161$as_echo "yes" >&6; }
3162 fi
3163 fi
3164fi
3165
e948157d
RH
3166# Disable libitm on unsupported systems.
3167if test -d ${srcdir}/libitm; then
3168 if test x$enable_libitm = x; then
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3170$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3171 if (srcdir=${srcdir}/libitm; \
3172 . ${srcdir}/configure.tgt; \
3173 test -n "$UNSUPPORTED")
3174 then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3176$as_echo "no" >&6; }
e948157d
RH
3177 noconfigdirs="$noconfigdirs target-libitm"
3178 else
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3180$as_echo "yes" >&6; }
e948157d
RH
3181 fi
3182 fi
0a35513e
AH
3183fi
3184
d91491e5
SE
3185# Disable libquadmath for some systems.
3186case "${target}" in
3187 # libquadmath is unused on AIX and libquadmath build process use of
3188 # LD_LIBRARY_PATH can break AIX bootstrap.
3189 powerpc-*-aix* | rs6000-*-aix*)
3190 noconfigdirs="$noconfigdirs target-libquadmath"
3191 ;;
3192esac
3193
1e9e0e23
JM
3194# Disable libssp for some systems.
3195case "${target}" in
3196 avr-*-*)
b318fb4b 3197 # No hosted I/O support.
1e9e0e23
JM
3198 noconfigdirs="$noconfigdirs target-libssp"
3199 ;;
3200 powerpc-*-aix* | rs6000-*-aix*)
3201 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3202 ;;
3203 rl78-*-*)
7cb62ef1
EB
3204 # libssp uses a misaligned load to trigger a fault, but the RL78
3205 # doesn't fault for those - instead, it gives a build-time error
3206 # for explicit misaligned loads.
85b8555e 3207 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3208 ;;
1e9e0e23
JM
3209esac
3210
a4cf6e46
GJL
3211# Disable libquadmath for some systems.
3212case "${target}" in
3213 avr-*-*)
3214 noconfigdirs="$noconfigdirs target-libquadmath"
3215 ;;
3216esac
3217
1e9e0e23
JM
3218# Disable libstdc++-v3 for some systems.
3219case "${target}" in
3220 *-*-vxworks*)
3221 # VxWorks uses the Dinkumware C++ library.
3222 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3223 ;;
3224 arm*-wince-pe*)
3225 # the C++ libraries don't build on top of CE's C libraries
3226 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3227 ;;
3228 avr-*-*)
3229 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3230 ;;
3231esac
3232
3233# Disable Fortran for some systems.
3234case "${target}" in
3235 mmix-*-*)
3236 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3237 unsupported_languages="$unsupported_languages fortran"
3238 ;;
3239esac
3240
80f81134 3241# Disable Java if libffi is not supported.
2909494b 3242case "${target}" in
80f81134
JM
3243 alpha*-*-*)
3244 ;;
3245 arm*-*-*)
3246 ;;
3247 cris-*-*)
3248 ;;
3249 frv-*-*)
3250 ;;
3251 hppa*-*-linux*)
3252 ;;
3253 hppa*-*-hpux*)
3254 ;;
3255 i?86-*-*)
3256 ;;
3257 ia64*-*-*)
3258 ;;
3259 m32r*-*-*)
3260 ;;
3261 m68k-*-*)
3262 ;;
b24513a1 3263 mips*-*-rtems*)
80f81134
JM
3264 ;;
3265 mips*-*-linux*)
3266 ;;
3267 powerpc*-*-linux*)
3268 ;;
3269 powerpc-*-darwin*)
3270 ;;
3271 powerpc-*-aix* | rs6000-*-aix*)
3272 ;;
3273 powerpc-*-freebsd*)
3274 ;;
3275 powerpc64-*-freebsd*)
3276 ;;
3277 powerpc*-*-rtems*)
2909494b 3278 ;;
80f81134
JM
3279 s390-*-* | s390x-*-*)
3280 ;;
3281 sh-*-* | sh[34]*-*-*)
3282 ;;
3283 sh64-*-* | sh5*-*-*)
3284 ;;
3285 sparc*-*-*)
3286 ;;
3287 x86_64-*-*)
3288 ;;
3289 *-*-*)
3290 unsupported_languages="$unsupported_languages java"
3291 ;;
3292esac
3293
3294# Disable Java, libgcj or related libraries for some systems.
3295case "${target}" in
2909494b
JM
3296 powerpc-*-darwin*)
3297 ;;
3298 i[3456789]86-*-darwin*)
3299 ;;
3300 x86_64-*-darwin[912]*)
3301 ;;
3302 *-*-darwin*)
3303 noconfigdirs="$noconfigdirs ${libgcj}"
3304 ;;
2909494b
JM
3305 *-*-netware*)
3306 noconfigdirs="$noconfigdirs ${libgcj}"
3307 ;;
3308 *-*-rtems*)
3309 noconfigdirs="$noconfigdirs ${libgcj}"
3310 ;;
3311 *-*-tpf*)
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3313 ;;
3314 *-*-uclinux*)
3315 noconfigdirs="$noconfigdirs ${libgcj}"
3316 ;;
3317 *-*-vxworks*)
3318 noconfigdirs="$noconfigdirs ${libgcj}"
3319 ;;
2909494b
JM
3320 alpha*-*-*vms*)
3321 noconfigdirs="$noconfigdirs ${libgcj}"
3322 ;;
80f81134 3323 arm-wince-pe)
2909494b
JM
3324 noconfigdirs="$noconfigdirs ${libgcj}"
3325 ;;
2909494b
JM
3326 arm*-*-symbianelf*)
3327 noconfigdirs="$noconfigdirs ${libgcj}"
3328 ;;
2909494b 3329 bfin-*-*)
2909494b
JM
3330 noconfigdirs="$noconfigdirs target-boehm-gc"
3331 ;;
2909494b
JM
3332 cris-*-* | crisv32-*-*)
3333 unsupported_languages="$unsupported_languages java"
3334 case "${target}" in
3335 *-*-linux*)
3336 ;;
3337 *) # See PR46792 regarding target-libffi.
3338 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3339 esac
3340 ;;
2909494b
JM
3341 hppa*64*-*-linux*)
3342 # In this case, it's because the hppa64-linux target is for
3343 # the kernel only at this point and has no libc, and thus no
3344 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3345 unsupported_languages="$unsupported_languages java"
2909494b 3346 ;;
fddf9ee7 3347 hppa*64*-*-hpux*)
2909494b
JM
3348 noconfigdirs="$noconfigdirs ${libgcj}"
3349 ;;
3350 hppa*-hp-hpux11*)
3351 ;;
fddf9ee7 3352 hppa*-*-hpux*)
2909494b
JM
3353 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3354 # build on HP-UX 10.20.
3355 noconfigdirs="$noconfigdirs ${libgcj}"
3356 ;;
2909494b
JM
3357 ia64*-*-*vms*)
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3359 ;;
2909494b
JM
3360 i[3456789]86-w64-mingw*)
3361 noconfigdirs="$noconfigdirs ${libgcj}"
3362 ;;
3363 i[3456789]86-*-mingw*)
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3365 ;;
3366 x86_64-*-mingw*)
3367 noconfigdirs="$noconfigdirs ${libgcj}"
3368 ;;
2909494b
JM
3369 mmix-*-*)
3370 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3371 ;;
3372 powerpc-*-aix*)
3373 # copied from rs6000-*-* entry
3374 noconfigdirs="$noconfigdirs ${libgcj}"
3375 ;;
2909494b
JM
3376 rs6000-*-aix*)
3377 noconfigdirs="$noconfigdirs ${libgcj}"
3378 ;;
2909494b
JM
3379 *-*-lynxos*)
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3381 ;;
2909494b
JM
3382esac
3383
c03353e2
RIL
3384# Default libgloss CPU subdirectory.
3385libgloss_dir="$target_cpu"
6de9cd9a 3386
fbcf0dca
JM
3387case "${target}" in
3388 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3389 libgloss_dir=wince
3390 ;;
3391 arm*-*-*)
3392 libgloss_dir=arm
3393 ;;
3394 cris-*-* | crisv32-*-*)
3395 libgloss_dir=cris
3396 ;;
3397 hppa*-*-*)
3398 libgloss_dir=pa
3399 ;;
3400 i[3456789]86-*-*)
3401 libgloss_dir=i386
3402 ;;
3403 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3404 libgloss_dir=m68hc11
3405 ;;
3406 m68*-*-* | fido-*-*)
3407 libgloss_dir=m68k
3408 ;;
3409 mips*-*-*)
3410 libgloss_dir=mips
3411 ;;
3412 powerpc*-*-*)
3413 libgloss_dir=rs6000
3414 ;;
3415 sparc*-*-*)
3416 libgloss_dir=sparc
3417 ;;
3418esac
3419
6a789d5e 3420# Disable newlib and libgloss for various target OSes.
671aa708 3421case "${target}" in
6a789d5e
JM
3422 alpha*-dec-osf*)
3423 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3424 ;;
3425 i[3456789]86-*-linux*)
3426 # This section makes it possible to build newlib natively on linux.
3427 # If we are using a cross compiler then don't configure newlib.
3428 if test x${is_cross_compiler} != xno ; then
3429 noconfigdirs="$noconfigdirs target-newlib"
3430 fi
3431 noconfigdirs="$noconfigdirs target-libgloss"
3432 # If we are not using a cross compiler, do configure newlib.
3433 # Note however, that newlib will only be configured in this situation
3434 # if the --with-newlib option has been given, because otherwise
3435 # 'target-newlib' will appear in skipdirs.
3436 ;;
3437 i[3456789]86-*-rdos*)
3438 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3439 ;;
3440 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3441 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3442 ;;
3443 sparc-*-sunos4*)
3444 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3445 ;;
3446 *-*-aix*)
3447 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3448 ;;
3449 *-*-beos*)
3450 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3451 ;;
671aa708 3452 *-*-chorusos)
0036370f 3453 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3454 ;;
6a789d5e
JM
3455 *-*-dragonfly*)
3456 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3457 ;;
3458 *-*-freebsd*)
3459 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3460 ;;
3461 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3462 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3463 ;;
3464 *-*-lynxos*)
3465 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3466 ;;
3467 *-*-mingw*)
3468 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3469 ;;
3470 *-*-netbsd*)
3471 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3472 ;;
3473 *-*-netware*)
3474 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3475 ;;
3476 *-*-tpf*)
3477 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3478 ;;
3479 *-*-uclinux*)
3480 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3481 ;;
3482 *-*-vxworks*)
3483 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3484 ;;
3485esac
3486
3487case "${target}" in
3488 *-*-chorusos)
3489 ;;
75eeae1a 3490 powerpc-*-darwin*)
e1514c3f 3491 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3492 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3493 ;;
354ebf88
RW
3494 i[3456789]86-*-darwin*)
3495 noconfigdirs="$noconfigdirs ld gprof"
3496 noconfigdirs="$noconfigdirs sim target-rda"
3497 ;;
3498 x86_64-*-darwin[912]*)
0db3a858
TG
3499 noconfigdirs="$noconfigdirs ld gas gprof"
3500 noconfigdirs="$noconfigdirs sim target-rda"
3501 ;;
42c1cd8a
AT
3502 *-*-darwin*)
3503 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3504 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3505 ;;
8c6d158a 3506 *-*-dragonfly*)
8c6d158a 3507 ;;
c3f84f61 3508 *-*-freebsd*)
6de9cd9a
DN
3509 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3510 && test -f /usr/local/include/gmp.h; then
3511 with_gmp=/usr/local
3512 fi
6de9cd9a 3513 ;;
ef4e7569
US
3514 *-*-kaos*)
3515 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3516 noconfigdirs="$noconfigdirs target-libgloss"
3517 ;;
671aa708 3518 *-*-netbsd*)
671aa708 3519 ;;
61fec9ff 3520 *-*-netware*)
671aa708
NN
3521 ;;
3522 *-*-rtems*)
2909494b 3523 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3524 ;;
a8ba31f2
EC
3525 # The tpf target doesn't support gdb yet.
3526 *-*-tpf*)
6a789d5e 3527 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3528 ;;
5785c0ed 3529 *-*-uclinux*)
6a789d5e 3530 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3531 ;;
671aa708 3532 *-*-vxworks*)
671aa708
NN
3533 ;;
3534 alpha*-dec-osf*)
3535 # ld works, but does not support shared libraries.
671aa708 3536 # gas doesn't generate exception information.
6a789d5e 3537 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3538 ;;
3539 alpha*-*-*vms*)
2909494b 3540 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3541 ;;
671aa708
NN
3542 alpha*-*-*)
3543 # newlib is not 64 bit ready
2909494b 3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3545 ;;
671aa708 3546 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3547 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3548 ;;
3549 arc-*-*)
ebb9f8b0 3550 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3551 ;;
671aa708 3552 arm-*-pe*)
2909494b 3553 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3554 ;;
671aa708 3555 arm-*-riscix*)
0036370f 3556 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3557 ;;
b588ae30
GJL
3558 avr-*-rtems*)
3559 ;;
3560 avr-*-*)
3561 if test x${with_avrlibc} != xno; then
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 fi
3564 ;;
671aa708 3565 c4x-*-* | tic4x-*-*)
0036370f 3566 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3567 ;;
0036370f
JM
3568 tic54x-*-*)
3569 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3570 ;;
671aa708 3571 d10v-*-*)
0036370f 3572 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3573 ;;
3574 d30v-*-*)
0036370f 3575 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3576 ;;
3577 fr30-*-elf*)
2909494b 3578 noconfigdirs="$noconfigdirs gdb"
671aa708 3579 ;;
55f2d967 3580 moxie-*-*)
55f2d967
AG
3581 noconfigdirs="$noconfigdirs gprof"
3582 ;;
671aa708 3583 h8300*-*-*)
2909494b 3584 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3585 ;;
3586 h8500-*-*)
0036370f 3587 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3588 ;;
ee6a22df 3589 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3590 ;;
4569f85e 3591 hppa*64*-*-linux*)
671aa708 3592 ;;
56f8587a 3593 hppa*-*-linux*)
3e732ba0 3594 ;;
671aa708 3595 hppa*-*-*elf* | \
671aa708
NN
3596 hppa*-*-lites* | \
3597 hppa*-*-openbsd* | \
3598 hppa*64*-*-*)
671aa708 3599 ;;
2a332582 3600 hppa*-hp-hpux11*)
1bcce263 3601 noconfigdirs="$noconfigdirs ld"
2a332582 3602 ;;
c03353e2 3603 hppa*-*-pro*)
c03353e2 3604 ;;
671aa708 3605 hppa*-*-*)
2909494b 3606 noconfigdirs="$noconfigdirs ld"
671aa708 3607 ;;
fb87ad5d 3608 i960-*-*)
0036370f 3609 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3610 ;;
671aa708
NN
3611 ia64*-*-elf*)
3612 # No gdb support yet.
1bcce263 3613 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3614 ;;
3615 ia64*-**-hpux*)
5a2931d1 3616 # No ld support yet.
2909494b 3617 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3618 ;;
52535a64 3619 ia64*-*-*vms*)
091fe9ca
TG
3620 # No ld support yet.
3621 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3622 ;;
ef4c4300 3623 i[3456789]86-w64-mingw*)
ef4c4300
KT
3624 ;;
3625 i[3456789]86-*-mingw*)
b91f0a41 3626 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3627 ;;
671aa708
NN
3628 *-*-cygwin*)
3629 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3630 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3631 # always build newlib if winsup directory is present.
b91f0a41 3632 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3633 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3634 elif test -d "$srcdir/newlib"; then
b91f0a41 3635 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3636 fi
1c710c3c 3637 ;;
f2a0e225 3638 i[3456789]86-*-pe)
ebb9f8b0 3639 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3640 ;;
f2a0e225 3641 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3642 # The linker does not yet know about weak symbols in COFF,
3643 # and is not configured to handle mixed ELF and COFF.
0036370f 3644 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3645 ;;
f2a0e225 3646 i[3456789]86-*-sco*)
0036370f 3647 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3648 ;;
fbdd5d87 3649 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3650 noconfigdirs="$noconfigdirs target-libgloss"
3651 ;;
f2a0e225 3652 i[3456789]86-*-sysv4*)
0036370f 3653 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3654 ;;
f2a0e225 3655 i[3456789]86-*-beos*)
6a789d5e 3656 noconfigdirs="$noconfigdirs gdb"
3aa83176 3657 ;;
d1f8db0c 3658 i[3456789]86-*-rdos*)
6a789d5e 3659 noconfigdirs="$noconfigdirs gdb"
c03353e2 3660 ;;
671aa708 3661 mmix-*-*)
2909494b 3662 noconfigdirs="$noconfigdirs gdb"
671aa708 3663 ;;
ab34901f 3664 mt-*-*)
79dd769c
AH
3665 noconfigdirs="$noconfigdirs sim"
3666 ;;
671aa708
NN
3667 powerpc-*-aix*)
3668 # copied from rs6000-*-* entry
6a789d5e 3669 noconfigdirs="$noconfigdirs gprof"
671aa708 3670 ;;
4569f85e 3671 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3672 target_configdirs="$target_configdirs target-winsup"
0036370f 3673 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3674 # always build newlib.
3675 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3676 ;;
3677 # This is temporary until we can link against shared libraries
3678 powerpcle-*-solaris*)
0036370f 3679 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3680 ;;
3681 powerpc-*-beos*)
6a789d5e 3682 noconfigdirs="$noconfigdirs gdb"
671aa708 3683 ;;
671aa708 3684 rs6000-*-lynxos*)
6a789d5e 3685 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3686 ;;
3687 rs6000-*-aix*)
6a789d5e 3688 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3689 ;;
3690 rs6000-*-*)
2909494b 3691 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3692 ;;
3693 m68k-apollo-*)
0036370f 3694 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3695 ;;
ca9fe997 3696 microblaze*)
2909494b 3697 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3698 ;;
d91491e5 3699 mips*-sde-elf* | mips*-mti-elf*)
d9dced13
RS
3700 if test x$with_newlib = xyes; then
3701 noconfigdirs="$noconfigdirs gprof"
3702 fi
d9dced13 3703 ;;
671aa708 3704 mips*-*-irix5*)
0036370f 3705 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3706 ;;
3707 mips*-*-irix6*)
2909494b 3708 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3709 ;;
671aa708 3710 mips*-*-bsd*)
0036370f 3711 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3712 ;;
671aa708 3713 mips*-*-linux*)
671aa708
NN
3714 ;;
3715 mips*-*-*)
2909494b 3716 noconfigdirs="$noconfigdirs gprof"
671aa708 3717 ;;
669f01d8 3718 sh-*-* | sh64-*-*)
ea2002ba
CB
3719 case "${target}" in
3720 sh*-*-elf)
2909494b 3721 ;;
ea2002ba 3722 *)
2909494b 3723 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3724 esac
671aa708 3725 ;;
671aa708 3726 sparc-*-sunos4*)
6a789d5e 3727 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3728 use_gnu_ld=no
3729 fi
3730 ;;
b42f0d7e 3731 tic6x-*-*)
0d557ff8 3732 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3733 ;;
db1d217c
WL
3734 tilepro-*-* | tilegx-*-*)
3735 noconfigdirs="$noconfigdirs sim"
3736 ;;
671aa708 3737 v810-*-*)
0036370f 3738 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3739 ;;
3740 vax-*-*)
2909494b 3741 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3742 ;;
671aa708 3743esac
79c06341 3744
671aa708
NN
3745# If we aren't building newlib, then don't build libgloss, since libgloss
3746# depends upon some newlib header files.
3747case "${noconfigdirs}" in
3748 *target-libgloss*) ;;
3749 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3750esac
3751
671aa708 3752# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3753host_makefile_frag=/dev/null
3754if test -d ${srcdir}/config ; then
3755case "${host}" in
f2a0e225 3756 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3757 host_makefile_frag="config/mh-djgpp"
3758 ;;
3759 *-cygwin*)
2a79c47f 3760
5213506e
RW
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3762$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3763echo a >cygwin-cat-check
e25a8c82 3764if test `cat cygwin-cat-check` = a ; then
2a79c47f 3765 rm cygwin-cat-check
5213506e
RW
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3767$as_echo "yes" >&6; }
2a79c47f
NC
3768else
3769 rm cygwin-cat-check
5213506e
RW
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771$as_echo "no" >&6; }
3772 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3773 Please either mount the build directory in binary mode or run the following
3774 commands before running any configure script:
3775set -o igncr
3776export SHELLOPTS
5213506e 3777 " "$LINENO" 5
2a79c47f
NC
3778fi
3779
671aa708
NN
3780 host_makefile_frag="config/mh-cygwin"
3781 ;;
c53a18d3 3782 *-mingw*)
1f5a6b84 3783 host_makefile_frag="config/mh-mingw"
95af8923 3784 ;;
efd41714 3785 hppa*-hp-hpux10*)
efd41714 3786 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3787 ;;
111eeb6e 3788 hppa*-hp-hpux*)
efd41714
PB
3789 host_makefile_frag="config/mh-pa"
3790 ;;
3791 hppa*-*)
3792 host_makefile_frag="config/mh-pa"
3793 ;;
d8ed14ce
IS
3794 *-*-darwin*)
3795 host_makefile_frag="config/mh-darwin"
be8fff81 3796 ;;
d19bca38
PB
3797 powerpc-*-aix*)
3798 host_makefile_frag="config/mh-ppc-aix"
3799 ;;
3800 rs6000-*-aix*)
3801 host_makefile_frag="config/mh-ppc-aix"
3802 ;;
671aa708
NN
3803esac
3804fi
3805
55ffb5ed 3806if test "${build}" != "${host}" ; then
0999159b
PB
3807 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3808 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3809 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3810 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3811 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3812 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3813 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3814 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3815 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3816 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3817 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3818 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3819 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3820else
3821 AR_FOR_BUILD="\$(AR)"
3822 AS_FOR_BUILD="\$(AS)"
fb0103e5 3823 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3824 CXX_FOR_BUILD="\$(CXX)"
3825 GCJ_FOR_BUILD="\$(GCJ)"
3826 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3827 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3828 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3829 LD_FOR_BUILD="\$(LD)"
3830 NM_FOR_BUILD="\$(NM)"
3831 RANLIB_FOR_BUILD="\$(RANLIB)"
3832 WINDRES_FOR_BUILD="\$(WINDRES)"
3833 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3834fi
3835
3836ac_ext=c
1c710c3c
DJ
3837ac_cpp='$CPP $CPPFLAGS'
3838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3840ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3843set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845$as_echo_n "checking for $ac_word... " >&6; }
3846if test "${ac_cv_prog_CC+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3848else
3849 if test -n "$CC"; then
3850 ac_cv_prog_CC="$CC" # Let the user override the test.
3851else
3852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH
3854do
3855 IFS=$as_save_IFS
3856 test -z "$as_dir" && as_dir=.
5213506e
RW
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3859 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3861 break 2
3862 fi
3863done
5213506e
RW
3864 done
3865IFS=$as_save_IFS
1c710c3c
DJ
3866
3867fi
3868fi
3869CC=$ac_cv_prog_CC
3870if test -n "$CC"; then
5213506e
RW
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3872$as_echo "$CC" >&6; }
1c710c3c 3873else
5213506e
RW
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875$as_echo "no" >&6; }
1c710c3c
DJ
3876fi
3877
5213506e 3878
1c710c3c
DJ
3879fi
3880if test -z "$ac_cv_prog_CC"; then
3881 ac_ct_CC=$CC
fb0103e5
RG
3882 # Extract the first word of "gcc", so it can be a program name with args.
3883set dummy gcc; ac_word=$2
5213506e
RW
3884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885$as_echo_n "checking for $ac_word... " >&6; }
3886if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3888else
3889 if test -n "$ac_ct_CC"; then
3890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3891else
3892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893for as_dir in $PATH
3894do
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
5213506e
RW
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3899 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3901 break 2
3902 fi
3903done
5213506e
RW
3904 done
3905IFS=$as_save_IFS
1c710c3c
DJ
3906
3907fi
3908fi
3909ac_ct_CC=$ac_cv_prog_ac_ct_CC
3910if test -n "$ac_ct_CC"; then
5213506e
RW
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3912$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3913else
5213506e
RW
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915$as_echo "no" >&6; }
1c710c3c
DJ
3916fi
3917
5213506e
RW
3918 if test "x$ac_ct_CC" = x; then
3919 CC=""
3920 else
3921 case $cross_compiling:$ac_tool_warned in
3922yes:)
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925ac_tool_warned=yes ;;
3926esac
3927 CC=$ac_ct_CC
3928 fi
1c710c3c
DJ
3929else
3930 CC="$ac_cv_prog_CC"
3931fi
3932
3933if test -z "$CC"; then
5213506e
RW
3934 if test -n "$ac_tool_prefix"; then
3935 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3936set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3938$as_echo_n "checking for $ac_word... " >&6; }
3939if test "${ac_cv_prog_CC+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3941else
3942 if test -n "$CC"; then
3943 ac_cv_prog_CC="$CC" # Let the user override the test.
3944else
1c710c3c
DJ
3945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946for as_dir in $PATH
3947do
3948 IFS=$as_save_IFS
3949 test -z "$as_dir" && as_dir=.
5213506e
RW
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3952 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3954 break 2
3955 fi
3956done
5213506e
RW
3957 done
3958IFS=$as_save_IFS
1c710c3c 3959
0b0dc272 3960fi
0b0dc272 3961fi
1c710c3c 3962CC=$ac_cv_prog_CC
af71363e 3963if test -n "$CC"; then
5213506e
RW
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965$as_echo "$CC" >&6; }
2aeb72e9 3966else
5213506e
RW
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968$as_echo "no" >&6; }
2aeb72e9
DD
3969fi
3970
2aeb72e9 3971
5213506e 3972 fi
1c710c3c 3973fi
55ffb5ed
NN
3974if test -z "$CC"; then
3975 # Extract the first word of "cc", so it can be a program name with args.
3976set dummy cc; ac_word=$2
5213506e
RW
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978$as_echo_n "checking for $ac_word... " >&6; }
3979if test "${ac_cv_prog_CC+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3981else
3982 if test -n "$CC"; then
3983 ac_cv_prog_CC="$CC" # Let the user override the test.
3984else
0b0dc272 3985 ac_prog_rejected=no
1c710c3c
DJ
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
5213506e
RW
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3993 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3994 ac_prog_rejected=yes
3995 continue
3996 fi
3997 ac_cv_prog_CC="cc"
5213506e 3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3999 break 2
4000 fi
4001done
5213506e
RW
4002 done
4003IFS=$as_save_IFS
1c710c3c 4004
55ffb5ed
NN
4005if test $ac_prog_rejected = yes; then
4006 # We found a bogon in the path, so make sure we never use it.
4007 set dummy $ac_cv_prog_CC
4008 shift
1c710c3c 4009 if test $# != 0; then
55ffb5ed
NN
4010 # We chose a different compiler from the bogus one.
4011 # However, it has the same basename, so the bogon will be chosen
4012 # first if we set CC to just the basename; use the full file name.
4013 shift
1c710c3c 4014 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4015 fi
4016fi
4017fi
4018fi
1c710c3c 4019CC=$ac_cv_prog_CC
55ffb5ed 4020if test -n "$CC"; then
5213506e
RW
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4022$as_echo "$CC" >&6; }
55ffb5ed 4023else
5213506e
RW
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025$as_echo "no" >&6; }
55ffb5ed
NN
4026fi
4027
5213506e 4028
1c710c3c
DJ
4029fi
4030if test -z "$CC"; then
4031 if test -n "$ac_tool_prefix"; then
5213506e 4032 for ac_prog in cl.exe
1c710c3c
DJ
4033 do
4034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4035set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037$as_echo_n "checking for $ac_word... " >&6; }
4038if test "${ac_cv_prog_CC+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4040else
4041 if test -n "$CC"; then
4042 ac_cv_prog_CC="$CC" # Let the user override the test.
4043else
1c710c3c
DJ
4044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045for as_dir in $PATH
4046do
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
5213506e
RW
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4051 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4053 break 2
4054 fi
4055done
5213506e
RW
4056 done
4057IFS=$as_save_IFS
1c710c3c 4058
55ffb5ed
NN
4059fi
4060fi
1c710c3c 4061CC=$ac_cv_prog_CC
55ffb5ed 4062if test -n "$CC"; then
5213506e
RW
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4064$as_echo "$CC" >&6; }
a4b9e93e 4065else
5213506e
RW
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067$as_echo "no" >&6; }
fb0103e5 4068fi
af71363e 4069
5213506e 4070
1c710c3c
DJ
4071 test -n "$CC" && break
4072 done
af71363e 4073fi
1c710c3c
DJ
4074if test -z "$CC"; then
4075 ac_ct_CC=$CC
5213506e 4076 for ac_prog in cl.exe
1c710c3c
DJ
4077do
4078 # Extract the first word of "$ac_prog", so it can be a program name with args.
4079set dummy $ac_prog; ac_word=$2
5213506e
RW
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081$as_echo_n "checking for $ac_word... " >&6; }
4082if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
0b0dc272 4084else
1c710c3c
DJ
4085 if test -n "$ac_ct_CC"; then
4086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4087else
1c710c3c
DJ
4088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089for as_dir in $PATH
4090do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
5213506e
RW
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4095 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4097 break 2
4098 fi
4099done
5213506e
RW
4100 done
4101IFS=$as_save_IFS
1c710c3c 4102
af71363e
AS
4103fi
4104fi
1c710c3c
DJ
4105ac_ct_CC=$ac_cv_prog_ac_ct_CC
4106if test -n "$ac_ct_CC"; then
5213506e
RW
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4108$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4109else
5213506e
RW
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111$as_echo "no" >&6; }
af71363e 4112fi
0b0dc272 4113
5213506e 4114
1c710c3c
DJ
4115 test -n "$ac_ct_CC" && break
4116done
4117
5213506e
RW
4118 if test "x$ac_ct_CC" = x; then
4119 CC=""
4120 else
4121 case $cross_compiling:$ac_tool_warned in
4122yes:)
4123{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4124$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4125ac_tool_warned=yes ;;
4126esac
4127 CC=$ac_ct_CC
4128 fi
1c710c3c
DJ
4129fi
4130
4131fi
4132
4133
5213506e
RW
4134test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4136as_fn_error "no acceptable C compiler found in \$PATH
4137See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4138
4139# Provide some information about the compiler.
5213506e
RW
4140$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4141set X $ac_compile
4142ac_compiler=$2
4143for ac_option in --version -v -V -qversion; do
4144 { { ac_try="$ac_compiler $ac_option >&5"
4145case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4148esac
4149eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4150$as_echo "$ac_try_echo"; } >&5
4151 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4152 ac_status=$?
5213506e
RW
4153 if test -s conftest.err; then
4154 sed '10a\
4155... rest of stderr output deleted ...
4156 10q' conftest.err >conftest.er1
4157 cat conftest.er1 >&5
4158 rm -f conftest.er1 conftest.err
4159 fi
4160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4161 test $ac_status = 0; }
4162done
1c710c3c 4163
5213506e 4164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4165/* end confdefs.h. */
4166
4167int
4168main ()
4169{
4170
4171 ;
4172 return 0;
4173}
4174_ACEOF
4175ac_clean_files_save=$ac_clean_files
5213506e 4176ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4177# Try to create an executable without -o first, disregard a.out.
4178# It will help us diagnose broken compilers, and finding out an intuition
4179# of exeext.
5213506e
RW
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4181$as_echo_n "checking for C compiler default output file name... " >&6; }
4182ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4183
4184# The possible output files:
4185ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4186
4187ac_rmfiles=
4188for ac_file in $ac_files
4189do
4190 case $ac_file in
4191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4192 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4193 esac
4194done
4195rm -f $ac_rmfiles
4196
4197if { { ac_try="$ac_link_default"
4198case "(($ac_try" in
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200 *) ac_try_echo=$ac_try;;
4201esac
4202eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4203$as_echo "$ac_try_echo"; } >&5
4204 (eval "$ac_link_default") 2>&5
1c710c3c 4205 ac_status=$?
5213506e
RW
4206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4207 test $ac_status = 0; }; then :
4208 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4209# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4210# in a Makefile. We should not override ac_cv_exeext if it was cached,
4211# so that the user can short-circuit this test for compilers unknown to
4212# Autoconf.
4213for ac_file in $ac_files ''
1c710c3c
DJ
4214do
4215 test -f "$ac_file" || continue
4216 case $ac_file in
5213506e 4217 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4218 ;;
4219 [ab].out )
4220 # We found the default executable, but exeext='' is most
4221 # certainly right.
4222 break;;
4223 *.* )
5213506e
RW
4224 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4225 then :; else
4226 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4227 fi
4228 # We set ac_cv_exeext here because the later test for it is not
4229 # safe: cross compilers may not add the suffix if given an `-o'
4230 # argument, so we may need to know it at that point already.
4231 # Even if this section looks crufty: it has the advantage of
4232 # actually working.
1c710c3c
DJ
4233 break;;
4234 * )
4235 break;;
4236 esac
4237done
5213506e
RW
4238test "$ac_cv_exeext" = no && ac_cv_exeext=
4239
1c710c3c 4240else
5213506e
RW
4241 ac_file=''
4242fi
4243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4244$as_echo "$ac_file" >&6; }
4245if test -z "$ac_file"; then :
4246 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4247sed 's/^/| /' conftest.$ac_ext >&5
4248
5213506e
RW
4249{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4251{ as_fn_set_status 77
4252as_fn_error "C compiler cannot create executables
4253See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4254fi
1c710c3c 4255ac_exeext=$ac_cv_exeext
1c710c3c 4256
5213506e 4257# Check that the compiler produces executables we can run. If not, either
1c710c3c 4258# the compiler is broken, or we cross compile.
5213506e
RW
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4260$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4261# If not cross compiling, check that we can run a simple program.
4262if test "$cross_compiling" != yes; then
4263 if { ac_try='./$ac_file'
5213506e
RW
4264 { { case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267esac
4268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269$as_echo "$ac_try_echo"; } >&5
4270 (eval "$ac_try") 2>&5
1c710c3c 4271 ac_status=$?
5213506e
RW
4272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }; }; then
1c710c3c
DJ
4274 cross_compiling=no
4275 else
4276 if test "$cross_compiling" = maybe; then
4277 cross_compiling=yes
4278 else
5213506e
RW
4279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281as_fn_error "cannot run C compiled programs.
1c710c3c 4282If you meant to cross compile, use \`--host'.
5213506e 4283See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4284 fi
4285 fi
4286fi
5213506e
RW
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4288$as_echo "yes" >&6; }
1c710c3c 4289
5213506e 4290rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4291ac_clean_files=$ac_clean_files_save
5213506e 4292# Check that the compiler produces executables we can run. If not, either
1c710c3c 4293# the compiler is broken, or we cross compile.
5213506e
RW
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4295$as_echo_n "checking whether we are cross compiling... " >&6; }
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4297$as_echo "$cross_compiling" >&6; }
4298
4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4300$as_echo_n "checking for suffix of executables... " >&6; }
4301if { { ac_try="$ac_link"
4302case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307$as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_link") 2>&5
1c710c3c 4309 ac_status=$?
5213506e
RW
4310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4311 test $ac_status = 0; }; then :
1c710c3c
DJ
4312 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4313# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4314# work properly (i.e., refer to `conftest.exe'), while it won't with
4315# `rm'.
4316for ac_file in conftest.exe conftest conftest.*; do
4317 test -f "$ac_file" || continue
4318 case $ac_file in
5213506e 4319 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4320 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4321 break;;
4322 * ) break;;
4323 esac
4324done
af71363e 4325else
5213506e
RW
4326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328as_fn_error "cannot compute suffix of executables: cannot compile and link
4329See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4330fi
1c710c3c 4331rm -f conftest$ac_cv_exeext
5213506e
RW
4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4333$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4334
4335rm -f conftest.$ac_ext
4336EXEEXT=$ac_cv_exeext
4337ac_exeext=$EXEEXT
5213506e
RW
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4339$as_echo_n "checking for suffix of object files... " >&6; }
4340if test "${ac_cv_objext+set}" = set; then :
4341 $as_echo_n "(cached) " >&6
1c710c3c 4342else
5213506e 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4344/* end confdefs.h. */
4345
4346int
4347main ()
4348{
4349
4350 ;
4351 return 0;
4352}
4353_ACEOF
4354rm -f conftest.o conftest.obj
5213506e
RW
4355if { { ac_try="$ac_compile"
4356case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359esac
4360eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4361$as_echo "$ac_try_echo"; } >&5
4362 (eval "$ac_compile") 2>&5
1c710c3c 4363 ac_status=$?
5213506e
RW
4364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4365 test $ac_status = 0; }; then :
4366 for ac_file in conftest.o conftest.obj conftest.*; do
4367 test -f "$ac_file" || continue;
1c710c3c 4368 case $ac_file in
5213506e 4369 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4370 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4371 break;;
4372 esac
4373done
4374else
5213506e 4375 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4376sed 's/^/| /' conftest.$ac_ext >&5
4377
5213506e
RW
4378{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4379$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4380as_fn_error "cannot compute suffix of object files: cannot compile
4381See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4382fi
1c710c3c
DJ
4383rm -f conftest.$ac_cv_objext conftest.$ac_ext
4384fi
5213506e
RW
4385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4386$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4387OBJEXT=$ac_cv_objext
4388ac_objext=$OBJEXT
5213506e
RW
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4390$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4391if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
1c710c3c 4393else
5213506e 4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4395/* end confdefs.h. */
4396
4397int
4398main ()
4399{
4400#ifndef __GNUC__
4401 choke me
4402#endif
4403
4404 ;
4405 return 0;
4406}
4407_ACEOF
5213506e 4408if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4409 ac_compiler_gnu=yes
4410else
5213506e 4411 ac_compiler_gnu=no
1c710c3c 4412fi
5213506e 4413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4414ac_cv_c_compiler_gnu=$ac_compiler_gnu
4415
4416fi
5213506e
RW
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4418$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4419if test $ac_compiler_gnu = yes; then
4420 GCC=yes
4421else
4422 GCC=
4423fi
1c710c3c
DJ
4424ac_test_CFLAGS=${CFLAGS+set}
4425ac_save_CFLAGS=$CFLAGS
5213506e
RW
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4427$as_echo_n "checking whether $CC accepts -g... " >&6; }
4428if test "${ac_cv_prog_cc_g+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
4430else
4431 ac_save_c_werror_flag=$ac_c_werror_flag
4432 ac_c_werror_flag=yes
4433 ac_cv_prog_cc_g=no
4434 CFLAGS="-g"
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4436/* end confdefs.h. */
4437
4438int
4439main ()
4440{
4441
4442 ;
4443 return 0;
4444}
4445_ACEOF
5213506e 4446if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4447 ac_cv_prog_cc_g=yes
4448else
5213506e
RW
4449 CFLAGS=""
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h. */
4452
4453int
4454main ()
4455{
4456
4457 ;
4458 return 0;
4459}
4460_ACEOF
4461if ac_fn_c_try_compile "$LINENO"; then :
4462
4463else
4464 ac_c_werror_flag=$ac_save_c_werror_flag
4465 CFLAGS="-g"
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h. */
af71363e 4468
5213506e
RW
4469int
4470main ()
4471{
4472
4473 ;
4474 return 0;
4475}
4476_ACEOF
4477if ac_fn_c_try_compile "$LINENO"; then :
4478 ac_cv_prog_cc_g=yes
4479fi
4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4481fi
5213506e 4482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4483fi
5213506e
RW
4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 ac_c_werror_flag=$ac_save_c_werror_flag
4486fi
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4488$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4489if test "$ac_test_CFLAGS" = set; then
1c710c3c 4490 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4491elif test $ac_cv_prog_cc_g = yes; then
4492 if test "$GCC" = yes; then
4493 CFLAGS="-g -O2"
4494 else
4495 CFLAGS="-g"
4496 fi
4497else
4498 if test "$GCC" = yes; then
4499 CFLAGS="-O2"
4500 else
4501 CFLAGS=
4502 fi
4503fi
5213506e
RW
4504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4505$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4506if test "${ac_cv_prog_cc_c89+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
1c710c3c 4508else
5213506e 4509 ac_cv_prog_cc_c89=no
1c710c3c 4510ac_save_CC=$CC
5213506e 4511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4512/* end confdefs.h. */
4513#include <stdarg.h>
4514#include <stdio.h>
4515#include <sys/types.h>
4516#include <sys/stat.h>
4517/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4518struct buf { int x; };
4519FILE * (*rcsopen) (struct buf *, struct stat *, int);
4520static char *e (p, i)
4521 char **p;
4522 int i;
4523{
4524 return p[i];
4525}
4526static char *f (char * (*g) (char **, int), char **p, ...)
4527{
4528 char *s;
4529 va_list v;
4530 va_start (v,p);
4531 s = g (p, va_arg (v,int));
4532 va_end (v);
4533 return s;
4534}
4535
4536/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4537 function prototypes and stuff, but not '\xHH' hex character constants.
4538 These don't provoke an error unfortunately, instead are silently treated
5213506e 4539 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4541 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4542 that's true only with -std. */
1c710c3c
DJ
4543int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4544
5213506e
RW
4545/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4546 inside strings and character constants. */
4547#define FOO(x) 'x'
4548int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4549
1c710c3c
DJ
4550int test (int i, double x);
4551struct s1 {int (*f) (int a);};
4552struct s2 {int (*f) (double a);};
4553int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4554int argc;
4555char **argv;
4556int
4557main ()
4558{
4559return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4560 ;
4561 return 0;
4562}
4563_ACEOF
5213506e
RW
4564for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4565 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4566do
4567 CC="$ac_save_CC $ac_arg"
5213506e
RW
4568 if ac_fn_c_try_compile "$LINENO"; then :
4569 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4570fi
5213506e
RW
4571rm -f core conftest.err conftest.$ac_objext
4572 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4573done
5213506e 4574rm -f conftest.$ac_ext
1c710c3c
DJ
4575CC=$ac_save_CC
4576
4577fi
5213506e
RW
4578# AC_CACHE_VAL
4579case "x$ac_cv_prog_cc_c89" in
4580 x)
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4582$as_echo "none needed" >&6; } ;;
4583 xno)
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4585$as_echo "unsupported" >&6; } ;;
1c710c3c 4586 *)
5213506e
RW
4587 CC="$CC $ac_cv_prog_cc_c89"
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4589$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4590esac
5213506e 4591if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4592
2aeb72e9
DD
4593fi
4594
2aeb72e9
DD
4595ac_ext=c
4596ac_cpp='$CPP $CPPFLAGS'
4597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4599ac_compiler_gnu=$ac_cv_c_compiler_gnu
4600
5213506e 4601ac_ext=cpp
2aeb72e9
DD
4602ac_cpp='$CXXCPP $CPPFLAGS'
4603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4606if test -z "$CXX"; then
4607 if test -n "$CCC"; then
4608 CXX=$CCC
4609 else
4610 if test -n "$ac_tool_prefix"; then
4611 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4612 do
4613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4614set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616$as_echo_n "checking for $ac_word... " >&6; }
4617if test "${ac_cv_prog_CXX+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4619else
4620 if test -n "$CXX"; then
4621 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4622else
4623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624for as_dir in $PATH
4625do
4626 IFS=$as_save_IFS
4627 test -z "$as_dir" && as_dir=.
5213506e
RW
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4630 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4632 break 2
4633 fi
4634done
5213506e
RW
4635 done
4636IFS=$as_save_IFS
55ffb5ed 4637
c3a86da9
DJ
4638fi
4639fi
4640CXX=$ac_cv_prog_CXX
4641if test -n "$CXX"; then
5213506e
RW
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4643$as_echo "$CXX" >&6; }
c3a86da9 4644else
5213506e
RW
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646$as_echo "no" >&6; }
c3a86da9
DJ
4647fi
4648
5213506e 4649
c3a86da9
DJ
4650 test -n "$CXX" && break
4651 done
4652fi
4653if test -z "$CXX"; then
4654 ac_ct_CXX=$CXX
5213506e 4655 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4656do
4657 # Extract the first word of "$ac_prog", so it can be a program name with args.
4658set dummy $ac_prog; ac_word=$2
5213506e
RW
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4660$as_echo_n "checking for $ac_word... " >&6; }
4661if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4663else
4664 if test -n "$ac_ct_CXX"; then
4665 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4666else
4667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668for as_dir in $PATH
4669do
4670 IFS=$as_save_IFS
4671 test -z "$as_dir" && as_dir=.
5213506e
RW
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4674 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4676 break 2
4677 fi
4678done
5213506e
RW
4679 done
4680IFS=$as_save_IFS
c3a86da9
DJ
4681
4682fi
4683fi
4684ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4685if test -n "$ac_ct_CXX"; then
5213506e
RW
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4687$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4688else
5213506e
RW
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690$as_echo "no" >&6; }
c3a86da9
DJ
4691fi
4692
5213506e 4693
c3a86da9
DJ
4694 test -n "$ac_ct_CXX" && break
4695done
c3a86da9 4696
5213506e
RW
4697 if test "x$ac_ct_CXX" = x; then
4698 CXX="g++"
4699 else
4700 case $cross_compiling:$ac_tool_warned in
4701yes:)
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4703$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4704ac_tool_warned=yes ;;
4705esac
4706 CXX=$ac_ct_CXX
4707 fi
c3a86da9
DJ
4708fi
4709
5213506e
RW
4710 fi
4711fi
c3a86da9 4712# Provide some information about the compiler.
5213506e
RW
4713$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4714set X $ac_compile
4715ac_compiler=$2
4716for ac_option in --version -v -V -qversion; do
4717 { { ac_try="$ac_compiler $ac_option >&5"
4718case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721esac
4722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4723$as_echo "$ac_try_echo"; } >&5
4724 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4725 ac_status=$?
5213506e
RW
4726 if test -s conftest.err; then
4727 sed '10a\
4728... rest of stderr output deleted ...
4729 10q' conftest.err >conftest.er1
4730 cat conftest.er1 >&5
4731 rm -f conftest.er1 conftest.err
4732 fi
4733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4734 test $ac_status = 0; }
4735done
c3a86da9 4736
5213506e
RW
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4738$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4739if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
c3a86da9 4741else
5213506e 4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4743/* end confdefs.h. */
4744
4745int
4746main ()
4747{
4748#ifndef __GNUC__
4749 choke me
4750#endif
4751
4752 ;
4753 return 0;
4754}
4755_ACEOF
5213506e 4756if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4757 ac_compiler_gnu=yes
4758else
5213506e 4759 ac_compiler_gnu=no
c3a86da9 4760fi
5213506e 4761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4762ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4763
4764fi
5213506e
RW
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4766$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4767if test $ac_compiler_gnu = yes; then
4768 GXX=yes
4769else
4770 GXX=
4771fi
c3a86da9
DJ
4772ac_test_CXXFLAGS=${CXXFLAGS+set}
4773ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4775$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4776if test "${ac_cv_prog_cxx_g+set}" = set; then :
4777 $as_echo_n "(cached) " >&6
4778else
4779 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4780 ac_cxx_werror_flag=yes
4781 ac_cv_prog_cxx_g=no
4782 CXXFLAGS="-g"
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4784/* end confdefs.h. */
4785
4786int
4787main ()
4788{
4789
4790 ;
4791 return 0;
4792}
4793_ACEOF
5213506e 4794if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4795 ac_cv_prog_cxx_g=yes
4796else
5213506e
RW
4797 CXXFLAGS=""
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4799/* end confdefs.h. */
5213506e 4800
c3a86da9
DJ
4801int
4802main ()
4803{
5213506e 4804
c3a86da9
DJ
4805 ;
4806 return 0;
4807}
4808_ACEOF
5213506e 4809if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4810
5213506e
RW
4811else
4812 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4813 CXXFLAGS="-g"
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4815/* end confdefs.h. */
5213506e 4816
c3a86da9
DJ
4817int
4818main ()
4819{
5213506e 4820
c3a86da9
DJ
4821 ;
4822 return 0;
4823}
4824_ACEOF
5213506e
RW
4825if ac_fn_cxx_try_compile "$LINENO"; then :
4826 ac_cv_prog_cxx_g=yes
11a67599 4827fi
5213506e
RW
4828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829fi
4830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831fi
4832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4833 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4834fi
4835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4836$as_echo "$ac_cv_prog_cxx_g" >&6; }
4837if test "$ac_test_CXXFLAGS" = set; then
4838 CXXFLAGS=$ac_save_CXXFLAGS
4839elif test $ac_cv_prog_cxx_g = yes; then
4840 if test "$GXX" = yes; then
4841 CXXFLAGS="-g -O2"
4842 else
4843 CXXFLAGS="-g"
4844 fi
4845else
4846 if test "$GXX" = yes; then
4847 CXXFLAGS="-O2"
4848 else
4849 CXXFLAGS=
4850 fi
c3a86da9 4851fi
c3a86da9
DJ
4852ac_ext=c
4853ac_cpp='$CPP $CPPFLAGS'
4854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857
4858
4859# We must set the default linker to the linker used by gcc for the correct
4860# operation of libtool. If LD is not defined and we are using gcc, try to
4861# set the LD default to the ld used by gcc.
4862if test -z "$LD"; then
4863 if test "$GCC" = yes; then
4864 case $build in
4865 *-*-mingw*)
4866 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4867 *)
4868 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4869 esac
4870 case $gcc_prog_ld in
4871 # Accept absolute paths.
4872 [\\/]* | [A-Za-z]:[\\/]*)
4873 LD="$gcc_prog_ld" ;;
4874 esac
4875 fi
23f6b2f9
PB
4876fi
4877
0b21f5d3
EB
4878# Check whether -static-libstdc++ -static-libgcc is supported.
4879have_static_libs=no
4880if test "$GCC" = yes; then
4881 saved_LDFLAGS="$LDFLAGS"
4882
4883 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4885$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4886 ac_ext=cpp
4887ac_cpp='$CXXCPP $CPPFLAGS'
4888ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4889ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4890ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4891
4892
4893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894/* end confdefs.h. */
0d6414b2
EB
4895
4896#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4897#error -static-libstdc++ not implemented
4898#endif
0b21f5d3
EB
4899int main() {}
4900_ACEOF
4901if ac_fn_cxx_try_link "$LINENO"; then :
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4903$as_echo "yes" >&6; }; have_static_libs=yes
4904else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906$as_echo "no" >&6; }
4907fi
4908rm -f core conftest.err conftest.$ac_objext \
4909 conftest$ac_exeext conftest.$ac_ext
4910 ac_ext=c
4911ac_cpp='$CPP $CPPFLAGS'
4912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915
4916
4917 LDFLAGS="$saved_LDFLAGS"
4918fi
4919
23f6b2f9
PB
4920
4921
55ffb5ed 4922
1c710c3c
DJ
4923if test -n "$ac_tool_prefix"; then
4924 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4925set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927$as_echo_n "checking for $ac_word... " >&6; }
4928if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4930else
4931 if test -n "$GNATBIND"; then
4932 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4933else
1c710c3c
DJ
4934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935for as_dir in $PATH
4936do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
5213506e
RW
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4941 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4943 break 2
4944 fi
4945done
5213506e
RW
4946 done
4947IFS=$as_save_IFS
1c710c3c 4948
55ffb5ed
NN
4949fi
4950fi
1c710c3c 4951GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4952if test -n "$GNATBIND"; then
5213506e
RW
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4954$as_echo "$GNATBIND" >&6; }
55ffb5ed 4955else
5213506e
RW
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957$as_echo "no" >&6; }
55ffb5ed
NN
4958fi
4959
5213506e 4960
1c710c3c 4961fi
55ffb5ed 4962if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4963 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4964 # Extract the first word of "gnatbind", so it can be a program name with args.
4965set dummy gnatbind; ac_word=$2
5213506e
RW
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967$as_echo_n "checking for $ac_word... " >&6; }
4968if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
55ffb5ed 4970else
1c710c3c
DJ
4971 if test -n "$ac_ct_GNATBIND"; then
4972 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4973else
1c710c3c
DJ
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
5213506e
RW
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4981 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4983 break 2
4984 fi
4985done
5213506e
RW
4986 done
4987IFS=$as_save_IFS
1c710c3c 4988
55ffb5ed
NN
4989fi
4990fi
1c710c3c
DJ
4991ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4992if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4994$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4995else
5213506e
RW
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997$as_echo "no" >&6; }
55ffb5ed
NN
4998fi
4999
5213506e
RW
5000 if test "x$ac_ct_GNATBIND" = x; then
5001 GNATBIND="no"
5002 else
5003 case $cross_compiling:$ac_tool_warned in
5004yes:)
5005{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5006$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5007ac_tool_warned=yes ;;
5008esac
5009 GNATBIND=$ac_ct_GNATBIND
5010 fi
55ffb5ed 5011else
1c710c3c 5012 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5013fi
5014
1c710c3c
DJ
5015if test -n "$ac_tool_prefix"; then
5016 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5017set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019$as_echo_n "checking for $ac_word... " >&6; }
5020if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5305be7e
RG
5022else
5023 if test -n "$GNATMAKE"; then
5024 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5025else
1c710c3c
DJ
5026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5213506e
RW
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5033 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5035 break 2
5036 fi
5037done
5213506e
RW
5038 done
5039IFS=$as_save_IFS
1c710c3c 5040
5305be7e
RG
5041fi
5042fi
1c710c3c 5043GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5044if test -n "$GNATMAKE"; then
5213506e
RW
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5046$as_echo "$GNATMAKE" >&6; }
5305be7e 5047else
5213506e
RW
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049$as_echo "no" >&6; }
5305be7e
RG
5050fi
5051
5213506e 5052
1c710c3c 5053fi
5305be7e 5054if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5055 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5056 # Extract the first word of "gnatmake", so it can be a program name with args.
5057set dummy gnatmake; ac_word=$2
5213506e
RW
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059$as_echo_n "checking for $ac_word... " >&6; }
5060if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5061 $as_echo_n "(cached) " >&6
5305be7e 5062else
1c710c3c
DJ
5063 if test -n "$ac_ct_GNATMAKE"; then
5064 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5065else
1c710c3c
DJ
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5213506e
RW
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5073 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5075 break 2
5076 fi
5077done
5213506e
RW
5078 done
5079IFS=$as_save_IFS
1c710c3c 5080
5305be7e
RG
5081fi
5082fi
1c710c3c
DJ
5083ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5084if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5086$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5087else
5213506e
RW
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
5305be7e
RG
5090fi
5091
5213506e
RW
5092 if test "x$ac_ct_GNATMAKE" = x; then
5093 GNATMAKE="no"
5094 else
5095 case $cross_compiling:$ac_tool_warned in
5096yes:)
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5099ac_tool_warned=yes ;;
5100esac
5101 GNATMAKE=$ac_ct_GNATMAKE
5102 fi
5305be7e 5103else
1c710c3c 5104 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5105fi
5106
5213506e
RW
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5108$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5109if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5111else
5112 cat >conftest.adb <<EOF
5113procedure conftest is begin null; end conftest;
5114EOF
5115acx_cv_cc_gcc_supports_ada=no
5116# There is a bug in old released versions of GCC which causes the
5117# driver to exit successfully when the appropriate language module
5118# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5119# Therefore we must check for the error message as well as an
5120# unsuccessful exit.
1db673ca
RO
5121# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5122# given a .adb file, but produce no object file. So we must check
5123# if an object file was really produced to guard against this.
55ffb5ed 5124errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5125if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5126 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5127fi
5128rm -f conftest.*
5129fi
5213506e
RW
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5131$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5132
7cb62ef1 5133if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5134 have_gnat=yes
5135else
5136 have_gnat=no
5137fi
5138
5213506e
RW
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5140$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5141if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5142 $as_echo_n "(cached) " >&6
a76494aa
PB
5143else
5144 echo abfoo >t1
5145 echo cdfoo >t2
5146 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5147 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5148 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5149 :
5150 else
5151 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5152 fi
5153 fi
a76494aa
PB
5154 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5155 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5156 :
a76494aa
PB
5157 else
5158 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5159 fi
5160 fi
5161 rm t1 t2
5162
5163fi
5213506e
RW
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5165$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5166do_compare="$gcc_cv_prog_cmp_skip"
5167
5168
55ffb5ed 5169
ff3ac0f4
ILT
5170# Check whether --enable-bootstrap was given.
5171if test "${enable_bootstrap+set}" = set; then :
5172 enableval=$enable_bootstrap;
5173else
5174 enable_bootstrap=default
5175fi
5176
5177
5178# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5179if test -r $srcdir/gcc/configure; then
5180 have_compiler=yes
5181else
5182 have_compiler=no
5183fi
ff3ac0f4
ILT
5184
5185case "$have_compiler:$host:$target:$enable_bootstrap" in
5186 *:*:*:no) ;;
5187
5188 # Default behavior. Enable bootstrap if we have a compiler
5189 # and we are in a native configuration.
5190 yes:$build:$build:default)
5191 enable_bootstrap=yes ;;
5192
5193 *:*:*:default)
5194 enable_bootstrap=no ;;
5195
5196 # We have a compiler and we are in a native configuration, bootstrap is ok
5197 yes:$build:$build:yes)
5198 ;;
5199
5200 # Other configurations, but we have a compiler. Assume the user knows
5201 # what he's doing.
5202 yes:*:*:yes)
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5204$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5205 ;;
5206
5207 # No compiler: if they passed --enable-bootstrap explicitly, fail
5208 no:*:*:yes)
5209 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5210
5211 # Fail if wrong command line
5212 *)
5213 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5214 ;;
5215esac
5216
592c90ff
KG
5217# Used for setting $lt_cv_objdir
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5219$as_echo_n "checking for objdir... " >&6; }
5220if test "${lt_cv_objdir+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5222else
5223 rm -f .libs 2>/dev/null
5224mkdir .libs 2>/dev/null
5225if test -d .libs; then
5226 lt_cv_objdir=.libs
5227else
5228 # MS-DOS does not allow filenames that begin with a dot.
5229 lt_cv_objdir=_libs
5230fi
5231rmdir .libs 2>/dev/null
5232fi
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5234$as_echo "$lt_cv_objdir" >&6; }
5235objdir=$lt_cv_objdir
5236
5237
5238
5239
5240
5241cat >>confdefs.h <<_ACEOF
5242#define LT_OBJDIR "$lt_cv_objdir/"
5243_ACEOF
5244
5245
5246
acd26225 5247# Check for GMP, MPFR and MPC
3a5729ea 5248gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5249gmpinc=
e69bf64b 5250have_gmp=no
acd26225
KG
5251
5252# Specify a location for mpc
5253# check for this first so it ends up on the link line before mpfr.
5254
5213506e
RW
5255# Check whether --with-mpc was given.
5256if test "${with_mpc+set}" = set; then :
5257 withval=$with_mpc;
5258fi
acd26225 5259
acd26225 5260
9965e3cd 5261# Check whether --with-mpc-include was given.
5213506e
RW
5262if test "${with_mpc_include+set}" = set; then :
5263 withval=$with_mpc_include;
5264fi
acd26225 5265
acd26225 5266
9965e3cd 5267# Check whether --with-mpc-lib was given.
5213506e
RW
5268if test "${with_mpc_lib+set}" = set; then :
5269 withval=$with_mpc_lib;
5270fi
acd26225 5271
acd26225
KG
5272
5273if test "x$with_mpc" != x; then
3a5729ea
KG
5274 gmplibs="-L$with_mpc/lib $gmplibs"
5275 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5276fi
5277if test "x$with_mpc_include" != x; then
3a5729ea 5278 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5279fi
5280if test "x$with_mpc_lib" != x; then
3a5729ea 5281 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5282fi
5283if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5284 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5285 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5286 # Do not test the mpc version. Assume that it is sufficient, since
5287 # it is in the source tree, and the library has not been built yet
5288 # but it would be included on the link line in the version check below
5289 # hence making the test fail.
3a5729ea 5290 have_gmp=yes
acd26225 5291fi
e69bf64b 5292
bebf829d
PB
5293# Specify a location for mpfr
5294# check for this first so it ends up on the link line before gmp.
1c710c3c 5295
5213506e
RW
5296# Check whether --with-mpfr-dir was given.
5297if test "${with_mpfr_dir+set}" = set; then :
5298 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5299Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5300fi
5301
bebf829d
PB
5302
5303
5213506e
RW
5304# Check whether --with-mpfr was given.
5305if test "${with_mpfr+set}" = set; then :
5306 withval=$with_mpfr;
5307fi
1c710c3c 5308
bebf829d 5309
9965e3cd 5310# Check whether --with-mpfr-include was given.
5213506e
RW
5311if test "${with_mpfr_include+set}" = set; then :
5312 withval=$with_mpfr_include;
5313fi
1c710c3c 5314
8a877c9c 5315
9965e3cd 5316# Check whether --with-mpfr-lib was given.
5213506e
RW
5317if test "${with_mpfr_lib+set}" = set; then :
5318 withval=$with_mpfr_lib;
5319fi
8a877c9c 5320
bebf829d
PB
5321
5322if test "x$with_mpfr" != x; then
5323 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5324 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5325fi
8a877c9c 5326if test "x$with_mpfr_include" != x; then
3a5729ea 5327 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5328fi
5329if test "x$with_mpfr_lib" != x; then
5330 gmplibs="-L$with_mpfr_lib $gmplibs"
5331fi
e69bf64b 5332if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5333 # MPFR v3.1.0 moved the sources into a src sub-directory.
5334 if test -d ${srcdir}/mpfr/src; then
5335 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5336 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5337 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5338 else
5339 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5340 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5341 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5342 fi
e69bf64b
PB
5343 # Do not test the mpfr version. Assume that it is sufficient, since
5344 # it is in the source tree, and the library has not been built yet
5345 # but it would be included on the link line in the version check below
5346 # hence making the test fail.
5347 have_gmp=yes
5348fi
bebf829d 5349
6de9cd9a 5350# Specify a location for gmp
1c710c3c 5351
5213506e
RW
5352# Check whether --with-gmp-dir was given.
5353if test "${with_gmp_dir+set}" = set; then :
5354 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5355Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5356fi
5357
6de9cd9a 5358
6de9cd9a 5359
5213506e
RW
5360# Check whether --with-gmp was given.
5361if test "${with_gmp+set}" = set; then :
5362 withval=$with_gmp;
5363fi
1c710c3c 5364
6de9cd9a 5365
9965e3cd 5366# Check whether --with-gmp-include was given.
5213506e
RW
5367if test "${with_gmp_include+set}" = set; then :
5368 withval=$with_gmp_include;
5369fi
1c710c3c 5370
8a877c9c 5371
9965e3cd 5372# Check whether --with-gmp-lib was given.
5213506e
RW
5373if test "${with_gmp_lib+set}" = set; then :
5374 withval=$with_gmp_lib;
5375fi
8a877c9c
KG
5376
5377
6de9cd9a 5378
bebf829d
PB
5379if test "x$with_gmp" != x; then
5380 gmplibs="-L$with_gmp/lib $gmplibs"
5381 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5382fi
8a877c9c
KG
5383if test "x$with_gmp_include" != x; then
5384 gmpinc="-I$with_gmp_include $gmpinc"
5385fi
5386if test "x$with_gmp_lib" != x; then
5387 gmplibs="-L$with_gmp_lib $gmplibs"
5388fi
e69bf64b 5389if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5390 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5391 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5392 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5393 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5394 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5395 # Do not test the gmp version. Assume that it is sufficient, since
5396 # it is in the source tree, and the library has not been built yet
5397 # but it would be included on the link line in the version check below
5398 # hence making the test fail.
5399 have_gmp=yes
5400fi
6de9cd9a 5401
d943d7c4 5402if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5403 have_gmp=yes
5404 saved_CFLAGS="$CFLAGS"
5405 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5406 # Check for the recommended and required versions of GMP.
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5408$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5409
5410cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5411/* end confdefs.h. */
5412#include "gmp.h"
5413int
5414main ()
5415{
5416
5417 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5418 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5419 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5420 choke me
5421 #endif
5422
5423 ;
5424 return 0;
5425}
5426_ACEOF
5427if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5429/* end confdefs.h. */
362c6d2f 5430#include <gmp.h>
1c710c3c
DJ
5431int
5432main ()
5433{
6de9cd9a 5434
362c6d2f
KG
5435 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5436 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5437 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5438 choke me
5439 #endif
1c710c3c
DJ
5440
5441 ;
5442 return 0;
5443}
5444_ACEOF
5213506e
RW
5445if ac_fn_c_try_compile "$LINENO"; then :
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447$as_echo "yes" >&6; }
362c6d2f
KG
5448else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5450$as_echo "buggy but acceptable" >&6; }
5451fi
5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5453else
5213506e
RW
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5456fi
5213506e 5457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5458
acd26225 5459 # If we have GMP, check the MPFR version.
e69bf64b 5460 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5461 # Check for the recommended and required versions of MPFR.
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5463$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5465/* end confdefs.h. */
70ec446f 5466#include <gmp.h>
e69bf64b 5467 #include <mpfr.h>
1c710c3c
DJ
5468int
5469main ()
5470{
e48d66a9 5471
f7d6bc01 5472 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5473 choke me
5474 #endif
1c710c3c
DJ
5475
5476 ;
5477 return 0;
5478}
5479_ACEOF
5213506e
RW
5480if ac_fn_c_try_compile "$LINENO"; then :
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5482/* end confdefs.h. */
a3993f33 5483#include <gmp.h>
e69bf64b 5484 #include <mpfr.h>
1c710c3c
DJ
5485int
5486main ()
5487{
a3993f33 5488
362c6d2f 5489 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5490 choke me
5491 #endif
acd26225
KG
5492
5493 ;
5494 return 0;
5495}
5496_ACEOF
5213506e
RW
5497if ac_fn_c_try_compile "$LINENO"; then :
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5499$as_echo "yes" >&6; }
acd26225 5500else
5213506e
RW
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5502$as_echo "buggy but acceptable" >&6; }
acd26225 5503fi
5213506e 5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5505else
5213506e
RW
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }; have_gmp=no
acd26225 5508fi
5213506e 5509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5510 fi
5511
5512 # Check for the MPC header version.
3a5729ea 5513 if test x"$have_gmp" = xyes ; then
362c6d2f 5514 # Check for the recommended and required versions of MPC.
5213506e
RW
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5516$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5518/* end confdefs.h. */
5519#include <mpc.h>
5520int
5521main ()
5522{
5523
362c6d2f
KG
5524 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5525 choke me
5526 #endif
5527
5528 ;
5529 return 0;
5530}
5531_ACEOF
5532if ac_fn_c_try_compile "$LINENO"; then :
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534/* end confdefs.h. */
5535#include <mpc.h>
5536int
5537main ()
5538{
5539
5540 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5541 choke me
5542 #endif
5543
5544 ;
5545 return 0;
5546}
5547_ACEOF
5213506e
RW
5548if ac_fn_c_try_compile "$LINENO"; then :
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5550$as_echo "yes" >&6; }
362c6d2f
KG
5551else
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5553$as_echo "buggy but acceptable" >&6; }
5554fi
5555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5556else
5213506e 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5558$as_echo "no" >&6; }; have_gmp=no
acd26225 5559fi
5213506e 5560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5561 fi
5562
5563 # Now check the MPFR library.
5564 if test x"$have_gmp" = xyes; then
5565 saved_LIBS="$LIBS"
5566 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5568$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5570/* end confdefs.h. */
3a5729ea 5571#include <mpc.h>
acd26225
KG
5572int
5573main ()
5574{
5575
5576 mpfr_t n;
5577 mpfr_t x;
3a5729ea 5578 mpc_t c;
acd26225
KG
5579 int t;
5580 mpfr_init (n);
5581 mpfr_init (x);
5582 mpfr_atan2 (n, n, x, GMP_RNDN);
5583 mpfr_erfc (n, x, GMP_RNDN);
5584 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5585 mpfr_clear(n);
5586 mpfr_clear(x);
5587 mpc_init2 (c, 53);
5588 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5589 mpc_cosh (c, c, MPC_RNDNN);
5590 mpc_pow (c, c, c, MPC_RNDNN);
5591 mpc_acosh (c, c, MPC_RNDNN);
5592 mpc_clear (c);
1c710c3c
DJ
5593
5594 ;
5595 return 0;
5596}
5597_ACEOF
5213506e
RW
5598if ac_fn_c_try_link "$LINENO"; then :
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5600$as_echo "yes" >&6; }
1c710c3c 5601else
5213506e
RW
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5604fi
5213506e
RW
5605rm -f core conftest.err conftest.$ac_objext \
5606 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5607 LIBS="$saved_LIBS"
5608 fi
5609
e69bf64b 5610 CFLAGS="$saved_CFLAGS"
6de9cd9a 5611
362c6d2f
KG
5612# The library versions listed in the error message below should match
5613# the HARD-minimums enforced above.
e69bf64b 5614 if test x$have_gmp != xyes; then
f7d6bc01 5615 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5616Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5617their locations. Source code for these libraries can be found at
5618their respective hosting sites as well as at
5619ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5620http://gcc.gnu.org/install/prerequisites.html for additional info. If
5621you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5622make sure that you have installed both the libraries and the header
5623files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5624 fi
70ec446f
KG
5625fi
5626
acd26225
KG
5627# Flags needed for both GMP, MPFR and/or MPC.
5628
5629
6de9cd9a
DN
5630
5631
5632
9e3eba15 5633
0ff2d841 5634
f38095f3
JM
5635# Allow host libstdc++ to be specified for static linking with PPL.
5636
5213506e
RW
5637# Check whether --with-host-libstdcxx was given.
5638if test "${with_host_libstdcxx+set}" = set; then :
5639 withval=$with_host_libstdcxx;
5640fi
f38095f3 5641
f38095f3
JM
5642
5643case $with_host_libstdcxx in
5644 no|yes)
5213506e 5645 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5646 ;;
5647esac
f8bf9252 5648
0b21f5d3 5649# Libraries to use for stage1 or when not bootstrapping.
00020c16 5650
0b21f5d3
EB
5651# Check whether --with-stage1-libs was given.
5652if test "${with_stage1_libs+set}" = set; then :
5653 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5654 stage1_libs=
00020c16 5655 else
0b21f5d3 5656 stage1_libs=$withval
00020c16
ILT
5657 fi
5658else
0b21f5d3 5659 stage1_libs=$with_host_libstdcxx
5213506e
RW
5660fi
5661
00020c16
ILT
5662
5663
0b21f5d3 5664# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5665
0b21f5d3
EB
5666# Check whether --with-stage1-ldflags was given.
5667if test "${with_stage1_ldflags+set}" = set; then :
5668 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5669 stage1_ldflags=
00020c16 5670 else
0b21f5d3 5671 stage1_ldflags=$withval
00020c16
ILT
5672 fi
5673else
0b21f5d3
EB
5674 stage1_ldflags=
5675 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5676 # if supported. But if the user explicitly specified the libraries to use,
5677 # trust that they are doing what they want.
5678 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5679 stage1_ldflags="-static-libstdc++ -static-libgcc"
5680 fi
5213506e
RW
5681fi
5682
00020c16
ILT
5683
5684
00020c16
ILT
5685# Libraries to use for stage2 and later builds. This defaults to the
5686# argument passed to --with-host-libstdcxx.
5687
5213506e
RW
5688# Check whether --with-boot-libs was given.
5689if test "${with_boot_libs+set}" = set; then :
5690 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5691 poststage1_libs=
5692 else
5693 poststage1_libs=$withval
5694 fi
5695else
00020c16 5696 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5697fi
5698
00020c16
ILT
5699
5700
ed2eaa9f
ILT
5701# Linker flags to use for stage2 and later builds.
5702
5703# Check whether --with-boot-ldflags was given.
5704if test "${with_boot_ldflags+set}" = set; then :
5705 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5706 poststage1_ldflags=
5707 else
5708 poststage1_ldflags=$withval
5709 fi
5710else
5711 poststage1_ldflags=
bec93d73
ILT
5712 # In stages 2 and 3, default to linking libstdc++ and libgcc
5713 # statically. But if the user explicitly specified the libraries to
5714 # use, trust that they are doing what they want.
5715 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5716 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5717 fi
5718fi
5719
5720
5721
625afa23
RG
5722# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5723# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5724# config/isl.m4
5725
5726
5727# Check whether --with-cloog was given.
5728if test "${with_cloog+set}" = set; then :
5729 withval=$with_cloog;
5730fi
f8bf9252
SP
5731
5732
33ad93b9
RG
5733# Check whether --with-isl was given.
5734if test "${with_isl+set}" = set; then :
5735 withval=$with_isl;
5213506e 5736fi
f8bf9252 5737
f8bf9252 5738
625afa23
RG
5739# Treat either --without-cloog or --without-isl as a request to disable
5740# GRAPHITE support and skip all following checks.
5741if test "x$with_isl" != "xno" &&
5742 test "x$with_cloog" != "xno"; then
5743 # Check for ISL
5744
5745
33ad93b9
RG
5746# Check whether --with-isl-include was given.
5747if test "${with_isl_include+set}" = set; then :
5748 withval=$with_isl_include;
5213506e
RW
5749fi
5750
f8bf9252 5751
33ad93b9
RG
5752# Check whether --with-isl-lib was given.
5753if test "${with_isl_lib+set}" = set; then :
5754 withval=$with_isl_lib;
5213506e 5755fi
f8bf9252 5756
f8bf9252 5757
33ad93b9
RG
5758 # Check whether --enable-isl-version-check was given.
5759if test "${enable_isl_version_check+set}" = set; then :
5760 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5761else
5762 ENABLE_ISL_CHECK=yes
7d32a440
SP
5763fi
5764
5765
33ad93b9
RG
5766 # Initialize isllibs and islinc.
5767 case $with_isl in
5768 no)
5769 isllibs=
5770 islinc=
5771 ;;
5772 "" | yes)
5773 ;;
5774 *)
5775 isllibs="-L$with_isl/lib"
5776 islinc="-I$with_isl/include"
5777 ;;
5778 esac
5779 if test "x${with_isl_include}" != x ; then
5780 islinc="-I$with_isl_include"
5781 fi
5782 if test "x${with_isl_lib}" != x; then
5783 isllibs="-L$with_isl_lib"
5784 fi
5785 if test "x${islinc}" = x && test "x${isllibs}" = x \
5786 && test -d ${srcdir}/isl; then
5787 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5788 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5789 ENABLE_ISL_CHECK=no
5790 fi
7d32a440 5791
7d32a440 5792
7d32a440 5793
33ad93b9
RG
5794 if test "${ENABLE_ISL_CHECK}" = yes ; then
5795 _isl_saved_CFLAGS=$CFLAGS
5796 _isl_saved_LDFLAGS=$LDFLAGS
90d4f233 5797 _isl_saved_LIBS=$LIBS
33ad93b9
RG
5798
5799 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
90d4f233
RO
5800 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5801 LIBS="${_isl_saved_LIBS} -lisl"
33ad93b9
RG
5802 echo $CFLAGS
5803
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5805$as_echo_n "checking for version 0.10 of ISL... " >&6; }
5806if test "${gcc_cv_isl+set}" = set; then :
7d32a440
SP
5807 $as_echo_n "(cached) " >&6
5808else
33ad93b9 5809 if test "$cross_compiling" = yes; then :
2b2d7c53 5810 gcc_cv_isl=yes
33ad93b9
RG
5811else
5812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7d32a440 5813/* end confdefs.h. */
33ad93b9
RG
5814#include <isl/version.h>
5815 #include <string.h>
7d32a440
SP
5816int
5817main ()
5818{
8247e8b2
RG
5819if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5820 return 1;
5821
7d32a440
SP
5822 ;
5823 return 0;
5824}
5825_ACEOF
33ad93b9
RG
5826if ac_fn_c_try_run "$LINENO"; then :
5827 gcc_cv_isl=yes
d789184e 5828else
33ad93b9 5829 gcc_cv_isl=no
7d32a440 5830fi
33ad93b9
RG
5831rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5832 conftest.$ac_objext conftest.beam conftest.$ac_ext
7d32a440 5833fi
33ad93b9 5834
5213506e 5835fi
33ad93b9
RG
5836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5837$as_echo "$gcc_cv_isl" >&6; }
5213506e 5838
33ad93b9
RG
5839 CFLAGS=$_isl_saved_CFLAGS
5840 LDFLAGS=$_isl_saved_LDFLAGS
90d4f233 5841 LIBS=$_isl_saved_LIBS
7d32a440 5842 fi
f8bf9252 5843
7d32a440 5844
f8bf9252 5845
f8bf9252 5846
33ad93b9
RG
5847
5848
33ad93b9
RG
5849 if test "x${with_isl}" = xno; then
5850 graphite_requested=no
5851 elif test "x${with_isl}" != x \
5852 || test "x${with_isl_include}" != x \
5853 || test "x${with_isl_lib}" != x ; then
5854 graphite_requested=yes
5855 else
5856 graphite_requested=no
7d32a440 5857 fi
d789184e 5858
d789184e
SP
5859
5860
33ad93b9
RG
5861 if test "${gcc_cv_isl}" = no ; then
5862 isllibs=
5863 islinc=
5864 fi
5865
5866 if test "${graphite_requested}" = yes \
5867 && test "x${isllibs}" = x \
5868 && test "x${islinc}" = x ; then
f8bf9252 5869
33ad93b9
RG
5870 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
5871 fi
f8bf9252 5872
d32ef397 5873
d789184e 5874
625afa23
RG
5875 if test "x$gcc_cv_isl" != "xno"; then
5876 # Check for CLOOG
5213506e 5877
d789184e 5878
9965e3cd 5879# Check whether --with-cloog-include was given.
5213506e
RW
5880if test "${with_cloog_include+set}" = set; then :
5881 withval=$with_cloog_include;
5882fi
d789184e 5883
d789184e 5884
9965e3cd 5885# Check whether --with-cloog-lib was given.
5213506e
RW
5886if test "${with_cloog_lib+set}" = set; then :
5887 withval=$with_cloog_lib;
5888fi
d789184e 5889
d789184e 5890
d32ef397
AS
5891 # Check whether --enable-cloog-version-check was given.
5892if test "${enable_cloog_version_check+set}" = set; then :
5893 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5894else
5895 ENABLE_CLOOG_CHECK=yes
5896fi
5897
5898
5899 # Initialize clooglibs and clooginc.
5900 case $with_cloog in
5901 no)
5902 clooglibs=
5903 clooginc=
5904 ;;
5905 "" | yes)
5906 ;;
5907 *)
5908 clooglibs="-L$with_cloog/lib"
5909 clooginc="-I$with_cloog/include"
5910 ;;
5911 esac
5912 if test "x${with_cloog_include}" != x ; then
5913 clooginc="-I$with_cloog_include"
5914 fi
5915 if test "x${with_cloog_lib}" != x; then
5916 clooglibs="-L$with_cloog_lib"
5917 fi
14fbeb6c 5918 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
33ad93b9 5919 && test -d ${srcdir}/cloog; then
33ad93b9
RG
5920 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5921 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
ab4173cf 5922 fi
ad0abd3c 5923
33ad93b9 5924 clooginc="-DCLOOG_INT_GMP ${clooginc}"
625afa23 5925 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
d32ef397
AS
5926
5927
5928
5929
5930
5931 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5932 _cloog_saved_CFLAGS=$CFLAGS
5933 _cloog_saved_LDFLAGS=$LDFLAGS
5934
33ad93b9
RG
5935 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
5936 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
d32ef397 5937
6886e444
RG
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
5939$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
5940if test "${gcc_cv_cloog+set}" = set; then :
d32ef397
AS
5941 $as_echo_n "(cached) " >&6
5942else
5213506e 5943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252 5944/* end confdefs.h. */
33ad93b9 5945#include "cloog/version.h"
f8bf9252
SP
5946int
5947main ()
5948{
d32ef397 5949#if CLOOG_VERSION_MAJOR != 0 \
6886e444
RG
5950 || CLOOG_VERSION_MINOR != 17 \
5951 || CLOOG_VERSION_REVISION < 0
d32ef397
AS
5952 choke me
5953 #endif
f8bf9252
SP
5954 ;
5955 return 0;
5956}
5957_ACEOF
0333b9a6 5958if ac_fn_c_try_compile "$LINENO"; then :
6886e444 5959 gcc_cv_cloog=yes
f8bf9252 5960else
6886e444 5961 gcc_cv_cloog=no
f8bf9252 5962fi
5213506e 5963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 5964fi
6886e444
RG
5965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
5966$as_echo "$gcc_cv_cloog" >&6; }
d32ef397
AS
5967
5968 CFLAGS=$_cloog_saved_CFLAGS
5969 LDFLAGS=$_cloog_saved_LDFLAGS
5970 fi
f8bf9252 5971
f8bf9252
SP
5972
5973
5974
d32ef397
AS
5975
5976
5977
6be7b668
JJ
5978 if test "x${with_cloog}" = xno; then
5979 graphite_requested=no
5980 elif test "x${with_cloog}" != x \
d32ef397
AS
5981 || test "x${with_cloog_include}" != x \
5982 || test "x${with_cloog_lib}" != x ; then
5983 graphite_requested=yes
5984 else
5985 graphite_requested=no
5986 fi
5987
5988
5989
6886e444 5990 if test "${gcc_cv_cloog}" = no ; then
d32ef397
AS
5991 clooglibs=
5992 clooginc=
5993 fi
5994
5995 if test "${graphite_requested}" = yes \
5996 && test "x${clooglibs}" = x \
5997 && test "x${clooginc}" = x ; then
5998
625afa23 5999 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
6000 fi
6001
6002
625afa23 6003 fi
d32ef397
AS
6004fi
6005
32d024bf
RG
6006# If either the ISL or the CLooG check failed, disable builds of in-tree
6007# variants of both
625afa23
RG
6008if test "x$with_isl" = xno ||
6009 test "x$with_cloog" = xno ||
6010 test "x$gcc_cv_cloog" = xno ||
6011 test "x$gcc_cv_isl" = xno; then
32d024bf 6012 noconfigdirs="$noconfigdirs cloog isl"
625afa23
RG
6013 islinc=
6014 clooginc=
6015 clooglibs=
32d024bf
RG
6016fi
6017
625afa23
RG
6018
6019
6020
6021
6022
d7f09764
DN
6023# Check for LTO support.
6024# Check whether --enable-lto was given.
6025if test "${enable_lto+set}" = set; then :
6026 enableval=$enable_lto; enable_lto=$enableval
6027else
6028 enable_lto=yes; default_enable_lto=yes
6029fi
6030
6031
7413962d 6032
9a02962b
DK
6033
6034
6035target_elf=no
6036case $target in
6037 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6038 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6039 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6040 target_elf=no
6041 ;;
6042 *)
6043 target_elf=yes
6044 ;;
6045esac
6046
6047if test $target_elf = yes; then :
48215350
DK
6048 # ELF platforms build the lto-plugin always.
6049 build_lto_plugin=yes
9a02962b 6050
9a02962b
DK
6051else
6052 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6053 case $target in
2cd815e7 6054 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6055 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6056 *) enable_lto=no ;;
6057 esac
9a02962b 6058 else
db50fe7d
IS
6059 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6060 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6061 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6062 # warn during gcc/ subconfigure; unless you're bootstrapping with
6063 # -flto it won't be needed until after installation anyway.
6064 case $target in
1cd0b716 6065 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6066 *) if test x"$enable_lto" = x"yes"; then
6067 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6068 fi
6069 ;;
6070 esac
6071 fi
1cd0b716 6072 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6073 # Build it unless LTO was explicitly disabled.
1cd0b716 6074 case $target in
48215350 6075 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6076 *) ;;
6077 esac
48215350 6078
9a02962b
DK
6079fi
6080
d7f09764 6081
f8bf9252 6082
0823efed 6083# By default, C and C++ are the only stage 1 languages.
e1888513 6084stage1_languages=,c,
2805b53a 6085
00020c16 6086# Target libraries that we bootstrap.
ad1e5170 6087bootstrap_target_libs=,target-libgcc,
00020c16 6088
55ffb5ed
NN
6089# Figure out what language subdirectories are present.
6090# Look if the user specified --enable-languages="..."; if not, use
6091# the environment variable $LANGUAGES if defined. $LANGUAGES might
6092# go away some day.
6093# NB: embedded tabs in this IF block -- do not untabify
6094if test -d ${srcdir}/gcc; then
6095 if test x"${enable_languages+set}" != xset; then
6096 if test x"${LANGUAGES+set}" = xset; then
6097 enable_languages="${LANGUAGES}"
6098 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6099 else
6100 enable_languages=all
6101 fi
6102 else
6103 if test x"${enable_languages}" = x ||
6104 test x"${enable_languages}" = xyes;
6105 then
6106 echo configure.in: --enable-languages needs at least one language argument 1>&2
6107 exit 1
6108 fi
6109 fi
6110 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6111
7f26dfa3
FXC
6112 # 'f95' is the old name for the 'fortran' language. We issue a warning
6113 # and make the substitution.
6114 case ,${enable_languages}, in
6115 *,f95,*)
6116 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6117 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6118 ;;
6119 esac
6120
0823efed
DN
6121 # If bootstrapping, C++ must be enabled.
6122 case ",$enable_languages,:$enable_bootstrap" in
6123 *,c++,*:*) ;;
6124 *:yes)
ff3ac0f4
ILT
6125 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6126 enable_languages="${enable_languages},c++"
6127 else
0823efed 6128 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6129 fi
6130 ;;
6131 esac
6132
55ffb5ed
NN
6133 # First scan to see if an enabled language requires some other language.
6134 # We assume that a given config-lang.in will list all the language
6135 # front ends it requires, even if some are required indirectly.
6136 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6137 case ${lang_frag} in
6138 ..) ;;
6139 # The odd quoting in the next line works around
6140 # an apparent bug in bash 1.12 on linux.
6141 ${srcdir}/gcc/[*]/config-lang.in) ;;
6142 *)
69ecd18f
ILT
6143 # From the config-lang.in, get $language, $lang_requires, and
6144 # $lang_requires_boot_languages.
55ffb5ed
NN
6145 language=
6146 lang_requires=
69ecd18f 6147 lang_requires_boot_languages=
55ffb5ed 6148 . ${lang_frag}
69ecd18f 6149 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6150 case ,${enable_languages}, in
6151 *,$other,*) ;;
6152 *,all,*) ;;
6153 *,$language,*)
6154 echo " \`$other' language required by \`$language'; enabling" 1>&2
6155 enable_languages="${enable_languages},${other}"
6156 ;;
6157 esac
6158 done
69ecd18f
ILT
6159 for other in ${lang_requires_boot_languages} ; do
6160 if test "$other" != "c"; then
6161 case ,${enable_stage1_languages}, in
6162 *,$other,*) ;;
6163 *,all,*) ;;
6164 *)
6165 case ,${enable_languages}, in
6166 *,$language,*)
6167 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6168 enable_stage1_languages="$enable_stage1_languages,${other}"
6169 ;;
6170 esac
6171 ;;
6172 esac
6173 fi
6174 done
55ffb5ed
NN
6175 ;;
6176 esac
6177 done
6178
e1888513 6179 new_enable_languages=,c,
d7f09764
DN
6180
6181 # If LTO is enabled, add the LTO front end.
6182 extra_host_libiberty_configure_flags=
6183 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6184 case ,${enable_languages}, in
6185 *,lto,*) ;;
6186 *) enable_languages="${enable_languages},lto" ;;
6187 esac
1cd0b716 6188 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6189 configdirs="$configdirs lto-plugin"
6190 extra_host_libiberty_configure_flags=--enable-shared
6191 fi
6192 fi
6193
6194
55ffb5ed 6195 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6196 potential_languages=,c,
55ffb5ed 6197
4da3b0f8
ILT
6198 enabled_target_libs=
6199 disabled_target_libs=
6200
55ffb5ed
NN
6201 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6202 case ${lang_frag} in
6203 ..) ;;
6204 # The odd quoting in the next line works around
6205 # an apparent bug in bash 1.12 on linux.
6206 ${srcdir}/gcc/[*]/config-lang.in) ;;
6207 *)
1c710c3c 6208 # From the config-lang.in, get $language, $target_libs,
2805b53a 6209 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6210 language=
6211 target_libs=
6212 lang_dirs=
1546bb64 6213 subdir_requires=
e1888513
PB
6214 boot_language=no
6215 build_by_default=yes
55ffb5ed 6216 . ${lang_frag}
e1888513
PB
6217 if test x${language} = x; then
6218 echo "${lang_frag} doesn't set \$language." 1>&2
6219 exit 1
6220 fi
6221
78767fd9 6222 if test "$language" = "c++"; then
0823efed 6223 boot_language=yes
00020c16
ILT
6224 fi
6225
178f875a 6226 add_this_lang=no
e1888513
PB
6227 case ,${enable_languages}, in
6228 *,${language},*)
d4a10d0a
SB
6229 # Language was explicitly selected; include it
6230 # unless it is C, which is enabled by default.
6231 if test "$language" != "c"; then
6232 add_this_lang=yes
6233 fi
55ffb5ed 6234 ;;
e1888513
PB
6235 *,all,*)
6236 # 'all' was selected, select it if it is a default language
178f875a
JM
6237 if test "$language" != "c"; then
6238 add_this_lang=${build_by_default}
6239 fi
55ffb5ed
NN
6240 ;;
6241 esac
6de9cd9a 6242
1546bb64 6243 # Disable languages that need other directories if these aren't available.
95695ad3 6244 for i in $subdir_requires; do
b6348cb3 6245 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6246 case ,${enable_languages}, in
6247 *,${language},*)
6248 # Specifically requested language; tell them.
5213506e 6249 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6250 ;;
6251 *)
6252 # Silently disable.
e1888513 6253 add_this_lang=unsupported
1546bb64
PB
6254 ;;
6255 esac
6256 done
6257
e1888513
PB
6258 # Disable Ada if no preexisting GNAT is available.
6259 case ,${enable_languages},:${language}:${have_gnat} in
6260 *,${language},*:ada:no)
6261 # Specifically requested language; tell them.
5213506e 6262 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6263 ;;
6264 *:ada:no)
6265 # Silently disable.
6266 add_this_lang=unsupported
6267 ;;
6268 esac
6269
4fab7234
HPN
6270 # Disable a language that is unsupported by the target.
6271 case " $unsupported_languages " in
6272 *" $language "*)
e1888513 6273 add_this_lang=unsupported
4fab7234
HPN
6274 ;;
6275 esac
6276
6de9cd9a 6277 case $add_this_lang in
e1888513 6278 unsupported)
55ffb5ed 6279 # Remove language-dependent dirs.
4da3b0f8
ILT
6280 disabled_target_libs="$disabled_target_libs $target_libs"
6281 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6282 ;;
e1888513
PB
6283 no)
6284 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6285 disabled_target_libs="$disabled_target_libs $target_libs"
6286 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6287 potential_languages="${potential_languages}${language},"
6288 ;;
6289 yes)
6290 new_enable_languages="${new_enable_languages}${language},"
6291 potential_languages="${potential_languages}${language},"
2805b53a 6292 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6293 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6294 case "${boot_language}:,$enable_stage1_languages," in
6295 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6296 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6297 case ",$stage1_languages," in
6298 *,$language,* | ,yes, | ,all,) ;;
6299 *) stage1_languages="${stage1_languages}${language}," ;;
6300 esac
00020c16
ILT
6301 # We need to bootstrap any supporting libraries.
6302 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6303 ;;
6304 esac
6305 ;;
55ffb5ed
NN
6306 esac
6307 ;;
6308 esac
6309 done
6310
4da3b0f8
ILT
6311 # Add target libraries which are only needed for disabled languages
6312 # to noconfigdirs.
6313 if test -n "$disabled_target_libs"; then
6314 for dir in $disabled_target_libs; do
6315 case " $enabled_target_libs " in
6316 *" ${dir} "*) ;;
6317 *) noconfigdirs="$noconfigdirs $dir" ;;
6318 esac
6319 done
6320 fi
6321
5213506e
RW
6322 # Check whether --enable-stage1-languages was given.
6323if test "${enable_stage1_languages+set}" = set; then :
6324 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6325 ,no,|,,)
6326 # Set it to something that will have no effect in the loop below
6327 enable_stage1_languages=c ;;
6328 ,yes,)
6329 enable_stage1_languages=`echo $new_enable_languages | \
6330 sed -e "s/^,//" -e "s/,$//" ` ;;
6331 *,all,*)
6332 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6333 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6334 esac
6335
6336 # Add "good" languages from enable_stage1_languages to stage1_languages,
6337 # while "bad" languages go in missing_languages. Leave no duplicates.
6338 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6339 case $potential_languages in
6340 *,$i,*)
6341 case $stage1_languages in
6342 *,$i,*) ;;
6343 *) stage1_languages="$stage1_languages$i," ;;
6344 esac ;;
6345 *)
6346 case $missing_languages in
6347 *,$i,*) ;;
6348 *) missing_languages="$missing_languages$i," ;;
6349 esac ;;
6350 esac
6351 done
5213506e
RW
6352fi
6353
e1888513
PB
6354
6355 # Remove leading/trailing commas that were added for simplicity
6356 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6357 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6358 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6359 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6360
55ffb5ed 6361 if test "x$missing_languages" != x; then
5213506e 6362 as_fn_error "
0cf085e4 6363The following requested languages could not be built: ${missing_languages}
5213506e 6364Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6365 fi
55ffb5ed
NN
6366 if test "x$new_enable_languages" != "x$enable_languages"; then
6367 echo The following languages will be built: ${new_enable_languages}
e1888513 6368 enable_languages="$new_enable_languages"
55ffb5ed 6369 fi
e1888513 6370
1c710c3c 6371
b2eaac4a 6372 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6373fi
6374
27079765
AH
6375# Handle --disable-<component> generically.
6376for dir in $configdirs $build_configdirs $target_configdirs ; do
6377 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6378 varname=`echo $dirname | sed -e s/+/_/g`
6379 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6380 noconfigdirs="$noconfigdirs $dir"
6381 fi
6382done
6383
7cd0cf9c 6384# Check for Boehm's garbage collector
5213506e
RW
6385# Check whether --enable-objc-gc was given.
6386if test "${enable_objc_gc+set}" = set; then :
6387 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6388 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6389 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6390 ;;
6391esac
5213506e
RW
6392fi
6393
7cd0cf9c
DA
6394
6395# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6396case ,${enable_languages},:${enable_objc_gc} in
6397 *,objc,*:yes)
7cd0cf9c
DA
6398 # Keep target-boehm-gc if requested for Objective-C.
6399 ;;
7cd0cf9c 6400 *)
2a79fd67
DA
6401 # Otherwise remove target-boehm-gc depending on target-libjava.
6402 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6403 noconfigdirs="$noconfigdirs target-boehm-gc"
6404 fi
7cd0cf9c
DA
6405 ;;
6406esac
6407
99776ebd
RH
6408# Disable libitm if we're not building C++
6409case ,${enable_languages}, in
9696698a 6410 *,c++,*) ;;
99776ebd
RH
6411 *)
6412 noconfigdirs="$noconfigdirs target-libitm"
6413 ;;
6414esac
6415
ee6a22df
L
6416# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6417# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6418# If we have the source for $noconfigdirs entries, add them to $notsupp.
6419
6420notsupp=""
6421for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6422 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6423 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6424 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6425 if test -r $srcdir/$dirname/configure ; then
6426 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6427 true
6428 else
6429 notsupp="$notsupp $dir"
6430 fi
6431 fi
6432 fi
ee6a22df
L
6433 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6434 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6435 if test -r $srcdir/$dirname/configure ; then
6436 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6437 true
6438 else
6439 notsupp="$notsupp $dir"
6440 fi
6441 fi
6442 fi
55ffb5ed
NN
6443 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6444 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6445 if test -r $srcdir/$dirname/configure ; then
6446 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6447 true
6448 else
6449 notsupp="$notsupp $dir"
6450 fi
6451 fi
6452 fi
6453done
6454
55ffb5ed
NN
6455# Quietly strip out all directories which aren't configurable in this tree.
6456# This relies on all configurable subdirectories being autoconfiscated, which
6457# is now the case.
23f6b2f9
PB
6458build_configdirs_all="$build_configdirs"
6459build_configdirs=
6460for i in ${build_configdirs_all} ; do
1c710c3c 6461 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6462 if test -f ${srcdir}/$j/configure ; then
6463 build_configdirs="${build_configdirs} $i"
6464 fi
6465done
6466
55ffb5ed
NN
6467configdirs_all="$configdirs"
6468configdirs=
6469for i in ${configdirs_all} ; do
6470 if test -f ${srcdir}/$i/configure ; then
6471 configdirs="${configdirs} $i"
6472 fi
6473done
23f6b2f9 6474
55ffb5ed
NN
6475target_configdirs_all="$target_configdirs"
6476target_configdirs=
6477for i in ${target_configdirs_all} ; do
1c710c3c 6478 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6479 if test -f ${srcdir}/$j/configure ; then
6480 target_configdirs="${target_configdirs} $i"
6481 fi
6482done
6483
6484# Produce a warning message for the subdirs we can't configure.
6485# This isn't especially interesting in the Cygnus tree, but in the individual
6486# FSF releases, it's important to let people know when their machine isn't
6487# supported by the one or two programs in a package.
6488
6489if test -n "${notsupp}" && test -z "${norecursion}" ; then
6490 # If $appdirs is non-empty, at least one of those directories must still
6491 # be configured, or we error out. (E.g., if the gas release supports a
6492 # specified target in some subdirs but not the gas subdir, we shouldn't
6493 # pretend that all is well.)
6494 if test -n "$appdirs" ; then
6495 for dir in $appdirs ; do
6496 if test -r $dir/Makefile.in ; then
6497 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6498 appdirs=""
6499 break
6500 fi
23f6b2f9 6501 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6502 appdirs=""
6503 break
6504 fi
6505 fi
6506 done
6507 if test -n "$appdirs" ; then
6508 echo "*** This configuration is not supported by this package." 1>&2
6509 exit 1
6510 fi
6511 fi
6512 # Okay, some application will build, or we don't care to check. Still
6513 # notify of subdirs not getting built.
6514 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6515 echo " ${notsupp}" 1>&2
6516 echo " (Any other directories should still work fine.)" 1>&2
6517fi
6518
6519case "$host" in
6520 *msdosdjgpp*)
6521 enable_gdbtk=no ;;
6522esac
6523
c3a86da9
DJ
6524# To find our prefix, in gcc_cv_tool_prefix.
6525
6526# The user is always right.
6527if test "${PATH_SEPARATOR+set}" != set; then
6528 echo "#! /bin/sh" >conf$$.sh
6529 echo "exit 0" >>conf$$.sh
6530 chmod +x conf$$.sh
6531 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6532 PATH_SEPARATOR=';'
6533 else
6534 PATH_SEPARATOR=:
6535 fi
6536 rm -f conf$$.sh
6537fi
6538
6539
6540
6541if test "x$exec_prefix" = xNONE; then
6542 if test "x$prefix" = xNONE; then
6543 gcc_cv_tool_prefix=$ac_default_prefix
6544 else
6545 gcc_cv_tool_prefix=$prefix
6546 fi
6547else
6548 gcc_cv_tool_prefix=$exec_prefix
6549fi
6550
6551# If there is no compiler in the tree, use the PATH only. In any
6552# case, if there is no compiler in the tree nobody should use
6553# AS_FOR_TARGET and LD_FOR_TARGET.
6554if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6555 gcc_version=`cat $srcdir/gcc/BASE-VER`
6556 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6557 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6558 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6559 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6560 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6561 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6562else
6563 gcc_cv_tool_dirs=
6564fi
6565
6566if test x$build = x$target && test -n "$md_exec_prefix"; then
6567 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6568fi
6569
6570
6571
55ffb5ed
NN
6572copy_dirs=
6573
1c710c3c 6574
5213506e
RW
6575# Check whether --with-build-sysroot was given.
6576if test "${with_build_sysroot+set}" = set; then :
6577 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6578 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6579 fi
6580else
6581 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6582fi
526635cb
MM
6583
6584
c8aea42c 6585
5213506e
RW
6586
6587# Check whether --with-debug-prefix-map was given.
6588if test "${with_debug_prefix_map+set}" = set; then :
6589 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6590 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6591 for debug_map in $withval; do
6592 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6593 done
6594 fi
6595else
6596 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6597fi
6598
c8aea42c
PB
6599
6600
1c8bd6a3
PB
6601# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6602# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6603# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6604# We want to ensure that TARGET libraries (which we know are built with
6605# gcc) are built with "-O2 -g", so include those options when setting
6606# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6607if test "x$CFLAGS_FOR_TARGET" = x; then
6608 CFLAGS_FOR_TARGET=$CFLAGS
6609 case " $CFLAGS " in
6610 *" -O2 "*) ;;
bd8e704f 6611 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6612 esac
6613 case " $CFLAGS " in
6614 *" -g "* | *" -g3 "*) ;;
bd8e704f 6615 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6616 esac
6617fi
6618
6619
6620if test "x$CXXFLAGS_FOR_TARGET" = x; then
6621 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6622 case " $CXXFLAGS " in
6623 *" -O2 "*) ;;
bd8e704f 6624 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6625 esac
6626 case " $CXXFLAGS " in
6627 *" -g "* | *" -g3 "*) ;;
bd8e704f 6628 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
1c8bd6a3
PB
6629 esac
6630fi
6631
6632
6f57bdf6
DK
6633
6634
55ffb5ed
NN
6635# Handle --with-headers=XXX. If the value is not "yes", the contents of
6636# the named directory are copied to $(tooldir)/sys-include.
6637if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6638 if test x${is_cross_compiler} = xno ; then
6639 echo 1>&2 '***' --with-headers is only supported when cross compiling
6640 exit 1
6641 fi
6642 if test x"${with_headers}" != xyes ; then
c3a86da9 6643 x=${gcc_cv_tool_prefix}
1c710c3c 6644 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6645 fi
6646fi
6647
6648# Handle --with-libs=XXX. If the value is not "yes", the contents of
6649# the name directories are copied to $(tooldir)/lib. Multiple directories
6650# are permitted.
6651if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6652 if test x${is_cross_compiler} = xno ; then
6653 echo 1>&2 '***' --with-libs is only supported when cross compiling
6654 exit 1
6655 fi
6656 if test x"${with_libs}" != xyes ; then
6657 # Copy the libraries in reverse order, so that files in the first named
6658 # library override files in subsequent libraries.
c3a86da9 6659 x=${gcc_cv_tool_prefix}
55ffb5ed 6660 for l in ${with_libs}; do
1c710c3c 6661 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6662 done
6663 fi
6664fi
6665
d7f09764 6666# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6667#
6668# This is done by determining whether or not the appropriate directory
6669# is available, and by checking whether or not specific configurations
6670# have requested that this magic not happen.
1c710c3c
DJ
6671#
6672# The command line options always override the explicit settings in
e8b05380
PB
6673# configure.in, and the settings in configure.in override this magic.
6674#
1c710c3c 6675# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6676# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6677# --without-gnu-ld options for the configure script. Similarly, if
6678# the default is to use the included zlib and you don't want to do that,
6679# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6680
6681if test x${use_gnu_as} = x &&
6682 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6683 with_gnu_as=yes
6684 extra_host_args="$extra_host_args --with-gnu-as"
6685fi
6686
6687if test x${use_gnu_ld} = x &&
5afab7ad 6688 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6689 with_gnu_ld=yes
6690 extra_host_args="$extra_host_args --with-gnu-ld"
6691fi
6692
d7f09764
DN
6693if test x${use_included_zlib} = x &&
6694 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6695 :
6696else
6697 with_system_zlib=yes
6698 extra_host_args="$extra_host_args --with-system-zlib"
6699fi
6700
e8b05380
PB
6701# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6702# can detect this case.
6703
6704if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6705 with_newlib=yes
6706 extra_host_args="$extra_host_args --with-newlib"
6707fi
6708
55ffb5ed
NN
6709# Handle ${copy_dirs}
6710set fnord ${copy_dirs}
6711shift
6712while test $# != 0 ; do
6713 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6714 :
6715 else
6716 echo Copying $1 to $2
6717
6718 # Use the install script to create the directory and all required
6719 # parent directories.
6720 if test -d $2 ; then
6721 :
6722 else
6723 echo >config.temp
6724 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6725 fi
6726
6727 # Copy the directory, assuming we have tar.
6728 # FIXME: Should we use B in the second tar? Not all systems support it.
6729 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6730
6731 # It is the responsibility of the user to correctly adjust all
6732 # symlinks. If somebody can figure out how to handle them correctly
6733 # here, feel free to add the code.
6734
6735 echo $1 > $2/COPIED
6736 fi
6737 shift; shift
6738done
6739
e8b05380
PB
6740# Determine a target-dependent exec_prefix that the installed
6741# gcc will search in. Keep this list sorted by triplet, with
6742# the *-*-osname triplets last.
6743md_exec_prefix=
6744case "${target}" in
30b74385 6745 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6746 md_exec_prefix=/dev/env/DJDIR/bin
6747 ;;
e8b05380 6748 *-*-hpux* | \
e8b05380 6749 *-*-nto-qnx* | \
6de66370 6750 *-*-solaris2*)
e8b05380
PB
6751 md_exec_prefix=/usr/ccs/bin
6752 ;;
6753esac
6754
671aa708
NN
6755extra_arflags_for_target=
6756extra_nmflags_for_target=
6757extra_ranlibflags_for_target=
6758target_makefile_frag=/dev/null
6759case "${target}" in
58e24147
AM
6760 spu-*-*)
6761 target_makefile_frag="config/mt-spu"
6762 ;;
d91491e5 6763 mips*-sde-elf* | mips*-mti-elf*)
4bf6c438
RS
6764 target_makefile_frag="config/mt-sde"
6765 ;;
1ec3b87b
RS
6766 mipsisa*-*-elfoabi*)
6767 target_makefile_frag="config/mt-mips-elfoabi"
6768 ;;
08d0963a
RS
6769 mips*-*-*linux* | mips*-*-gnu*)
6770 target_makefile_frag="config/mt-mips-gnu"
6771 ;;
416ac4d4 6772 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6773 target_makefile_frag="config/mt-gnu"
671aa708
NN
6774 ;;
6775 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6776 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6777 # commands to handle both 32-bit and 64-bit objects. These flags are
6778 # harmless if we're using GNU nm or ar.
6779 extra_arflags_for_target=" -X32_64"
6780 extra_nmflags_for_target=" -B -X32_64"
6781 ;;
671aa708
NN
6782esac
6783
6784alphaieee_frag=/dev/null
6785case $target in
6786 alpha*-*-*)
6787 # This just makes sure to use the -mieee option to build target libs.
6788 # This should probably be set individually by each library.
6789 alphaieee_frag="config/mt-alphaieee"
6790 ;;
6791esac
6792
6793# If --enable-target-optspace always use -Os instead of -O2 to build
6794# the target libraries, similarly if it is not specified, use -Os
6795# on selected platforms.
6796ospace_frag=/dev/null
6797case "${enable_target_optspace}:${target}" in
6798 yes:*)
6799 ospace_frag="config/mt-ospace"
6800 ;;
6801 :d30v-*)
6802 ospace_frag="config/mt-d30v"
6803 ;;
6804 :m32r-* | :d10v-* | :fr30-*)
6805 ospace_frag="config/mt-ospace"
6806 ;;
6807 no:* | :*)
6808 ;;
6809 *)
6810 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6811 ;;
6812esac
6813
671aa708
NN
6814# Some systems (e.g., one of the i386-aix systems the gas testers are
6815# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6816tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6817build_tooldir=${tooldir}
6818
671aa708
NN
6819# Create a .gdbinit file which runs the one in srcdir
6820# and tells GDB to look there for source files.
6821
6822if test -r ${srcdir}/.gdbinit ; then
6823 case ${srcdir} in
6824 .) ;;
6825 *) cat > ./.gdbinit <<EOF
6826# ${NO_EDIT}
6827dir ${srcdir}
6828dir .
6829source ${srcdir}/.gdbinit
6830EOF
6831 ;;
6832 esac
6833fi
6834
671aa708
NN
6835# Make sure that the compiler is able to generate an executable. If it
6836# can't, we are probably in trouble. We don't care whether we can run the
6837# executable--we might be using a cross compiler--we only care whether it
6838# can be created. At this point the main configure script has set CC.
6839we_are_ok=no
6840echo "int main () { return 0; }" > conftest.c
6841${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6842if test $? = 0 ; then
6843 if test -s conftest || test -s conftest.exe ; then
6844 we_are_ok=yes
6845 fi
1c710c3c 6846fi
671aa708
NN
6847case $we_are_ok in
6848 no)
6849 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6850 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6851 rm -f conftest*
6852 exit 1
6853 ;;
6854esac
6855rm -f conftest*
6856
d89f0ad6 6857# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6858case "${host}" in
6859 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6860 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6861 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6862 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6863esac
6864
d89f0ad6
AL
6865# On systems where the dynamic library environment variable is PATH,
6866# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6867# built executables to PATH.
6868if test "$RPATH_ENVVAR" = PATH; then
6869 GCC_SHLIB_SUBDIR=/shlib
6870else
6871 GCC_SHLIB_SUBDIR=
6872fi
6873
671aa708
NN
6874# Record target_configdirs and the configure arguments for target and
6875# build configuration in Makefile.
6876target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6877build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6878
ad1e5170
JR
6879# If we are building libgomp, bootstrap it.
6880if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6881 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6882fi
6883
671aa708
NN
6884# Determine whether gdb needs tk/tcl or not.
6885# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6886# and in that case we want gdb to be built without tk. Ugh!
6887# In fact I believe gdb is the *only* package directly dependent on tk,
6888# so we should be able to put the 'maybe's in unconditionally and
6889# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6890# 100% sure that that's safe though.
e914a571 6891
b4f96efe 6892gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6893case "$enable_gdbtk" in
6894 no)
6895 GDB_TK="" ;;
e914a571
AC
6896 yes)
6897 GDB_TK="${gdb_tk}" ;;
671aa708 6898 *)
e914a571
AC
6899 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6900 # distro. Eventually someone will fix this and move Insight, nee
6901 # gdbtk to a separate directory.
6902 if test -d ${srcdir}/gdb/gdbtk ; then
6903 GDB_TK="${gdb_tk}"
6904 else
6905 GDB_TK=""
6906 fi
6907 ;;
671aa708 6908esac
ef9db8d5
DJ
6909CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6910INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6911
60975492 6912# Strip out unwanted targets.
8b87bb96
NN
6913
6914# While at that, we remove Makefiles if we were started for recursive
6915# configuration, so that the top-level Makefile reconfigures them,
6916# like we used to do when configure itself was recursive.
8b87bb96 6917
3e54529c
RW
6918# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6919# but now we're fixing up the Makefile ourselves with the additional
6920# commands passed to AC_CONFIG_FILES. Use separate variables
6921# extrasub-{build,host,target} not because there is any reason to split
6922# the substitutions up that way, but only to remain below the limit of
6923# 99 commands in a script, for HP-UX sed.
6924# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6925
79cd2b23
RW
6926case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6927 yes:yes:*\ gold\ *:*,c++,*) ;;
6928 yes:yes:*\ gold\ *:*)
6929 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6930 ;;
6931esac
6932
ce521a9c 6933# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 6934case $enable_bootstrap in
f516a7da 6935 yes)
e12c4094
AO
6936 bootstrap_suffix=bootstrap
6937 BUILD_CONFIG=bootstrap-debug
6938 ;;
f516a7da 6939 no)
e12c4094
AO
6940 bootstrap_suffix=no-bootstrap
6941 BUILD_CONFIG=
6942 ;;
f516a7da
PB
6943esac
6944
e12c4094
AO
6945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6946$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
6947
6948
6949# Check whether --with-build-config was given.
6950if test "${with_build_config+set}" = set; then :
6951 withval=$with_build_config; case $with_build_config in
6952 yes) with_build_config= ;;
6953 no) with_build_config= BUILD_CONFIG= ;;
6954 esac
6955fi
6956
6957
e12c4094
AO
6958if test "x${with_build_config}" != x; then
6959 BUILD_CONFIG=$with_build_config
6960else
6961 case $BUILD_CONFIG in
6962 bootstrap-debug)
6963 if echo "int f (void) { return 0; }" > conftest.c &&
6964 ${CC} -c conftest.c &&
6965 mv conftest.o conftest.o.g0 &&
6966 ${CC} -c -g conftest.c &&
6967 mv conftest.o conftest.o.g &&
615c8ffa 6968 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
6969 :
6970 else
6971 BUILD_CONFIG=
6972 fi
6973 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6974 ;;
6975 esac
6976fi
6977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6978$as_echo "$BUILD_CONFIG" >&6; }
6979
6980
3e54529c 6981extrasub_build=
23f6b2f9 6982for module in ${build_configdirs} ; do
5607edfd
PB
6983 if test -z "${no_recursion}" \
6984 && test -f ${build_subdir}/${module}/Makefile; then
6985 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6986 rm -f ${build_subdir}/${module}/Makefile
6987 fi
3e54529c 6988 extrasub_build="$extrasub_build
5607edfd
PB
6989/^@if build-$module\$/d
6990/^@endif build-$module\$/d
6991/^@if build-$module-$bootstrap_suffix\$/d
6992/^@endif build-$module-$bootstrap_suffix\$/d"
6993done
3e54529c 6994extrasub_host=
5607edfd 6995for module in ${configdirs} ; do
a6fbc1e2 6996 if test -z "${no_recursion}"; then
f063a9ed 6997 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
6998 if test -f ${file}; then
6999 echo 1>&2 "*** removing ${file} to force reconfigure"
7000 rm -f ${file}
7001 fi
7002 done
5607edfd 7003 fi
3e54529c 7004 extrasub_host="$extrasub_host
5607edfd
PB
7005/^@if $module\$/d
7006/^@endif $module\$/d
7007/^@if $module-$bootstrap_suffix\$/d
7008/^@endif $module-$bootstrap_suffix\$/d"
7009done
3e54529c 7010extrasub_target=
5607edfd
PB
7011for module in ${target_configdirs} ; do
7012 if test -z "${no_recursion}" \
7013 && test -f ${target_subdir}/${module}/Makefile; then
7014 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7015 rm -f ${target_subdir}/${module}/Makefile
7016 fi
00020c16
ILT
7017
7018 # We only bootstrap target libraries listed in bootstrap_target_libs.
7019 case $bootstrap_target_libs in
7020 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7021 *) target_bootstrap_suffix=no-bootstrap ;;
7022 esac
7023
3e54529c 7024 extrasub_target="$extrasub_target
5607edfd
PB
7025/^@if target-$module\$/d
7026/^@endif target-$module\$/d
00020c16
ILT
7027/^@if target-$module-$target_bootstrap_suffix\$/d
7028/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7029done
7030
3e54529c
RW
7031# Do the final fixup along with target modules.
7032extrasub_target="$extrasub_target
60975492 7033/^@if /,/^@endif /d"
671aa708
NN
7034
7035# Create the serialization dependencies. This uses a temporary file.
7036
5213506e
RW
7037# Check whether --enable-serial-configure was given.
7038if test "${enable_serial_configure+set}" = set; then :
7039 enableval=$enable_serial_configure;
7040fi
ade82b16
AO
7041
7042
bf1d3e81
NN
7043case ${enable_serial_configure} in
7044 yes)
7045 enable_serial_build_configure=yes
7046 enable_serial_host_configure=yes
7047 enable_serial_target_configure=yes
7048 ;;
7049esac
7050
671aa708
NN
7051# These force 'configure's to be done one at a time, to avoid problems
7052# with contention over a shared config.cache.
7053rm -f serdep.tmp
ade82b16 7054echo '# serdep.tmp' > serdep.tmp
671aa708 7055olditem=
bf1d3e81 7056test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7057for item in ${build_configdirs} ; do
7058 case ${olditem} in
7059 "") ;;
ade82b16 7060 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7061 esac
7062 olditem=${item}
7063done
7064olditem=
bf1d3e81 7065test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7066for item in ${configdirs} ; do
7067 case ${olditem} in
7068 "") ;;
ade82b16 7069 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7070 esac
7071 olditem=${item}
7072done
7073olditem=
bf1d3e81 7074test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7075for item in ${target_configdirs} ; do
7076 case ${olditem} in
7077 "") ;;
ade82b16 7078 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7079 esac
7080 olditem=${item}
7081done
7082serialization_dependencies=serdep.tmp
7083
7084
ade82b16 7085# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7086# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7087# might not want to pass down to subconfigures. The exception being
7088# --cache-file=/dev/null, which is used to turn off the use of cache
7089# files altogether, and which should be passed on to subconfigures.
7090# Also strip program-prefix, program-suffix, and program-transform-name,
7091# so that we can pass down a consistent program-transform-name.
1c710c3c 7092baseargs=
29a63921 7093tbaseargs=
1c710c3c
DJ
7094keep_next=no
7095skip_next=no
7096eval "set -- $ac_configure_args"
44bfc3ac
DJ
7097for ac_arg
7098do
1c710c3c
DJ
7099 if test X"$skip_next" = X"yes"; then
7100 skip_next=no
7101 continue
7102 fi
7103 if test X"$keep_next" = X"yes"; then
7104 case $ac_arg in
7105 *\'*)
7106 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7107 esac
7108 baseargs="$baseargs '$ac_arg'"
29a63921 7109 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7110 keep_next=no
7111 continue
7112 fi
7113
7114 # Handle separated arguments. Based on the logic generated by
7115 # autoconf 2.59.
7116 case $ac_arg in
7117 *=* | --config-cache | -C | -disable-* | --disable-* \
7118 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7119 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7120 | -with-* | --with-* | -without-* | --without-* | --x)
7121 separate_arg=no
7122 ;;
7123 -*)
7124 separate_arg=yes
7125 ;;
7126 *)
7127 separate_arg=no
7128 ;;
7129 esac
7130
29a63921
AO
7131 skip_targ=no
7132 case $ac_arg in
7133
7134 --with-* | --without-*)
7135 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7136
7137 case $libopt in
7138 *[-_]include)
7139 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7140 ;;
7141 *[-_]lib)
7142 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7143 ;;
7144 *)
7145 lib=$libopt
7146 ;;
7147 esac
7148
7149
7150 case $lib in
33ad93b9 7151 mpc | mpfr | gmp | cloog)
29a63921
AO
7152 # If we're processing --with-$lib, --with-$lib-include or
7153 # --with-$lib-lib, for one of the libs above, and target is
7154 # different from host, don't pass the current argument to any
7155 # target library's configure.
7156 if test x$is_cross_compiler = xyes; then
7157 skip_targ=yes
7158 fi
7159 ;;
7160 esac
7161 ;;
7162 esac
7163
1c710c3c 7164 case "$ac_arg" in
f1a036e4
NC
7165 --cache-file=/dev/null | \
7166 -cache-file=/dev/null )
7167 # Handled here to avoid the test to skip args below.
7168 baseargs="$baseargs '$ac_arg'"
29a63921 7169 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7170 # Assert: $separate_arg should always be no.
7171 keep_next=$separate_arg
7172 ;;
1c710c3c
DJ
7173 --no*)
7174 continue
7175 ;;
7176 --c* | \
7177 --sr* | \
7178 --ho* | \
7179 --bu* | \
7180 --t* | \
7181 --program-* | \
7182 -cache_file* | \
7183 -srcdir* | \
7184 -host* | \
7185 -build* | \
7186 -target* | \
7187 -program-prefix* | \
7188 -program-suffix* | \
7189 -program-transform-name* )
7190 skip_next=$separate_arg
7191 continue
7192 ;;
7193 -*)
7194 # An option. Add it.
7195 case $ac_arg in
7196 *\'*)
7197 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7198 esac
7199 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7200 if test X"$skip_targ" = Xno; then
7201 tbaseargs="$tbaseargs '$ac_arg'"
7202 fi
1c710c3c
DJ
7203 keep_next=$separate_arg
7204 ;;
7205 *)
7206 # Either a variable assignment, or a nonopt (triplet). Don't
7207 # pass it down; let the Makefile handle this.
7208 continue
7209 ;;
7210 esac
7211done
7212# Remove the initial space we just introduced and, as these will be
7213# expanded by make, quote '$'.
7214baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7215
43bb47c2
DJ
7216# Add in --program-transform-name, after --program-prefix and
7217# --program-suffix have been applied to it. Autoconf has already
7218# doubled dollar signs and backslashes in program_transform_name; we want
7219# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7220# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7221# Also, because we want to override the logic in subdir configure scripts to
7222# choose program_transform_name, replace any s,x,x, with s,y,y,.
7223sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7224${program_transform_name}
7225EOF_SED
7226gcc_transform_name=`cat conftestsed.out`
7227rm -f conftestsed.out
7228baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7229tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7230if test "$silent" = yes; then
7231 baseargs="$baseargs --silent"
29a63921 7232 tbaseargs="$tbaseargs --silent"
d9acb717 7233fi
0115d4a3 7234baseargs="$baseargs --disable-option-checking"
29a63921 7235tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7236
ffedf511
RW
7237# Record and document user additions to sub configure arguments.
7238
7239
7240
7241
671aa708
NN
7242# For the build-side libraries, we just need to pretend we're native,
7243# and not use the same cache file. Multilibs are neither needed nor
7244# desired.
ffedf511 7245build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7246
7247# For host modules, accept cache file option, or specification as blank.
7248case "${cache_file}" in
7249"") # empty
7250 cache_file_option="" ;;
7251/* | [A-Za-z]:[\\/]* ) # absolute path
7252 cache_file_option="--cache-file=${cache_file}" ;;
7253*) # relative path
7254 cache_file_option="--cache-file=../${cache_file}" ;;
7255esac
7256
09438bde
NN
7257# Host dirs don't like to share a cache file either, horribly enough.
7258# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7259host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7260
29a63921 7261target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7262
7263# Passing a --with-cross-host argument lets the target libraries know
7264# whether they are being built with a cross-compiler or being built
7265# native. However, it would be better to use other mechanisms to make the
7266# sorts of decisions they want to make on this basis. Please consider
7267# this option to be deprecated. FIXME.
7268if test x${is_cross_compiler} = xyes ; then
1c710c3c 7269 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7270fi
7271
dc683a3f
RW
7272# Default to --enable-multilib.
7273if test x${enable_multilib} = x ; then
671aa708 7274 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7275fi
671aa708
NN
7276
7277# Pass --with-newlib if appropriate. Note that target_configdirs has
7278# changed from the earlier setting of with_newlib.
7279if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7280 target_configargs="--with-newlib ${target_configargs}"
7281fi
7282
6b9eb62c
NN
7283# Different target subdirs use different values of certain variables
7284# (notably CXX). Worse, multilibs use *lots* of different values.
7285# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7286# it doesn't automatically accept command-line overrides of them.
7287# This means it's not safe for target subdirs to share a cache file,
7288# which is disgusting, but there you have it. Hopefully this can be
7289# fixed in future. It's still worthwhile to use a cache file for each
7290# directory. I think.
7291
bebcd931
MS
7292# Pass the appropriate --build, --host, --target and --cache-file arguments.
7293# We need to pass --target, as newer autoconf's requires consistency
7294# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7295target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7296
671aa708
NN
7297FLAGS_FOR_TARGET=
7298case " $target_configdirs " in
7299 *" newlib "*)
7300 case " $target_configargs " in
7301 *" --with-newlib "*)
7302 case "$target" in
5d571eaa
OS
7303 *-cygwin*)
7304 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'
7305 ;;
671aa708
NN
7306 esac
7307
7308 # If we're not building GCC, don't discard standard headers.
7309 if test -d ${srcdir}/gcc; then
7310 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7311
7312 if test "${build}" != "${host}"; then
7313 # On Canadian crosses, CC_FOR_TARGET will have already been set
7314 # by `configure', so we won't have an opportunity to add -Bgcc/
7315 # to it. This is right: we don't want to search that directory
7316 # for binaries, but we want the header files in there, so add
7317 # them explicitly.
0463992b 7318 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7319
7320 # Someone might think of using the pre-installed headers on
7321 # Canadian crosses, in case the installed compiler is not fully
7322 # compatible with the compiler being built. In this case, it
7323 # would be better to flag an error than risking having
7324 # incompatible object files being constructed. We can't
7325 # guarantee that an error will be flagged, but let's hope the
7326 # compiler will do it, when presented with incompatible header
7327 # files.
7328 fi
7329 fi
7330
7331 case "${target}-${is_cross_compiler}" in
f2a0e225 7332 i[3456789]86-*-linux*-no)
671aa708
NN
7333 # Here host == target, so we don't need to build gcc,
7334 # so we don't want to discard standard headers.
7335 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7336 ;;
7337 *)
7338 # If we're building newlib, use its generic headers last, but search
7339 # for any libc-related directories first (so make it the last -B
7340 # switch).
7341 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
7342
7343 # If we're building libgloss, find the startup file, simulator library
7344 # and linker script.
7345 case " $target_configdirs " in
7346 *" libgloss "*)
7347 # Look for startup file, simulator library and maybe linker script.
7348 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7349 # Look for libnosys.a in case the target needs it.
7350 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7351 # Most targets have the linker script in the source directory.
7352 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7353 ;;
7354 esac
671aa708
NN
7355 ;;
7356 esac
7357 ;;
7358 esac
7359 ;;
7360esac
5d571eaa 7361
b91f0a41 7362case "$target" in
5d571eaa
OS
7363 x86_64-*mingw* | *-w64-mingw*)
7364 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7365 # however, use a symlink named 'mingw' in ${prefix} .
7366 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7367 ;;
7368 *-mingw*)
7369 # MinGW can't be handled as Cygwin above since it does not use newlib.
7370 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'
7371 ;;
b91f0a41 7372esac
671aa708 7373
6691a79e
ME
7374# Allow the user to override the flags for
7375# our build compiler if desired.
f019adc1
MF
7376if test x"${build}" = x"${host}" ; then
7377 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7378 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7379 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7380fi
6691a79e 7381
671aa708
NN
7382# On Canadian crosses, we'll be searching the right directories for
7383# the previously-installed cross compiler, so don't bother to add
7384# flags for directories within the install tree of the compiler
7385# being built; programs in there won't even run.
7386if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7387 # Search for pre-installed headers if nothing else fits.
9124bc53 7388 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
7389fi
7390
7391if test "x${use_gnu_ld}" = x &&
7392 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7393 # Arrange for us to find uninstalled linker scripts.
215c351a 7394 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7395fi
7396
e88a2c09
DD
7397# Search for other target-specific linker scripts and such.
7398case "${target}" in
3e19841a
PB
7399 mep*)
7400 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7401 ;;
e88a2c09
DD
7402esac
7403
671aa708 7404# Makefile fragments.
7b61653a
PE
7405for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7406do
7407 eval fragval=\$$frag
7408 if test $fragval != /dev/null; then
7409 eval $frag=${srcdir}/$fragval
7410 fi
7411done
671aa708
NN
7412
7413
7414
7415
7416
7417# Miscellanea: directories, flags, etc.
7418
7419
7420
7421
7422
7423
7424
d89f0ad6 7425
23f6b2f9 7426# Build module lists & subconfigure args.
671aa708
NN
7427
7428
7429
2abefe3d
PB
7430# Host module lists & subconfigure args.
7431
7432
7433
aae29963 7434
2abefe3d
PB
7435# Target module lists & subconfigure args.
7436
7437
7438
7439# Build tools.
7440
7441
7442
0999159b
PB
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
2abefe3d
PB
7457# Generate default definitions for YACC, M4, LEX and other programs that run
7458# on the build machine. These are used if the Makefile can't locate these
7459# programs in objdir.
7460MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7461
7462for ac_prog in 'bison -y' byacc yacc
7463do
1c710c3c 7464 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7465set dummy $ac_prog; ac_word=$2
5213506e
RW
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467$as_echo_n "checking for $ac_word... " >&6; }
7468if test "${ac_cv_prog_YACC+set}" = set; then :
7469 $as_echo_n "(cached) " >&6
2abefe3d
PB
7470else
7471 if test -n "$YACC"; then
7472 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7473else
1c710c3c
DJ
7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475for as_dir in $PATH
7476do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
5213506e
RW
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7481 ac_cv_prog_YACC="$ac_prog"
5213506e 7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7483 break 2
7484 fi
7485done
5213506e
RW
7486 done
7487IFS=$as_save_IFS
1c710c3c 7488
2abefe3d
PB
7489fi
7490fi
1c710c3c 7491YACC=$ac_cv_prog_YACC
2abefe3d 7492if test -n "$YACC"; then
5213506e
RW
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7494$as_echo "$YACC" >&6; }
2abefe3d 7495else
5213506e
RW
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497$as_echo "no" >&6; }
2abefe3d
PB
7498fi
7499
5213506e 7500
1c710c3c 7501 test -n "$YACC" && break
2abefe3d
PB
7502done
7503test -n "$YACC" || YACC="$MISSING bison -y"
7504
7505case " $build_configdirs " in
7506 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7507esac
7508
7509for ac_prog in bison
7510do
1c710c3c 7511 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7512set dummy $ac_prog; ac_word=$2
5213506e
RW
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7514$as_echo_n "checking for $ac_word... " >&6; }
7515if test "${ac_cv_prog_BISON+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
2abefe3d
PB
7517else
7518 if test -n "$BISON"; then
7519 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7520else
1c710c3c
DJ
7521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522for as_dir in $PATH
7523do
7524 IFS=$as_save_IFS
7525 test -z "$as_dir" && as_dir=.
5213506e
RW
7526 for ac_exec_ext in '' $ac_executable_extensions; do
7527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7528 ac_cv_prog_BISON="$ac_prog"
5213506e 7529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7530 break 2
7531 fi
7532done
5213506e
RW
7533 done
7534IFS=$as_save_IFS
1c710c3c 7535
2abefe3d
PB
7536fi
7537fi
1c710c3c 7538BISON=$ac_cv_prog_BISON
2abefe3d 7539if test -n "$BISON"; then
5213506e
RW
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7541$as_echo "$BISON" >&6; }
2abefe3d 7542else
5213506e
RW
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544$as_echo "no" >&6; }
2abefe3d
PB
7545fi
7546
5213506e 7547
1c710c3c 7548 test -n "$BISON" && break
2abefe3d
PB
7549done
7550test -n "$BISON" || BISON="$MISSING bison"
7551
7552case " $build_configdirs " in
7553 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7554esac
7555
7556for ac_prog in gm4 gnum4 m4
7557do
1c710c3c 7558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7559set dummy $ac_prog; ac_word=$2
5213506e
RW
7560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7561$as_echo_n "checking for $ac_word... " >&6; }
7562if test "${ac_cv_prog_M4+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
2abefe3d
PB
7564else
7565 if test -n "$M4"; then
7566 ac_cv_prog_M4="$M4" # Let the user override the test.
7567else
1c710c3c
DJ
7568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7569for as_dir in $PATH
7570do
7571 IFS=$as_save_IFS
7572 test -z "$as_dir" && as_dir=.
5213506e
RW
7573 for ac_exec_ext in '' $ac_executable_extensions; do
7574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7575 ac_cv_prog_M4="$ac_prog"
5213506e 7576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7577 break 2
7578 fi
7579done
5213506e
RW
7580 done
7581IFS=$as_save_IFS
1c710c3c 7582
2abefe3d
PB
7583fi
7584fi
1c710c3c 7585M4=$ac_cv_prog_M4
2abefe3d 7586if test -n "$M4"; then
5213506e
RW
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7588$as_echo "$M4" >&6; }
2abefe3d 7589else
5213506e
RW
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591$as_echo "no" >&6; }
2abefe3d
PB
7592fi
7593
5213506e 7594
1c710c3c 7595 test -n "$M4" && break
2abefe3d
PB
7596done
7597test -n "$M4" || M4="$MISSING m4"
7598
7599case " $build_configdirs " in
7600 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7601esac
7602
7603for ac_prog in flex lex
7604do
1c710c3c 7605 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7606set dummy $ac_prog; ac_word=$2
5213506e
RW
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608$as_echo_n "checking for $ac_word... " >&6; }
7609if test "${ac_cv_prog_LEX+set}" = set; then :
7610 $as_echo_n "(cached) " >&6
2abefe3d
PB
7611else
7612 if test -n "$LEX"; then
7613 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7614else
1c710c3c
DJ
7615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616for as_dir in $PATH
7617do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
5213506e
RW
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7622 ac_cv_prog_LEX="$ac_prog"
5213506e 7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7624 break 2
7625 fi
7626done
5213506e
RW
7627 done
7628IFS=$as_save_IFS
1c710c3c 7629
2abefe3d
PB
7630fi
7631fi
1c710c3c 7632LEX=$ac_cv_prog_LEX
2abefe3d 7633if test -n "$LEX"; then
5213506e
RW
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7635$as_echo "$LEX" >&6; }
2abefe3d 7636else
5213506e
RW
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638$as_echo "no" >&6; }
2abefe3d
PB
7639fi
7640
5213506e 7641
1c710c3c 7642 test -n "$LEX" && break
2abefe3d
PB
7643done
7644test -n "$LEX" || LEX="$MISSING flex"
7645
7646case " $build_configdirs " in
7647 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7648 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7649esac
7650
7651for ac_prog in flex
7652do
1c710c3c 7653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7654set dummy $ac_prog; ac_word=$2
5213506e
RW
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656$as_echo_n "checking for $ac_word... " >&6; }
7657if test "${ac_cv_prog_FLEX+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
2abefe3d
PB
7659else
7660 if test -n "$FLEX"; then
7661 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7662else
1c710c3c
DJ
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
5213506e
RW
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7670 ac_cv_prog_FLEX="$ac_prog"
5213506e 7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7672 break 2
7673 fi
7674done
5213506e
RW
7675 done
7676IFS=$as_save_IFS
1c710c3c 7677
2abefe3d
PB
7678fi
7679fi
1c710c3c 7680FLEX=$ac_cv_prog_FLEX
2abefe3d 7681if test -n "$FLEX"; then
5213506e
RW
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7683$as_echo "$FLEX" >&6; }
2abefe3d 7684else
5213506e
RW
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
2abefe3d
PB
7687fi
7688
5213506e 7689
1c710c3c 7690 test -n "$FLEX" && break
2abefe3d
PB
7691done
7692test -n "$FLEX" || FLEX="$MISSING flex"
7693
7694case " $build_configdirs " in
7695 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7696esac
7697
7698for ac_prog in makeinfo
7699do
1c710c3c 7700 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7701set dummy $ac_prog; ac_word=$2
5213506e
RW
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703$as_echo_n "checking for $ac_word... " >&6; }
7704if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
2abefe3d
PB
7706else
7707 if test -n "$MAKEINFO"; then
7708 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7709else
1c710c3c
DJ
7710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7711for as_dir in $PATH
7712do
7713 IFS=$as_save_IFS
7714 test -z "$as_dir" && as_dir=.
5213506e
RW
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7717 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7719 break 2
7720 fi
7721done
5213506e
RW
7722 done
7723IFS=$as_save_IFS
1c710c3c 7724
2abefe3d
PB
7725fi
7726fi
1c710c3c 7727MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7728if test -n "$MAKEINFO"; then
5213506e
RW
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7730$as_echo "$MAKEINFO" >&6; }
2abefe3d 7731else
5213506e
RW
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733$as_echo "no" >&6; }
2abefe3d
PB
7734fi
7735
5213506e 7736
1c710c3c 7737 test -n "$MAKEINFO" && break
2abefe3d
PB
7738done
7739test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7740
7741case " $build_configdirs " in
7742 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7743 *)
7744
d18ff35a 7745 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7746 # higher, else we use the "missing" dummy.
7747 if ${MAKEINFO} --version \
d18ff35a 7748 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7749 :
7750 else
7751 MAKEINFO="$MISSING makeinfo"
7752 fi
7753 ;;
7754
7755esac
671aa708 7756
2abefe3d 7757# FIXME: expect and dejagnu may become build tools?
671aa708 7758
2abefe3d
PB
7759for ac_prog in expect
7760do
1c710c3c 7761 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7762set dummy $ac_prog; ac_word=$2
5213506e
RW
7763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764$as_echo_n "checking for $ac_word... " >&6; }
7765if test "${ac_cv_prog_EXPECT+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
2abefe3d
PB
7767else
7768 if test -n "$EXPECT"; then
7769 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7770else
1c710c3c
DJ
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
5213506e
RW
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7778 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7780 break 2
7781 fi
7782done
5213506e
RW
7783 done
7784IFS=$as_save_IFS
1c710c3c 7785
2abefe3d
PB
7786fi
7787fi
1c710c3c 7788EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7789if test -n "$EXPECT"; then
5213506e
RW
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7791$as_echo "$EXPECT" >&6; }
2abefe3d 7792else
5213506e
RW
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794$as_echo "no" >&6; }
2abefe3d 7795fi
671aa708 7796
5213506e 7797
1c710c3c 7798 test -n "$EXPECT" && break
2abefe3d
PB
7799done
7800test -n "$EXPECT" || EXPECT="expect"
671aa708 7801
2abefe3d
PB
7802case " $configdirs " in
7803 *" expect "*)
7804 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7805 ;;
7806esac
671aa708 7807
2abefe3d
PB
7808for ac_prog in runtest
7809do
1c710c3c 7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7811set dummy $ac_prog; ac_word=$2
5213506e
RW
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813$as_echo_n "checking for $ac_word... " >&6; }
7814if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
2abefe3d
PB
7816else
7817 if test -n "$RUNTEST"; then
7818 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7819else
1c710c3c
DJ
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
5213506e
RW
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7827 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7829 break 2
7830 fi
7831done
5213506e
RW
7832 done
7833IFS=$as_save_IFS
1c710c3c 7834
2abefe3d
PB
7835fi
7836fi
1c710c3c 7837RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7838if test -n "$RUNTEST"; then
5213506e
RW
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7840$as_echo "$RUNTEST" >&6; }
2abefe3d 7841else
5213506e
RW
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
2abefe3d 7844fi
671aa708 7845
5213506e 7846
1c710c3c 7847 test -n "$RUNTEST" && break
2abefe3d
PB
7848done
7849test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7850
2abefe3d
PB
7851case " $configdirs " in
7852 *" dejagnu "*)
c394e891 7853 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7854 ;;
7855esac
671aa708
NN
7856
7857
671aa708 7858# Host tools.
ca9f4b81
AO
7859ncn_tool_prefix=
7860test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7861ncn_target_tool_prefix=
7862test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7863
278a7a38
AO
7864
7865
7866if test -n "$AR"; then
7867 ac_cv_prog_AR=$AR
7868elif test -n "$ac_cv_prog_AR"; then
7869 AR=$ac_cv_prog_AR
7870fi
7871
7872if test -n "$ac_cv_prog_AR"; then
7873 for ncn_progname in ar; do
7874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7875set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877$as_echo_n "checking for $ac_word... " >&6; }
7878if test "${ac_cv_prog_AR+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
278a7a38
AO
7880else
7881 if test -n "$AR"; then
7882 ac_cv_prog_AR="$AR" # Let the user override the test.
7883else
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
5213506e
RW
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7891 ac_cv_prog_AR="${ncn_progname}"
5213506e 7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7893 break 2
7894 fi
7895done
5213506e
RW
7896 done
7897IFS=$as_save_IFS
278a7a38
AO
7898
7899fi
7900fi
7901AR=$ac_cv_prog_AR
7902if test -n "$AR"; then
5213506e
RW
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7904$as_echo "$AR" >&6; }
278a7a38 7905else
5213506e
RW
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
278a7a38
AO
7908fi
7909
5213506e 7910
278a7a38
AO
7911 done
7912fi
7913
7914for ncn_progname in ar; do
2693c0b0
PB
7915 if test -n "$ncn_tool_prefix"; then
7916 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7917set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7919$as_echo_n "checking for $ac_word... " >&6; }
7920if test "${ac_cv_prog_AR+set}" = set; then :
7921 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7922else
7923 if test -n "$AR"; then
7924 ac_cv_prog_AR="$AR" # Let the user override the test.
7925else
1c710c3c
DJ
7926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927for as_dir in $PATH
7928do
7929 IFS=$as_save_IFS
7930 test -z "$as_dir" && as_dir=.
5213506e
RW
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7933 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7935 break 2
7936 fi
7937done
5213506e
RW
7938 done
7939IFS=$as_save_IFS
1c710c3c 7940
ca9f4b81
AO
7941fi
7942fi
1c710c3c 7943AR=$ac_cv_prog_AR
ca9f4b81 7944if test -n "$AR"; then
5213506e
RW
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7946$as_echo "$AR" >&6; }
ca9f4b81 7947else
5213506e
RW
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7949$as_echo "no" >&6; }
ca9f4b81
AO
7950fi
7951
5213506e 7952
2693c0b0
PB
7953 fi
7954 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7956set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958$as_echo_n "checking for $ac_word... " >&6; }
7959if test "${ac_cv_prog_AR+set}" = set; then :
7960 $as_echo_n "(cached) " >&6
ca9f4b81 7961else
2693c0b0 7962 if test -n "$AR"; then
af71363e
AS
7963 ac_cv_prog_AR="$AR" # Let the user override the test.
7964else
1c710c3c
DJ
7965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966for as_dir in $PATH
7967do
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
5213506e
RW
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7972 ac_cv_prog_AR="${ncn_progname}"
5213506e 7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7974 break 2
7975 fi
7976done
5213506e
RW
7977 done
7978IFS=$as_save_IFS
1c710c3c 7979
ca9f4b81
AO
7980fi
7981fi
1c710c3c 7982AR=$ac_cv_prog_AR
2693c0b0 7983if test -n "$AR"; then
5213506e
RW
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7985$as_echo "$AR" >&6; }
ca9f4b81 7986else
5213506e
RW
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988$as_echo "no" >&6; }
ca9f4b81 7989fi
1c710c3c 7990
5213506e 7991
2693c0b0
PB
7992 fi
7993 test -n "$ac_cv_prog_AR" && break
7994done
7995
7996if test -z "$ac_cv_prog_AR" ; then
7997 set dummy ar
7998 if test $build = $host ; then
7999 AR="$2"
ca9f4b81 8000 else
2693c0b0 8001 AR="${ncn_tool_prefix}$2"
ca9f4b81 8002 fi
ca9f4b81
AO
8003fi
8004
278a7a38
AO
8005
8006
8007if test -n "$AS"; then
8008 ac_cv_prog_AS=$AS
8009elif test -n "$ac_cv_prog_AS"; then
8010 AS=$ac_cv_prog_AS
8011fi
8012
8013if test -n "$ac_cv_prog_AS"; then
8014 for ncn_progname in as; do
8015 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8016set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8018$as_echo_n "checking for $ac_word... " >&6; }
8019if test "${ac_cv_prog_AS+set}" = set; then :
8020 $as_echo_n "(cached) " >&6
278a7a38
AO
8021else
8022 if test -n "$AS"; then
8023 ac_cv_prog_AS="$AS" # Let the user override the test.
8024else
8025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8026for as_dir in $PATH
8027do
8028 IFS=$as_save_IFS
8029 test -z "$as_dir" && as_dir=.
5213506e
RW
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8032 ac_cv_prog_AS="${ncn_progname}"
5213506e 8033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8034 break 2
8035 fi
8036done
5213506e
RW
8037 done
8038IFS=$as_save_IFS
278a7a38
AO
8039
8040fi
8041fi
8042AS=$ac_cv_prog_AS
8043if test -n "$AS"; then
5213506e
RW
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8045$as_echo "$AS" >&6; }
278a7a38 8046else
5213506e
RW
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048$as_echo "no" >&6; }
278a7a38
AO
8049fi
8050
5213506e 8051
278a7a38
AO
8052 done
8053fi
8054
8055for ncn_progname in as; do
2693c0b0
PB
8056 if test -n "$ncn_tool_prefix"; then
8057 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8058set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060$as_echo_n "checking for $ac_word... " >&6; }
8061if test "${ac_cv_prog_AS+set}" = set; then :
8062 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8063else
8064 if test -n "$AS"; then
8065 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8066else
1c710c3c
DJ
8067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068for as_dir in $PATH
8069do
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
5213506e
RW
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8074 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8076 break 2
8077 fi
8078done
5213506e
RW
8079 done
8080IFS=$as_save_IFS
1c710c3c 8081
ca9f4b81
AO
8082fi
8083fi
1c710c3c 8084AS=$ac_cv_prog_AS
ca9f4b81 8085if test -n "$AS"; then
5213506e
RW
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8087$as_echo "$AS" >&6; }
ca9f4b81 8088else
5213506e
RW
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090$as_echo "no" >&6; }
ca9f4b81
AO
8091fi
8092
5213506e 8093
2693c0b0
PB
8094 fi
8095 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8097set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8099$as_echo_n "checking for $ac_word... " >&6; }
8100if test "${ac_cv_prog_AS+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
ca9f4b81 8102else
2693c0b0
PB
8103 if test -n "$AS"; then
8104 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8105else
1c710c3c
DJ
8106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107for as_dir in $PATH
8108do
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
5213506e
RW
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8113 ac_cv_prog_AS="${ncn_progname}"
5213506e 8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8115 break 2
8116 fi
8117done
5213506e
RW
8118 done
8119IFS=$as_save_IFS
1c710c3c 8120
ca9f4b81
AO
8121fi
8122fi
1c710c3c 8123AS=$ac_cv_prog_AS
2693c0b0 8124if test -n "$AS"; then
5213506e
RW
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8126$as_echo "$AS" >&6; }
ca9f4b81 8127else
5213506e
RW
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8129$as_echo "no" >&6; }
ca9f4b81 8130fi
1c710c3c 8131
5213506e 8132
2693c0b0
PB
8133 fi
8134 test -n "$ac_cv_prog_AS" && break
8135done
8136
8137if test -z "$ac_cv_prog_AS" ; then
8138 set dummy as
8139 if test $build = $host ; then
8140 AS="$2"
ca9f4b81 8141 else
2693c0b0 8142 AS="${ncn_tool_prefix}$2"
ca9f4b81 8143 fi
ca9f4b81
AO
8144fi
8145
278a7a38
AO
8146
8147
8148if test -n "$DLLTOOL"; then
8149 ac_cv_prog_DLLTOOL=$DLLTOOL
8150elif test -n "$ac_cv_prog_DLLTOOL"; then
8151 DLLTOOL=$ac_cv_prog_DLLTOOL
8152fi
8153
8154if test -n "$ac_cv_prog_DLLTOOL"; then
8155 for ncn_progname in dlltool; do
8156 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8157set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159$as_echo_n "checking for $ac_word... " >&6; }
8160if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8161 $as_echo_n "(cached) " >&6
278a7a38
AO
8162else
8163 if test -n "$DLLTOOL"; then
8164 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8165else
8166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167for as_dir in $PATH
8168do
8169 IFS=$as_save_IFS
8170 test -z "$as_dir" && as_dir=.
5213506e
RW
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8173 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8175 break 2
8176 fi
8177done
5213506e
RW
8178 done
8179IFS=$as_save_IFS
278a7a38
AO
8180
8181fi
8182fi
8183DLLTOOL=$ac_cv_prog_DLLTOOL
8184if test -n "$DLLTOOL"; then
5213506e
RW
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8186$as_echo "$DLLTOOL" >&6; }
278a7a38 8187else
5213506e
RW
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189$as_echo "no" >&6; }
278a7a38
AO
8190fi
8191
5213506e 8192
278a7a38
AO
8193 done
8194fi
8195
8196for ncn_progname in dlltool; do
2693c0b0
PB
8197 if test -n "$ncn_tool_prefix"; then
8198 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8199set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201$as_echo_n "checking for $ac_word... " >&6; }
8202if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8204else
8205 if test -n "$DLLTOOL"; then
8206 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8207else
1c710c3c
DJ
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211 IFS=$as_save_IFS
8212 test -z "$as_dir" && as_dir=.
5213506e
RW
8213 for ac_exec_ext in '' $ac_executable_extensions; do
8214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8215 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8217 break 2
8218 fi
8219done
5213506e
RW
8220 done
8221IFS=$as_save_IFS
1c710c3c 8222
ca9f4b81
AO
8223fi
8224fi
1c710c3c 8225DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8226if test -n "$DLLTOOL"; then
5213506e
RW
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8228$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8229else
5213506e
RW
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231$as_echo "no" >&6; }
ca9f4b81
AO
8232fi
8233
5213506e 8234
2693c0b0
PB
8235 fi
8236 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8238set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8240$as_echo_n "checking for $ac_word... " >&6; }
8241if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
ca9f4b81 8243else
2693c0b0
PB
8244 if test -n "$DLLTOOL"; then
8245 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8246else
1c710c3c
DJ
8247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248for as_dir in $PATH
8249do
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
5213506e
RW
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8254 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8256 break 2
8257 fi
8258done
5213506e
RW
8259 done
8260IFS=$as_save_IFS
1c710c3c 8261
ca9f4b81
AO
8262fi
8263fi
1c710c3c 8264DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8265if test -n "$DLLTOOL"; then
5213506e
RW
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8267$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8268else
5213506e
RW
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8270$as_echo "no" >&6; }
ca9f4b81 8271fi
1c710c3c 8272
5213506e 8273
2693c0b0
PB
8274 fi
8275 test -n "$ac_cv_prog_DLLTOOL" && break
8276done
8277
8278if test -z "$ac_cv_prog_DLLTOOL" ; then
8279 set dummy dlltool
8280 if test $build = $host ; then
8281 DLLTOOL="$2"
ca9f4b81 8282 else
2693c0b0 8283 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8284 fi
ca9f4b81
AO
8285fi
8286
278a7a38
AO
8287
8288
8289if test -n "$LD"; then
8290 ac_cv_prog_LD=$LD
8291elif test -n "$ac_cv_prog_LD"; then
8292 LD=$ac_cv_prog_LD
8293fi
8294
8295if test -n "$ac_cv_prog_LD"; then
8296 for ncn_progname in ld; do
8297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8298set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8300$as_echo_n "checking for $ac_word... " >&6; }
8301if test "${ac_cv_prog_LD+set}" = set; then :
8302 $as_echo_n "(cached) " >&6
278a7a38
AO
8303else
8304 if test -n "$LD"; then
8305 ac_cv_prog_LD="$LD" # Let the user override the test.
8306else
8307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308for as_dir in $PATH
8309do
8310 IFS=$as_save_IFS
8311 test -z "$as_dir" && as_dir=.
5213506e
RW
8312 for ac_exec_ext in '' $ac_executable_extensions; do
8313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8314 ac_cv_prog_LD="${ncn_progname}"
5213506e 8315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8316 break 2
8317 fi
8318done
5213506e
RW
8319 done
8320IFS=$as_save_IFS
278a7a38
AO
8321
8322fi
8323fi
8324LD=$ac_cv_prog_LD
8325if test -n "$LD"; then
5213506e
RW
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8327$as_echo "$LD" >&6; }
278a7a38 8328else
5213506e
RW
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330$as_echo "no" >&6; }
278a7a38
AO
8331fi
8332
5213506e 8333
278a7a38
AO
8334 done
8335fi
8336
8337for ncn_progname in ld; do
2693c0b0
PB
8338 if test -n "$ncn_tool_prefix"; then
8339 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8340set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342$as_echo_n "checking for $ac_word... " >&6; }
8343if test "${ac_cv_prog_LD+set}" = set; then :
8344 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8345else
8346 if test -n "$LD"; then
8347 ac_cv_prog_LD="$LD" # Let the user override the test.
8348else
1c710c3c
DJ
8349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8350for as_dir in $PATH
8351do
8352 IFS=$as_save_IFS
8353 test -z "$as_dir" && as_dir=.
5213506e
RW
8354 for ac_exec_ext in '' $ac_executable_extensions; do
8355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8356 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8358 break 2
8359 fi
8360done
5213506e
RW
8361 done
8362IFS=$as_save_IFS
1c710c3c 8363
ca9f4b81
AO
8364fi
8365fi
1c710c3c 8366LD=$ac_cv_prog_LD
ca9f4b81 8367if test -n "$LD"; then
5213506e
RW
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8369$as_echo "$LD" >&6; }
ca9f4b81 8370else
5213506e
RW
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372$as_echo "no" >&6; }
ca9f4b81
AO
8373fi
8374
5213506e 8375
2693c0b0
PB
8376 fi
8377 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8378 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8379set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381$as_echo_n "checking for $ac_word... " >&6; }
8382if test "${ac_cv_prog_LD+set}" = set; then :
8383 $as_echo_n "(cached) " >&6
ca9f4b81 8384else
2693c0b0
PB
8385 if test -n "$LD"; then
8386 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8387else
1c710c3c
DJ
8388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389for as_dir in $PATH
8390do
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
5213506e
RW
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8395 ac_cv_prog_LD="${ncn_progname}"
5213506e 8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8397 break 2
8398 fi
8399done
5213506e
RW
8400 done
8401IFS=$as_save_IFS
1c710c3c 8402
ca9f4b81
AO
8403fi
8404fi
1c710c3c 8405LD=$ac_cv_prog_LD
2693c0b0 8406if test -n "$LD"; then
5213506e
RW
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8408$as_echo "$LD" >&6; }
ca9f4b81 8409else
5213506e
RW
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8411$as_echo "no" >&6; }
ca9f4b81 8412fi
1c710c3c 8413
5213506e 8414
2693c0b0
PB
8415 fi
8416 test -n "$ac_cv_prog_LD" && break
8417done
8418
8419if test -z "$ac_cv_prog_LD" ; then
8420 set dummy ld
8421 if test $build = $host ; then
8422 LD="$2"
ca9f4b81 8423 else
2693c0b0 8424 LD="${ncn_tool_prefix}$2"
ca9f4b81 8425 fi
ca9f4b81
AO
8426fi
8427
278a7a38
AO
8428
8429
8430if test -n "$LIPO"; then
8431 ac_cv_prog_LIPO=$LIPO
8432elif test -n "$ac_cv_prog_LIPO"; then
8433 LIPO=$ac_cv_prog_LIPO
8434fi
8435
8436if test -n "$ac_cv_prog_LIPO"; then
8437 for ncn_progname in lipo; do
8438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8439set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441$as_echo_n "checking for $ac_word... " >&6; }
8442if test "${ac_cv_prog_LIPO+set}" = set; then :
8443 $as_echo_n "(cached) " >&6
278a7a38
AO
8444else
8445 if test -n "$LIPO"; then
8446 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8447else
8448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449for as_dir in $PATH
8450do
8451 IFS=$as_save_IFS
8452 test -z "$as_dir" && as_dir=.
5213506e
RW
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8455 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8457 break 2
8458 fi
8459done
5213506e
RW
8460 done
8461IFS=$as_save_IFS
278a7a38
AO
8462
8463fi
8464fi
8465LIPO=$ac_cv_prog_LIPO
8466if test -n "$LIPO"; then
5213506e
RW
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8468$as_echo "$LIPO" >&6; }
278a7a38 8469else
5213506e
RW
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471$as_echo "no" >&6; }
278a7a38
AO
8472fi
8473
5213506e 8474
278a7a38
AO
8475 done
8476fi
8477
8478for ncn_progname in lipo; do
2abefe3d
PB
8479 if test -n "$ncn_tool_prefix"; then
8480 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8481set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483$as_echo_n "checking for $ac_word... " >&6; }
8484if test "${ac_cv_prog_LIPO+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
2abefe3d
PB
8486else
8487 if test -n "$LIPO"; then
8488 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8489else
1c710c3c
DJ
8490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491for as_dir in $PATH
8492do
8493 IFS=$as_save_IFS
8494 test -z "$as_dir" && as_dir=.
5213506e
RW
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8497 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8499 break 2
8500 fi
8501done
5213506e
RW
8502 done
8503IFS=$as_save_IFS
1c710c3c 8504
2abefe3d
PB
8505fi
8506fi
1c710c3c 8507LIPO=$ac_cv_prog_LIPO
2abefe3d 8508if test -n "$LIPO"; then
5213506e
RW
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8510$as_echo "$LIPO" >&6; }
2abefe3d 8511else
5213506e
RW
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513$as_echo "no" >&6; }
2abefe3d
PB
8514fi
8515
5213506e 8516
2abefe3d
PB
8517 fi
8518 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8520set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522$as_echo_n "checking for $ac_word... " >&6; }
8523if test "${ac_cv_prog_LIPO+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
2abefe3d
PB
8525else
8526 if test -n "$LIPO"; then
8527 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8528else
1c710c3c
DJ
8529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530for as_dir in $PATH
8531do
8532 IFS=$as_save_IFS
8533 test -z "$as_dir" && as_dir=.
5213506e
RW
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8536 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8538 break 2
8539 fi
8540done
5213506e
RW
8541 done
8542IFS=$as_save_IFS
1c710c3c 8543
2abefe3d
PB
8544fi
8545fi
1c710c3c 8546LIPO=$ac_cv_prog_LIPO
2abefe3d 8547if test -n "$LIPO"; then
5213506e
RW
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8549$as_echo "$LIPO" >&6; }
2abefe3d 8550else
5213506e
RW
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552$as_echo "no" >&6; }
2abefe3d 8553fi
1c710c3c 8554
5213506e 8555
2abefe3d
PB
8556 fi
8557 test -n "$ac_cv_prog_LIPO" && break
8558done
8559
8560if test -z "$ac_cv_prog_LIPO" ; then
8561 set dummy lipo
8562 if test $build = $host ; then
8563 LIPO="$2"
8564 else
8565 LIPO="${ncn_tool_prefix}$2"
8566 fi
8567fi
8568
278a7a38
AO
8569
8570
8571if test -n "$NM"; then
8572 ac_cv_prog_NM=$NM
8573elif test -n "$ac_cv_prog_NM"; then
8574 NM=$ac_cv_prog_NM
8575fi
8576
8577if test -n "$ac_cv_prog_NM"; then
8578 for ncn_progname in nm; do
8579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8580set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582$as_echo_n "checking for $ac_word... " >&6; }
8583if test "${ac_cv_prog_NM+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8585else
8586 if test -n "$NM"; then
8587 ac_cv_prog_NM="$NM" # Let the user override the test.
8588else
1c710c3c
DJ
8589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590for as_dir in $PATH
8591do
8592 IFS=$as_save_IFS
8593 test -z "$as_dir" && as_dir=.
5213506e
RW
8594 for ac_exec_ext in '' $ac_executable_extensions; do
8595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8596 ac_cv_prog_NM="${ncn_progname}"
5213506e 8597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8598 break 2
8599 fi
8600done
5213506e
RW
8601 done
8602IFS=$as_save_IFS
1c710c3c 8603
ca9f4b81
AO
8604fi
8605fi
1c710c3c 8606NM=$ac_cv_prog_NM
ca9f4b81 8607if test -n "$NM"; then
5213506e
RW
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8609$as_echo "$NM" >&6; }
ca9f4b81 8610else
5213506e
RW
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612$as_echo "no" >&6; }
ca9f4b81
AO
8613fi
8614
5213506e 8615
278a7a38
AO
8616 done
8617fi
8618
8619for ncn_progname in nm; do
8620 if test -n "$ncn_tool_prefix"; then
8621 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8622set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8624$as_echo_n "checking for $ac_word... " >&6; }
8625if test "${ac_cv_prog_NM+set}" = set; then :
8626 $as_echo_n "(cached) " >&6
ca9f4b81 8627else
2693c0b0
PB
8628 if test -n "$NM"; then
8629 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8630else
1c710c3c
DJ
8631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632for as_dir in $PATH
8633do
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
5213506e
RW
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8638 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8640 break 2
8641 fi
8642done
5213506e
RW
8643 done
8644IFS=$as_save_IFS
1c710c3c 8645
ca9f4b81
AO
8646fi
8647fi
1c710c3c 8648NM=$ac_cv_prog_NM
2693c0b0 8649if test -n "$NM"; then
5213506e
RW
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8651$as_echo "$NM" >&6; }
ca9f4b81 8652else
5213506e
RW
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654$as_echo "no" >&6; }
ca9f4b81 8655fi
1c710c3c 8656
5213506e 8657
2693c0b0 8658 fi
278a7a38
AO
8659 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8660 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8661set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8663$as_echo_n "checking for $ac_word... " >&6; }
8664if test "${ac_cv_prog_NM+set}" = set; then :
8665 $as_echo_n "(cached) " >&6
278a7a38
AO
8666else
8667 if test -n "$NM"; then
8668 ac_cv_prog_NM="$NM" # Let the user override the test.
8669else
8670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8671for as_dir in $PATH
8672do
8673 IFS=$as_save_IFS
8674 test -z "$as_dir" && as_dir=.
5213506e
RW
8675 for ac_exec_ext in '' $ac_executable_extensions; do
8676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8677 ac_cv_prog_NM="${ncn_progname}"
5213506e 8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8679 break 2
8680 fi
8681done
5213506e
RW
8682 done
8683IFS=$as_save_IFS
278a7a38
AO
8684
8685fi
8686fi
8687NM=$ac_cv_prog_NM
8688if test -n "$NM"; then
5213506e
RW
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8690$as_echo "$NM" >&6; }
278a7a38 8691else
5213506e
RW
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8693$as_echo "no" >&6; }
278a7a38
AO
8694fi
8695
5213506e 8696
278a7a38
AO
8697 fi
8698 test -n "$ac_cv_prog_NM" && break
8699done
8700
8701if test -z "$ac_cv_prog_NM" ; then
8702 set dummy nm
8703 if test $build = $host ; then
8704 NM="$2"
8705 else
8706 NM="${ncn_tool_prefix}$2"
8707 fi
8708fi
8709
8710
8711
8712if test -n "$RANLIB"; then
8713 ac_cv_prog_RANLIB=$RANLIB
8714elif test -n "$ac_cv_prog_RANLIB"; then
8715 RANLIB=$ac_cv_prog_RANLIB
8716fi
8717
8718if test -n "$ac_cv_prog_RANLIB"; then
8719 for ncn_progname in ranlib; do
8720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8721set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723$as_echo_n "checking for $ac_word... " >&6; }
8724if test "${ac_cv_prog_RANLIB+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
278a7a38
AO
8726else
8727 if test -n "$RANLIB"; then
8728 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8729else
8730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731for as_dir in $PATH
8732do
8733 IFS=$as_save_IFS
8734 test -z "$as_dir" && as_dir=.
5213506e
RW
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8737 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8739 break 2
8740 fi
8741done
5213506e
RW
8742 done
8743IFS=$as_save_IFS
278a7a38
AO
8744
8745fi
8746fi
8747RANLIB=$ac_cv_prog_RANLIB
8748if test -n "$RANLIB"; then
5213506e
RW
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8750$as_echo "$RANLIB" >&6; }
278a7a38 8751else
5213506e
RW
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753$as_echo "no" >&6; }
278a7a38
AO
8754fi
8755
5213506e 8756
278a7a38
AO
8757 done
8758fi
ca9f4b81 8759
278a7a38 8760for ncn_progname in ranlib; do
2693c0b0
PB
8761 if test -n "$ncn_tool_prefix"; then
8762 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8763set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765$as_echo_n "checking for $ac_word... " >&6; }
8766if test "${ac_cv_prog_RANLIB+set}" = set; then :
8767 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8768else
8769 if test -n "$RANLIB"; then
8770 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8771else
1c710c3c
DJ
8772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8773for as_dir in $PATH
8774do
8775 IFS=$as_save_IFS
8776 test -z "$as_dir" && as_dir=.
5213506e
RW
8777 for ac_exec_ext in '' $ac_executable_extensions; do
8778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8779 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8781 break 2
8782 fi
8783done
5213506e
RW
8784 done
8785IFS=$as_save_IFS
1c710c3c 8786
ca9f4b81
AO
8787fi
8788fi
1c710c3c 8789RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8790if test -n "$RANLIB"; then
5213506e
RW
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8792$as_echo "$RANLIB" >&6; }
ca9f4b81 8793else
5213506e
RW
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795$as_echo "no" >&6; }
ca9f4b81
AO
8796fi
8797
5213506e 8798
2693c0b0
PB
8799 fi
8800 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8801 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8802set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8804$as_echo_n "checking for $ac_word... " >&6; }
8805if test "${ac_cv_prog_RANLIB+set}" = set; then :
8806 $as_echo_n "(cached) " >&6
ca9f4b81 8807else
2693c0b0
PB
8808 if test -n "$RANLIB"; then
8809 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8810else
1c710c3c
DJ
8811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8812for as_dir in $PATH
8813do
8814 IFS=$as_save_IFS
8815 test -z "$as_dir" && as_dir=.
5213506e
RW
8816 for ac_exec_ext in '' $ac_executable_extensions; do
8817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8818 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8820 break 2
8821 fi
8822done
5213506e
RW
8823 done
8824IFS=$as_save_IFS
1c710c3c 8825
ca9f4b81
AO
8826fi
8827fi
1c710c3c 8828RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8829if test -n "$RANLIB"; then
5213506e
RW
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8831$as_echo "$RANLIB" >&6; }
ca9f4b81 8832else
5213506e
RW
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834$as_echo "no" >&6; }
ca9f4b81 8835fi
1c710c3c 8836
5213506e 8837
ca9f4b81 8838 fi
2693c0b0
PB
8839 test -n "$ac_cv_prog_RANLIB" && break
8840done
8841
8842if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8843 RANLIB="true"
ca9f4b81
AO
8844fi
8845
278a7a38
AO
8846
8847
8848if test -n "$STRIP"; then
8849 ac_cv_prog_STRIP=$STRIP
8850elif test -n "$ac_cv_prog_STRIP"; then
8851 STRIP=$ac_cv_prog_STRIP
8852fi
8853
8854if test -n "$ac_cv_prog_STRIP"; then
8855 for ncn_progname in strip; do
8856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8857set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8859$as_echo_n "checking for $ac_word... " >&6; }
8860if test "${ac_cv_prog_STRIP+set}" = set; then :
8861 $as_echo_n "(cached) " >&6
278a7a38
AO
8862else
8863 if test -n "$STRIP"; then
8864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8865else
8866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867for as_dir in $PATH
8868do
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
5213506e
RW
8871 for ac_exec_ext in '' $ac_executable_extensions; do
8872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8873 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8875 break 2
8876 fi
8877done
5213506e
RW
8878 done
8879IFS=$as_save_IFS
278a7a38
AO
8880
8881fi
8882fi
8883STRIP=$ac_cv_prog_STRIP
8884if test -n "$STRIP"; then
5213506e
RW
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8886$as_echo "$STRIP" >&6; }
278a7a38 8887else
5213506e
RW
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889$as_echo "no" >&6; }
278a7a38
AO
8890fi
8891
5213506e 8892
278a7a38
AO
8893 done
8894fi
8895
8896for ncn_progname in strip; do
2abefe3d
PB
8897 if test -n "$ncn_tool_prefix"; then
8898 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8899set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8901$as_echo_n "checking for $ac_word... " >&6; }
8902if test "${ac_cv_prog_STRIP+set}" = set; then :
8903 $as_echo_n "(cached) " >&6
2abefe3d
PB
8904else
8905 if test -n "$STRIP"; then
8906 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8907else
1c710c3c
DJ
8908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909for as_dir in $PATH
8910do
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
5213506e
RW
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8915 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8917 break 2
8918 fi
8919done
5213506e
RW
8920 done
8921IFS=$as_save_IFS
1c710c3c 8922
2abefe3d
PB
8923fi
8924fi
1c710c3c 8925STRIP=$ac_cv_prog_STRIP
2abefe3d 8926if test -n "$STRIP"; then
5213506e
RW
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8928$as_echo "$STRIP" >&6; }
2abefe3d 8929else
5213506e
RW
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931$as_echo "no" >&6; }
2abefe3d
PB
8932fi
8933
5213506e 8934
2abefe3d
PB
8935 fi
8936 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8938set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940$as_echo_n "checking for $ac_word... " >&6; }
8941if test "${ac_cv_prog_STRIP+set}" = set; then :
8942 $as_echo_n "(cached) " >&6
2abefe3d
PB
8943else
8944 if test -n "$STRIP"; then
8945 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8946else
1c710c3c
DJ
8947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948for as_dir in $PATH
8949do
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
5213506e
RW
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8954 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8956 break 2
8957 fi
8958done
5213506e
RW
8959 done
8960IFS=$as_save_IFS
1c710c3c 8961
2abefe3d
PB
8962fi
8963fi
1c710c3c 8964STRIP=$ac_cv_prog_STRIP
2abefe3d 8965if test -n "$STRIP"; then
5213506e
RW
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8967$as_echo "$STRIP" >&6; }
2abefe3d 8968else
5213506e
RW
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970$as_echo "no" >&6; }
2abefe3d 8971fi
1c710c3c 8972
5213506e 8973
2abefe3d
PB
8974 fi
8975 test -n "$ac_cv_prog_STRIP" && break
8976done
8977
8978if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 8979 STRIP="true"
2abefe3d
PB
8980fi
8981
278a7a38
AO
8982
8983
8984if test -n "$WINDRES"; then
8985 ac_cv_prog_WINDRES=$WINDRES
8986elif test -n "$ac_cv_prog_WINDRES"; then
8987 WINDRES=$ac_cv_prog_WINDRES
8988fi
8989
8990if test -n "$ac_cv_prog_WINDRES"; then
8991 for ncn_progname in windres; do
8992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8993set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995$as_echo_n "checking for $ac_word... " >&6; }
8996if test "${ac_cv_prog_WINDRES+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
278a7a38
AO
8998else
8999 if test -n "$WINDRES"; then
9000 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9001else
9002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003for as_dir in $PATH
9004do
9005 IFS=$as_save_IFS
9006 test -z "$as_dir" && as_dir=.
5213506e
RW
9007 for ac_exec_ext in '' $ac_executable_extensions; do
9008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9009 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9011 break 2
9012 fi
9013done
5213506e
RW
9014 done
9015IFS=$as_save_IFS
278a7a38
AO
9016
9017fi
9018fi
9019WINDRES=$ac_cv_prog_WINDRES
9020if test -n "$WINDRES"; then
5213506e
RW
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9022$as_echo "$WINDRES" >&6; }
278a7a38 9023else
5213506e
RW
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025$as_echo "no" >&6; }
278a7a38
AO
9026fi
9027
5213506e 9028
278a7a38
AO
9029 done
9030fi
9031
9032for ncn_progname in windres; do
2693c0b0
PB
9033 if test -n "$ncn_tool_prefix"; then
9034 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9035set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9037$as_echo_n "checking for $ac_word... " >&6; }
9038if test "${ac_cv_prog_WINDRES+set}" = set; then :
9039 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9040else
9041 if test -n "$WINDRES"; then
9042 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9043else
1c710c3c
DJ
9044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9045for as_dir in $PATH
9046do
9047 IFS=$as_save_IFS
9048 test -z "$as_dir" && as_dir=.
5213506e
RW
9049 for ac_exec_ext in '' $ac_executable_extensions; do
9050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9051 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9053 break 2
9054 fi
9055done
5213506e
RW
9056 done
9057IFS=$as_save_IFS
1c710c3c 9058
ca9f4b81
AO
9059fi
9060fi
1c710c3c 9061WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9062if test -n "$WINDRES"; then
5213506e
RW
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9064$as_echo "$WINDRES" >&6; }
ca9f4b81 9065else
5213506e
RW
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9067$as_echo "no" >&6; }
ca9f4b81
AO
9068fi
9069
5213506e 9070
2693c0b0
PB
9071 fi
9072 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9074set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9076$as_echo_n "checking for $ac_word... " >&6; }
9077if test "${ac_cv_prog_WINDRES+set}" = set; then :
9078 $as_echo_n "(cached) " >&6
ca9f4b81 9079else
2693c0b0
PB
9080 if test -n "$WINDRES"; then
9081 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9082else
1c710c3c
DJ
9083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9084for as_dir in $PATH
9085do
9086 IFS=$as_save_IFS
9087 test -z "$as_dir" && as_dir=.
5213506e
RW
9088 for ac_exec_ext in '' $ac_executable_extensions; do
9089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9090 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9092 break 2
9093 fi
9094done
5213506e
RW
9095 done
9096IFS=$as_save_IFS
1c710c3c 9097
ca9f4b81
AO
9098fi
9099fi
1c710c3c 9100WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9101if test -n "$WINDRES"; then
5213506e
RW
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9103$as_echo "$WINDRES" >&6; }
ca9f4b81 9104else
5213506e
RW
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106$as_echo "no" >&6; }
ca9f4b81 9107fi
1c710c3c 9108
5213506e 9109
2693c0b0
PB
9110 fi
9111 test -n "$ac_cv_prog_WINDRES" && break
9112done
9113
9114if test -z "$ac_cv_prog_WINDRES" ; then
9115 set dummy windres
9116 if test $build = $host ; then
9117 WINDRES="$2"
ca9f4b81 9118 else
2693c0b0 9119 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9120 fi
ca9f4b81
AO
9121fi
9122
278a7a38
AO
9123
9124
901119ae
KT
9125if test -n "$WINDMC"; then
9126 ac_cv_prog_WINDMC=$WINDMC
9127elif test -n "$ac_cv_prog_WINDMC"; then
9128 WINDMC=$ac_cv_prog_WINDMC
9129fi
9130
9131if test -n "$ac_cv_prog_WINDMC"; then
9132 for ncn_progname in windmc; do
9133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9134set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9136$as_echo_n "checking for $ac_word... " >&6; }
9137if test "${ac_cv_prog_WINDMC+set}" = set; then :
9138 $as_echo_n "(cached) " >&6
901119ae
KT
9139else
9140 if test -n "$WINDMC"; then
9141 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9142else
9143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9144for as_dir in $PATH
9145do
9146 IFS=$as_save_IFS
9147 test -z "$as_dir" && as_dir=.
5213506e
RW
9148 for ac_exec_ext in '' $ac_executable_extensions; do
9149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9150 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9152 break 2
9153 fi
9154done
5213506e
RW
9155 done
9156IFS=$as_save_IFS
901119ae
KT
9157
9158fi
9159fi
9160WINDMC=$ac_cv_prog_WINDMC
9161if test -n "$WINDMC"; then
5213506e
RW
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9163$as_echo "$WINDMC" >&6; }
901119ae 9164else
5213506e
RW
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166$as_echo "no" >&6; }
901119ae
KT
9167fi
9168
5213506e 9169
901119ae
KT
9170 done
9171fi
9172
9173for ncn_progname in windmc; do
9174 if test -n "$ncn_tool_prefix"; then
9175 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9176set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9178$as_echo_n "checking for $ac_word... " >&6; }
9179if test "${ac_cv_prog_WINDMC+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
901119ae
KT
9181else
9182 if test -n "$WINDMC"; then
9183 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9184else
9185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186for as_dir in $PATH
9187do
9188 IFS=$as_save_IFS
9189 test -z "$as_dir" && as_dir=.
5213506e
RW
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9192 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9194 break 2
9195 fi
9196done
5213506e
RW
9197 done
9198IFS=$as_save_IFS
901119ae
KT
9199
9200fi
9201fi
9202WINDMC=$ac_cv_prog_WINDMC
9203if test -n "$WINDMC"; then
5213506e
RW
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9205$as_echo "$WINDMC" >&6; }
901119ae 9206else
5213506e
RW
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208$as_echo "no" >&6; }
901119ae
KT
9209fi
9210
5213506e 9211
901119ae
KT
9212 fi
9213 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9215set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217$as_echo_n "checking for $ac_word... " >&6; }
9218if test "${ac_cv_prog_WINDMC+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
901119ae
KT
9220else
9221 if test -n "$WINDMC"; then
9222 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9223else
9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
5213506e
RW
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9231 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9233 break 2
9234 fi
9235done
5213506e
RW
9236 done
9237IFS=$as_save_IFS
901119ae
KT
9238
9239fi
9240fi
9241WINDMC=$ac_cv_prog_WINDMC
9242if test -n "$WINDMC"; then
5213506e
RW
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9244$as_echo "$WINDMC" >&6; }
901119ae 9245else
5213506e
RW
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247$as_echo "no" >&6; }
901119ae
KT
9248fi
9249
5213506e 9250
901119ae
KT
9251 fi
9252 test -n "$ac_cv_prog_WINDMC" && break
9253done
9254
9255if test -z "$ac_cv_prog_WINDMC" ; then
9256 set dummy windmc
9257 if test $build = $host ; then
9258 WINDMC="$2"
9259 else
9260 WINDMC="${ncn_tool_prefix}$2"
9261 fi
9262fi
9263
9264
9265
278a7a38
AO
9266if test -n "$OBJCOPY"; then
9267 ac_cv_prog_OBJCOPY=$OBJCOPY
9268elif test -n "$ac_cv_prog_OBJCOPY"; then
9269 OBJCOPY=$ac_cv_prog_OBJCOPY
9270fi
9271
9272if test -n "$ac_cv_prog_OBJCOPY"; then
9273 for ncn_progname in objcopy; do
9274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9275set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9277$as_echo_n "checking for $ac_word... " >&6; }
9278if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
278a7a38
AO
9280else
9281 if test -n "$OBJCOPY"; then
9282 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9283else
9284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9285for as_dir in $PATH
9286do
9287 IFS=$as_save_IFS
9288 test -z "$as_dir" && as_dir=.
5213506e
RW
9289 for ac_exec_ext in '' $ac_executable_extensions; do
9290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9291 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9293 break 2
9294 fi
9295done
5213506e
RW
9296 done
9297IFS=$as_save_IFS
278a7a38
AO
9298
9299fi
9300fi
9301OBJCOPY=$ac_cv_prog_OBJCOPY
9302if test -n "$OBJCOPY"; then
5213506e
RW
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9304$as_echo "$OBJCOPY" >&6; }
278a7a38 9305else
5213506e
RW
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9307$as_echo "no" >&6; }
278a7a38
AO
9308fi
9309
5213506e 9310
278a7a38
AO
9311 done
9312fi
9313
9314for ncn_progname in objcopy; do
2693c0b0
PB
9315 if test -n "$ncn_tool_prefix"; then
9316 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9317set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319$as_echo_n "checking for $ac_word... " >&6; }
9320if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9321 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9322else
9323 if test -n "$OBJCOPY"; then
9324 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9325else
1c710c3c
DJ
9326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327for as_dir in $PATH
9328do
9329 IFS=$as_save_IFS
9330 test -z "$as_dir" && as_dir=.
5213506e
RW
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9333 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9335 break 2
9336 fi
9337done
5213506e
RW
9338 done
9339IFS=$as_save_IFS
1c710c3c 9340
ca9f4b81
AO
9341fi
9342fi
1c710c3c 9343OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9344if test -n "$OBJCOPY"; then
5213506e
RW
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9346$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9347else
5213506e
RW
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349$as_echo "no" >&6; }
ca9f4b81
AO
9350fi
9351
5213506e 9352
2693c0b0
PB
9353 fi
9354 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9356set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9358$as_echo_n "checking for $ac_word... " >&6; }
9359if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9360 $as_echo_n "(cached) " >&6
ca9f4b81 9361else
2693c0b0
PB
9362 if test -n "$OBJCOPY"; then
9363 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9364else
1c710c3c
DJ
9365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366for as_dir in $PATH
9367do
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
5213506e
RW
9370 for ac_exec_ext in '' $ac_executable_extensions; do
9371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9372 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9374 break 2
9375 fi
9376done
5213506e
RW
9377 done
9378IFS=$as_save_IFS
1c710c3c 9379
ca9f4b81
AO
9380fi
9381fi
1c710c3c 9382OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9383if test -n "$OBJCOPY"; then
5213506e
RW
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9385$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9386else
5213506e
RW
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9388$as_echo "no" >&6; }
ca9f4b81 9389fi
1c710c3c 9390
5213506e 9391
2693c0b0
PB
9392 fi
9393 test -n "$ac_cv_prog_OBJCOPY" && break
9394done
9395
9396if test -z "$ac_cv_prog_OBJCOPY" ; then
9397 set dummy objcopy
9398 if test $build = $host ; then
9399 OBJCOPY="$2"
ca9f4b81 9400 else
2693c0b0 9401 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9402 fi
ca9f4b81
AO
9403fi
9404
278a7a38
AO
9405
9406
9407if test -n "$OBJDUMP"; then
9408 ac_cv_prog_OBJDUMP=$OBJDUMP
9409elif test -n "$ac_cv_prog_OBJDUMP"; then
9410 OBJDUMP=$ac_cv_prog_OBJDUMP
9411fi
9412
9413if test -n "$ac_cv_prog_OBJDUMP"; then
9414 for ncn_progname in objdump; do
9415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9416set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9418$as_echo_n "checking for $ac_word... " >&6; }
9419if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
278a7a38
AO
9421else
9422 if test -n "$OBJDUMP"; then
9423 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9424else
9425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9426for as_dir in $PATH
9427do
9428 IFS=$as_save_IFS
9429 test -z "$as_dir" && as_dir=.
5213506e
RW
9430 for ac_exec_ext in '' $ac_executable_extensions; do
9431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9432 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9434 break 2
9435 fi
9436done
5213506e
RW
9437 done
9438IFS=$as_save_IFS
278a7a38
AO
9439
9440fi
9441fi
9442OBJDUMP=$ac_cv_prog_OBJDUMP
9443if test -n "$OBJDUMP"; then
5213506e
RW
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9445$as_echo "$OBJDUMP" >&6; }
278a7a38 9446else
5213506e
RW
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9448$as_echo "no" >&6; }
278a7a38
AO
9449fi
9450
5213506e 9451
278a7a38
AO
9452 done
9453fi
9454
9455for ncn_progname in objdump; do
2693c0b0
PB
9456 if test -n "$ncn_tool_prefix"; then
9457 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9458set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9460$as_echo_n "checking for $ac_word... " >&6; }
9461if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9462 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9463else
9464 if test -n "$OBJDUMP"; then
9465 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9466else
1c710c3c
DJ
9467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468for as_dir in $PATH
9469do
9470 IFS=$as_save_IFS
9471 test -z "$as_dir" && as_dir=.
5213506e
RW
9472 for ac_exec_ext in '' $ac_executable_extensions; do
9473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9474 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9476 break 2
9477 fi
9478done
5213506e
RW
9479 done
9480IFS=$as_save_IFS
1c710c3c 9481
ca9f4b81
AO
9482fi
9483fi
1c710c3c 9484OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9485if test -n "$OBJDUMP"; then
5213506e
RW
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9487$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9488else
5213506e
RW
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490$as_echo "no" >&6; }
ca9f4b81
AO
9491fi
9492
5213506e 9493
2693c0b0
PB
9494 fi
9495 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9497set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9499$as_echo_n "checking for $ac_word... " >&6; }
9500if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9501 $as_echo_n "(cached) " >&6
ca9f4b81 9502else
2693c0b0
PB
9503 if test -n "$OBJDUMP"; then
9504 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9505else
1c710c3c
DJ
9506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9507for as_dir in $PATH
9508do
9509 IFS=$as_save_IFS
9510 test -z "$as_dir" && as_dir=.
5213506e
RW
9511 for ac_exec_ext in '' $ac_executable_extensions; do
9512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9513 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9515 break 2
9516 fi
9517done
5213506e
RW
9518 done
9519IFS=$as_save_IFS
1c710c3c 9520
ca9f4b81
AO
9521fi
9522fi
1c710c3c 9523OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9524if test -n "$OBJDUMP"; then
5213506e
RW
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9526$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9527else
5213506e
RW
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9529$as_echo "no" >&6; }
ca9f4b81 9530fi
1c710c3c 9531
5213506e 9532
2693c0b0
PB
9533 fi
9534 test -n "$ac_cv_prog_OBJDUMP" && break
9535done
9536
9537if test -z "$ac_cv_prog_OBJDUMP" ; then
9538 set dummy objdump
9539 if test $build = $host ; then
9540 OBJDUMP="$2"
ca9f4b81 9541 else
2693c0b0 9542 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9543 fi
ca9f4b81
AO
9544fi
9545
671aa708
NN
9546
9547
e7a82751
RM
9548if test -n "$READELF"; then
9549 ac_cv_prog_READELF=$READELF
9550elif test -n "$ac_cv_prog_READELF"; then
9551 READELF=$ac_cv_prog_READELF
9552fi
9553
9554if test -n "$ac_cv_prog_READELF"; then
9555 for ncn_progname in readelf; do
9556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9557set dummy ${ncn_progname}; ac_word=$2
9558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559$as_echo_n "checking for $ac_word... " >&6; }
9560if test "${ac_cv_prog_READELF+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562else
9563 if test -n "$READELF"; then
9564 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9565else
9566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9567for as_dir in $PATH
9568do
9569 IFS=$as_save_IFS
9570 test -z "$as_dir" && as_dir=.
9571 for ac_exec_ext in '' $ac_executable_extensions; do
9572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9573 ac_cv_prog_READELF="${ncn_progname}"
9574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9575 break 2
9576 fi
9577done
9578 done
9579IFS=$as_save_IFS
9580
9581fi
9582fi
9583READELF=$ac_cv_prog_READELF
9584if test -n "$READELF"; then
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9586$as_echo "$READELF" >&6; }
9587else
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9589$as_echo "no" >&6; }
9590fi
9591
9592
9593 done
9594fi
9595
9596for ncn_progname in readelf; do
9597 if test -n "$ncn_tool_prefix"; then
9598 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9599set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9601$as_echo_n "checking for $ac_word... " >&6; }
9602if test "${ac_cv_prog_READELF+set}" = set; then :
9603 $as_echo_n "(cached) " >&6
9604else
9605 if test -n "$READELF"; then
9606 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9607else
9608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609for as_dir in $PATH
9610do
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9615 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 break 2
9618 fi
9619done
9620 done
9621IFS=$as_save_IFS
9622
9623fi
9624fi
9625READELF=$ac_cv_prog_READELF
9626if test -n "$READELF"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9628$as_echo "$READELF" >&6; }
9629else
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9631$as_echo "no" >&6; }
9632fi
9633
9634
9635 fi
9636 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9638set dummy ${ncn_progname}; ac_word=$2
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9640$as_echo_n "checking for $ac_word... " >&6; }
9641if test "${ac_cv_prog_READELF+set}" = set; then :
9642 $as_echo_n "(cached) " >&6
9643else
9644 if test -n "$READELF"; then
9645 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9646else
9647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648for as_dir in $PATH
9649do
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654 ac_cv_prog_READELF="${ncn_progname}"
9655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 break 2
9657 fi
9658done
9659 done
9660IFS=$as_save_IFS
9661
9662fi
9663fi
9664READELF=$ac_cv_prog_READELF
9665if test -n "$READELF"; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9667$as_echo "$READELF" >&6; }
9668else
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9670$as_echo "no" >&6; }
9671fi
9672
9673
9674 fi
9675 test -n "$ac_cv_prog_READELF" && break
9676done
9677
9678if test -z "$ac_cv_prog_READELF" ; then
9679 set dummy readelf
9680 if test $build = $host ; then
9681 READELF="$2"
9682 else
9683 READELF="${ncn_tool_prefix}$2"
9684 fi
9685fi
9686
9687
9688
671aa708
NN
9689
9690
9691
2abefe3d 9692# Target tools.
1c710c3c 9693
5213506e
RW
9694# Check whether --with-build-time-tools was given.
9695if test "${with_build_time_tools+set}" = set; then :
9696 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9697 x/*) ;;
9698 *)
9699 with_build_time_tools=
5213506e
RW
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9701$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9702 ;;
9703 esac
ca9f4b81 9704else
e8b05380 9705 with_build_time_tools=
5213506e
RW
9706fi
9707
ca9f4b81 9708
278a7a38
AO
9709
9710
9711if test -n "$CC_FOR_TARGET"; then
9712 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9713elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9714 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9715fi
9716
9717if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9718 for ncn_progname in cc gcc; do
9719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9720set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9722$as_echo_n "checking for $ac_word... " >&6; }
9723if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
278a7a38
AO
9725else
9726 if test -n "$CC_FOR_TARGET"; then
9727 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9728else
9729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9730for as_dir in $PATH
9731do
9732 IFS=$as_save_IFS
9733 test -z "$as_dir" && as_dir=.
5213506e
RW
9734 for ac_exec_ext in '' $ac_executable_extensions; do
9735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9736 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9738 break 2
9739 fi
9740done
5213506e
RW
9741 done
9742IFS=$as_save_IFS
278a7a38
AO
9743
9744fi
9745fi
9746CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9747if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9749$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9750else
5213506e
RW
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
278a7a38
AO
9753fi
9754
5213506e 9755
278a7a38
AO
9756 done
9757fi
9758
9759if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9760 for ncn_progname in cc gcc; do
5213506e
RW
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9762$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9763 if test -x $with_build_time_tools/${ncn_progname}; then
9764 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9766$as_echo "yes" >&6; }
72a7ab82 9767 break
e8b05380 9768 else
5213506e
RW
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9770$as_echo "no" >&6; }
72a7ab82
AP
9771 fi
9772 done
4de997d1
PB
9773fi
9774
e8b05380
PB
9775if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9776 for ncn_progname in cc gcc; do
9777 if test -n "$ncn_target_tool_prefix"; then
9778 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9779set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9781$as_echo_n "checking for $ac_word... " >&6; }
9782if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9783 $as_echo_n "(cached) " >&6
4de997d1
PB
9784else
9785 if test -n "$CC_FOR_TARGET"; then
9786 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9787else
1c710c3c
DJ
9788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791 IFS=$as_save_IFS
9792 test -z "$as_dir" && as_dir=.
5213506e
RW
9793 for ac_exec_ext in '' $ac_executable_extensions; do
9794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9795 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9797 break 2
9798 fi
9799done
5213506e
RW
9800 done
9801IFS=$as_save_IFS
1c710c3c 9802
4de997d1
PB
9803fi
9804fi
1c710c3c 9805CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9806if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9808$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9809else
5213506e
RW
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9811$as_echo "no" >&6; }
4de997d1
PB
9812fi
9813
5213506e 9814
e8b05380
PB
9815 fi
9816 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9818set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9820$as_echo_n "checking for $ac_word... " >&6; }
9821if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
4de997d1 9823else
2693c0b0
PB
9824 if test -n "$CC_FOR_TARGET"; then
9825 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9826else
1c710c3c
DJ
9827as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828for as_dir in $PATH
9829do
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
5213506e
RW
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9834 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9836 break 2
9837 fi
9838done
5213506e
RW
9839 done
9840IFS=$as_save_IFS
1c710c3c 9841
4de997d1
PB
9842fi
9843fi
1c710c3c 9844CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9845if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9847$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9848else
5213506e
RW
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9850$as_echo "no" >&6; }
4de997d1 9851fi
1c710c3c 9852
5213506e 9853
e8b05380
PB
9854 fi
9855 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9856 done
9857fi
1c710c3c 9858
2693c0b0
PB
9859if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9860 set dummy cc gcc
9861 if test $build = $target ; then
9862 CC_FOR_TARGET="$2"
4de997d1 9863 else
2693c0b0 9864 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9865 fi
1c00b503
PB
9866else
9867 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9868fi
9869
278a7a38
AO
9870
9871
9872if test -n "$CXX_FOR_TARGET"; then
9873 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9874elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9875 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9876fi
9877
9878if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9879 for ncn_progname in c++ g++ cxx gxx; do
9880 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9881set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9883$as_echo_n "checking for $ac_word... " >&6; }
9884if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
278a7a38
AO
9886else
9887 if test -n "$CXX_FOR_TARGET"; then
9888 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9889else
9890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9891for as_dir in $PATH
9892do
9893 IFS=$as_save_IFS
9894 test -z "$as_dir" && as_dir=.
5213506e
RW
9895 for ac_exec_ext in '' $ac_executable_extensions; do
9896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9897 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9899 break 2
9900 fi
9901done
5213506e
RW
9902 done
9903IFS=$as_save_IFS
278a7a38
AO
9904
9905fi
9906fi
9907CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9908if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9910$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9911else
5213506e
RW
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9913$as_echo "no" >&6; }
278a7a38
AO
9914fi
9915
5213506e 9916
278a7a38
AO
9917 done
9918fi
9919
9920if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9921 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9923$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9924 if test -x $with_build_time_tools/${ncn_progname}; then
9925 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9927$as_echo "yes" >&6; }
e8b05380
PB
9928 break
9929 else
5213506e
RW
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9931$as_echo "no" >&6; }
e8b05380
PB
9932 fi
9933 done
9934fi
9935
9936if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9937 for ncn_progname in c++ g++ cxx gxx; do
9938 if test -n "$ncn_target_tool_prefix"; then
9939 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9940set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9942$as_echo_n "checking for $ac_word... " >&6; }
9943if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9944 $as_echo_n "(cached) " >&6
4de997d1
PB
9945else
9946 if test -n "$CXX_FOR_TARGET"; then
9947 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9948else
1c710c3c
DJ
9949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9950for as_dir in $PATH
9951do
9952 IFS=$as_save_IFS
9953 test -z "$as_dir" && as_dir=.
5213506e
RW
9954 for ac_exec_ext in '' $ac_executable_extensions; do
9955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9956 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9958 break 2
9959 fi
9960done
5213506e
RW
9961 done
9962IFS=$as_save_IFS
1c710c3c 9963
4de997d1
PB
9964fi
9965fi
1c710c3c 9966CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9967if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9969$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9970else
5213506e
RW
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9972$as_echo "no" >&6; }
4de997d1
PB
9973fi
9974
5213506e 9975
e8b05380
PB
9976 fi
9977 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9979set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981$as_echo_n "checking for $ac_word... " >&6; }
9982if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9983 $as_echo_n "(cached) " >&6
4de997d1 9984else
2693c0b0
PB
9985 if test -n "$CXX_FOR_TARGET"; then
9986 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9987else
1c710c3c
DJ
9988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989for as_dir in $PATH
9990do
9991 IFS=$as_save_IFS
9992 test -z "$as_dir" && as_dir=.
5213506e
RW
9993 for ac_exec_ext in '' $ac_executable_extensions; do
9994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9995 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9997 break 2
9998 fi
9999done
5213506e
RW
10000 done
10001IFS=$as_save_IFS
1c710c3c 10002
4de997d1
PB
10003fi
10004fi
1c710c3c 10005CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10006if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10008$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10009else
5213506e
RW
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011$as_echo "no" >&6; }
4de997d1 10012fi
1c710c3c 10013
5213506e 10014
e8b05380
PB
10015 fi
10016 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10017 done
10018fi
1c710c3c 10019
2693c0b0
PB
10020if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10021 set dummy c++ g++ cxx gxx
10022 if test $build = $target ; then
10023 CXX_FOR_TARGET="$2"
4de997d1 10024 else
2693c0b0 10025 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10026 fi
1c00b503
PB
10027else
10028 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10029fi
10030
278a7a38
AO
10031
10032
10033if test -n "$GCC_FOR_TARGET"; then
10034 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10035elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10036 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10037fi
10038
10039if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10040 for ncn_progname in gcc; do
10041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10042set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044$as_echo_n "checking for $ac_word... " >&6; }
10045if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10046 $as_echo_n "(cached) " >&6
278a7a38
AO
10047else
10048 if test -n "$GCC_FOR_TARGET"; then
10049 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10050else
10051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10052for as_dir in $PATH
10053do
10054 IFS=$as_save_IFS
10055 test -z "$as_dir" && as_dir=.
5213506e
RW
10056 for ac_exec_ext in '' $ac_executable_extensions; do
10057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10058 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10060 break 2
10061 fi
10062done
5213506e
RW
10063 done
10064IFS=$as_save_IFS
278a7a38
AO
10065
10066fi
10067fi
10068GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10069if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10071$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10072else
5213506e
RW
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10074$as_echo "no" >&6; }
278a7a38
AO
10075fi
10076
5213506e 10077
278a7a38
AO
10078 done
10079fi
10080
10081if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10082 for ncn_progname in gcc; do
5213506e
RW
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10084$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10085 if test -x $with_build_time_tools/${ncn_progname}; then
10086 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10088$as_echo "yes" >&6; }
e8b05380
PB
10089 break
10090 else
5213506e
RW
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10092$as_echo "no" >&6; }
e8b05380
PB
10093 fi
10094 done
10095fi
10096
10097if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10098 for ncn_progname in gcc; do
10099 if test -n "$ncn_target_tool_prefix"; then
10100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10101set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103$as_echo_n "checking for $ac_word... " >&6; }
10104if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
ca9f4b81 10106else
e8b05380
PB
10107 if test -n "$GCC_FOR_TARGET"; then
10108 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10109else
1c710c3c
DJ
10110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111for as_dir in $PATH
10112do
10113 IFS=$as_save_IFS
10114 test -z "$as_dir" && as_dir=.
5213506e
RW
10115 for ac_exec_ext in '' $ac_executable_extensions; do
10116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10117 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10119 break 2
10120 fi
10121done
5213506e
RW
10122 done
10123IFS=$as_save_IFS
1c710c3c 10124
ca9f4b81
AO
10125fi
10126fi
1c710c3c 10127GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10128if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10130$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10131else
5213506e
RW
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133$as_echo "no" >&6; }
ca9f4b81
AO
10134fi
10135
5213506e 10136
e8b05380
PB
10137 fi
10138 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10140set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10142$as_echo_n "checking for $ac_word... " >&6; }
10143if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10144 $as_echo_n "(cached) " >&6
ca9f4b81 10145else
e8b05380
PB
10146 if test -n "$GCC_FOR_TARGET"; then
10147 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10148else
1c710c3c
DJ
10149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10150for as_dir in $PATH
10151do
10152 IFS=$as_save_IFS
10153 test -z "$as_dir" && as_dir=.
5213506e
RW
10154 for ac_exec_ext in '' $ac_executable_extensions; do
10155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10156 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10158 break 2
10159 fi
10160done
5213506e
RW
10161 done
10162IFS=$as_save_IFS
1c710c3c 10163
ca9f4b81
AO
10164fi
10165fi
1c710c3c 10166GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10167if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10169$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10170else
5213506e
RW
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10172$as_echo "no" >&6; }
ca9f4b81 10173fi
1c710c3c 10174
5213506e 10175
e8b05380
PB
10176 fi
10177 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10178 done
10179fi
1c710c3c 10180
e8b05380
PB
10181if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10182 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10183else
10184 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10185fi
10186
278a7a38
AO
10187
10188
10189if test -n "$GCJ_FOR_TARGET"; then
10190 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10191elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10192 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10193fi
10194
10195if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10196 for ncn_progname in gcj; do
10197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10198set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10200$as_echo_n "checking for $ac_word... " >&6; }
10201if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10202 $as_echo_n "(cached) " >&6
278a7a38
AO
10203else
10204 if test -n "$GCJ_FOR_TARGET"; then
10205 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10206else
10207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10208for as_dir in $PATH
10209do
10210 IFS=$as_save_IFS
10211 test -z "$as_dir" && as_dir=.
5213506e
RW
10212 for ac_exec_ext in '' $ac_executable_extensions; do
10213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10214 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10216 break 2
10217 fi
10218done
5213506e
RW
10219 done
10220IFS=$as_save_IFS
278a7a38
AO
10221
10222fi
10223fi
10224GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10225if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10227$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10228else
5213506e
RW
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230$as_echo "no" >&6; }
278a7a38
AO
10231fi
10232
5213506e 10233
278a7a38
AO
10234 done
10235fi
10236
10237if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10238 for ncn_progname in gcj; do
5213506e
RW
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10240$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10241 if test -x $with_build_time_tools/${ncn_progname}; then
10242 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10244$as_echo "yes" >&6; }
e8b05380
PB
10245 break
10246 else
5213506e
RW
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10248$as_echo "no" >&6; }
e8b05380
PB
10249 fi
10250 done
10251fi
10252
10253if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10254 for ncn_progname in gcj; do
10255 if test -n "$ncn_target_tool_prefix"; then
10256 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10257set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10259$as_echo_n "checking for $ac_word... " >&6; }
10260if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10261 $as_echo_n "(cached) " >&6
e8b05380 10262else
fb0103e5
RG
10263 if test -n "$GCJ_FOR_TARGET"; then
10264 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10265else
1c710c3c
DJ
10266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10267for as_dir in $PATH
10268do
10269 IFS=$as_save_IFS
10270 test -z "$as_dir" && as_dir=.
5213506e
RW
10271 for ac_exec_ext in '' $ac_executable_extensions; do
10272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10273 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10275 break 2
10276 fi
10277done
5213506e
RW
10278 done
10279IFS=$as_save_IFS
1c710c3c 10280
e8b05380
PB
10281fi
10282fi
278a7a38
AO
10283GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10284if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10286$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10287else
5213506e
RW
10288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10289$as_echo "no" >&6; }
278a7a38
AO
10290fi
10291
5213506e 10292
278a7a38
AO
10293 fi
10294 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10296set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10298$as_echo_n "checking for $ac_word... " >&6; }
10299if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10300 $as_echo_n "(cached) " >&6
278a7a38
AO
10301else
10302 if test -n "$GCJ_FOR_TARGET"; then
10303 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10304else
10305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10306for as_dir in $PATH
10307do
10308 IFS=$as_save_IFS
10309 test -z "$as_dir" && as_dir=.
5213506e
RW
10310 for ac_exec_ext in '' $ac_executable_extensions; do
10311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10312 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10314 break 2
10315 fi
10316done
5213506e
RW
10317 done
10318IFS=$as_save_IFS
278a7a38
AO
10319
10320fi
10321fi
10322GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10323if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10325$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10326else
5213506e
RW
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10328$as_echo "no" >&6; }
278a7a38
AO
10329fi
10330
5213506e 10331
278a7a38
AO
10332 fi
10333 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10334 done
10335fi
10336
10337if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10338 set dummy gcj
10339 if test $build = $target ; then
10340 GCJ_FOR_TARGET="$2"
10341 else
10342 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10343 fi
1c00b503
PB
10344else
10345 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10346fi
10347
10348
10349
10350if test -n "$GFORTRAN_FOR_TARGET"; then
10351 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10352elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10353 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10354fi
10355
278a7a38
AO
10356if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10357 for ncn_progname in gfortran; do
10358 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10359set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361$as_echo_n "checking for $ac_word... " >&6; }
10362if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10363 $as_echo_n "(cached) " >&6
e8b05380 10364else
278a7a38
AO
10365 if test -n "$GFORTRAN_FOR_TARGET"; then
10366 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10367else
1c710c3c
DJ
10368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369for as_dir in $PATH
10370do
10371 IFS=$as_save_IFS
10372 test -z "$as_dir" && as_dir=.
5213506e
RW
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10375 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10377 break 2
10378 fi
10379done
5213506e
RW
10380 done
10381IFS=$as_save_IFS
1c710c3c 10382
e8b05380
PB
10383fi
10384fi
278a7a38
AO
10385GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10386if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10388$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10389else
5213506e
RW
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391$as_echo "no" >&6; }
e8b05380 10392fi
1c710c3c 10393
5213506e 10394
e8b05380
PB
10395 done
10396fi
1c710c3c 10397
278a7a38 10398if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10399 for ncn_progname in gfortran; do
5213506e
RW
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10401$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10402 if test -x $with_build_time_tools/${ncn_progname}; then
10403 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10405$as_echo "yes" >&6; }
e8b05380
PB
10406 break
10407 else
5213506e
RW
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409$as_echo "no" >&6; }
e8b05380
PB
10410 fi
10411 done
10412fi
10413
10414if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10415 for ncn_progname in gfortran; do
10416 if test -n "$ncn_target_tool_prefix"; then
10417 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10418set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10420$as_echo_n "checking for $ac_word... " >&6; }
10421if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10422 $as_echo_n "(cached) " >&6
e8b05380
PB
10423else
10424 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10425 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10426else
10427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10428for as_dir in $PATH
10429do
10430 IFS=$as_save_IFS
10431 test -z "$as_dir" && as_dir=.
5213506e
RW
10432 for ac_exec_ext in '' $ac_executable_extensions; do
10433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10434 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10436 break 2
10437 fi
10438done
5213506e
RW
10439 done
10440IFS=$as_save_IFS
1c710c3c 10441
e8b05380
PB
10442fi
10443fi
1c710c3c 10444GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10445if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10447$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10448else
5213506e
RW
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450$as_echo "no" >&6; }
e8b05380
PB
10451fi
10452
5213506e 10453
e8b05380
PB
10454 fi
10455 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10457set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10459$as_echo_n "checking for $ac_word... " >&6; }
10460if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10461 $as_echo_n "(cached) " >&6
e8b05380
PB
10462else
10463 if test -n "$GFORTRAN_FOR_TARGET"; then
10464 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10465else
1c710c3c
DJ
10466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10467for as_dir in $PATH
10468do
10469 IFS=$as_save_IFS
10470 test -z "$as_dir" && as_dir=.
5213506e
RW
10471 for ac_exec_ext in '' $ac_executable_extensions; do
10472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10473 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10475 break 2
10476 fi
10477done
5213506e
RW
10478 done
10479IFS=$as_save_IFS
1c710c3c 10480
e8b05380
PB
10481fi
10482fi
1c710c3c 10483GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10484if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10486$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10487else
5213506e
RW
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10489$as_echo "no" >&6; }
e8b05380 10490fi
1c710c3c 10491
5213506e 10492
e8b05380
PB
10493 fi
10494 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10495 done
10496fi
1c710c3c 10497
e8b05380
PB
10498if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10499 set dummy gfortran
2693c0b0 10500 if test $build = $target ; then
e8b05380 10501 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10502 else
e8b05380
PB
10503 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10504 fi
1c00b503
PB
10505else
10506 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10507fi
10508
10509
10510
632e2a07
ILT
10511if test -n "$GOC_FOR_TARGET"; then
10512 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10513elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10514 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10515fi
10516
10517if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10518 for ncn_progname in gccgo; do
10519 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10520set dummy ${ncn_progname}; ac_word=$2
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10522$as_echo_n "checking for $ac_word... " >&6; }
10523if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10524 $as_echo_n "(cached) " >&6
10525else
10526 if test -n "$GOC_FOR_TARGET"; then
10527 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10528else
10529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10530for as_dir in $PATH
10531do
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10536 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10539 fi
10540done
10541 done
10542IFS=$as_save_IFS
10543
10544fi
10545fi
10546GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10547if test -n "$GOC_FOR_TARGET"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10549$as_echo "$GOC_FOR_TARGET" >&6; }
10550else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552$as_echo "no" >&6; }
10553fi
10554
10555
10556 done
10557fi
10558
10559if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10560 for ncn_progname in gccgo; do
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10562$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10563 if test -x $with_build_time_tools/${ncn_progname}; then
10564 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10566$as_echo "yes" >&6; }
10567 break
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570$as_echo "no" >&6; }
10571 fi
10572 done
10573fi
10574
10575if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10576 for ncn_progname in gccgo; do
10577 if test -n "$ncn_target_tool_prefix"; then
10578 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10579set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10581$as_echo_n "checking for $ac_word... " >&6; }
10582if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10583 $as_echo_n "(cached) " >&6
10584else
10585 if test -n "$GOC_FOR_TARGET"; then
10586 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10587else
10588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10589for as_dir in $PATH
10590do
10591 IFS=$as_save_IFS
10592 test -z "$as_dir" && as_dir=.
10593 for ac_exec_ext in '' $ac_executable_extensions; do
10594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10595 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10597 break 2
10598 fi
10599done
10600 done
10601IFS=$as_save_IFS
10602
10603fi
10604fi
10605GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10606if test -n "$GOC_FOR_TARGET"; then
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10608$as_echo "$GOC_FOR_TARGET" >&6; }
10609else
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611$as_echo "no" >&6; }
10612fi
10613
10614
10615 fi
10616 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10618set dummy ${ncn_progname}; ac_word=$2
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10620$as_echo_n "checking for $ac_word... " >&6; }
10621if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10622 $as_echo_n "(cached) " >&6
10623else
10624 if test -n "$GOC_FOR_TARGET"; then
10625 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10626else
10627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10628for as_dir in $PATH
10629do
10630 IFS=$as_save_IFS
10631 test -z "$as_dir" && as_dir=.
10632 for ac_exec_ext in '' $ac_executable_extensions; do
10633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10634 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10636 break 2
10637 fi
10638done
10639 done
10640IFS=$as_save_IFS
10641
10642fi
10643fi
10644GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10645if test -n "$GOC_FOR_TARGET"; then
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10647$as_echo "$GOC_FOR_TARGET" >&6; }
10648else
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10650$as_echo "no" >&6; }
10651fi
10652
10653
10654 fi
10655 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10656 done
10657fi
10658
10659if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10660 set dummy gccgo
10661 if test $build = $target ; then
10662 GOC_FOR_TARGET="$2"
10663 else
10664 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10665 fi
10666else
10667 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10668fi
10669
10670
10671
e8b05380
PB
10672cat > conftest.c << \EOF
10673#ifdef __GNUC__
10674 gcc_yay;
10675#endif
10676EOF
10677if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10678 have_gcc_for_target=yes
10679else
10680 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10681 have_gcc_for_target=no
10682fi
10683rm conftest.c
10684
10685
10686
10687
10688if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10689 if test -n "$with_build_time_tools"; then
5213506e
RW
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10691$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10692 if test -x $with_build_time_tools/ar; then
10693 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10694 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10696$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10697 else
5213506e
RW
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699$as_echo "no" >&6; }
d1f8db0c 10700 fi
e8b05380
PB
10701 elif test $build != $host && test $have_gcc_for_target = yes; then
10702 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10703 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10704 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10705 fi
10706fi
3e19841a 10707if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10708 # Extract the first word of "ar", so it can be a program name with args.
10709set dummy ar; ac_word=$2
5213506e
RW
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711$as_echo_n "checking for $ac_word... " >&6; }
10712if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
e8b05380 10714else
1c710c3c
DJ
10715 case $AR_FOR_TARGET in
10716 [\\/]* | ?:[\\/]*)
e8b05380
PB
10717 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10718 ;;
e8b05380 10719 *)
1c710c3c
DJ
10720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10721for as_dir in $gcc_cv_tool_dirs
10722do
10723 IFS=$as_save_IFS
10724 test -z "$as_dir" && as_dir=.
5213506e
RW
10725 for ac_exec_ext in '' $ac_executable_extensions; do
10726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10727 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10729 break 2
10730 fi
10731done
5213506e
RW
10732 done
10733IFS=$as_save_IFS
1c710c3c 10734
e8b05380
PB
10735 ;;
10736esac
10737fi
1c710c3c 10738AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10739if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10741$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10742else
5213506e
RW
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10744$as_echo "no" >&6; }
4de997d1
PB
10745fi
10746
5213506e 10747
e8b05380
PB
10748fi
10749if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10750
10751
10752if test -n "$AR_FOR_TARGET"; then
10753 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10754elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10755 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10756fi
10757
10758if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10759 for ncn_progname in ar; do
10760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10761set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763$as_echo_n "checking for $ac_word... " >&6; }
10764if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
278a7a38
AO
10766else
10767 if test -n "$AR_FOR_TARGET"; then
10768 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10769else
10770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771for as_dir in $PATH
10772do
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
5213506e
RW
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10777 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10779 break 2
10780 fi
10781done
5213506e
RW
10782 done
10783IFS=$as_save_IFS
278a7a38
AO
10784
10785fi
10786fi
10787AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10788if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10790$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10791else
5213506e
RW
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793$as_echo "no" >&6; }
278a7a38
AO
10794fi
10795
5213506e 10796
278a7a38
AO
10797 done
10798fi
10799
10800if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10801 for ncn_progname in ar; do
5213506e
RW
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10803$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10804 if test -x $with_build_time_tools/${ncn_progname}; then
10805 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10807$as_echo "yes" >&6; }
e8b05380
PB
10808 break
10809 else
5213506e
RW
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10811$as_echo "no" >&6; }
e8b05380
PB
10812 fi
10813 done
10814fi
10815
10816if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10817 for ncn_progname in ar; do
10818 if test -n "$ncn_target_tool_prefix"; then
10819 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10820set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10822$as_echo_n "checking for $ac_word... " >&6; }
10823if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10824 $as_echo_n "(cached) " >&6
4de997d1 10825else
e8b05380
PB
10826 if test -n "$AR_FOR_TARGET"; then
10827 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10828else
1c710c3c
DJ
10829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10830for as_dir in $PATH
10831do
10832 IFS=$as_save_IFS
10833 test -z "$as_dir" && as_dir=.
5213506e
RW
10834 for ac_exec_ext in '' $ac_executable_extensions; do
10835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10836 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10838 break 2
10839 fi
10840done
5213506e
RW
10841 done
10842IFS=$as_save_IFS
1c710c3c 10843
4de997d1
PB
10844fi
10845fi
1c710c3c 10846AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10847if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10849$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10850else
5213506e
RW
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852$as_echo "no" >&6; }
4de997d1
PB
10853fi
10854
5213506e 10855
e8b05380
PB
10856 fi
10857 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10859set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10861$as_echo_n "checking for $ac_word... " >&6; }
10862if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10863 $as_echo_n "(cached) " >&6
e8b05380
PB
10864else
10865 if test -n "$AR_FOR_TARGET"; then
10866 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10867else
1c710c3c
DJ
10868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10869for as_dir in $PATH
10870do
10871 IFS=$as_save_IFS
10872 test -z "$as_dir" && as_dir=.
5213506e
RW
10873 for ac_exec_ext in '' $ac_executable_extensions; do
10874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10875 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10877 break 2
10878 fi
10879done
5213506e
RW
10880 done
10881IFS=$as_save_IFS
1c710c3c 10882
e8b05380
PB
10883fi
10884fi
1c710c3c 10885AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10886if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10888$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10889else
5213506e
RW
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891$as_echo "no" >&6; }
e8b05380 10892fi
1c710c3c 10893
5213506e 10894
e8b05380
PB
10895 fi
10896 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10897 done
10898fi
1c710c3c 10899
e8b05380
PB
10900if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10901 set dummy ar
10902 if test $build = $target ; then
10903 AR_FOR_TARGET="$2"
10904 else
10905 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10906 fi
1c00b503
PB
10907else
10908 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10909fi
10910
d1f8db0c
PB
10911else
10912 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10913fi
10914
10915
10916
10917
10918if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10919 if test -n "$with_build_time_tools"; then
5213506e
RW
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10921$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10922 if test -x $with_build_time_tools/as; then
10923 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10924 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10926$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10927 else
5213506e
RW
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10929$as_echo "no" >&6; }
d1f8db0c 10930 fi
e8b05380
PB
10931 elif test $build != $host && test $have_gcc_for_target = yes; then
10932 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10933 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10934 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10935 fi
10936fi
3e19841a 10937if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10938 # Extract the first word of "as", so it can be a program name with args.
10939set dummy as; ac_word=$2
5213506e
RW
10940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10941$as_echo_n "checking for $ac_word... " >&6; }
10942if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10943 $as_echo_n "(cached) " >&6
e8b05380 10944else
1c710c3c
DJ
10945 case $AS_FOR_TARGET in
10946 [\\/]* | ?:[\\/]*)
e8b05380
PB
10947 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10948 ;;
e8b05380 10949 *)
1c710c3c
DJ
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951for as_dir in $gcc_cv_tool_dirs
10952do
10953 IFS=$as_save_IFS
10954 test -z "$as_dir" && as_dir=.
5213506e
RW
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10957 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10959 break 2
10960 fi
10961done
5213506e
RW
10962 done
10963IFS=$as_save_IFS
1c710c3c 10964
e8b05380
PB
10965 ;;
10966esac
10967fi
1c710c3c 10968AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10969if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10971$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10972else
5213506e
RW
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974$as_echo "no" >&6; }
e8b05380
PB
10975fi
10976
5213506e 10977
e8b05380
PB
10978fi
10979if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10980
10981
10982if test -n "$AS_FOR_TARGET"; then
10983 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10984elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10985 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10986fi
10987
10988if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10989 for ncn_progname in as; do
10990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10991set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10993$as_echo_n "checking for $ac_word... " >&6; }
10994if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10995 $as_echo_n "(cached) " >&6
278a7a38
AO
10996else
10997 if test -n "$AS_FOR_TARGET"; then
10998 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10999else
11000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
11004 test -z "$as_dir" && as_dir=.
5213506e
RW
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11007 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11009 break 2
11010 fi
11011done
5213506e
RW
11012 done
11013IFS=$as_save_IFS
278a7a38
AO
11014
11015fi
11016fi
11017AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11018if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11020$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11021else
5213506e
RW
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11023$as_echo "no" >&6; }
278a7a38
AO
11024fi
11025
5213506e 11026
278a7a38
AO
11027 done
11028fi
11029
11030if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11031 for ncn_progname in as; do
5213506e
RW
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11033$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11034 if test -x $with_build_time_tools/${ncn_progname}; then
11035 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11037$as_echo "yes" >&6; }
e8b05380
PB
11038 break
11039 else
5213506e
RW
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11041$as_echo "no" >&6; }
e8b05380
PB
11042 fi
11043 done
11044fi
11045
11046if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11047 for ncn_progname in as; do
11048 if test -n "$ncn_target_tool_prefix"; then
11049 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11050set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11052$as_echo_n "checking for $ac_word... " >&6; }
11053if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11054 $as_echo_n "(cached) " >&6
e8b05380
PB
11055else
11056 if test -n "$AS_FOR_TARGET"; then
11057 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11058else
1c710c3c
DJ
11059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060for as_dir in $PATH
11061do
11062 IFS=$as_save_IFS
11063 test -z "$as_dir" && as_dir=.
5213506e
RW
11064 for ac_exec_ext in '' $ac_executable_extensions; do
11065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11066 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11068 break 2
11069 fi
11070done
5213506e
RW
11071 done
11072IFS=$as_save_IFS
1c710c3c 11073
e8b05380
PB
11074fi
11075fi
1c710c3c 11076AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11077if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11079$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11080else
5213506e
RW
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11082$as_echo "no" >&6; }
e8b05380
PB
11083fi
11084
5213506e 11085
e8b05380
PB
11086 fi
11087 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11089set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11091$as_echo_n "checking for $ac_word... " >&6; }
11092if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11093 $as_echo_n "(cached) " >&6
4de997d1 11094else
e8b05380
PB
11095 if test -n "$AS_FOR_TARGET"; then
11096 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11097else
1c710c3c
DJ
11098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $PATH
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
5213506e
RW
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11105 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11107 break 2
11108 fi
11109done
5213506e
RW
11110 done
11111IFS=$as_save_IFS
1c710c3c 11112
4de997d1
PB
11113fi
11114fi
1c710c3c 11115AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11116if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11118$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11119else
5213506e
RW
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121$as_echo "no" >&6; }
4de997d1 11122fi
1c710c3c 11123
5213506e 11124
e8b05380
PB
11125 fi
11126 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11127 done
11128fi
1c710c3c 11129
e8b05380
PB
11130if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11131 set dummy as
11132 if test $build = $target ; then
11133 AS_FOR_TARGET="$2"
11134 else
11135 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11136 fi
1c00b503
PB
11137else
11138 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11139fi
2693c0b0 11140
d1f8db0c
PB
11141else
11142 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11143fi
11144
e8b05380
PB
11145
11146
11147
11148if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11149 if test -n "$with_build_time_tools"; then
5213506e
RW
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11151$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11152 if test -x $with_build_time_tools/dlltool; then
11153 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11154 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11156$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11157 else
5213506e
RW
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11159$as_echo "no" >&6; }
d1f8db0c 11160 fi
e8b05380
PB
11161 elif test $build != $host && test $have_gcc_for_target = yes; then
11162 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11163 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11164 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11165 fi
11166fi
3e19841a 11167if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11168 # Extract the first word of "dlltool", so it can be a program name with args.
11169set dummy dlltool; ac_word=$2
5213506e
RW
11170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11171$as_echo_n "checking for $ac_word... " >&6; }
11172if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11173 $as_echo_n "(cached) " >&6
4de997d1 11174else
1c710c3c
DJ
11175 case $DLLTOOL_FOR_TARGET in
11176 [\\/]* | ?:[\\/]*)
e8b05380
PB
11177 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11178 ;;
e8b05380 11179 *)
1c710c3c
DJ
11180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11181for as_dir in $gcc_cv_tool_dirs
11182do
11183 IFS=$as_save_IFS
11184 test -z "$as_dir" && as_dir=.
5213506e
RW
11185 for ac_exec_ext in '' $ac_executable_extensions; do
11186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11187 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11189 break 2
11190 fi
11191done
5213506e
RW
11192 done
11193IFS=$as_save_IFS
1c710c3c 11194
e8b05380
PB
11195 ;;
11196esac
4de997d1 11197fi
1c710c3c 11198DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11199if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11201$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11202else
5213506e
RW
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11204$as_echo "no" >&6; }
4de997d1
PB
11205fi
11206
5213506e 11207
e8b05380
PB
11208fi
11209if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11210
11211
11212if test -n "$DLLTOOL_FOR_TARGET"; then
11213 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11214elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11215 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11216fi
11217
11218if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11219 for ncn_progname in dlltool; do
11220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11221set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11223$as_echo_n "checking for $ac_word... " >&6; }
11224if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11225 $as_echo_n "(cached) " >&6
278a7a38
AO
11226else
11227 if test -n "$DLLTOOL_FOR_TARGET"; then
11228 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11229else
11230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231for as_dir in $PATH
11232do
11233 IFS=$as_save_IFS
11234 test -z "$as_dir" && as_dir=.
5213506e
RW
11235 for ac_exec_ext in '' $ac_executable_extensions; do
11236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11237 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11239 break 2
11240 fi
11241done
5213506e
RW
11242 done
11243IFS=$as_save_IFS
278a7a38
AO
11244
11245fi
11246fi
11247DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11248if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11250$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11251else
5213506e
RW
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11253$as_echo "no" >&6; }
278a7a38
AO
11254fi
11255
5213506e 11256
278a7a38
AO
11257 done
11258fi
11259
11260if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11261 for ncn_progname in dlltool; do
5213506e
RW
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11263$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11264 if test -x $with_build_time_tools/${ncn_progname}; then
11265 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11267$as_echo "yes" >&6; }
e8b05380
PB
11268 break
11269 else
5213506e
RW
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271$as_echo "no" >&6; }
e8b05380
PB
11272 fi
11273 done
11274fi
11275
11276if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11277 for ncn_progname in dlltool; do
11278 if test -n "$ncn_target_tool_prefix"; then
11279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11280set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11282$as_echo_n "checking for $ac_word... " >&6; }
11283if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11284 $as_echo_n "(cached) " >&6
4de997d1 11285else
e8b05380
PB
11286 if test -n "$DLLTOOL_FOR_TARGET"; then
11287 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11288else
1c710c3c
DJ
11289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290for as_dir in $PATH
11291do
11292 IFS=$as_save_IFS
11293 test -z "$as_dir" && as_dir=.
5213506e
RW
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11296 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11298 break 2
11299 fi
11300done
5213506e
RW
11301 done
11302IFS=$as_save_IFS
1c710c3c 11303
4de997d1
PB
11304fi
11305fi
1c710c3c 11306DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11307if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11309$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11310else
5213506e
RW
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312$as_echo "no" >&6; }
4de997d1 11313fi
4de997d1 11314
5213506e 11315
e8b05380
PB
11316 fi
11317 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11319set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321$as_echo_n "checking for $ac_word... " >&6; }
11322if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
4de997d1 11324else
e8b05380
PB
11325 if test -n "$DLLTOOL_FOR_TARGET"; then
11326 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11327else
1c710c3c
DJ
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
5213506e
RW
11333 for ac_exec_ext in '' $ac_executable_extensions; do
11334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11335 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11337 break 2
11338 fi
11339done
5213506e
RW
11340 done
11341IFS=$as_save_IFS
1c710c3c 11342
4de997d1
PB
11343fi
11344fi
1c710c3c 11345DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11346if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11348$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11349else
5213506e
RW
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351$as_echo "no" >&6; }
4de997d1 11352fi
1c710c3c 11353
5213506e 11354
e8b05380
PB
11355 fi
11356 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11357 done
11358fi
1c710c3c 11359
e8b05380
PB
11360if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11361 set dummy dlltool
11362 if test $build = $target ; then
11363 DLLTOOL_FOR_TARGET="$2"
11364 else
11365 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11366 fi
1c00b503
PB
11367else
11368 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11369fi
11370
d1f8db0c
PB
11371else
11372 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11373fi
11374
4de997d1 11375
e8b05380
PB
11376
11377
11378if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11379 if test -n "$with_build_time_tools"; then
5213506e
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11381$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11382 if test -x $with_build_time_tools/ld; then
11383 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11384 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11386$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11387 else
5213506e
RW
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389$as_echo "no" >&6; }
d1f8db0c 11390 fi
e8b05380
PB
11391 elif test $build != $host && test $have_gcc_for_target = yes; then
11392 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11393 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11394 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11395 fi
e8b05380 11396fi
3e19841a 11397if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11398 # Extract the first word of "ld", so it can be a program name with args.
11399set dummy ld; ac_word=$2
5213506e
RW
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401$as_echo_n "checking for $ac_word... " >&6; }
11402if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11403 $as_echo_n "(cached) " >&6
4de997d1 11404else
1c710c3c
DJ
11405 case $LD_FOR_TARGET in
11406 [\\/]* | ?:[\\/]*)
e8b05380
PB
11407 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11408 ;;
e8b05380 11409 *)
1c710c3c
DJ
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411for as_dir in $gcc_cv_tool_dirs
11412do
11413 IFS=$as_save_IFS
11414 test -z "$as_dir" && as_dir=.
5213506e
RW
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11417 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11419 break 2
11420 fi
11421done
5213506e
RW
11422 done
11423IFS=$as_save_IFS
1c710c3c 11424
e8b05380
PB
11425 ;;
11426esac
4de997d1 11427fi
1c710c3c 11428LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11429if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11431$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11432else
5213506e
RW
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11434$as_echo "no" >&6; }
4de997d1 11435fi
2693c0b0 11436
5213506e 11437
e8b05380
PB
11438fi
11439if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11440
11441
11442if test -n "$LD_FOR_TARGET"; then
11443 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11444elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11445 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11446fi
11447
11448if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11449 for ncn_progname in ld; do
11450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11451set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11453$as_echo_n "checking for $ac_word... " >&6; }
11454if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11455 $as_echo_n "(cached) " >&6
278a7a38
AO
11456else
11457 if test -n "$LD_FOR_TARGET"; then
11458 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11459else
11460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11461for as_dir in $PATH
11462do
11463 IFS=$as_save_IFS
11464 test -z "$as_dir" && as_dir=.
5213506e
RW
11465 for ac_exec_ext in '' $ac_executable_extensions; do
11466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11467 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11469 break 2
11470 fi
11471done
5213506e
RW
11472 done
11473IFS=$as_save_IFS
278a7a38
AO
11474
11475fi
11476fi
11477LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11478if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11480$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11481else
5213506e
RW
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11483$as_echo "no" >&6; }
278a7a38
AO
11484fi
11485
5213506e 11486
278a7a38
AO
11487 done
11488fi
11489
11490if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11491 for ncn_progname in ld; do
5213506e
RW
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11493$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11494 if test -x $with_build_time_tools/${ncn_progname}; then
11495 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11497$as_echo "yes" >&6; }
e8b05380
PB
11498 break
11499 else
5213506e
RW
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11501$as_echo "no" >&6; }
e8b05380
PB
11502 fi
11503 done
ca9f4b81
AO
11504fi
11505
e8b05380
PB
11506if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11507 for ncn_progname in ld; do
11508 if test -n "$ncn_target_tool_prefix"; then
11509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11510set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512$as_echo_n "checking for $ac_word... " >&6; }
11513if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11514 $as_echo_n "(cached) " >&6
ca9f4b81 11515else
4de997d1
PB
11516 if test -n "$LD_FOR_TARGET"; then
11517 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11518else
1c710c3c
DJ
11519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520for as_dir in $PATH
11521do
11522 IFS=$as_save_IFS
11523 test -z "$as_dir" && as_dir=.
5213506e
RW
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11526 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11528 break 2
11529 fi
11530done
5213506e
RW
11531 done
11532IFS=$as_save_IFS
1c710c3c 11533
ca9f4b81
AO
11534fi
11535fi
1c710c3c 11536LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11537if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11539$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11540else
5213506e
RW
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542$as_echo "no" >&6; }
ca9f4b81
AO
11543fi
11544
5213506e 11545
e8b05380
PB
11546 fi
11547 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11549set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551$as_echo_n "checking for $ac_word... " >&6; }
11552if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11553 $as_echo_n "(cached) " >&6
ca9f4b81 11554else
2693c0b0
PB
11555 if test -n "$LD_FOR_TARGET"; then
11556 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11557else
1c710c3c
DJ
11558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $PATH
11560do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
5213506e
RW
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11565 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11567 break 2
11568 fi
11569done
5213506e
RW
11570 done
11571IFS=$as_save_IFS
1c710c3c 11572
ca9f4b81
AO
11573fi
11574fi
1c710c3c 11575LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11576if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11578$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11579else
5213506e
RW
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581$as_echo "no" >&6; }
ca9f4b81 11582fi
1c710c3c 11583
5213506e 11584
e8b05380
PB
11585 fi
11586 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11587 done
11588fi
1c710c3c 11589
2693c0b0
PB
11590if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11591 set dummy ld
11592 if test $build = $target ; then
11593 LD_FOR_TARGET="$2"
ca9f4b81 11594 else
2693c0b0 11595 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11596 fi
1c00b503
PB
11597else
11598 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11599fi
11600
d1f8db0c
PB
11601else
11602 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11603fi
11604
11605
11606
11607
11608if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11609 if test -n "$with_build_time_tools"; then
5213506e
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11611$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11612 if test -x $with_build_time_tools/lipo; then
11613 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11614 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11616$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11617 else
5213506e
RW
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619$as_echo "no" >&6; }
d1f8db0c 11620 fi
e8b05380
PB
11621 elif test $build != $host && test $have_gcc_for_target = yes; then
11622 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11623 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11624 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11625 fi
11626fi
278a7a38
AO
11627if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11628 # Extract the first word of "lipo", so it can be a program name with args.
11629set dummy lipo; ac_word=$2
5213506e
RW
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11631$as_echo_n "checking for $ac_word... " >&6; }
11632if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11633 $as_echo_n "(cached) " >&6
278a7a38
AO
11634else
11635 case $LIPO_FOR_TARGET in
11636 [\\/]* | ?:[\\/]*)
11637 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11638 ;;
11639 *)
11640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11641for as_dir in $gcc_cv_tool_dirs
11642do
11643 IFS=$as_save_IFS
11644 test -z "$as_dir" && as_dir=.
5213506e
RW
11645 for ac_exec_ext in '' $ac_executable_extensions; do
11646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11647 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11649 break 2
11650 fi
11651done
5213506e
RW
11652 done
11653IFS=$as_save_IFS
278a7a38
AO
11654
11655 ;;
11656esac
11657fi
11658LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11659if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11661$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11662else
5213506e
RW
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664$as_echo "no" >&6; }
278a7a38
AO
11665fi
11666
5213506e 11667
278a7a38
AO
11668fi
11669if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11670
11671
11672if test -n "$LIPO_FOR_TARGET"; then
11673 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11674elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11675 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11676fi
11677
11678if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11679 for ncn_progname in lipo; do
11680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11681set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683$as_echo_n "checking for $ac_word... " >&6; }
11684if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11685 $as_echo_n "(cached) " >&6
e8b05380 11686else
278a7a38
AO
11687 if test -n "$LIPO_FOR_TARGET"; then
11688 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11689else
11690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691for as_dir in $PATH
1c710c3c
DJ
11692do
11693 IFS=$as_save_IFS
11694 test -z "$as_dir" && as_dir=.
5213506e
RW
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11697 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11699 break 2
11700 fi
11701done
5213506e
RW
11702 done
11703IFS=$as_save_IFS
1c710c3c 11704
e8b05380 11705fi
278a7a38
AO
11706fi
11707LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11708if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11710$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11711else
5213506e
RW
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713$as_echo "no" >&6; }
e8b05380
PB
11714fi
11715
5213506e 11716
278a7a38 11717 done
e8b05380 11718fi
278a7a38
AO
11719
11720if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11721 for ncn_progname in lipo; do
5213506e
RW
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11723$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11724 if test -x $with_build_time_tools/${ncn_progname}; then
11725 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11727$as_echo "yes" >&6; }
e8b05380
PB
11728 break
11729 else
5213506e
RW
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731$as_echo "no" >&6; }
e8b05380
PB
11732 fi
11733 done
11734fi
11735
11736if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11737 for ncn_progname in lipo; do
11738 if test -n "$ncn_target_tool_prefix"; then
11739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11740set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11742$as_echo_n "checking for $ac_word... " >&6; }
11743if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11744 $as_echo_n "(cached) " >&6
040b1c5a
GK
11745else
11746 if test -n "$LIPO_FOR_TARGET"; then
11747 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11748else
1c710c3c
DJ
11749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750for as_dir in $PATH
11751do
11752 IFS=$as_save_IFS
11753 test -z "$as_dir" && as_dir=.
5213506e
RW
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11756 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11758 break 2
11759 fi
11760done
5213506e
RW
11761 done
11762IFS=$as_save_IFS
1c710c3c 11763
040b1c5a
GK
11764fi
11765fi
1c710c3c 11766LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11767if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11769$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11770else
5213506e
RW
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11772$as_echo "no" >&6; }
040b1c5a
GK
11773fi
11774
5213506e 11775
e8b05380
PB
11776 fi
11777 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11779set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11781$as_echo_n "checking for $ac_word... " >&6; }
11782if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
040b1c5a
GK
11784else
11785 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11786 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11787else
1c710c3c
DJ
11788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $PATH
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
5213506e
RW
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11795 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11797 break 2
11798 fi
11799done
5213506e
RW
11800 done
11801IFS=$as_save_IFS
1c710c3c 11802
040b1c5a
GK
11803fi
11804fi
1c710c3c 11805LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11806if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11808$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11809else
5213506e
RW
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811$as_echo "no" >&6; }
040b1c5a 11812fi
1c710c3c 11813
5213506e 11814
e8b05380
PB
11815 fi
11816 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11817 done
11818fi
1c710c3c 11819
040b1c5a
GK
11820if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11821 set dummy lipo
11822 if test $build = $target ; then
11823 LIPO_FOR_TARGET="$2"
11824 else
11825 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11826 fi
1c00b503
PB
11827else
11828 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11829fi
11830
d1f8db0c
PB
11831else
11832 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11833fi
11834
11835
11836
11837
11838if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11839 if test -n "$with_build_time_tools"; then
5213506e
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11841$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11842 if test -x $with_build_time_tools/nm; then
11843 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11844 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11846$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11847 else
5213506e
RW
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11849$as_echo "no" >&6; }
d1f8db0c 11850 fi
e8b05380
PB
11851 elif test $build != $host && test $have_gcc_for_target = yes; then
11852 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11853 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11854 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11855 fi
11856fi
3e19841a 11857if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11858 # Extract the first word of "nm", so it can be a program name with args.
11859set dummy nm; ac_word=$2
5213506e
RW
11860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861$as_echo_n "checking for $ac_word... " >&6; }
11862if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11863 $as_echo_n "(cached) " >&6
e8b05380 11864else
1c710c3c
DJ
11865 case $NM_FOR_TARGET in
11866 [\\/]* | ?:[\\/]*)
e8b05380
PB
11867 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11868 ;;
e8b05380 11869 *)
1c710c3c
DJ
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871for as_dir in $gcc_cv_tool_dirs
11872do
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
5213506e
RW
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11877 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11879 break 2
11880 fi
11881done
5213506e
RW
11882 done
11883IFS=$as_save_IFS
1c710c3c 11884
e8b05380
PB
11885 ;;
11886esac
11887fi
1c710c3c 11888NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11889if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11891$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11892else
5213506e
RW
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11894$as_echo "no" >&6; }
e8b05380
PB
11895fi
11896
5213506e 11897
e8b05380
PB
11898fi
11899if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11900
11901
11902if test -n "$NM_FOR_TARGET"; then
11903 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11904elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11905 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11906fi
11907
11908if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11909 for ncn_progname in nm; do
11910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11911set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11913$as_echo_n "checking for $ac_word... " >&6; }
11914if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11915 $as_echo_n "(cached) " >&6
278a7a38
AO
11916else
11917 if test -n "$NM_FOR_TARGET"; then
11918 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11919else
11920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11921for as_dir in $PATH
11922do
11923 IFS=$as_save_IFS
11924 test -z "$as_dir" && as_dir=.
5213506e
RW
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11927 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11929 break 2
11930 fi
11931done
5213506e
RW
11932 done
11933IFS=$as_save_IFS
278a7a38
AO
11934
11935fi
11936fi
11937NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11938if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11940$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11941else
5213506e
RW
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943$as_echo "no" >&6; }
278a7a38
AO
11944fi
11945
5213506e 11946
278a7a38
AO
11947 done
11948fi
11949
11950if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11951 for ncn_progname in nm; do
5213506e
RW
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11953$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11954 if test -x $with_build_time_tools/${ncn_progname}; then
11955 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11957$as_echo "yes" >&6; }
e8b05380
PB
11958 break
11959 else
5213506e
RW
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11961$as_echo "no" >&6; }
e8b05380
PB
11962 fi
11963 done
11964fi
11965
11966if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11967 for ncn_progname in nm; do
11968 if test -n "$ncn_target_tool_prefix"; then
11969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11970set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972$as_echo_n "checking for $ac_word... " >&6; }
11973if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
ca9f4b81 11975else
4de997d1
PB
11976 if test -n "$NM_FOR_TARGET"; then
11977 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11978else
1c710c3c
DJ
11979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11980for as_dir in $PATH
11981do
11982 IFS=$as_save_IFS
11983 test -z "$as_dir" && as_dir=.
5213506e
RW
11984 for ac_exec_ext in '' $ac_executable_extensions; do
11985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11986 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11988 break 2
11989 fi
11990done
5213506e
RW
11991 done
11992IFS=$as_save_IFS
1c710c3c 11993
ca9f4b81
AO
11994fi
11995fi
1c710c3c 11996NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11997if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11999$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12000else
5213506e
RW
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12002$as_echo "no" >&6; }
ca9f4b81
AO
12003fi
12004
5213506e 12005
e8b05380
PB
12006 fi
12007 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12009set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12011$as_echo_n "checking for $ac_word... " >&6; }
12012if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12013 $as_echo_n "(cached) " >&6
ca9f4b81 12014else
2693c0b0
PB
12015 if test -n "$NM_FOR_TARGET"; then
12016 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12017else
1c710c3c
DJ
12018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019for as_dir in $PATH
12020do
12021 IFS=$as_save_IFS
12022 test -z "$as_dir" && as_dir=.
5213506e
RW
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12025 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12027 break 2
12028 fi
12029done
5213506e
RW
12030 done
12031IFS=$as_save_IFS
1c710c3c 12032
ca9f4b81
AO
12033fi
12034fi
1c710c3c 12035NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12036if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12038$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12039else
5213506e
RW
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12041$as_echo "no" >&6; }
ca9f4b81 12042fi
1c710c3c 12043
5213506e 12044
e8b05380
PB
12045 fi
12046 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12047 done
12048fi
1c710c3c 12049
2693c0b0
PB
12050if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12051 set dummy nm
12052 if test $build = $target ; then
12053 NM_FOR_TARGET="$2"
ca9f4b81 12054 else
2693c0b0 12055 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12056 fi
1c00b503
PB
12057else
12058 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12059fi
12060
d1f8db0c
PB
12061else
12062 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12063fi
12064
12065
12066
12067
12068if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12069 if test -n "$with_build_time_tools"; then
5213506e
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12071$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12072 if test -x $with_build_time_tools/objdump; then
12073 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12074 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12076$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12077 else
5213506e
RW
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079$as_echo "no" >&6; }
d1f8db0c 12080 fi
e8b05380
PB
12081 elif test $build != $host && test $have_gcc_for_target = yes; then
12082 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12083 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12084 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12085 fi
12086fi
3e19841a 12087if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12088 # Extract the first word of "objdump", so it can be a program name with args.
12089set dummy objdump; ac_word=$2
5213506e
RW
12090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091$as_echo_n "checking for $ac_word... " >&6; }
12092if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12093 $as_echo_n "(cached) " >&6
e8b05380 12094else
1c710c3c
DJ
12095 case $OBJDUMP_FOR_TARGET in
12096 [\\/]* | ?:[\\/]*)
e8b05380
PB
12097 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12098 ;;
e8b05380 12099 *)
1c710c3c
DJ
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101for as_dir in $gcc_cv_tool_dirs
12102do
12103 IFS=$as_save_IFS
12104 test -z "$as_dir" && as_dir=.
5213506e
RW
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12107 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12109 break 2
12110 fi
12111done
5213506e
RW
12112 done
12113IFS=$as_save_IFS
1c710c3c 12114
e8b05380
PB
12115 ;;
12116esac
12117fi
1c710c3c 12118OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12119if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12121$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12122else
5213506e
RW
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124$as_echo "no" >&6; }
e8b05380
PB
12125fi
12126
5213506e 12127
e8b05380
PB
12128fi
12129if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12130
12131
12132if test -n "$OBJDUMP_FOR_TARGET"; then
12133 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12134elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12135 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12136fi
12137
12138if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12139 for ncn_progname in objdump; do
12140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12141set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143$as_echo_n "checking for $ac_word... " >&6; }
12144if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12145 $as_echo_n "(cached) " >&6
278a7a38
AO
12146else
12147 if test -n "$OBJDUMP_FOR_TARGET"; then
12148 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12149else
12150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151for as_dir in $PATH
12152do
12153 IFS=$as_save_IFS
12154 test -z "$as_dir" && as_dir=.
5213506e
RW
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12157 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12159 break 2
12160 fi
12161done
5213506e
RW
12162 done
12163IFS=$as_save_IFS
278a7a38
AO
12164
12165fi
12166fi
12167OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12168if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12170$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12171else
5213506e
RW
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173$as_echo "no" >&6; }
278a7a38
AO
12174fi
12175
5213506e 12176
278a7a38
AO
12177 done
12178fi
12179
12180if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12181 for ncn_progname in objdump; do
5213506e
RW
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12183$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12184 if test -x $with_build_time_tools/${ncn_progname}; then
12185 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12187$as_echo "yes" >&6; }
e8b05380
PB
12188 break
12189 else
5213506e
RW
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12191$as_echo "no" >&6; }
e8b05380
PB
12192 fi
12193 done
12194fi
12195
12196if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12197 for ncn_progname in objdump; do
12198 if test -n "$ncn_target_tool_prefix"; then
12199 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12200set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12202$as_echo_n "checking for $ac_word... " >&6; }
12203if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12204 $as_echo_n "(cached) " >&6
d739199a
DJ
12205else
12206 if test -n "$OBJDUMP_FOR_TARGET"; then
12207 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12208else
1c710c3c
DJ
12209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210for as_dir in $PATH
12211do
12212 IFS=$as_save_IFS
12213 test -z "$as_dir" && as_dir=.
5213506e
RW
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12216 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12218 break 2
12219 fi
12220done
5213506e
RW
12221 done
12222IFS=$as_save_IFS
1c710c3c 12223
d739199a
DJ
12224fi
12225fi
1c710c3c 12226OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12227if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12229$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12230else
5213506e
RW
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232$as_echo "no" >&6; }
d739199a
DJ
12233fi
12234
5213506e 12235
e8b05380
PB
12236 fi
12237 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12239set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12241$as_echo_n "checking for $ac_word... " >&6; }
12242if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
d739199a
DJ
12244else
12245 if test -n "$OBJDUMP_FOR_TARGET"; then
12246 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12247else
1c710c3c
DJ
12248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12249for as_dir in $PATH
12250do
12251 IFS=$as_save_IFS
12252 test -z "$as_dir" && as_dir=.
5213506e
RW
12253 for ac_exec_ext in '' $ac_executable_extensions; do
12254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12255 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12257 break 2
12258 fi
12259done
5213506e
RW
12260 done
12261IFS=$as_save_IFS
1c710c3c 12262
d739199a
DJ
12263fi
12264fi
1c710c3c 12265OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12266if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12268$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12269else
5213506e
RW
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12271$as_echo "no" >&6; }
d739199a 12272fi
1c710c3c 12273
5213506e 12274
e8b05380
PB
12275 fi
12276 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12277 done
12278fi
1c710c3c 12279
d739199a
DJ
12280if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12281 set dummy objdump
12282 if test $build = $target ; then
12283 OBJDUMP_FOR_TARGET="$2"
12284 else
12285 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12286 fi
1c00b503
PB
12287else
12288 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12289fi
12290
d1f8db0c
PB
12291else
12292 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12293fi
12294
12295
12296
12297
12298if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12299 if test -n "$with_build_time_tools"; then
5213506e
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12301$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12302 if test -x $with_build_time_tools/ranlib; then
12303 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12304 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12306$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12307 else
5213506e
RW
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309$as_echo "no" >&6; }
d1f8db0c 12310 fi
e8b05380
PB
12311 elif test $build != $host && test $have_gcc_for_target = yes; then
12312 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12313 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12314 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12315 fi
12316fi
3e19841a 12317if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12318 # Extract the first word of "ranlib", so it can be a program name with args.
12319set dummy ranlib; ac_word=$2
5213506e
RW
12320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12321$as_echo_n "checking for $ac_word... " >&6; }
12322if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12323 $as_echo_n "(cached) " >&6
e8b05380 12324else
1c710c3c
DJ
12325 case $RANLIB_FOR_TARGET in
12326 [\\/]* | ?:[\\/]*)
e8b05380
PB
12327 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12328 ;;
e8b05380 12329 *)
1c710c3c
DJ
12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331for as_dir in $gcc_cv_tool_dirs
12332do
12333 IFS=$as_save_IFS
12334 test -z "$as_dir" && as_dir=.
5213506e
RW
12335 for ac_exec_ext in '' $ac_executable_extensions; do
12336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12337 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12339 break 2
12340 fi
12341done
5213506e
RW
12342 done
12343IFS=$as_save_IFS
1c710c3c 12344
e8b05380
PB
12345 ;;
12346esac
12347fi
1c710c3c 12348RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12349if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12351$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12352else
5213506e
RW
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12354$as_echo "no" >&6; }
e8b05380
PB
12355fi
12356
5213506e 12357
e8b05380
PB
12358fi
12359if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12360
12361
12362if test -n "$RANLIB_FOR_TARGET"; then
12363 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12364elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12365 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12366fi
12367
12368if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12369 for ncn_progname in ranlib; do
12370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12371set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373$as_echo_n "checking for $ac_word... " >&6; }
12374if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12375 $as_echo_n "(cached) " >&6
278a7a38
AO
12376else
12377 if test -n "$RANLIB_FOR_TARGET"; then
12378 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12379else
12380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381for as_dir in $PATH
12382do
12383 IFS=$as_save_IFS
12384 test -z "$as_dir" && as_dir=.
5213506e
RW
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12387 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12389 break 2
12390 fi
12391done
5213506e
RW
12392 done
12393IFS=$as_save_IFS
278a7a38
AO
12394
12395fi
12396fi
12397RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12398if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12400$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12401else
5213506e
RW
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403$as_echo "no" >&6; }
278a7a38
AO
12404fi
12405
5213506e 12406
278a7a38
AO
12407 done
12408fi
12409
12410if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12411 for ncn_progname in ranlib; do
5213506e
RW
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12413$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12414 if test -x $with_build_time_tools/${ncn_progname}; then
12415 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12417$as_echo "yes" >&6; }
e8b05380
PB
12418 break
12419 else
5213506e
RW
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12421$as_echo "no" >&6; }
e8b05380
PB
12422 fi
12423 done
12424fi
12425
12426if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12427 for ncn_progname in ranlib; do
12428 if test -n "$ncn_target_tool_prefix"; then
12429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12430set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12432$as_echo_n "checking for $ac_word... " >&6; }
12433if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12434 $as_echo_n "(cached) " >&6
ca9f4b81 12435else
4de997d1
PB
12436 if test -n "$RANLIB_FOR_TARGET"; then
12437 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12438else
1c710c3c
DJ
12439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440for as_dir in $PATH
12441do
12442 IFS=$as_save_IFS
12443 test -z "$as_dir" && as_dir=.
5213506e
RW
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12446 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12448 break 2
12449 fi
12450done
5213506e
RW
12451 done
12452IFS=$as_save_IFS
1c710c3c 12453
ca9f4b81
AO
12454fi
12455fi
1c710c3c 12456RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12457if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12459$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12460else
5213506e
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462$as_echo "no" >&6; }
ca9f4b81
AO
12463fi
12464
5213506e 12465
e8b05380
PB
12466 fi
12467 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12469set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471$as_echo_n "checking for $ac_word... " >&6; }
12472if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
ca9f4b81 12474else
2693c0b0
PB
12475 if test -n "$RANLIB_FOR_TARGET"; then
12476 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12477else
1c710c3c
DJ
12478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479for as_dir in $PATH
12480do
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
5213506e
RW
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12485 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12487 break 2
12488 fi
12489done
5213506e
RW
12490 done
12491IFS=$as_save_IFS
1c710c3c 12492
ca9f4b81
AO
12493fi
12494fi
1c710c3c 12495RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12496if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12498$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12499else
5213506e
RW
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501$as_echo "no" >&6; }
ca9f4b81 12502fi
1c710c3c 12503
5213506e 12504
e8b05380
PB
12505 fi
12506 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12507 done
12508fi
1c710c3c 12509
e8b05380
PB
12510if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12511 set dummy ranlib
12512 if test $build = $target ; then
12513 RANLIB_FOR_TARGET="$2"
12514 else
12515 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12516 fi
1c00b503
PB
12517else
12518 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12519fi
2693c0b0 12520
d1f8db0c
PB
12521else
12522 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12523fi
12524
e8b05380
PB
12525
12526
12527
e7a82751
RM
12528if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12529 if test -n "$with_build_time_tools"; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12531$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12532 if test -x $with_build_time_tools/readelf; then
12533 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12534 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12536$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12537 else
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12539$as_echo "no" >&6; }
12540 fi
12541 elif test $build != $host && test $have_gcc_for_target = yes; then
12542 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12543 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12544 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12545 fi
12546fi
12547if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12548 # Extract the first word of "readelf", so it can be a program name with args.
12549set dummy readelf; ac_word=$2
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551$as_echo_n "checking for $ac_word... " >&6; }
12552if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12553 $as_echo_n "(cached) " >&6
12554else
12555 case $READELF_FOR_TARGET in
12556 [\\/]* | ?:[\\/]*)
12557 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12558 ;;
12559 *)
12560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561for as_dir in $gcc_cv_tool_dirs
12562do
12563 IFS=$as_save_IFS
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12567 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12569 break 2
12570 fi
12571done
12572 done
12573IFS=$as_save_IFS
12574
12575 ;;
12576esac
12577fi
12578READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12579if test -n "$READELF_FOR_TARGET"; then
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12581$as_echo "$READELF_FOR_TARGET" >&6; }
12582else
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584$as_echo "no" >&6; }
12585fi
12586
12587
12588fi
12589if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12590
12591
12592if test -n "$READELF_FOR_TARGET"; then
12593 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12594elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12595 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12596fi
12597
12598if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12599 for ncn_progname in readelf; do
12600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12601set dummy ${ncn_progname}; ac_word=$2
12602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12603$as_echo_n "checking for $ac_word... " >&6; }
12604if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12605 $as_echo_n "(cached) " >&6
12606else
12607 if test -n "$READELF_FOR_TARGET"; then
12608 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12609else
12610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12611for as_dir in $PATH
12612do
12613 IFS=$as_save_IFS
12614 test -z "$as_dir" && as_dir=.
12615 for ac_exec_ext in '' $ac_executable_extensions; do
12616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12617 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 break 2
12620 fi
12621done
12622 done
12623IFS=$as_save_IFS
12624
12625fi
12626fi
12627READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12628if test -n "$READELF_FOR_TARGET"; then
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12630$as_echo "$READELF_FOR_TARGET" >&6; }
12631else
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633$as_echo "no" >&6; }
12634fi
12635
12636
12637 done
12638fi
12639
12640if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12641 for ncn_progname in readelf; do
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12643$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12644 if test -x $with_build_time_tools/${ncn_progname}; then
12645 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12647$as_echo "yes" >&6; }
12648 break
12649 else
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12651$as_echo "no" >&6; }
12652 fi
12653 done
12654fi
12655
12656if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12657 for ncn_progname in readelf; do
12658 if test -n "$ncn_target_tool_prefix"; then
12659 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12660set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12662$as_echo_n "checking for $ac_word... " >&6; }
12663if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12664 $as_echo_n "(cached) " >&6
12665else
12666 if test -n "$READELF_FOR_TARGET"; then
12667 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12668else
12669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12670for as_dir in $PATH
12671do
12672 IFS=$as_save_IFS
12673 test -z "$as_dir" && as_dir=.
12674 for ac_exec_ext in '' $ac_executable_extensions; do
12675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12676 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12678 break 2
12679 fi
12680done
12681 done
12682IFS=$as_save_IFS
12683
12684fi
12685fi
12686READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12687if test -n "$READELF_FOR_TARGET"; then
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12689$as_echo "$READELF_FOR_TARGET" >&6; }
12690else
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12692$as_echo "no" >&6; }
12693fi
12694
12695
12696 fi
12697 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12699set dummy ${ncn_progname}; ac_word=$2
12700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12701$as_echo_n "checking for $ac_word... " >&6; }
12702if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12703 $as_echo_n "(cached) " >&6
12704else
12705 if test -n "$READELF_FOR_TARGET"; then
12706 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12707else
12708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709for as_dir in $PATH
12710do
12711 IFS=$as_save_IFS
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12715 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12717 break 2
12718 fi
12719done
12720 done
12721IFS=$as_save_IFS
12722
12723fi
12724fi
12725READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12726if test -n "$READELF_FOR_TARGET"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12728$as_echo "$READELF_FOR_TARGET" >&6; }
12729else
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12731$as_echo "no" >&6; }
12732fi
12733
12734
12735 fi
12736 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12737 done
12738fi
12739
12740if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12741 set dummy readelf
12742 if test $build = $target ; then
12743 READELF_FOR_TARGET="$2"
12744 else
12745 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12746 fi
12747else
12748 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12749fi
12750
12751else
12752 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12753fi
12754
12755
12756
12757
e8b05380
PB
12758if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12759 if test -n "$with_build_time_tools"; then
5213506e
RW
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12761$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12762 if test -x $with_build_time_tools/strip; then
12763 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12764 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12766$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12767 else
5213506e
RW
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12769$as_echo "no" >&6; }
d1f8db0c 12770 fi
e8b05380
PB
12771 elif test $build != $host && test $have_gcc_for_target = yes; then
12772 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12773 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12774 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12775 fi
12776fi
3e19841a 12777if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12778 # Extract the first word of "strip", so it can be a program name with args.
12779set dummy strip; ac_word=$2
5213506e
RW
12780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781$as_echo_n "checking for $ac_word... " >&6; }
12782if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12783 $as_echo_n "(cached) " >&6
e8b05380 12784else
1c710c3c
DJ
12785 case $STRIP_FOR_TARGET in
12786 [\\/]* | ?:[\\/]*)
e8b05380
PB
12787 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12788 ;;
e8b05380 12789 *)
1c710c3c
DJ
12790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791for as_dir in $gcc_cv_tool_dirs
12792do
12793 IFS=$as_save_IFS
12794 test -z "$as_dir" && as_dir=.
5213506e
RW
12795 for ac_exec_ext in '' $ac_executable_extensions; do
12796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12797 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12799 break 2
12800 fi
12801done
5213506e
RW
12802 done
12803IFS=$as_save_IFS
1c710c3c 12804
e8b05380
PB
12805 ;;
12806esac
12807fi
1c710c3c 12808STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12809if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12811$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12812else
5213506e
RW
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814$as_echo "no" >&6; }
e8b05380
PB
12815fi
12816
5213506e 12817
e8b05380
PB
12818fi
12819if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12820
12821
12822if test -n "$STRIP_FOR_TARGET"; then
12823 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12824elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12825 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12826fi
12827
12828if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12829 for ncn_progname in strip; do
12830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12831set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833$as_echo_n "checking for $ac_word... " >&6; }
12834if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12835 $as_echo_n "(cached) " >&6
278a7a38
AO
12836else
12837 if test -n "$STRIP_FOR_TARGET"; then
12838 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12839else
12840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841for as_dir in $PATH
12842do
12843 IFS=$as_save_IFS
12844 test -z "$as_dir" && as_dir=.
5213506e
RW
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12847 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12849 break 2
12850 fi
12851done
5213506e
RW
12852 done
12853IFS=$as_save_IFS
278a7a38
AO
12854
12855fi
12856fi
12857STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12858if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12860$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12861else
5213506e
RW
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863$as_echo "no" >&6; }
278a7a38
AO
12864fi
12865
5213506e 12866
278a7a38
AO
12867 done
12868fi
12869
12870if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12871 for ncn_progname in strip; do
5213506e
RW
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12873$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12874 if test -x $with_build_time_tools/${ncn_progname}; then
12875 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877$as_echo "yes" >&6; }
e8b05380
PB
12878 break
12879 else
5213506e
RW
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12881$as_echo "no" >&6; }
e8b05380
PB
12882 fi
12883 done
12884fi
12885
12886if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12887 for ncn_progname in strip; do
12888 if test -n "$ncn_target_tool_prefix"; then
12889 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12890set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12892$as_echo_n "checking for $ac_word... " >&6; }
12893if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12894 $as_echo_n "(cached) " >&6
af71363e
AS
12895else
12896 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12897 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12898else
12899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900for as_dir in $PATH
12901do
12902 IFS=$as_save_IFS
12903 test -z "$as_dir" && as_dir=.
5213506e
RW
12904 for ac_exec_ext in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12906 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12908 break 2
12909 fi
12910done
5213506e
RW
12911 done
12912IFS=$as_save_IFS
1c710c3c 12913
040b1c5a
GK
12914fi
12915fi
1c710c3c 12916STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12917if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12919$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12920else
5213506e
RW
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922$as_echo "no" >&6; }
040b1c5a
GK
12923fi
12924
5213506e 12925
e8b05380
PB
12926 fi
12927 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12929set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12931$as_echo_n "checking for $ac_word... " >&6; }
12932if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12933 $as_echo_n "(cached) " >&6
040b1c5a
GK
12934else
12935 if test -n "$STRIP_FOR_TARGET"; then
12936 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12937else
1c710c3c
DJ
12938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12939for as_dir in $PATH
12940do
12941 IFS=$as_save_IFS
12942 test -z "$as_dir" && as_dir=.
5213506e
RW
12943 for ac_exec_ext in '' $ac_executable_extensions; do
12944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12945 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12947 break 2
12948 fi
12949done
5213506e
RW
12950 done
12951IFS=$as_save_IFS
1c710c3c 12952
040b1c5a
GK
12953fi
12954fi
1c710c3c 12955STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12956if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12958$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12959else
5213506e
RW
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12961$as_echo "no" >&6; }
040b1c5a 12962fi
1c710c3c 12963
5213506e 12964
e8b05380
PB
12965 fi
12966 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12967 done
12968fi
1c710c3c 12969
040b1c5a
GK
12970if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12971 set dummy strip
12972 if test $build = $target ; then
12973 STRIP_FOR_TARGET="$2"
12974 else
12975 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12976 fi
1c00b503
PB
12977else
12978 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12979fi
12980
d1f8db0c
PB
12981else
12982 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12983fi
12984
12985
12986
12987
12988if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12989 if test -n "$with_build_time_tools"; then
5213506e
RW
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12991$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12992 if test -x $with_build_time_tools/windres; then
12993 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12994 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12996$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12997 else
5213506e
RW
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999$as_echo "no" >&6; }
d1f8db0c 13000 fi
e8b05380
PB
13001 elif test $build != $host && test $have_gcc_for_target = yes; then
13002 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13003 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13004 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13005 fi
13006fi
3e19841a 13007if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13008 # Extract the first word of "windres", so it can be a program name with args.
13009set dummy windres; ac_word=$2
5213506e
RW
13010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13011$as_echo_n "checking for $ac_word... " >&6; }
13012if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13013 $as_echo_n "(cached) " >&6
e8b05380 13014else
1c710c3c
DJ
13015 case $WINDRES_FOR_TARGET in
13016 [\\/]* | ?:[\\/]*)
e8b05380
PB
13017 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13018 ;;
e8b05380 13019 *)
1c710c3c
DJ
13020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13021for as_dir in $gcc_cv_tool_dirs
13022do
13023 IFS=$as_save_IFS
13024 test -z "$as_dir" && as_dir=.
5213506e
RW
13025 for ac_exec_ext in '' $ac_executable_extensions; do
13026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13027 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13029 break 2
13030 fi
13031done
5213506e
RW
13032 done
13033IFS=$as_save_IFS
1c710c3c 13034
e8b05380
PB
13035 ;;
13036esac
13037fi
1c710c3c 13038WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13039if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13041$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13042else
5213506e
RW
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044$as_echo "no" >&6; }
e8b05380
PB
13045fi
13046
5213506e 13047
e8b05380
PB
13048fi
13049if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13050
13051
13052if test -n "$WINDRES_FOR_TARGET"; then
13053 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13054elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13055 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13056fi
13057
13058if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13059 for ncn_progname in windres; do
13060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13061set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13063$as_echo_n "checking for $ac_word... " >&6; }
13064if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13065 $as_echo_n "(cached) " >&6
278a7a38
AO
13066else
13067 if test -n "$WINDRES_FOR_TARGET"; then
13068 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13069else
13070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13071for as_dir in $PATH
13072do
13073 IFS=$as_save_IFS
13074 test -z "$as_dir" && as_dir=.
5213506e
RW
13075 for ac_exec_ext in '' $ac_executable_extensions; do
13076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13077 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13079 break 2
13080 fi
13081done
5213506e
RW
13082 done
13083IFS=$as_save_IFS
278a7a38
AO
13084
13085fi
13086fi
13087WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13088if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13090$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13091else
5213506e
RW
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093$as_echo "no" >&6; }
278a7a38
AO
13094fi
13095
5213506e 13096
278a7a38
AO
13097 done
13098fi
13099
13100if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13101 for ncn_progname in windres; do
5213506e
RW
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13103$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13104 if test -x $with_build_time_tools/${ncn_progname}; then
13105 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107$as_echo "yes" >&6; }
e8b05380
PB
13108 break
13109 else
5213506e
RW
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13111$as_echo "no" >&6; }
e8b05380
PB
13112 fi
13113 done
13114fi
13115
13116if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13117 for ncn_progname in windres; do
13118 if test -n "$ncn_target_tool_prefix"; then
13119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13120set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13122$as_echo_n "checking for $ac_word... " >&6; }
13123if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
ca9f4b81 13125else
4de997d1
PB
13126 if test -n "$WINDRES_FOR_TARGET"; then
13127 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13128else
1c710c3c
DJ
13129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130for as_dir in $PATH
13131do
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
5213506e
RW
13134 for ac_exec_ext in '' $ac_executable_extensions; do
13135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13136 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13138 break 2
13139 fi
13140done
5213506e
RW
13141 done
13142IFS=$as_save_IFS
1c710c3c 13143
ca9f4b81
AO
13144fi
13145fi
1c710c3c 13146WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13147if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13149$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13150else
5213506e
RW
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13152$as_echo "no" >&6; }
ca9f4b81
AO
13153fi
13154
5213506e 13155
e8b05380
PB
13156 fi
13157 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13159set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13161$as_echo_n "checking for $ac_word... " >&6; }
13162if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
ca9f4b81 13164else
2693c0b0
PB
13165 if test -n "$WINDRES_FOR_TARGET"; then
13166 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13167else
1c710c3c
DJ
13168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13169for as_dir in $PATH
13170do
13171 IFS=$as_save_IFS
13172 test -z "$as_dir" && as_dir=.
5213506e
RW
13173 for ac_exec_ext in '' $ac_executable_extensions; do
13174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13175 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13177 break 2
13178 fi
13179done
5213506e
RW
13180 done
13181IFS=$as_save_IFS
1c710c3c 13182
ca9f4b81
AO
13183fi
13184fi
1c710c3c 13185WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13186if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13188$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13189else
5213506e
RW
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191$as_echo "no" >&6; }
ca9f4b81 13192fi
1c710c3c 13193
5213506e 13194
e8b05380
PB
13195 fi
13196 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13197 done
13198fi
1c710c3c 13199
2693c0b0
PB
13200if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13201 set dummy windres
13202 if test $build = $target ; then
13203 WINDRES_FOR_TARGET="$2"
ca9f4b81 13204 else
2693c0b0 13205 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13206 fi
1c00b503
PB
13207else
13208 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13209fi
13210
d1f8db0c
PB
13211else
13212 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13213fi
13214
4977bab6 13215
901119ae
KT
13216
13217
13218if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13219 if test -n "$with_build_time_tools"; then
5213506e
RW
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13221$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13222 if test -x $with_build_time_tools/windmc; then
13223 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13224 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13226$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13227 else
5213506e
RW
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229$as_echo "no" >&6; }
901119ae
KT
13230 fi
13231 elif test $build != $host && test $have_gcc_for_target = yes; then
13232 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13233 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13234 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13235 fi
13236fi
13237if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13238 # Extract the first word of "windmc", so it can be a program name with args.
13239set dummy windmc; ac_word=$2
5213506e
RW
13240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241$as_echo_n "checking for $ac_word... " >&6; }
13242if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13243 $as_echo_n "(cached) " >&6
901119ae
KT
13244else
13245 case $WINDMC_FOR_TARGET in
13246 [\\/]* | ?:[\\/]*)
13247 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13248 ;;
13249 *)
13250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251for as_dir in $gcc_cv_tool_dirs
13252do
13253 IFS=$as_save_IFS
13254 test -z "$as_dir" && as_dir=.
5213506e
RW
13255 for ac_exec_ext in '' $ac_executable_extensions; do
13256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13257 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13259 break 2
13260 fi
13261done
5213506e
RW
13262 done
13263IFS=$as_save_IFS
901119ae
KT
13264
13265 ;;
13266esac
13267fi
13268WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13269if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13271$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13272else
5213506e
RW
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274$as_echo "no" >&6; }
901119ae
KT
13275fi
13276
5213506e 13277
901119ae
KT
13278fi
13279if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13280
13281
13282if test -n "$WINDMC_FOR_TARGET"; then
13283 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13284elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13285 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13286fi
13287
13288if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13289 for ncn_progname in windmc; do
13290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13291set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13293$as_echo_n "checking for $ac_word... " >&6; }
13294if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13295 $as_echo_n "(cached) " >&6
901119ae
KT
13296else
13297 if test -n "$WINDMC_FOR_TARGET"; then
13298 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13299else
13300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13301for as_dir in $PATH
13302do
13303 IFS=$as_save_IFS
13304 test -z "$as_dir" && as_dir=.
5213506e
RW
13305 for ac_exec_ext in '' $ac_executable_extensions; do
13306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13307 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13309 break 2
13310 fi
13311done
5213506e
RW
13312 done
13313IFS=$as_save_IFS
901119ae
KT
13314
13315fi
13316fi
13317WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13318if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13320$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13321else
5213506e
RW
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13323$as_echo "no" >&6; }
901119ae
KT
13324fi
13325
5213506e 13326
901119ae
KT
13327 done
13328fi
13329
13330if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13331 for ncn_progname in windmc; do
5213506e
RW
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13333$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13334 if test -x $with_build_time_tools/${ncn_progname}; then
13335 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13337$as_echo "yes" >&6; }
901119ae
KT
13338 break
13339 else
5213506e
RW
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341$as_echo "no" >&6; }
901119ae
KT
13342 fi
13343 done
13344fi
13345
13346if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13347 for ncn_progname in windmc; do
13348 if test -n "$ncn_target_tool_prefix"; then
13349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13350set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13352$as_echo_n "checking for $ac_word... " >&6; }
13353if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13354 $as_echo_n "(cached) " >&6
901119ae
KT
13355else
13356 if test -n "$WINDMC_FOR_TARGET"; then
13357 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13358else
13359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13360for as_dir in $PATH
13361do
13362 IFS=$as_save_IFS
13363 test -z "$as_dir" && as_dir=.
5213506e
RW
13364 for ac_exec_ext in '' $ac_executable_extensions; do
13365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13366 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13368 break 2
13369 fi
13370done
5213506e
RW
13371 done
13372IFS=$as_save_IFS
901119ae
KT
13373
13374fi
13375fi
13376WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13377if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13379$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13380else
5213506e
RW
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13382$as_echo "no" >&6; }
901119ae
KT
13383fi
13384
5213506e 13385
901119ae
KT
13386 fi
13387 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13389set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391$as_echo_n "checking for $ac_word... " >&6; }
13392if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13393 $as_echo_n "(cached) " >&6
901119ae
KT
13394else
13395 if test -n "$WINDMC_FOR_TARGET"; then
13396 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13397else
13398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13399for as_dir in $PATH
13400do
13401 IFS=$as_save_IFS
13402 test -z "$as_dir" && as_dir=.
5213506e
RW
13403 for ac_exec_ext in '' $ac_executable_extensions; do
13404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13405 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13407 break 2
13408 fi
13409done
5213506e
RW
13410 done
13411IFS=$as_save_IFS
901119ae
KT
13412
13413fi
13414fi
13415WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13416if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13418$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13419else
5213506e
RW
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13421$as_echo "no" >&6; }
901119ae
KT
13422fi
13423
5213506e 13424
901119ae
KT
13425 fi
13426 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13427 done
13428fi
13429
13430if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13431 set dummy windmc
13432 if test $build = $target ; then
13433 WINDMC_FOR_TARGET="$2"
13434 else
13435 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13436 fi
1c00b503
PB
13437else
13438 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13439fi
13440
13441else
13442 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13443fi
13444
13445
2abefe3d
PB
13446RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13447
5213506e
RW
13448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13449$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13450if test "x${build}" != "x${host}" ; then
e8b05380
PB
13451 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13452 # We already found the complete path
172e41aa 13453 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13455$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13456 else
13457 # Canadian cross, just use what we found
5213506e
RW
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13459$as_echo "pre-installed" >&6; }
e8b05380 13460 fi
2abefe3d
PB
13461else
13462 ok=yes
13463 case " ${configdirs} " in
13464 *" binutils "*) ;;
13465 *) ok=no ;;
13466 esac
1c710c3c 13467
2abefe3d
PB
13468 if test $ok = yes; then
13469 # An in-tree tool is available and we can use it
13470 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13472$as_echo "just compiled" >&6; }
e8b05380
PB
13473 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13474 # We already found the complete path
172e41aa 13475 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13477$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13478 elif test "x$target" = "x$host"; then
13479 # We can use an host tool
13480 AR_FOR_TARGET='$(AR)'
5213506e
RW
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13482$as_echo "host tool" >&6; }
2abefe3d
PB
13483 else
13484 # We need a cross tool
5213506e
RW
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13486$as_echo "pre-installed" >&6; }
2abefe3d
PB
13487 fi
13488fi
0b0dc272 13489
5213506e
RW
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13491$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13492if test "x${build}" != "x${host}" ; then
e8b05380
PB
13493 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13494 # We already found the complete path
172e41aa 13495 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13497$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13498 else
13499 # Canadian cross, just use what we found
5213506e
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13501$as_echo "pre-installed" >&6; }
e8b05380 13502 fi
2abefe3d
PB
13503else
13504 ok=yes
13505 case " ${configdirs} " in
13506 *" gas "*) ;;
13507 *) ok=no ;;
13508 esac
1c710c3c 13509
2abefe3d
PB
13510 if test $ok = yes; then
13511 # An in-tree tool is available and we can use it
13512 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13514$as_echo "just compiled" >&6; }
e8b05380
PB
13515 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13516 # We already found the complete path
172e41aa 13517 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13519$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13520 elif test "x$target" = "x$host"; then
13521 # We can use an host tool
13522 AS_FOR_TARGET='$(AS)'
5213506e
RW
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13524$as_echo "host tool" >&6; }
2abefe3d
PB
13525 else
13526 # We need a cross tool
5213506e
RW
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13528$as_echo "pre-installed" >&6; }
2abefe3d
PB
13529 fi
13530fi
0b0dc272 13531
5213506e
RW
13532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13533$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13534if test "x${build}" != "x${host}" ; then
e8b05380
PB
13535 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13536 # We already found the complete path
172e41aa 13537 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13539$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13540 else
13541 # Canadian cross, just use what we found
5213506e
RW
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13543$as_echo "pre-installed" >&6; }
e8b05380 13544 fi
2abefe3d
PB
13545else
13546 ok=yes
13547 case " ${configdirs} " in
13548 *" gcc "*) ;;
13549 *) ok=no ;;
13550 esac
1c710c3c 13551
2abefe3d
PB
13552 if test $ok = yes; then
13553 # An in-tree tool is available and we can use it
13554 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13556$as_echo "just compiled" >&6; }
e8b05380
PB
13557 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13558 # We already found the complete path
172e41aa 13559 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13561$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13562 elif test "x$target" = "x$host"; then
13563 # We can use an host tool
13564 CC_FOR_TARGET='$(CC)'
5213506e
RW
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13566$as_echo "host tool" >&6; }
2abefe3d
PB
13567 else
13568 # We need a cross tool
5213506e
RW
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13570$as_echo "pre-installed" >&6; }
2abefe3d
PB
13571 fi
13572fi
0b0dc272 13573
5213506e
RW
13574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13575$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13576if test "x${build}" != "x${host}" ; then
e8b05380
PB
13577 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13578 # We already found the complete path
172e41aa 13579 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13581$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13582 else
13583 # Canadian cross, just use what we found
5213506e
RW
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13585$as_echo "pre-installed" >&6; }
e8b05380 13586 fi
2abefe3d
PB
13587else
13588 ok=yes
13589 case " ${configdirs} " in
13590 *" gcc "*) ;;
13591 *) ok=no ;;
13592 esac
13593 case ,${enable_languages}, in
13594 *,c++,*) ;;
13595 *) ok=no ;;
13596 esac
13597 if test $ok = yes; then
13598 # An in-tree tool is available and we can use it
9aff220f 13599 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
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13601$as_echo "just compiled" >&6; }
e8b05380
PB
13602 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13603 # We already found the complete path
172e41aa 13604 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13606$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13607 elif test "x$target" = "x$host"; then
13608 # We can use an host tool
13609 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13611$as_echo "host tool" >&6; }
2abefe3d
PB
13612 else
13613 # We need a cross tool
5213506e
RW
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13615$as_echo "pre-installed" >&6; }
2abefe3d
PB
13616 fi
13617fi
0b0dc272 13618
5213506e
RW
13619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13620$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13621if test "x${build}" != "x${host}" ; then
e8b05380
PB
13622 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13623 # We already found the complete path
172e41aa 13624 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13626$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13627 else
13628 # Canadian cross, just use what we found
5213506e
RW
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13630$as_echo "pre-installed" >&6; }
e8b05380 13631 fi
2abefe3d
PB
13632else
13633 ok=yes
13634 case " ${configdirs} " in
13635 *" gcc "*) ;;
13636 *) ok=no ;;
13637 esac
13638 case ,${enable_languages}, in
13639 *,c++,*) ;;
13640 *) ok=no ;;
13641 esac
13642 if test $ok = yes; then
13643 # An in-tree tool is available and we can use it
13644 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
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13646$as_echo "just compiled" >&6; }
e8b05380
PB
13647 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13648 # We already found the complete path
172e41aa 13649 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13651$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13652 elif test "x$target" = "x$host"; then
13653 # We can use an host tool
13654 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13656$as_echo "host tool" >&6; }
2abefe3d
PB
13657 else
13658 # We need a cross tool
5213506e
RW
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13660$as_echo "pre-installed" >&6; }
2abefe3d
PB
13661 fi
13662fi
0b0dc272 13663
5213506e
RW
13664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13665$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13666if test "x${build}" != "x${host}" ; then
e8b05380
PB
13667 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13668 # We already found the complete path
172e41aa 13669 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13671$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13672 else
13673 # Canadian cross, just use what we found
5213506e
RW
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13675$as_echo "pre-installed" >&6; }
e8b05380 13676 fi
2abefe3d
PB
13677else
13678 ok=yes
13679 case " ${configdirs} " in
13680 *" binutils "*) ;;
13681 *) ok=no ;;
13682 esac
1c710c3c 13683
2abefe3d
PB
13684 if test $ok = yes; then
13685 # An in-tree tool is available and we can use it
13686 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13688$as_echo "just compiled" >&6; }
e8b05380
PB
13689 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13690 # We already found the complete path
172e41aa 13691 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13693$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13694 elif test "x$target" = "x$host"; then
13695 # We can use an host tool
13696 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13698$as_echo "host tool" >&6; }
2abefe3d
PB
13699 else
13700 # We need a cross tool
5213506e
RW
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13702$as_echo "pre-installed" >&6; }
2abefe3d
PB
13703 fi
13704fi
0b0dc272 13705
5213506e
RW
13706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13707$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13708if test "x${build}" != "x${host}" ; then
e8b05380
PB
13709 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13710 # We already found the complete path
172e41aa 13711 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13713$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13714 else
13715 # Canadian cross, just use what we found
5213506e
RW
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13717$as_echo "pre-installed" >&6; }
e8b05380 13718 fi
2abefe3d
PB
13719else
13720 ok=yes
13721 case " ${configdirs} " in
13722 *" gcc "*) ;;
13723 *) ok=no ;;
13724 esac
1c710c3c 13725
2abefe3d
PB
13726 if test $ok = yes; then
13727 # An in-tree tool is available and we can use it
13728 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13730$as_echo "just compiled" >&6; }
e8b05380
PB
13731 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13732 # We already found the complete path
172e41aa 13733 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13735$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13736 elif test "x$target" = "x$host"; then
13737 # We can use an host tool
13738 GCC_FOR_TARGET='$()'
5213506e
RW
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13740$as_echo "host tool" >&6; }
2abefe3d
PB
13741 else
13742 # We need a cross tool
5213506e
RW
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13744$as_echo "pre-installed" >&6; }
2abefe3d
PB
13745 fi
13746fi
0b0dc272 13747
5213506e
RW
13748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13749$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13750if test "x${build}" != "x${host}" ; then
e8b05380
PB
13751 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13752 # We already found the complete path
172e41aa 13753 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13755$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13756 else
13757 # Canadian cross, just use what we found
5213506e
RW
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13759$as_echo "pre-installed" >&6; }
e8b05380 13760 fi
2abefe3d
PB
13761else
13762 ok=yes
13763 case " ${configdirs} " in
13764 *" gcc "*) ;;
13765 *) ok=no ;;
13766 esac
13767 case ,${enable_languages}, in
13768 *,java,*) ;;
13769 *) ok=no ;;
13770 esac
13771 if test $ok = yes; then
13772 # An in-tree tool is available and we can use it
13773 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13775$as_echo "just compiled" >&6; }
e8b05380
PB
13776 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13777 # We already found the complete path
172e41aa 13778 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13780$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13781 elif test "x$target" = "x$host"; then
13782 # We can use an host tool
13783 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13785$as_echo "host tool" >&6; }
2abefe3d
PB
13786 else
13787 # We need a cross tool
5213506e
RW
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13789$as_echo "pre-installed" >&6; }
2abefe3d
PB
13790 fi
13791fi
0b0dc272 13792
5213506e
RW
13793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13794$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13795if test "x${build}" != "x${host}" ; then
e8b05380
PB
13796 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13797 # We already found the complete path
172e41aa 13798 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13800$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13801 else
13802 # Canadian cross, just use what we found
5213506e
RW
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13804$as_echo "pre-installed" >&6; }
e8b05380 13805 fi
2abefe3d
PB
13806else
13807 ok=yes
13808 case " ${configdirs} " in
13809 *" gcc "*) ;;
13810 *) ok=no ;;
13811 esac
13812 case ,${enable_languages}, in
13813 *,fortran,*) ;;
13814 *) ok=no ;;
13815 esac
13816 if test $ok = yes; then
13817 # An in-tree tool is available and we can use it
13818 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13820$as_echo "just compiled" >&6; }
e8b05380
PB
13821 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13822 # We already found the complete path
172e41aa 13823 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13825$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13826 elif test "x$target" = "x$host"; then
13827 # We can use an host tool
13828 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13830$as_echo "host tool" >&6; }
2abefe3d
PB
13831 else
13832 # We need a cross tool
5213506e
RW
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13834$as_echo "pre-installed" >&6; }
2abefe3d
PB
13835 fi
13836fi
0b0dc272 13837
632e2a07
ILT
13838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13839$as_echo_n "checking where to find the target gccgo... " >&6; }
13840if test "x${build}" != "x${host}" ; then
13841 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13842 # We already found the complete path
13843 ac_dir=`dirname $GOC_FOR_TARGET`
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13845$as_echo "pre-installed in $ac_dir" >&6; }
13846 else
13847 # Canadian cross, just use what we found
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13849$as_echo "pre-installed" >&6; }
13850 fi
13851else
13852 ok=yes
13853 case " ${configdirs} " in
13854 *" gcc "*) ;;
13855 *) ok=no ;;
13856 esac
13857 case ,${enable_languages}, in
13858 *,go,*) ;;
13859 *) ok=no ;;
13860 esac
13861 if test $ok = yes; then
13862 # An in-tree tool is available and we can use it
13863 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13865$as_echo "just compiled" >&6; }
13866 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13867 # We already found the complete path
13868 ac_dir=`dirname $GOC_FOR_TARGET`
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13870$as_echo "pre-installed in $ac_dir" >&6; }
13871 elif test "x$target" = "x$host"; then
13872 # We can use an host tool
13873 GOC_FOR_TARGET='$(GOC)'
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13875$as_echo "host tool" >&6; }
13876 else
13877 # We need a cross tool
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13879$as_echo "pre-installed" >&6; }
13880 fi
13881fi
13882
5213506e
RW
13883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13884$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13885if test "x${build}" != "x${host}" ; then
e8b05380
PB
13886 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13887 # We already found the complete path
172e41aa 13888 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13890$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13891 else
13892 # Canadian cross, just use what we found
5213506e
RW
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13894$as_echo "pre-installed" >&6; }
e8b05380 13895 fi
2abefe3d
PB
13896else
13897 ok=yes
13898 case " ${configdirs} " in
13899 *" ld "*) ;;
13900 *) ok=no ;;
13901 esac
1c710c3c 13902
2abefe3d
PB
13903 if test $ok = yes; then
13904 # An in-tree tool is available and we can use it
13905 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13907$as_echo "just compiled" >&6; }
e8b05380
PB
13908 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13909 # We already found the complete path
172e41aa 13910 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13912$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13913 elif test "x$target" = "x$host"; then
13914 # We can use an host tool
13915 LD_FOR_TARGET='$(LD)'
5213506e
RW
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13917$as_echo "host tool" >&6; }
2abefe3d
PB
13918 else
13919 # We need a cross tool
5213506e
RW
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13921$as_echo "pre-installed" >&6; }
2abefe3d
PB
13922 fi
13923fi
0b0dc272 13924
5213506e
RW
13925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13926$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13927if test "x${build}" != "x${host}" ; then
e8b05380
PB
13928 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13929 # We already found the complete path
172e41aa 13930 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13932$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13933 else
13934 # Canadian cross, just use what we found
5213506e
RW
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13936$as_echo "pre-installed" >&6; }
e8b05380 13937 fi
2abefe3d 13938else
e8b05380
PB
13939 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13940 # We already found the complete path
172e41aa 13941 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13943$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13944 elif test "x$target" = "x$host"; then
2abefe3d
PB
13945 # We can use an host tool
13946 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13948$as_echo "host tool" >&6; }
2abefe3d
PB
13949 else
13950 # We need a cross tool
5213506e
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13952$as_echo "pre-installed" >&6; }
2abefe3d
PB
13953 fi
13954fi
0b0dc272 13955
5213506e
RW
13956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13957$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13958if test "x${build}" != "x${host}" ; then
e8b05380
PB
13959 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13960 # We already found the complete path
172e41aa 13961 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13963$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13964 else
13965 # Canadian cross, just use what we found
5213506e
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13967$as_echo "pre-installed" >&6; }
e8b05380 13968 fi
2abefe3d
PB
13969else
13970 ok=yes
13971 case " ${configdirs} " in
13972 *" binutils "*) ;;
13973 *) ok=no ;;
13974 esac
1c710c3c 13975
2abefe3d
PB
13976 if test $ok = yes; then
13977 # An in-tree tool is available and we can use it
13978 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13980$as_echo "just compiled" >&6; }
e8b05380
PB
13981 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13982 # We already found the complete path
172e41aa 13983 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13985$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13986 elif test "x$target" = "x$host"; then
13987 # We can use an host tool
13988 NM_FOR_TARGET='$(NM)'
5213506e
RW
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13990$as_echo "host tool" >&6; }
2abefe3d
PB
13991 else
13992 # We need a cross tool
5213506e
RW
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13994$as_echo "pre-installed" >&6; }
2abefe3d
PB
13995 fi
13996fi
0b0dc272 13997
5213506e
RW
13998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13999$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14000if test "x${build}" != "x${host}" ; then
e8b05380
PB
14001 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
172e41aa 14003 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14006 else
14007 # Canadian cross, just use what we found
5213506e
RW
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14009$as_echo "pre-installed" >&6; }
e8b05380 14010 fi
2abefe3d
PB
14011else
14012 ok=yes
14013 case " ${configdirs} " in
14014 *" binutils "*) ;;
14015 *) ok=no ;;
14016 esac
1c710c3c 14017
2abefe3d
PB
14018 if test $ok = yes; then
14019 # An in-tree tool is available and we can use it
14020 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14022$as_echo "just compiled" >&6; }
e8b05380
PB
14023 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
172e41aa 14025 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14028 elif test "x$target" = "x$host"; then
14029 # We can use an host tool
14030 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14032$as_echo "host tool" >&6; }
2abefe3d
PB
14033 else
14034 # We need a cross tool
5213506e
RW
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036$as_echo "pre-installed" >&6; }
2abefe3d
PB
14037 fi
14038fi
0b0dc272 14039
5213506e
RW
14040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14041$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14042if test "x${build}" != "x${host}" ; then
e8b05380
PB
14043 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14044 # We already found the complete path
172e41aa 14045 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14047$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14048 else
14049 # Canadian cross, just use what we found
5213506e
RW
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14051$as_echo "pre-installed" >&6; }
e8b05380 14052 fi
2abefe3d
PB
14053else
14054 ok=yes
14055 case " ${configdirs} " in
14056 *" binutils "*) ;;
14057 *) ok=no ;;
14058 esac
1c710c3c 14059
2abefe3d
PB
14060 if test $ok = yes; then
14061 # An in-tree tool is available and we can use it
14062 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14064$as_echo "just compiled" >&6; }
e8b05380
PB
14065 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14066 # We already found the complete path
172e41aa 14067 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14069$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14070 elif test "x$target" = "x$host"; then
14071 # We can use an host tool
14072 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14074$as_echo "host tool" >&6; }
2abefe3d
PB
14075 else
14076 # We need a cross tool
5213506e
RW
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14078$as_echo "pre-installed" >&6; }
2abefe3d
PB
14079 fi
14080fi
0b0dc272 14081
e7a82751
RM
14082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14083$as_echo_n "checking where to find the target readelf... " >&6; }
14084if test "x${build}" != "x${host}" ; then
14085 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14086 # We already found the complete path
14087 ac_dir=`dirname $READELF_FOR_TARGET`
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14089$as_echo "pre-installed in $ac_dir" >&6; }
14090 else
14091 # Canadian cross, just use what we found
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14093$as_echo "pre-installed" >&6; }
14094 fi
14095else
14096 ok=yes
14097 case " ${configdirs} " in
14098 *" binutils "*) ;;
14099 *) ok=no ;;
14100 esac
14101
14102 if test $ok = yes; then
14103 # An in-tree tool is available and we can use it
14104 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14106$as_echo "just compiled" >&6; }
14107 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14108 # We already found the complete path
14109 ac_dir=`dirname $READELF_FOR_TARGET`
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14111$as_echo "pre-installed in $ac_dir" >&6; }
14112 elif test "x$target" = "x$host"; then
14113 # We can use an host tool
14114 READELF_FOR_TARGET='$(READELF)'
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14116$as_echo "host tool" >&6; }
14117 else
14118 # We need a cross tool
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14120$as_echo "pre-installed" >&6; }
14121 fi
14122fi
14123
5213506e
RW
14124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14125$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14126if test "x${build}" != "x${host}" ; then
e8b05380
PB
14127 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14128 # We already found the complete path
172e41aa 14129 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14131$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14132 else
14133 # Canadian cross, just use what we found
5213506e
RW
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14135$as_echo "pre-installed" >&6; }
e8b05380 14136 fi
2abefe3d
PB
14137else
14138 ok=yes
14139 case " ${configdirs} " in
14140 *" binutils "*) ;;
14141 *) ok=no ;;
14142 esac
1c710c3c 14143
2abefe3d
PB
14144 if test $ok = yes; then
14145 # An in-tree tool is available and we can use it
455c8f48 14146 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14148$as_echo "just compiled" >&6; }
e8b05380
PB
14149 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14150 # We already found the complete path
172e41aa 14151 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14153$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14154 elif test "x$target" = "x$host"; then
14155 # We can use an host tool
14156 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14158$as_echo "host tool" >&6; }
2abefe3d
PB
14159 else
14160 # We need a cross tool
5213506e
RW
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14162$as_echo "pre-installed" >&6; }
2abefe3d
PB
14163 fi
14164fi
0b0dc272 14165
5213506e
RW
14166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14167$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14168if test "x${build}" != "x${host}" ; then
e8b05380
PB
14169 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14170 # We already found the complete path
172e41aa 14171 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14173$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14174 else
14175 # Canadian cross, just use what we found
5213506e
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14177$as_echo "pre-installed" >&6; }
e8b05380 14178 fi
2abefe3d
PB
14179else
14180 ok=yes
14181 case " ${configdirs} " in
14182 *" binutils "*) ;;
14183 *) ok=no ;;
14184 esac
1c710c3c 14185
2abefe3d
PB
14186 if test $ok = yes; then
14187 # An in-tree tool is available and we can use it
14188 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14190$as_echo "just compiled" >&6; }
e8b05380
PB
14191 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14192 # We already found the complete path
172e41aa 14193 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14195$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14196 elif test "x$target" = "x$host"; then
14197 # We can use an host tool
14198 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14200$as_echo "host tool" >&6; }
2abefe3d
PB
14201 else
14202 # We need a cross tool
5213506e
RW
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14204$as_echo "pre-installed" >&6; }
2abefe3d 14205 fi
671aa708 14206fi
be912515 14207
5213506e
RW
14208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14209$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14210if test "x${build}" != "x${host}" ; then
14211 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14212 # We already found the complete path
14213 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14215$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14216 else
14217 # Canadian cross, just use what we found
5213506e
RW
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14219$as_echo "pre-installed" >&6; }
901119ae
KT
14220 fi
14221else
14222 ok=yes
14223 case " ${configdirs} " in
14224 *" binutils "*) ;;
14225 *) ok=no ;;
14226 esac
14227
14228 if test $ok = yes; then
14229 # An in-tree tool is available and we can use it
14230 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14232$as_echo "just compiled" >&6; }
901119ae
KT
14233 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14234 # We already found the complete path
14235 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14237$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14238 elif test "x$target" = "x$host"; then
14239 # We can use an host tool
14240 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14242$as_echo "host tool" >&6; }
901119ae
KT
14243 else
14244 # We need a cross tool
5213506e
RW
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14246$as_echo "pre-installed" >&6; }
901119ae
KT
14247 fi
14248fi
14249
be912515
NN
14250
14251
2abefe3d 14252
0b0dc272 14253
671aa708
NN
14254# Certain tools may need extra flags.
14255AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14256RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14257NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14258
2abefe3d
PB
14259# When building target libraries, except in a Canadian cross, we use
14260# the same toolchain as the compiler we just built.
14261COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14262COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14263COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14264if test $host = $build; then
14265 case " $configdirs " in
14266 *" gcc "*)
14267 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14268 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14269 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14270 ;;
14271 esac
14272fi
14273
14274
14275
14276
14277
5213506e
RW
14278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14279$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14280# Check whether --enable-maintainer-mode was given.
14281if test "${enable_maintainer_mode+set}" = set; then :
14282 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14283else
14284 USE_MAINTAINER_MODE=no
5213506e
RW
14285fi
14286
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14288$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14289
14290
14291if test "$USE_MAINTAINER_MODE" = yes; then
14292 MAINTAINER_MODE_TRUE=
14293 MAINTAINER_MODE_FALSE='#'
14294else
14295 MAINTAINER_MODE_TRUE='#'
14296 MAINTAINER_MODE_FALSE=
1c710c3c 14297fi
ee03dc5e
AO
14298MAINT=$MAINTAINER_MODE_TRUE
14299
2805b53a
NN
14300# ---------------------
14301# GCC bootstrap support
14302# ---------------------
14303
14304# Stage specific cflags for build.
14305stage1_cflags="-g"
14306case $build in
14307 vax-*-*)
14308 case ${GCC} in
14309 yes) stage1_cflags="-g -Wa,-J" ;;
14310 *) stage1_cflags="-g -J" ;;
14311 esac ;;
2805b53a
NN
14312esac
14313
0b50988a 14314
2805b53a 14315
8efea775 14316# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14317# Check whether --enable-stage1-checking was given.
14318if test "${enable_stage1_checking+set}" = set; then :
14319 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14320else
e643dc23 14321 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14322 stage1_checking=--enable-checking=yes,types
8efea775 14323else
e643dc23 14324 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14325fi
5213506e 14326fi
8efea775
PB
14327
14328
2aeb72e9 14329
5213506e
RW
14330# Enable -Werror in bootstrap stage2 and later.
14331# Check whether --enable-werror was given.
14332if test "${enable_werror+set}" = set; then :
14333 enableval=$enable_werror;
2805b53a 14334else
416cfb5e 14335 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14336 enable_werror=yes
88fceb68
PB
14337else
14338 enable_werror=no
14339fi
5213506e
RW
14340fi
14341
09a9c095
NN
14342case ${enable_werror} in
14343 yes) stage2_werror_flag="--enable-werror-always" ;;
14344 *) stage2_werror_flag="" ;;
2805b53a
NN
14345esac
14346
14347
f2689b09
SE
14348# Specify what files to not compare during bootstrap.
14349
14350compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14351case "$target" in
14352 hppa*64*-*-hpux*) ;;
14353 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14354 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14355esac
14356
14357
5213506e
RW
14358ac_config_files="$ac_config_files Makefile"
14359
1c710c3c 14360cat >confcache <<\_ACEOF
671aa708
NN
14361# This file is a shell script that caches the results of configure
14362# tests run on this system so they can be shared between configure
1c710c3c
DJ
14363# scripts and configure runs, see configure's option --config-cache.
14364# It is not useful on other systems. If it contains results you don't
14365# want to keep, you may remove or edit it.
671aa708 14366#
1c710c3c
DJ
14367# config.status only pays attention to the cache file if you give it
14368# the --recheck option to rerun configure.
671aa708 14369#
1c710c3c
DJ
14370# `ac_cv_env_foo' variables (set or unset) will be overridden when
14371# loading this file, other *unset* `ac_cv_foo' will be assigned the
14372# following values.
14373
14374_ACEOF
14375
671aa708
NN
14376# The following way of writing the cache mishandles newlines in values,
14377# but we know of no workaround that is simple, portable, and efficient.
5213506e 14378# So, we kill variables containing newlines.
671aa708
NN
14379# Ultrix sh set writes to stderr and can't be redirected directly,
14380# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14381(
14382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14383 eval ac_val=\$$ac_var
14384 case $ac_val in #(
14385 *${as_nl}*)
14386 case $ac_var in #(
14387 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14388$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14389 esac
14390 case $ac_var in #(
14391 _ | IFS | as_nl) ;; #(
14392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14393 *) { eval $ac_var=; unset $ac_var;} ;;
14394 esac ;;
14395 esac
14396 done
14397
1c710c3c 14398 (set) 2>&1 |
5213506e
RW
14399 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14400 *${as_nl}ac_space=\ *)
14401 # `set' does not quote correctly, so add quotes: double-quote
14402 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14403 sed -n \
14404 "s/'/'\\\\''/g;
14405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14406 ;; #(
1c710c3c
DJ
14407 *)
14408 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14410 ;;
5213506e
RW
14411 esac |
14412 sort
14413) |
1c710c3c 14414 sed '
5213506e 14415 /^ac_cv_env_/b end
1c710c3c 14416 t clear
5213506e 14417 :clear
1c710c3c
DJ
14418 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14419 t end
5213506e
RW
14420 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14421 :end' >>confcache
14422if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14423 if test -w "$cache_file"; then
14424 test "x$cache_file" != "x/dev/null" &&
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14426$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14427 cat confcache >$cache_file
671aa708 14428 else
5213506e
RW
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14430$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14431 fi
4977bab6 14432fi
671aa708 14433rm -f confcache
79c06341 14434
671aa708
NN
14435test "x$prefix" = xNONE && prefix=$ac_default_prefix
14436# Let make expand exec_prefix.
14437test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14438
671aa708
NN
14439# Transform confdefs.h into DEFS.
14440# Protect against shell expansion while executing Makefile rules.
14441# Protect against Makefile macro expansion.
1c710c3c
DJ
14442#
14443# If the first sed substitution is executed (which looks for macros that
5213506e 14444# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14445# look for a macro that doesn't take arguments.
5213506e
RW
14446ac_script='
14447:mline
14448/\\$/{
14449 N
14450 s,\\\n,,
14451 b mline
14452}
1c710c3c 14453t clear
5213506e
RW
14454:clear
14455s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14456t quote
5213506e 14457s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14458t quote
5213506e
RW
14459b any
14460:quote
14461s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14462s/\[/\\&/g
14463s/\]/\\&/g
14464s/\$/$$/g
14465H
14466:any
14467${
14468 g
14469 s/^\n//
14470 s/\n/ /g
14471 p
14472}
14473'
14474DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14475
14476
14477ac_libobjs=
14478ac_ltlibobjs=
14479for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14480 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14481 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14482 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14483 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14484 # will be set to the directory where LIBOBJS objects are built.
14485 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14486 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14487done
14488LIBOBJS=$ac_libobjs
fb0103e5 14489
1c710c3c 14490LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14491
af71363e 14492
1c710c3c
DJ
14493
14494: ${CONFIG_STATUS=./config.status}
5213506e 14495ac_write_fail=0
1c710c3c
DJ
14496ac_clean_files_save=$ac_clean_files
14497ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14498{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14499$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14500as_write_fail=0
14501cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14502#! $SHELL
14503# Generated by $as_me.
671aa708 14504# Run this file to recreate the current configuration.
671aa708 14505# Compiler output produced by configure, useful for debugging
1c710c3c 14506# configure, is in config.log if it exists.
0b0dc272 14507
1c710c3c
DJ
14508debug=false
14509ac_cs_recheck=false
14510ac_cs_silent=false
1c710c3c 14511
5213506e
RW
14512SHELL=\${CONFIG_SHELL-$SHELL}
14513export SHELL
14514_ASEOF
14515cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14516## -------------------- ##
14517## M4sh Initialization. ##
14518## -------------------- ##
14519
14520# Be more Bourne compatible
14521DUALCASE=1; export DUALCASE # for MKS sh
14522if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14523 emulate sh
14524 NULLCMD=:
5213506e 14525 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14526 # is contrary to our usage. Disable this feature.
14527 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14528 setopt NO_GLOB_SUBST
14529else
14530 case `(set -o) 2>/dev/null` in #(
14531 *posix*) :
14532 set -o posix ;; #(
14533 *) :
14534 ;;
14535esac
1c710c3c 14536fi
1c710c3c 14537
5213506e
RW
14538
14539as_nl='
14540'
14541export as_nl
14542# Printing a long string crashes Solaris 7 /usr/bin/printf.
14543as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14544as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14545as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14546# Prefer a ksh shell builtin over an external printf program on Solaris,
14547# but without wasting forks for bash or zsh.
14548if test -z "$BASH_VERSION$ZSH_VERSION" \
14549 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14550 as_echo='print -r --'
14551 as_echo_n='print -rn --'
14552elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14553 as_echo='printf %s\n'
14554 as_echo_n='printf %s'
14555else
14556 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14557 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14558 as_echo_n='/usr/ucb/echo -n'
14559 else
14560 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14561 as_echo_n_body='eval
14562 arg=$1;
14563 case $arg in #(
14564 *"$as_nl"*)
14565 expr "X$arg" : "X\\(.*\\)$as_nl";
14566 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14567 esac;
14568 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14569 '
14570 export as_echo_n_body
14571 as_echo_n='sh -c $as_echo_n_body as_echo'
14572 fi
14573 export as_echo_body
14574 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14575fi
14576
5213506e
RW
14577# The user is always right.
14578if test "${PATH_SEPARATOR+set}" != set; then
14579 PATH_SEPARATOR=:
14580 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14581 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14582 PATH_SEPARATOR=';'
14583 }
14584fi
14585
14586
14587# IFS
14588# We need space, tab and new line, in precisely that order. Quoting is
14589# there to prevent editors from complaining about space-tab.
14590# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14591# splitting by setting IFS to empty value.)
14592IFS=" "" $as_nl"
14593
14594# Find who we are. Look in the path if we contain no directory separator.
14595case $0 in #((
14596 *[\\/]* ) as_myself=$0 ;;
14597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14598for as_dir in $PATH
14599do
14600 IFS=$as_save_IFS
14601 test -z "$as_dir" && as_dir=.
14602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14603 done
14604IFS=$as_save_IFS
14605
14606 ;;
14607esac
14608# We did not find ourselves, most probably we were run as `sh COMMAND'
14609# in which case we are not to be found in the path.
14610if test "x$as_myself" = x; then
14611 as_myself=$0
14612fi
14613if test ! -f "$as_myself"; then
14614 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14615 exit 1
14616fi
1c710c3c 14617
5213506e
RW
14618# Unset variables that we do not need and which cause bugs (e.g. in
14619# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14620# suppresses any "Segmentation fault" message there. '((' could
14621# trigger a bug in pdksh 5.2.14.
14622for as_var in BASH_ENV ENV MAIL MAILPATH
14623do eval test x\${$as_var+set} = xset \
14624 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14625done
1c710c3c
DJ
14626PS1='$ '
14627PS2='> '
14628PS4='+ '
14629
14630# NLS nuisances.
5213506e
RW
14631LC_ALL=C
14632export LC_ALL
14633LANGUAGE=C
14634export LANGUAGE
14635
14636# CDPATH.
14637(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14638
14639
14640# as_fn_error ERROR [LINENO LOG_FD]
14641# ---------------------------------
14642# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14643# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14644# script with status $?, using 1 if that was 0.
14645as_fn_error ()
14646{
14647 as_status=$?; test $as_status -eq 0 && as_status=1
14648 if test "$3"; then
14649 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14650 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14651 fi
5213506e
RW
14652 $as_echo "$as_me: error: $1" >&2
14653 as_fn_exit $as_status
14654} # as_fn_error
14655
14656
14657# as_fn_set_status STATUS
14658# -----------------------
14659# Set $? to STATUS, without forking.
14660as_fn_set_status ()
14661{
14662 return $1
14663} # as_fn_set_status
14664
14665# as_fn_exit STATUS
14666# -----------------
14667# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14668as_fn_exit ()
14669{
14670 set +e
14671 as_fn_set_status $1
14672 exit $1
14673} # as_fn_exit
14674
14675# as_fn_unset VAR
14676# ---------------
14677# Portably unset VAR.
14678as_fn_unset ()
14679{
14680 { eval $1=; unset $1;}
14681}
14682as_unset=as_fn_unset
14683# as_fn_append VAR VALUE
14684# ----------------------
14685# Append the text in VALUE to the end of the definition contained in VAR. Take
14686# advantage of any shell optimizations that allow amortized linear growth over
14687# repeated appends, instead of the typical quadratic growth present in naive
14688# implementations.
14689if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14690 eval 'as_fn_append ()
14691 {
14692 eval $1+=\$2
14693 }'
14694else
14695 as_fn_append ()
14696 {
14697 eval $1=\$$1\$2
14698 }
14699fi # as_fn_append
14700
14701# as_fn_arith ARG...
14702# ------------------
14703# Perform arithmetic evaluation on the ARGs, and store the result in the
14704# global $as_val. Take advantage of shells that can avoid forks. The arguments
14705# must be portable across $(()) and expr.
14706if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14707 eval 'as_fn_arith ()
14708 {
14709 as_val=$(( $* ))
14710 }'
14711else
14712 as_fn_arith ()
14713 {
14714 as_val=`expr "$@" || test $? -eq 1`
14715 }
14716fi # as_fn_arith
14717
1c710c3c 14718
5213506e
RW
14719if expr a : '\(a\)' >/dev/null 2>&1 &&
14720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14721 as_expr=expr
14722else
14723 as_expr=false
14724fi
14725
5213506e 14726if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14727 as_basename=basename
14728else
14729 as_basename=false
14730fi
14731
5213506e
RW
14732if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14733 as_dirname=dirname
14734else
14735 as_dirname=false
14736fi
1c710c3c 14737
5213506e 14738as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14739$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14740 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14741 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14742$as_echo X/"$0" |
14743 sed '/^.*\/\([^/][^/]*\)\/*$/{
14744 s//\1/
14745 q
14746 }
14747 /^X\/\(\/\/\)$/{
14748 s//\1/
14749 q
14750 }
14751 /^X\/\(\/\).*/{
14752 s//\1/
14753 q
14754 }
14755 s/.*/./; q'`
2aeb72e9 14756
2aeb72e9
DD
14757# Avoid depending upon Character Ranges.
14758as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14759as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14760as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14761as_cr_digits='0123456789'
14762as_cr_alnum=$as_cr_Letters$as_cr_digits
14763
5213506e
RW
14764ECHO_C= ECHO_N= ECHO_T=
14765case `echo -n x` in #(((((
14766-n*)
14767 case `echo 'xy\c'` in
14768 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14769 xy) ECHO_C='\c';;
14770 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14771 ECHO_T=' ';;
14772 esac;;
14773*)
14774 ECHO_N='-n';;
1c710c3c
DJ
14775esac
14776
5213506e
RW
14777rm -f conf$$ conf$$.exe conf$$.file
14778if test -d conf$$.dir; then
14779 rm -f conf$$.dir/conf$$.file
1c710c3c 14780else
5213506e
RW
14781 rm -f conf$$.dir
14782 mkdir conf$$.dir 2>/dev/null
1c710c3c 14783fi
5213506e
RW
14784if (echo >conf$$.file) 2>/dev/null; then
14785 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14786 as_ln_s='ln -s'
5213506e
RW
14787 # ... but there are two gotchas:
14788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14790 # In both cases, we have to default to `cp -p'.
14791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14792 as_ln_s='cp -p'
14793 elif ln conf$$.file conf$$ 2>/dev/null; then
14794 as_ln_s=ln
14795 else
14796 as_ln_s='cp -p'
2aeb72e9 14797 fi
1c710c3c
DJ
14798else
14799 as_ln_s='cp -p'
14800fi
5213506e
RW
14801rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14802rmdir conf$$.dir 2>/dev/null
14803
14804
14805# as_fn_mkdir_p
14806# -------------
14807# Create "$as_dir" as a directory, including parents if necessary.
14808as_fn_mkdir_p ()
14809{
14810
14811 case $as_dir in #(
14812 -*) as_dir=./$as_dir;;
14813 esac
14814 test -d "$as_dir" || eval $as_mkdir_p || {
14815 as_dirs=
14816 while :; do
14817 case $as_dir in #(
14818 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14819 *) as_qdir=$as_dir;;
14820 esac
14821 as_dirs="'$as_qdir' $as_dirs"
14822 as_dir=`$as_dirname -- "$as_dir" ||
14823$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14824 X"$as_dir" : 'X\(//\)[^/]' \| \
14825 X"$as_dir" : 'X\(//\)$' \| \
14826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14827$as_echo X"$as_dir" |
14828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14829 s//\1/
14830 q
14831 }
14832 /^X\(\/\/\)[^/].*/{
14833 s//\1/
14834 q
14835 }
14836 /^X\(\/\/\)$/{
14837 s//\1/
14838 q
14839 }
14840 /^X\(\/\).*/{
14841 s//\1/
14842 q
14843 }
14844 s/.*/./; q'`
14845 test -d "$as_dir" && break
14846 done
14847 test -z "$as_dirs" || eval "mkdir $as_dirs"
14848 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14849
1c710c3c 14850
5213506e 14851} # as_fn_mkdir_p
1c710c3c 14852if mkdir -p . 2>/dev/null; then
5213506e 14853 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14854else
14855 test -d ./-p && rmdir ./-p
14856 as_mkdir_p=false
14857fi
14858
5213506e
RW
14859if test -x / >/dev/null 2>&1; then
14860 as_test_x='test -x'
14861else
14862 if ls -dL / >/dev/null 2>&1; then
14863 as_ls_L_option=L
14864 else
14865 as_ls_L_option=
14866 fi
14867 as_test_x='
14868 eval sh -c '\''
14869 if test -d "$1"; then
14870 test -d "$1/.";
14871 else
14872 case $1 in #(
14873 -*)set "./$1";;
14874 esac;
14875 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14876 ???[sx]*):;;*)false;;esac;fi
14877 '\'' sh
14878 '
14879fi
14880as_executable_p=$as_test_x
1c710c3c
DJ
14881
14882# Sed expression to map a string onto a valid CPP name.
14883as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14884
14885# Sed expression to map a string onto a valid variable name.
14886as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14887
14888
1c710c3c 14889exec 6>&1
5213506e
RW
14890## ----------------------------------- ##
14891## Main body of $CONFIG_STATUS script. ##
14892## ----------------------------------- ##
14893_ASEOF
14894test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14895
14896cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14897# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14898# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14899# values after options handling.
14900ac_log="
1c710c3c 14901This file was extended by $as_me, which was
5213506e 14902generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14903
14904 CONFIG_FILES = $CONFIG_FILES
14905 CONFIG_HEADERS = $CONFIG_HEADERS
14906 CONFIG_LINKS = $CONFIG_LINKS
14907 CONFIG_COMMANDS = $CONFIG_COMMANDS
14908 $ $0 $@
14909
5213506e
RW
14910on `(hostname || uname -n) 2>/dev/null | sed 1q`
14911"
14912
1c710c3c
DJ
14913_ACEOF
14914
5213506e
RW
14915case $ac_config_files in *"
14916"*) set x $ac_config_files; shift; ac_config_files=$*;;
14917esac
1c710c3c 14918
2aeb72e9 14919
2aeb72e9 14920
5213506e
RW
14921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14922# Files that config.status was made for.
14923config_files="$ac_config_files"
1c710c3c 14924
5213506e 14925_ACEOF
2aeb72e9 14926
5213506e 14927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14928ac_cs_usage="\
5213506e
RW
14929\`$as_me' instantiates files and other configuration actions
14930from templates according to the current configuration. Unless the files
14931and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14932
5213506e 14933Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14934
14935 -h, --help print this help, then exit
5213506e
RW
14936 -V, --version print version number and configuration settings, then exit
14937 -q, --quiet, --silent
14938 do not print progress messages
1c710c3c
DJ
14939 -d, --debug don't remove temporary files
14940 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14941 --file=FILE[:TEMPLATE]
14942 instantiate the configuration file FILE
1c710c3c
DJ
14943
14944Configuration files:
14945$config_files
14946
5213506e 14947Report bugs to the package provider."
2aeb72e9 14948
5213506e
RW
14949_ACEOF
14950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14951ac_cs_version="\\
14952config.status
5213506e
RW
14953configured by $0, generated by GNU Autoconf 2.64,
14954 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14955
5213506e 14956Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14957This config.status script is free software; the Free Software Foundation
14958gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14959
14960ac_pwd='$ac_pwd'
14961srcdir='$srcdir'
14962INSTALL='$INSTALL'
87264276 14963AWK='$AWK'
5213506e 14964test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14965_ACEOF
14966
5213506e
RW
14967cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14968# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14969ac_need_defaults=:
14970while test $# != 0
a4b9e93e 14971do
1c710c3c
DJ
14972 case $1 in
14973 --*=*)
5213506e
RW
14974 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14975 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14976 ac_shift=:
14977 ;;
5213506e 14978 *)
1c710c3c
DJ
14979 ac_option=$1
14980 ac_optarg=$2
14981 ac_shift=shift
14982 ;;
1c710c3c
DJ
14983 esac
14984
14985 case $ac_option in
14986 # Handling of the options.
671aa708 14987 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14988 ac_cs_recheck=: ;;
5213506e
RW
14989 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14990 $as_echo "$ac_cs_version"; exit ;;
14991 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14992 debug=: ;;
14993 --file | --fil | --fi | --f )
14994 $ac_shift
5213506e
RW
14995 case $ac_optarg in
14996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14997 esac
14998 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14999 ac_need_defaults=false;;
5213506e
RW
15000 --he | --h | --help | --hel | -h )
15001 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15003 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15004 ac_cs_silent=: ;;
15005
15006 # This is an error.
5213506e
RW
15007 -*) as_fn_error "unrecognized option: \`$1'
15008Try \`$0 --help' for more information." ;;
1c710c3c 15009
5213506e
RW
15010 *) as_fn_append ac_config_targets " $1"
15011 ac_need_defaults=false ;;
1c710c3c 15012
0b0dc272 15013 esac
1c710c3c 15014 shift
0b0dc272
AM
15015done
15016
1c710c3c 15017ac_configure_extra_args=
0b0dc272 15018
1c710c3c
DJ
15019if $ac_cs_silent; then
15020 exec 6>/dev/null
15021 ac_configure_extra_args="$ac_configure_extra_args --silent"
15022fi
0b0dc272 15023
1c710c3c 15024_ACEOF
5213506e 15025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15026if \$ac_cs_recheck; then
5213506e
RW
15027 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15028 shift
15029 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15030 CONFIG_SHELL='$SHELL'
15031 export CONFIG_SHELL
15032 exec "\$@"
1c710c3c
DJ
15033fi
15034
15035_ACEOF
5213506e
RW
15036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15037exec 5>>config.log
15038{
15039 echo
15040 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15041## Running $as_me. ##
15042_ASBOX
15043 $as_echo "$ac_log"
15044} >&5
1c710c3c 15045
5213506e
RW
15046_ACEOF
15047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15048#
15049# INIT-COMMANDS
15050#
15051extrasub_build="$extrasub_build"
15052 extrasub_host="$extrasub_host"
15053 extrasub_target="$extrasub_target"
15054
5213506e 15055_ACEOF
1c710c3c 15056
5213506e 15057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15058
5213506e 15059# Handling of arguments.
1c710c3c
DJ
15060for ac_config_target in $ac_config_targets
15061do
5213506e
RW
15062 case $ac_config_target in
15063 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15064
15065 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15066 esac
15067done
15068
5213506e 15069
1c710c3c
DJ
15070# If the user did not use the arguments to specify the items to instantiate,
15071# then the envvar interface is used. Set only those that are not.
15072# We use the long form for the default assignment because of an extremely
15073# bizarre bug on SunOS 4.1.3.
15074if $ac_need_defaults; then
15075 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15076fi
15077
15078# Have a temporary directory for convenience. Make it in the build tree
5213506e 15079# simply because there is no reason against having it here, and in addition,
1c710c3c 15080# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15081# Hook for its removal unless debugging.
15082# Note that there is a small window in which the directory will not be cleaned:
15083# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15084$debug ||
15085{
5213506e
RW
15086 tmp=
15087 trap 'exit_status=$?
15088 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15089' 0
15090 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15091}
1c710c3c
DJ
15092# Create a (secure) tmp directory for tmp files.
15093
15094{
5213506e 15095 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15096 test -n "$tmp" && test -d "$tmp"
15097} ||
15098{
5213506e
RW
15099 tmp=./conf$$-$RANDOM
15100 (umask 077 && mkdir "$tmp")
15101} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15102
15103# Set up the scripts for CONFIG_FILES section.
15104# No need to generate them if there are no CONFIG_FILES.
15105# This happens for instance with `./config.status config.h'.
15106if test -n "$CONFIG_FILES"; then
15107
15108if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15109 ac_cs_awk_getline=:
15110 ac_cs_awk_pipe_init=
15111 ac_cs_awk_read_file='
15112 while ((getline aline < (F[key])) > 0)
15113 print(aline)
15114 close(F[key])'
15115 ac_cs_awk_pipe_fini=
15116else
15117 ac_cs_awk_getline=false
15118 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15119 ac_cs_awk_read_file='
15120 print "|#_!!_#|"
15121 print "cat " F[key] " &&"
15122 '$ac_cs_awk_pipe_init
15123 # The final `:' finishes the AND list.
15124 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15125fi
15126ac_cr=`echo X | tr X '\015'`
15127# On cygwin, bash can eat \r inside `` if the user requested igncr.
15128# But we know of no other shell where ac_cr would be empty at this
15129# point, so we can use a bashism as a fallback.
15130if test "x$ac_cr" = x; then
15131 eval ac_cr=\$\'\\r\'
15132fi
15133ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15134if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15135 ac_cs_awk_cr='\r'
15136else
15137 ac_cs_awk_cr=$ac_cr
15138fi
15139
15140echo 'BEGIN {' >"$tmp/subs1.awk" &&
15141_ACEOF
15142
15143# Create commands to substitute file output variables.
1c710c3c 15144{
5213506e
RW
15145 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15146 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15147 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15148 echo "_ACAWK" &&
15149 echo "_ACEOF"
15150} >conf$$files.sh &&
15151. ./conf$$files.sh ||
15152 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15153rm -f conf$$files.sh
1c710c3c 15154
5213506e
RW
15155{
15156 echo "cat >conf$$subs.awk <<_ACEOF" &&
15157 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15158 echo "_ACEOF"
15159} >conf$$subs.sh ||
15160 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15161ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15162ac_delim='%!_!# '
15163for ac_last_try in false false false false false :; do
15164 . ./conf$$subs.sh ||
15165 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15166
15167 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15168 if test $ac_delim_n = $ac_delim_num; then
15169 break
15170 elif $ac_last_try; then
15171 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15172 else
15173 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15174 fi
15175done
15176rm -f conf$$subs.sh
15177
15178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15179cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15180_ACEOF
5213506e
RW
15181sed -n '
15182h
15183s/^/S["/; s/!.*/"]=/
15184p
15185g
15186s/^[^!]*!//
15187:repl
15188t repl
15189s/'"$ac_delim"'$//
15190t delim
15191:nl
15192h
15193s/\(.\{148\}\).*/\1/
15194t more1
15195s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15196p
15197n
15198b repl
15199:more1
15200s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15201p
15202g
15203s/.\{148\}//
15204t nl
15205:delim
15206h
15207s/\(.\{148\}\).*/\1/
15208t more2
15209s/["\\]/\\&/g; s/^/"/; s/$/"/
15210p
15211b
15212:more2
15213s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15214p
15215g
15216s/.\{148\}//
15217t delim
15218' <conf$$subs.awk | sed '
15219/^[^""]/{
15220 N
15221 s/\n//
15222}
15223' >>$CONFIG_STATUS || ac_write_fail=1
15224rm -f conf$$subs.awk
15225cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15226_ACAWK
15227cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15228 for (key in S) S_is_set[key] = 1
15229 FS = "\a"
15230 \$ac_cs_awk_pipe_init
15231}
15232{
15233 line = $ 0
15234 nfields = split(line, field, "@")
15235 substed = 0
15236 len = length(field[1])
15237 for (i = 2; i < nfields; i++) {
15238 key = field[i]
15239 keylen = length(key)
15240 if (S_is_set[key]) {
15241 value = S[key]
15242 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15243 len += length(value) + length(field[++i])
15244 substed = 1
15245 } else
15246 len += 1 + keylen
15247 }
15248 if (nfields == 3 && !substed) {
15249 key = field[2]
15250 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15251 \$ac_cs_awk_read_file
15252 next
15253 }
15254 }
15255 print line
15256}
15257\$ac_cs_awk_pipe_fini
15258_ACAWK
15259_ACEOF
15260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15261if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15262 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15263else
15264 cat
15265fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15266 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15267_ACEOF
15268
15269# VPATH may cause trouble with some makes, so we remove $(srcdir),
15270# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15271# trailing colons and then remove the whole line if VPATH becomes empty
15272# (actually we leave an empty line to preserve line numbers).
15273if test "x$srcdir" = x.; then
15274 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15275s/:*\$(srcdir):*/:/
15276s/:*\${srcdir}:*/:/
15277s/:*@srcdir@:*/:/
15278s/^\([^=]*=[ ]*\):*/\1/
15279s/:*$//
15280s/^[^=]*=[ ]*$//
15281}'
15282fi
2aeb72e9 15283
5213506e
RW
15284cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15285fi # test -n "$CONFIG_FILES"
2aeb72e9 15286
1c710c3c 15287
5213506e
RW
15288eval set X " :F $CONFIG_FILES "
15289shift
15290for ac_tag
15291do
15292 case $ac_tag in
15293 :[FHLC]) ac_mode=$ac_tag; continue;;
15294 esac
15295 case $ac_mode$ac_tag in
15296 :[FHL]*:*);;
15297 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15298 :[FH]-) ac_tag=-:-;;
15299 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15300 esac
15301 ac_save_IFS=$IFS
15302 IFS=:
15303 set x $ac_tag
15304 IFS=$ac_save_IFS
15305 shift
15306 ac_file=$1
15307 shift
79c06341 15308
5213506e
RW
15309 case $ac_mode in
15310 :L) ac_source=$1;;
15311 :[FH])
15312 ac_file_inputs=
15313 for ac_f
15314 do
15315 case $ac_f in
15316 -) ac_f="$tmp/stdin";;
15317 *) # Look for the file first in the build tree, then in the source tree
15318 # (if the path is not absolute). The absolute path cannot be DOS-style,
15319 # because $ac_f cannot contain `:'.
15320 test -f "$ac_f" ||
15321 case $ac_f in
15322 [\\/$]*) false;;
15323 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15324 esac ||
15325 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15326 esac
15327 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15328 as_fn_append ac_file_inputs " '$ac_f'"
15329 done
1c710c3c 15330
5213506e
RW
15331 # Let's still pretend it is `configure' which instantiates (i.e., don't
15332 # use $as_me), people would be surprised to read:
15333 # /* config.h. Generated by config.status. */
15334 configure_input='Generated from '`
15335 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15336 `' by configure.'
15337 if test x"$ac_file" != x-; then
15338 configure_input="$ac_file. $configure_input"
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15340$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15341 fi
5213506e
RW
15342 # Neutralize special characters interpreted by sed in replacement strings.
15343 case $configure_input in #(
15344 *\&* | *\|* | *\\* )
15345 ac_sed_conf_input=`$as_echo "$configure_input" |
15346 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15347 *) ac_sed_conf_input=$configure_input;;
15348 esac
11a67599 15349
5213506e
RW
15350 case $ac_tag in
15351 *:-:* | *:-) cat >"$tmp/stdin" \
15352 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15353 esac
15354 ;;
11a67599
ZW
15355 esac
15356
5213506e 15357 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15358$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15359 X"$ac_file" : 'X\(//\)[^/]' \| \
15360 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15361 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15362$as_echo X"$ac_file" |
15363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15364 s//\1/
15365 q
15366 }
15367 /^X\(\/\/\)[^/].*/{
15368 s//\1/
15369 q
15370 }
15371 /^X\(\/\/\)$/{
15372 s//\1/
15373 q
15374 }
15375 /^X\(\/\).*/{
15376 s//\1/
15377 q
15378 }
15379 s/.*/./; q'`
15380 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15381 ac_builddir=.
0b0dc272 15382
5213506e
RW
15383case "$ac_dir" in
15384.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15385*)
15386 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15387 # A ".." for each directory in $ac_dir_suffix.
15388 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15389 case $ac_top_builddir_sub in
15390 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15391 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15392 esac ;;
15393esac
15394ac_abs_top_builddir=$ac_pwd
15395ac_abs_builddir=$ac_pwd$ac_dir_suffix
15396# for backward compatibility:
15397ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15398
15399case $srcdir in
5213506e 15400 .) # We are building in place.
1c710c3c 15401 ac_srcdir=.
5213506e
RW
15402 ac_top_srcdir=$ac_top_builddir_sub
15403 ac_abs_top_srcdir=$ac_pwd ;;
15404 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15405 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15406 ac_top_srcdir=$srcdir
15407 ac_abs_top_srcdir=$srcdir ;;
15408 *) # Relative name.
15409 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15410 ac_top_srcdir=$ac_top_build_prefix$srcdir
15411 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15412esac
5213506e 15413ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15414
0b0dc272 15415
5213506e
RW
15416 case $ac_mode in
15417 :F)
15418 #
15419 # CONFIG_FILE
15420 #
1c710c3c
DJ
15421
15422 case $INSTALL in
15423 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15424 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15425 esac
5213506e 15426_ACEOF
11a67599 15427
5213506e
RW
15428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15429# If the template does not know about datarootdir, expand it.
15430# FIXME: This hack should be removed a few years after 2.60.
15431ac_datarootdir_hack=; ac_datarootdir_seen=
15432ac_sed_dataroot='
15433/datarootdir/ {
15434 p
15435 q
15436}
15437/@datadir@/p
15438/@docdir@/p
15439/@infodir@/p
15440/@localedir@/p
15441/@mandir@/p'
15442case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15443*datarootdir*) ac_datarootdir_seen=yes;;
15444*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15446$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15447_ACEOF
5213506e
RW
15448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15449 ac_datarootdir_hack='
15450 s&@datadir@&$datadir&g
15451 s&@docdir@&$docdir&g
15452 s&@infodir@&$infodir&g
15453 s&@localedir@&$localedir&g
15454 s&@mandir@&$mandir&g
15455 s&\\\${datarootdir}&$datarootdir&g' ;;
15456esac
15457_ACEOF
15458
15459# Neutralize VPATH when `$srcdir' = `.'.
15460# Shell code in configure.ac might set extrasub.
15461# FIXME: do we really want to maintain this feature?
15462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15463ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15464$extrasub
15465_ACEOF
5213506e 15466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15467:t
15468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15469s|@configure_input@|$ac_sed_conf_input|;t t
15470s&@top_builddir@&$ac_top_builddir_sub&;t t
15471s&@top_build_prefix@&$ac_top_build_prefix&;t t
15472s&@srcdir@&$ac_srcdir&;t t
15473s&@abs_srcdir@&$ac_abs_srcdir&;t t
15474s&@top_srcdir@&$ac_top_srcdir&;t t
15475s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15476s&@builddir@&$ac_builddir&;t t
15477s&@abs_builddir@&$ac_abs_builddir&;t t
15478s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15479s&@INSTALL@&$ac_INSTALL&;t t
15480$ac_datarootdir_hack
15481"
15482eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15483if $ac_cs_awk_getline; then
15484 $AWK -f "$tmp/subs.awk"
15485else
15486 $AWK -f "$tmp/subs.awk" | $SHELL
15487fi >$tmp/out \
15488 || as_fn_error "could not create $ac_file" "$LINENO" 5
15489
15490test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15491 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15492 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15494which seems to be undefined. Please make sure it is defined." >&5
15495$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15496which seems to be undefined. Please make sure it is defined." >&2;}
15497
15498 rm -f "$tmp/stdin"
15499 case $ac_file in
15500 -) cat "$tmp/out" && rm -f "$tmp/out";;
15501 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15502 esac \
15503 || as_fn_error "could not create $ac_file" "$LINENO" 5
15504 ;;
11a67599 15505
11a67599 15506
79c06341 15507
5213506e
RW
15508 esac
15509
3e54529c
RW
15510
15511 case $ac_file$ac_mode in
15512 "Makefile":F) sed "$extrasub_build" Makefile |
15513 sed "$extrasub_host" |
15514 sed "$extrasub_target" > mf$$
15515 mv -f mf$$ Makefile ;;
15516
15517 esac
5213506e
RW
15518done # for ac_tag
15519
15520
15521as_fn_exit 0
1c710c3c 15522_ACEOF
1c710c3c
DJ
15523ac_clean_files=$ac_clean_files_save
15524
5213506e
RW
15525test $ac_write_fail = 0 ||
15526 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15527
1c710c3c
DJ
15528
15529# configure is writing to config.log, and then calls config.status.
15530# config.status does its own redirection, appending to config.log.
15531# Unfortunately, on DOS this fails, as config.log is still kept open
15532# by configure, so config.status won't be able to write to it; its
15533# output is simply discarded. So we exec the FD to /dev/null,
15534# effectively closing config.log, so it can be properly (re)opened and
15535# appended to by config.status. When coming back to configure, we
15536# need to make the FD available again.
15537if test "$no_create" != yes; then
15538 ac_cs_success=:
15539 ac_config_status_args=
15540 test "$silent" = yes &&
15541 ac_config_status_args="$ac_config_status_args --quiet"
15542 exec 5>/dev/null
15543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15544 exec 5>>config.log
15545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15546 # would make configure fail if this is the last instruction.
5213506e
RW
15547 $ac_cs_success || as_fn_exit $?
15548fi
15549if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15551$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15552fi
79c06341 15553