]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - configure
Add a test for PR binutils/22451
[thirdparty/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
81ecdfbb
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 184do
81ecdfbb
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 228 else
81ecdfbb
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
c6b750e1 233 fi
81ecdfbb
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
c6b750e1 263
81ecdfbb
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
c6b750e1 410
c6b750e1
DJ
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
c6b750e1 418
81ecdfbb
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
c6b750e1
DJ
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
82033c9b 559host_shared
81ecdfbb
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
b121d7d4 574READELF_FOR_TARGET
81ecdfbb
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
6b91c541 577OBJCOPY_FOR_TARGET
81ecdfbb
RW
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
e552509b 584GOC_FOR_TARGET
81ecdfbb 585GFORTRAN_FOR_TARGET
81ecdfbb
RW
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
b121d7d4 589READELF
81ecdfbb
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
81ecdfbb
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
e552509b 616GOC_FOR_BUILD
81ecdfbb 617GFORTRAN_FOR_BUILD
81ecdfbb
RW
618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
911e63d0 625target_configdirs
81ecdfbb 626configdirs
81ecdfbb 627build_configdirs
81ecdfbb
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
4074d5f2
RW
635target_configargs
636host_configargs
637build_configargs
96655cc4 638BUILD_CONFIG
91c1f14c 639LDFLAGS_FOR_TARGET
81ecdfbb
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
e81d5d05 644extra_host_zlib_configure_flags
700d40ca 645extra_host_libiberty_configure_flags
1b6c0831
L
646stage1_languages
647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
7ec59b9e 649islinc
1b6c0831 650isllibs
52cf9762 651islver
81ecdfbb 652poststage1_ldflags
143754cd 653poststage1_libs
81ecdfbb 654stage1_ldflags
b3676d82 655stage1_libs
7ec59b9e 656extra_isl_gmp_configure_flags
81ecdfbb
RW
657extra_mpc_mpfr_configure_flags
658extra_mpc_gmp_configure_flags
659extra_mpfr_configure_flags
660gmpinc
661gmplibs
662do_compare
663GNATMAKE
664GNATBIND
665ac_ct_CXX
666CXXFLAGS
667CXX
668OBJEXT
669EXEEXT
670ac_ct_CC
671CPPFLAGS
672LDFLAGS
673CFLAGS
674CC
1b6c0831 675extra_liboffloadmic_configure_flags
81ecdfbb
RW
676target_subdir
677host_subdir
678build_subdir
679build_libsubdir
8e957354
PB
680AWK
681SED
81ecdfbb
RW
682LN_S
683LN
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695target_noncanonical
696host_noncanonical
697build_noncanonical
698build_os
699build_vendor
700build_cpu
701build
702TOPLEVEL_CONFIGURE_ARGUMENTS
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
741ac_subst_files='serialization_dependencies
742host_makefile_frag
743target_makefile_frag
744alphaieee_frag
745ospace_frag'
746ac_user_opts='
747enable_option_checking
748with_build_libsubdir
cf39cfc5 749with_system_zlib
1b6c0831
L
750enable_as_accelerator_for
751enable_offload_targets
81ecdfbb 752enable_gold
c7791212 753enable_ld
edeefb67 754enable_compressed_debug_sections
89a1e9c3
PB
755enable_libquadmath
756enable_libquadmath_support
81ecdfbb
RW
757enable_libada
758enable_libssp
f66a9a70 759enable_libstdcxx
1b6c0831 760enable_liboffloadmic
ffdd6afc 761enable_bootstrap
81ecdfbb
RW
762with_mpc
763with_mpc_include
764with_mpc_lib
765with_mpfr_dir
766with_mpfr
767with_mpfr_include
768with_mpfr_lib
769with_gmp_dir
770with_gmp
771with_gmp_include
772with_gmp_lib
81ecdfbb 773with_stage1_libs
b3676d82 774with_stage1_ldflags
81ecdfbb 775with_boot_libs
143754cd 776with_boot_ldflags
7ec59b9e
L
777with_isl
778with_isl_include
779with_isl_lib
780enable_isl_version_check
700d40ca 781enable_lto
1b6c0831
L
782enable_linker_plugin_configure_flags
783enable_linker_plugin_flags
81ecdfbb
RW
784enable_stage1_languages
785enable_objc_gc
05a13254
NC
786with_target_bdw_gc
787with_target_bdw_gc_include
788with_target_bdw_gc_lib
81ecdfbb
RW
789with_build_sysroot
790with_debug_prefix_map
96655cc4 791with_build_config
730af8ee 792enable_vtable_verify
81ecdfbb
RW
793enable_serial_configure
794with_build_time_tools
795enable_maintainer_mode
796enable_stage1_checking
797enable_werror
82033c9b 798enable_host_shared
81ecdfbb
RW
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CXX
809CXXFLAGS
810CCC
4074d5f2
RW
811build_configargs
812host_configargs
813target_configargs
81ecdfbb
RW
814AR
815AS
816DLLTOOL
817LD
818LIPO
819NM
820RANLIB
821STRIP
822WINDRES
823WINDMC
824OBJCOPY
825OBJDUMP
b121d7d4 826READELF
81ecdfbb
RW
827CC_FOR_TARGET
828CXX_FOR_TARGET
829GCC_FOR_TARGET
81ecdfbb 830GFORTRAN_FOR_TARGET
e552509b 831GOC_FOR_TARGET
81ecdfbb
RW
832AR_FOR_TARGET
833AS_FOR_TARGET
834DLLTOOL_FOR_TARGET
835LD_FOR_TARGET
836LIPO_FOR_TARGET
837NM_FOR_TARGET
6b91c541 838OBJCOPY_FOR_TARGET
81ecdfbb
RW
839OBJDUMP_FOR_TARGET
840RANLIB_FOR_TARGET
b121d7d4 841READELF_FOR_TARGET
81ecdfbb
RW
842STRIP_FOR_TARGET
843WINDRES_FOR_TARGET
844WINDMC_FOR_TARGET'
845
a0da8069
NN
846
847# Initialize some variables set by options.
c6b750e1
DJ
848ac_init_help=
849ac_init_version=false
81ecdfbb
RW
850ac_unrecognized_opts=
851ac_unrecognized_sep=
a0da8069
NN
852# The variables have the same names as the options, with
853# dashes changed to underlines.
c6b750e1 854cache_file=/dev/null
a0da8069 855exec_prefix=NONE
a0da8069 856no_create=
a0da8069
NN
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
a0da8069
NN
865verbose=
866x_includes=NONE
867x_libraries=NONE
c6b750e1
DJ
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 874# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
a0da8069
NN
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
a0da8069
NN
883includedir='${prefix}/include'
884oldincludedir='/usr/include'
81ecdfbb
RW
885docdir='${datarootdir}/doc/${PACKAGE}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
252b5132 894
a0da8069 895ac_prev=
81ecdfbb 896ac_dashdash=
a0da8069
NN
897for ac_option
898do
a0da8069
NN
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
81ecdfbb 901 eval $ac_prev=\$ac_option
a0da8069
NN
902 ac_prev=
903 continue
904 fi
252b5132 905
81ecdfbb
RW
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
a0da8069
NN
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
81ecdfbb
RW
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
a0da8069
NN
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 920 bindir=$ac_optarg ;;
a0da8069
NN
921
922 -build | --build | --buil | --bui | --bu)
c6b750e1 923 ac_prev=build_alias ;;
a0da8069 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 925 build_alias=$ac_optarg ;;
a0da8069
NN
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
a0da8069 936
81ecdfbb 937 -datadir | --datadir | --datadi | --datad)
a0da8069 938 ac_prev=datadir ;;
81ecdfbb 939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 940 datadir=$ac_optarg ;;
a0da8069 941
81ecdfbb
RW
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
a0da8069 949 -disable-* | --disable-*)
81ecdfbb 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 951 # Reject names that are not valid shell variable names.
81ecdfbb
RW
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958"enable_$ac_useropt"
959"*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
a0da8069
NN
974
975 -enable-* | --enable-*)
81ecdfbb 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 977 # Reject names that are not valid shell variable names.
81ecdfbb
RW
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
a0da8069 988 esac
81ecdfbb 989 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
c6b750e1 998 exec_prefix=$ac_optarg ;;
a0da8069
NN
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
c6b750e1
DJ
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
a0da8069
NN
1010
1011 -host | --host | --hos | --ho)
c6b750e1 1012 ac_prev=host_alias ;;
a0da8069 1013 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1014 host_alias=$ac_optarg ;;
a0da8069 1015
81ecdfbb
RW
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
a0da8069
NN
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1027 includedir=$ac_optarg ;;
a0da8069
NN
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1032 infodir=$ac_optarg ;;
a0da8069
NN
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1037 libdir=$ac_optarg ;;
a0da8069
NN
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1044 libexecdir=$ac_optarg ;;
a0da8069 1045
81ecdfbb
RW
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
a0da8069 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1052 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1056 localstatedir=$ac_optarg ;;
a0da8069
NN
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1061 mandir=$ac_optarg ;;
a0da8069
NN
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1068 | --no-cr | --no-c | -n)
a0da8069
NN
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1082 oldincludedir=$ac_optarg ;;
a0da8069
NN
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1087 prefix=$ac_optarg ;;
a0da8069
NN
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1094 program_prefix=$ac_optarg ;;
a0da8069
NN
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1101 program_suffix=$ac_optarg ;;
a0da8069
NN
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1118 program_transform_name=$ac_optarg ;;
a0da8069 1119
81ecdfbb
RW
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
a0da8069
NN
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
c6b750e1 1138 sbindir=$ac_optarg ;;
a0da8069
NN
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
c6b750e1 1149 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
c6b750e1 1154 site=$ac_optarg ;;
a0da8069
NN
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1159 srcdir=$ac_optarg ;;
a0da8069
NN
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1166 sysconfdir=$ac_optarg ;;
a0da8069
NN
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1169 ac_prev=target_alias ;;
a0da8069 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1171 target_alias=$ac_optarg ;;
a0da8069
NN
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
c6b750e1
DJ
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
a0da8069
NN
1178
1179 -with-* | --with-*)
81ecdfbb 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1181 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
a0da8069 1192 esac
81ecdfbb 1193 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1194
1195 -without-* | --without-*)
81ecdfbb 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1197 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204"with_$ac_useropt"
1205"*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
a0da8069
NN
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1220 x_includes=$ac_optarg ;;
a0da8069
NN
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1227 x_libraries=$ac_optarg ;;
a0da8069 1228
81ecdfbb
RW
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information."
a0da8069
NN
1231 ;;
1232
c6b750e1
DJ
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1241 export $ac_envvar ;;
1242
a0da8069 1243 *)
c6b750e1 1244 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1249 ;;
1250
1251 esac
1252done
1253
1254if test -n "$ac_prev"; then
c6b750e1 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1256 as_fn_error "missing argument to $ac_option"
a0da8069 1257fi
a0da8069 1258
81ecdfbb
RW
1259if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1264 esac
81ecdfbb 1265fi
a0da8069 1266
81ecdfbb
RW
1267# Check all directory arguments for consistency.
1268for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
a0da8069 1272do
81ecdfbb
RW
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
c6b750e1 1281 case $ac_val in
81ecdfbb
RW
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1284 esac
81ecdfbb 1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1286done
1287
c6b750e1
DJ
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
376a0e54 1294
c6b750e1
DJ
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
81ecdfbb 1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
a0da8069 1310
a0da8069 1311
81ecdfbb
RW
1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1318
1319
a0da8069
NN
1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
81ecdfbb
RW
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329$as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
a0da8069 1347 srcdir=$ac_confdir
81ecdfbb 1348 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1349 srcdir=..
1350 fi
1351else
1352 ac_srcdir_defaulted=no
1353fi
81ecdfbb
RW
1354if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357fi
1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
6d0cd39e
AM
1372case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1375 ;;
1376esac
9cc8ae67
PB
1377ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
81ecdfbb
RW
1379for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
c6b750e1
DJ
1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393\`configure' configures this package to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
c6b750e1
DJ
1413Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1415 [$ac_default_prefix]
c6b750e1 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1417 [PREFIX]
c6b750e1
DJ
1418
1419By default, \`make install' will install all the files in
1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422for instance \`--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
81ecdfbb
RW
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1446_ACEOF
1447
1448 cat <<\_ACEOF
1449
1450Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459_ACEOF
a0da8069 1460fi
a0da8069 1461
c6b750e1
DJ
1462if test -n "$ac_init_help"; then
1463
1464 cat <<\_ACEOF
1465
1466Optional Features:
81ecdfbb 1467 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1b6c0831
L
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
c7791212 1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
6c3bc0f8 1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
edeefb67
L
1480 Enable compressed debug sections for gas, gold or ld
1481 by default
89a1e9c3
PB
1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
521ec477
DD
1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
f66a9a70 1487 --disable-libstdcxx do not build libstdc++-v3 directory
1b6c0831
L
1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
ffdd6afc 1490 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e 1491 --disable-isl-version-check
4849dfd8 1492 disable check for isl version
700d40ca 1493 --enable-lto enable link time optimization support
1b6c0831
L
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
7837304f
AS
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
ce6c656d 1505 --enable-vtable-verify Enable vtable verification feature
521ec477 1506 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
c6b750e1 1516 --enable-werror enable -Werror in bootstrap stage2 and later
82033c9b 1517 --enable-host-shared build host code as shared libraries
c6b750e1
DJ
1518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
cf39cfc5 1523 --with-system-zlib use installed libz
7837304f
AS
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
c6b750e1 1533 --with-mpfr-include=PATH
521ec477
DD
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
521ec477
DD
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
b3676d82 1543 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
7837304f
AS
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
4849dfd8 1549 --with-isl=PATH Specify prefix directory for the installed isl
7837304f 1550 package. Equivalent to
7ec59b9e
L
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
4849dfd8
NC
1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
05a13254
NC
1555 --with-target-bdw-gc=PATHLIST
1556 specify prefix directory for installed bdw-gc
1557 package. Equivalent to
1558 --with-target-bdw-gc-include=PATH/include plus
1559 --with-target-bdw-gc-lib=PATH/lib
1560 --with-target-bdw-gc-include=PATHLIST
1561 specify directories for installed bdw-gc include
1562 files
1563 --with-target-bdw-gc-lib=PATHLIST
1564 specify directories for installed bdw-gc library
521ec477 1565 --with-build-sysroot=SYSROOT
c6b750e1 1566 use sysroot as the system root during the build
8a6ee3ab 1567 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1568 map A to B, C to D ... in debug information
1569 --with-build-config='NAME NAME2...'
1570 use config/NAME.mk build configuration
521ec477 1571 --with-build-time-tools=PATH
c6b750e1 1572 use given path to find target tools during the build
c6b750e1
DJ
1573
1574Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
81ecdfbb
RW
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
4074d5f2
RW
1584 build_configargs
1585 additional configure arguments for build directories
1586 host_configargs
1587 additional configure arguments for host directories
1588 target_configargs
1589 additional configure arguments for target directories
9a819804
AO
1590 AR AR for the host
1591 AS AS for the host
1592 DLLTOOL DLLTOOL for the host
1593 LD LD for the host
1594 LIPO LIPO for the host
1595 NM NM for the host
1596 RANLIB RANLIB for the host
1597 STRIP STRIP for the host
1598 WINDRES WINDRES for the host
0c24b341 1599 WINDMC WINDMC for the host
9a819804
AO
1600 OBJCOPY OBJCOPY for the host
1601 OBJDUMP OBJDUMP for the host
b121d7d4 1602 READELF READELF for the host
9a819804
AO
1603 CC_FOR_TARGET
1604 CC for the target
1605 CXX_FOR_TARGET
1606 CXX for the target
1607 GCC_FOR_TARGET
1608 GCC for the target
9a819804
AO
1609 GFORTRAN_FOR_TARGET
1610 GFORTRAN for the target
e552509b
ILT
1611 GOC_FOR_TARGET
1612 GOC for the target
9a819804
AO
1613 AR_FOR_TARGET
1614 AR for the target
1615 AS_FOR_TARGET
1616 AS for the target
1617 DLLTOOL_FOR_TARGET
1618 DLLTOOL for the target
1619 LD_FOR_TARGET
1620 LD for the target
1621 LIPO_FOR_TARGET
1622 LIPO for the target
1623 NM_FOR_TARGET
1624 NM for the target
6b91c541
AP
1625 OBJCOPY_FOR_TARGET
1626 OBJCOPY for the target
9a819804
AO
1627 OBJDUMP_FOR_TARGET
1628 OBJDUMP for the target
1629 RANLIB_FOR_TARGET
1630 RANLIB for the target
b121d7d4
DD
1631 READELF_FOR_TARGET
1632 READELF for the target
9a819804
AO
1633 STRIP_FOR_TARGET
1634 STRIP for the target
1635 WINDRES_FOR_TARGET
1636 WINDRES for the target
0c24b341
NC
1637 WINDMC_FOR_TARGET
1638 WINDMC for the target
c6b750e1
DJ
1639
1640Use these variables to override the choices made by `configure' or to help
1641it to find libraries and programs with nonstandard names/locations.
1642
81ecdfbb 1643Report bugs to the package provider.
c6b750e1 1644_ACEOF
81ecdfbb 1645ac_status=$?
c6b750e1
DJ
1646fi
1647
1648if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
c6b750e1 1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
c6b750e1
DJ
1654 ac_builddir=.
1655
81ecdfbb
RW
1656case "$ac_dir" in
1657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658*)
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666esac
1667ac_abs_top_builddir=$ac_pwd
1668ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669# for backward compatibility:
1670ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1671
1672case $srcdir in
81ecdfbb 1673 .) # We are building in place.
c6b750e1 1674 ac_srcdir=.
81ecdfbb
RW
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1678 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1685esac
81ecdfbb
RW
1686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1696 else
81ecdfbb
RW
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1700 done
1701fi
1702
81ecdfbb 1703test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1704if $ac_init_version; then
1705 cat <<\_ACEOF
81ecdfbb
RW
1706configure
1707generated by GNU Autoconf 2.64
c6b750e1 1708
81ecdfbb 1709Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712_ACEOF
81ecdfbb 1713 exit
c6b750e1 1714fi
81ecdfbb
RW
1715
1716## ------------------------ ##
1717## Autoconf initialization. ##
1718## ------------------------ ##
1719
1720# ac_fn_c_try_compile LINENO
1721# --------------------------
1722# Try to compile conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_compile ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1755
1756} # ac_fn_c_try_compile
1757
1758# ac_fn_cxx_try_compile LINENO
1759# ----------------------------
1760# Try to compile conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_cxx_try_compile ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785else
1786 $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790fi
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794} # ac_fn_cxx_try_compile
1795
b3676d82
EB
1796# ac_fn_cxx_try_link LINENO
1797# -------------------------
1798# Try to link conftest.$ac_ext, and return whether this succeeded.
1799ac_fn_cxx_try_link ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1804case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 $as_test_x conftest$ac_exeext
1824 }; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831fi
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 return $ac_retval
1839
1840} # ac_fn_cxx_try_link
1841
81ecdfbb
RW
1842# ac_fn_c_try_link LINENO
1843# -----------------------
1844# Try to link conftest.$ac_ext, and return whether this succeeded.
1845ac_fn_c_try_link ()
1846{
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext conftest$ac_exeext
1849 if { { ac_try="$ac_link"
1850case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 $as_test_x conftest$ac_exeext
1870 }; then :
1871 ac_retval=0
1872else
1873 $as_echo "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 ac_retval=1
1877fi
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886} # ac_fn_c_try_link
1887cat >config.log <<_ACEOF
c6b750e1
DJ
1888This file contains any messages produced by compilers while
1889running configure, to aid debugging if configure makes a mistake.
1890
1891It was created by $as_me, which was
81ecdfbb 1892generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1893
1894 $ $0 $@
1895
1896_ACEOF
81ecdfbb 1897exec 5>>config.log
c6b750e1
DJ
1898{
1899cat <<_ASUNAME
1900## --------- ##
1901## Platform. ##
1902## --------- ##
1903
1904hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908uname -v = `(uname -v) 2>/dev/null || echo unknown`
1909
1910/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1912
1913/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1916/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1917/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1920
1921_ASUNAME
1922
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1928 $as_echo "PATH: $as_dir"
1929 done
1930IFS=$as_save_IFS
c6b750e1
DJ
1931
1932} >&5
1933
1934cat >&5 <<_ACEOF
1935
1936
1937## ----------- ##
1938## Core tests. ##
1939## ----------- ##
1940
1941_ACEOF
1942
1943
1944# Keep a trace of the command line.
1945# Strip out --no-create and --no-recursion so they do not pile up.
1946# Strip out --silent because we don't want to record it for future runs.
1947# Also quote any args containing shell meta-characters.
1948# Make two passes to allow for proper duplicate-argument suppression.
1949ac_configure_args=
1950ac_configure_args0=
1951ac_configure_args1=
c6b750e1
DJ
1952ac_must_keep_next=false
1953for ac_pass in 1 2
1954do
1955 for ac_arg
1956 do
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
81ecdfbb
RW
1962 *\'*)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1964 esac
1965 case $ac_pass in
81ecdfbb 1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1967 2)
81ecdfbb 1968 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1980 ;;
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1983 fi
81ecdfbb 1984 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1985 ;;
1986 esac
1987 done
1988done
81ecdfbb
RW
1989{ ac_configure_args0=; unset ac_configure_args0;}
1990{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1991
1992# When interrupted or exit'd, cleanup temporary files, and complete
1993# config.log. We remove comments because anyway the quotes in there
1994# would cause problems or look ugly.
81ecdfbb
RW
1995# WARNING: Use '\'' to represent an apostrophe within the trap.
1996# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1997trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
1999 {
2000 echo
2001
2002 cat <<\_ASBOX
2003## ---------------- ##
2004## Cache variables. ##
2005## ---------------- ##
2006_ASBOX
2007 echo
2008 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2009(
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in #(
2013 *${as_nl}*)
2014 case $ac_var in #(
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 esac
2018 case $ac_var in #(
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2022 esac ;;
2023 esac
2024 done
c6b750e1 2025 (set) 2>&1 |
81ecdfbb
RW
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
c6b750e1 2028 sed -n \
81ecdfbb
RW
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 ;; #(
c6b750e1 2032 *)
81ecdfbb 2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2034 ;;
81ecdfbb
RW
2035 esac |
2036 sort
2037)
c6b750e1
DJ
2038 echo
2039
2040 cat <<\_ASBOX
2041## ----------------- ##
2042## Output variables. ##
2043## ----------------- ##
2044_ASBOX
2045 echo
2046 for ac_var in $ac_subst_vars
2047 do
81ecdfbb
RW
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2053 done | sort
2054 echo
2055
2056 if test -n "$ac_subst_files"; then
2057 cat <<\_ASBOX
81ecdfbb
RW
2058## ------------------- ##
2059## File substitutions. ##
2060## ------------------- ##
c6b750e1
DJ
2061_ASBOX
2062 echo
2063 for ac_var in $ac_subst_files
2064 do
81ecdfbb
RW
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2070 done | sort
2071 echo
2072 fi
2073
2074 if test -s confdefs.h; then
2075 cat <<\_ASBOX
2076## ----------- ##
2077## confdefs.h. ##
2078## ----------- ##
2079_ASBOX
2080 echo
81ecdfbb 2081 cat confdefs.h
c6b750e1
DJ
2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
81ecdfbb
RW
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
c6b750e1 2087 } >&5
81ecdfbb
RW
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2090 exit $exit_status
81ecdfbb 2091' 0
c6b750e1 2092for ac_signal in 1 2 13 15; do
81ecdfbb 2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2094done
2095ac_signal=0
2096
2097# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2098rm -f -r conftest* confdefs.h
2099
2100$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2101
2102# Predefined preprocessor variables.
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_NAME "$PACKAGE_NAME"
2106_ACEOF
2107
c6b750e1
DJ
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110_ACEOF
2111
c6b750e1
DJ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_VERSION "$PACKAGE_VERSION"
2114_ACEOF
2115
c6b750e1
DJ
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_STRING "$PACKAGE_STRING"
2118_ACEOF
2119
c6b750e1
DJ
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122_ACEOF
2123
81ecdfbb
RW
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_URL "$PACKAGE_URL"
2126_ACEOF
2127
c6b750e1
DJ
2128
2129# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2130# Prefer an explicitly selected file to automatically selected ones.
2131ac_site_file1=NONE
2132ac_site_file2=NONE
2133if test -n "$CONFIG_SITE"; then
2134 ac_site_file1=$CONFIG_SITE
2135elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2138else
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2141fi
81ecdfbb
RW
2142for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143do
2144 test "x$ac_site_file" = xNONE && continue
a0da8069 2145 if test -r "$ac_site_file"; then
81ecdfbb
RW
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2148 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2149 . "$ac_site_file"
2150 fi
2151done
2152
2153if test -r "$cache_file"; then
c6b750e1
DJ
2154 # Some versions of bash will fail to source /dev/null (special
2155 # files actually), so we avoid doing that.
2156 if test -f "$cache_file"; then
81ecdfbb
RW
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2159 case $cache_file in
81ecdfbb
RW
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
c6b750e1
DJ
2162 esac
2163 fi
a0da8069 2164else
81ecdfbb
RW
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2167 >$cache_file
2168fi
2169
2170# Check that the precious variables saved in the cache have kept the same
2171# value.
2172ac_cache_corrupted=false
81ecdfbb 2173for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2178 case $ac_old_set,$ac_new_set in
2179 set,)
81ecdfbb
RW
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2182 ac_cache_corrupted=: ;;
2183 ,set)
81ecdfbb
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2186 ac_cache_corrupted=: ;;
2187 ,);;
2188 *)
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2206 fi;;
2207 esac
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2210 case $ac_new_val in
81ecdfbb 2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2213 esac
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2217 esac
2218 fi
2219done
2220if $ac_cache_corrupted; then
81ecdfbb
RW
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2226fi
81ecdfbb
RW
2227## -------------------- ##
2228## Main body of script. ##
2229## -------------------- ##
a0da8069
NN
2230
2231ac_ext=c
a0da8069 2232ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236
2237
2238
2239
c6b750e1
DJ
2240
2241
34a0f3cf 2242
c6b750e1 2243
5b553f7e
RW
2244
2245progname=$0
2246# if PWD already has a value, it is probably wrong.
2247if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2248
2249# Export original configure arguments for use by sub-configures.
2250# Quote arguments with shell meta charatcers.
2251TOPLEVEL_CONFIGURE_ARGUMENTS=
2252set -- "$progname" "$@"
2253for ac_arg
2254do
2255 case "$ac_arg" in
2256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2258 # if the argument is of the form -foo=baz, quote the baz part only
2259 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2260 *) ;;
2261 esac
2262 # Add the quoted argument to the list.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2264done
2265if test "$silent" = yes; then
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2267fi
2268# Remove the initial space we just introduced and, as these will be
2269# expanded by make, quote '$'.
2270TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2271
c6b750e1
DJ
2272
2273# Find the build, host, and target systems.
a0da8069 2274ac_aux_dir=
81ecdfbb
RW
2275for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
a0da8069
NN
2283done
2284if test -z "$ac_aux_dir"; then
81ecdfbb 2285 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2286fi
81ecdfbb
RW
2287
2288# These three variables are undocumented and unsupported,
2289# and are intended to be withdrawn in a future Autoconf release.
2290# They can cause serious problems if a builder's source tree is in a directory
2291# whose full name contains unusual characters.
2292ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
a0da8069 2296
c6b750e1 2297# Make sure we can run config.sub.
81ecdfbb
RW
2298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302$as_echo_n "checking build system type... " >&6; }
2303if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305else
2306 ac_build_alias=$build_alias
2307test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314fi
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316$as_echo "$ac_cv_build" >&6; }
2317case $ac_cv_build in
2318*-*-*) ;;
2319*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320esac
c6b750e1 2321build=$ac_cv_build
81ecdfbb
RW
2322ac_save_IFS=$IFS; IFS='-'
2323set x $ac_cv_build
2324shift
2325build_cpu=$1
2326build_vendor=$2
2327shift; shift
2328# Remember, the first character of IFS is used to create $*,
2329# except with old shells:
2330build_os=$*
2331IFS=$ac_save_IFS
2332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2333
a0da8069 2334
c6b750e1
DJ
2335 case ${build_alias} in
2336 "") build_noncanonical=${build} ;;
2337 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2338esac
2339
2340
cac3d6c4 2341
c6b750e1
DJ
2342 case ${host_alias} in
2343 "") host_noncanonical=${build_noncanonical} ;;
2344 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2345esac
2346
cac3d6c4 2347
c6b750e1
DJ
2348
2349 case ${target_alias} in
2350 "") target_noncanonical=${host_noncanonical} ;;
2351 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2352esac
2353
cac3d6c4 2354
c6b750e1
DJ
2355
2356
2357test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2358 test "$program_prefix$program_suffix$program_transform_name" = \
2359 NONENONEs,x,x, &&
c6b750e1 2360 program_transform_name=s,y,y,
cac3d6c4 2361
81ecdfbb
RW
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2363$as_echo_n "checking host system type... " >&6; }
2364if test "${ac_cv_host+set}" = set; then :
2365 $as_echo_n "(cached) " >&6
cac3d6c4 2366else
81ecdfbb
RW
2367 if test "x$host_alias" = x; then
2368 ac_cv_host=$ac_cv_build
2369else
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2372fi
c6b750e1
DJ
2373
2374fi
81ecdfbb
RW
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2376$as_echo "$ac_cv_host" >&6; }
2377case $ac_cv_host in
2378*-*-*) ;;
2379*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2380esac
c6b750e1 2381host=$ac_cv_host
81ecdfbb
RW
2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_host
2384shift
2385host_cpu=$1
2386host_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390host_os=$*
2391IFS=$ac_save_IFS
2392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2393
2394
81ecdfbb
RW
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2396$as_echo_n "checking target system type... " >&6; }
2397if test "${ac_cv_target+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
c6b750e1 2399else
81ecdfbb
RW
2400 if test "x$target_alias" = x; then
2401 ac_cv_target=$ac_cv_host
2402else
2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2405fi
c6b750e1 2406
cac3d6c4 2407fi
81ecdfbb
RW
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2409$as_echo "$ac_cv_target" >&6; }
2410case $ac_cv_target in
2411*-*-*) ;;
2412*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2413esac
c6b750e1 2414target=$ac_cv_target
81ecdfbb
RW
2415ac_save_IFS=$IFS; IFS='-'
2416set x $ac_cv_target
2417shift
2418target_cpu=$1
2419target_vendor=$2
2420shift; shift
2421# Remember, the first character of IFS is used to create $*,
2422# except with old shells:
2423target_os=$*
2424IFS=$ac_save_IFS
2425case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2426
2427
2428# The aliases save the names the user supplied, while $host etc.
2429# will get canonicalized.
2430test -n "$target_alias" &&
2431 test "$program_prefix$program_suffix$program_transform_name" = \
2432 NONENONEs,x,x, &&
2433 program_prefix=${target_alias}-
81ecdfbb 2434
a0da8069 2435test "$program_prefix" != NONE &&
81ecdfbb 2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2437# Use a double $ so make ignores it.
2438test "$program_suffix" != NONE &&
81ecdfbb
RW
2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440# Double any \ or $.
c6b750e1 2441# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2442ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2444
a0da8069
NN
2445
2446
e5c3f801
NN
2447# Get 'install' or 'install-sh' and its variants.
2448# Find a good install program. We prefer a C program (faster),
2449# so one script is as good as another. But avoid the broken or
2450# incompatible versions:
2451# SysV /etc/install, /usr/sbin/install
2452# SunOS /usr/etc/install
2453# IRIX /sbin/install
2454# AIX /bin/install
c6b750e1 2455# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2456# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2459# OS/2's system install, which has a completely different semantic
e5c3f801 2460# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2461# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2464if test -z "$INSTALL"; then
81ecdfbb
RW
2465if test "${ac_cv_path_install+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2467else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2473 # Account for people who put trailing slashes in PATH elements.
2474case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
c6b750e1 2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2486 if test $ac_prog = install &&
c6b750e1 2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2488 # AIX install. It has an incompatible calling convention.
2489 :
c6b750e1
DJ
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
e5c3f801 2494 else
58c85be7
RW
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
e5c3f801
NN
2507 fi
2508 fi
2509 done
c6b750e1
DJ
2510 done
2511 ;;
2512esac
81ecdfbb
RW
2513
2514 done
2515IFS=$as_save_IFS
c6b750e1 2516
58c85be7 2517rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2518
2519fi
2520 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2521 INSTALL=$ac_cv_path_install
e5c3f801 2522 else
58c85be7
RW
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
e5c3f801 2525 # break other packages using the cache if that directory is
58c85be7 2526 # removed, or if the value is a relative name.
c6b750e1 2527 INSTALL=$ac_install_sh
e5c3f801
NN
2528 fi
2529fi
81ecdfbb
RW
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2532
2533# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534# It thinks the first close brace ends the variable substitution.
2535test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
c6b750e1 2537test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2538
2539test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
81ecdfbb
RW
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2542$as_echo_n "checking whether ln works... " >&6; }
2543if test "${acx_cv_prog_LN+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
656fdd47
PB
2545else
2546 rm -f conftestdata_t
2547echo >conftestdata_f
2548if ln conftestdata_f conftestdata_t 2>/dev/null
2549then
2550 acx_cv_prog_LN=ln
2551else
2552 acx_cv_prog_LN=no
2553fi
2554rm -f conftestdata_f conftestdata_t
2555
2556fi
2557if test $acx_cv_prog_LN = no; then
2558 LN="cp"
81ecdfbb
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2560$as_echo "no, using $LN" >&6; }
656fdd47
PB
2561else
2562 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564$as_echo "yes" >&6; }
656fdd47
PB
2565fi
2566
81ecdfbb
RW
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2568$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2569LN_S=$as_ln_s
2570if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572$as_echo "yes" >&6; }
cac3d6c4 2573else
81ecdfbb
RW
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2575$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2576fi
2577
8e957354
PB
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2579$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2580if test "${ac_cv_path_SED+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582else
2583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2584 for ac_i in 1 2 3 4 5 6 7; do
2585 ac_script="$ac_script$as_nl$ac_script"
2586 done
2587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2588 { ac_script=; unset ac_script;}
2589 if test -z "$SED"; then
2590 ac_path_SED_found=false
2591 # Loop through the user's path and test for each of PROGNAME-LIST
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in sed gsed; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2600 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2601# Check for GNU ac_path_SED and select it if it is found.
2602 # Check for GNU $ac_path_SED
2603case `"$ac_path_SED" --version 2>&1` in
2604*GNU*)
2605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2606*)
2607 ac_count=0
2608 $as_echo_n 0123456789 >"conftest.in"
2609 while :
2610 do
2611 cat "conftest.in" "conftest.in" >"conftest.tmp"
2612 mv "conftest.tmp" "conftest.in"
2613 cp "conftest.in" "conftest.nl"
2614 $as_echo '' >> "conftest.nl"
2615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2617 as_fn_arith $ac_count + 1 && ac_count=$as_val
2618 if test $ac_count -gt ${ac_path_SED_max-0}; then
2619 # Best one so far, save it but keep looking for a better one
2620 ac_cv_path_SED="$ac_path_SED"
2621 ac_path_SED_max=$ac_count
2622 fi
2623 # 10*(2^10) chars as input seems more than enough
2624 test $ac_count -gt 10 && break
2625 done
2626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2627esac
2628
2629 $ac_path_SED_found && break 3
2630 done
2631 done
2632 done
2633IFS=$as_save_IFS
2634 if test -z "$ac_cv_path_SED"; then
2635 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2636 fi
2637else
2638 ac_cv_path_SED=$SED
2639fi
2640
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2643$as_echo "$ac_cv_path_SED" >&6; }
2644 SED="$ac_cv_path_SED"
2645 rm -f conftest.sed
2646
2647for ac_prog in gawk mawk nawk awk
2648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if test "${ac_cv_prog_AWK+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655else
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671 done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676AWK=$ac_cv_prog_AWK
2677if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679$as_echo "$AWK" >&6; }
2680else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686 test -n "$AWK" && break
2687done
2688
e5c3f801 2689
0fdbe983
DJ
2690srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2691
2692# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2693# a relative path.
2694if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2695 INSTALL="${srcpwd}/install-sh -c"
2696fi
2697
a0da8069
NN
2698# Set srcdir to "." if that's what it is.
2699# This is important for multilib support.
2700pwd=`${PWDCMD-pwd}`
a0da8069
NN
2701if test "${pwd}" = "${srcpwd}" ; then
2702 srcdir=.
252b5132
RH
2703fi
2704
a0da8069 2705topsrcdir=$srcpwd
252b5132 2706
a0da8069 2707extra_host_args=
afefada0 2708
a0da8069
NN
2709### To add a new directory to the tree, first choose whether it is a target
2710### or a host dependent tool. Then put it into the appropriate list
2711### (library or tools, host or target), doing a dependency sort.
252b5132 2712
c6b750e1 2713# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2714# configdirs, or target_configdirs; see the serialization section below.
252b5132 2715
c6b750e1
DJ
2716# Dependency sorting is only needed when *configuration* must be done in
2717# a particular order. In all cases a dependency should be specified in
a0da8069 2718# the Makefile, whether or not it's implicitly specified here.
252b5132 2719
a0da8069
NN
2720# Double entries in build_configdirs, configdirs, or target_configdirs may
2721# cause circular dependencies and break everything horribly.
252b5132 2722
6a9cf61e
PB
2723# these library is used by various programs built for the build
2724# environment
2725#
1b6c0831 2726build_libs="build-libiberty build-libcpp"
6a9cf61e
PB
2727
2728# these tools are built for the build environment
a90ef4bf 2729build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2730
a0da8069 2731# these libraries are used by various programs built for the host environment
1b6c0831
L
2732#f
2733host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
a0da8069 2734
a0da8069
NN
2735# these tools are built for the host environment
2736# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2737# know that we are building the simulator.
2738# binutils, gas and ld appear in that order because it makes sense to run
2739# "make check" in that particular order.
e6de499b 2740# If --enable-gold is used, "gold" may replace "ld".
1b6c0831 2741host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
a0da8069 2742
a0da8069
NN
2743# these libraries are built for the target environment, and are built after
2744# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2745# Note that libiberty is not a target library.
b1299c4e 2746target_libraries="target-libgcc \
2bf680c4 2747 target-libbacktrace \
a0da8069
NN
2748 target-libgloss \
2749 target-newlib \
cff87f51 2750 target-libgomp \
522e3d71 2751 target-libcilkrts \
1b6c0831 2752 target-liboffloadmic \
7ec59b9e 2753 target-libatomic \
d32e2926 2754 target-libitm \
b9459e83 2755 target-libstdc++-v3 \
5286fdef 2756 target-libsanitizer \
95e43135 2757 target-libvtv \
1b6c0831 2758 target-libmpx \
bb780410 2759 target-libssp \
e552509b 2760 target-libquadmath \
4b1cb4fe 2761 target-libgfortran \
05a13254 2762 target-libffi \
a2592b1b 2763 target-libobjc \
e552509b
ILT
2764 target-libada \
2765 target-libgo"
a0da8069 2766
9c14acb8
NN
2767# these tools are built using the target libraries, and are intended to
2768# run only in the target environment
a0da8069 2769#
9c14acb8 2770# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2771# list belongs in this list.
a0da8069 2772#
a90ef4bf 2773target_tools="target-rda"
252b5132 2774
a0da8069 2775################################################################################
252b5132 2776
a0da8069
NN
2777## All tools belong in one of the four categories, and are assigned above
2778## We assign ${configdirs} this way to remove all embedded newlines. This
2779## is important because configure will choke if they ever get through.
2780## ${configdirs} is directories we build using the host tools.
2781## ${target_configdirs} is directories we build using the target tools.
a0da8069 2782configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2783target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2784build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2785
9cc8ae67
PB
2786
2787
a0da8069 2788################################################################################
252b5132 2789
a0da8069 2790srcname="gnu development package"
252b5132 2791
a0da8069
NN
2792# This gets set non-empty for some net releases of packages.
2793appdirs=""
252b5132 2794
a0da8069
NN
2795# Define is_cross_compiler to save on calls to 'test'.
2796is_cross_compiler=
2797if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
252b5132 2799else
a0da8069 2800 is_cross_compiler=yes
c6b750e1 2801fi
252b5132 2802
9175bfc0 2803# Find the build and target subdir names.
dd12c3a8 2804
66a79c16
DJ
2805# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806# have matching libraries, they should use host libraries: Makefile.tpl
2807# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808# However, they still use the build modules, because the corresponding
2809# host modules (e.g. bison) are only built for the host when bootstrap
2810# finishes. So:
2811# - build_subdir is where we find build modules, and never changes.
2812# - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2815build_subdir="build-${build_noncanonical}"
c6b750e1 2816
81ecdfbb
RW
2817# Check whether --with-build-libsubdir was given.
2818if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2820else
2821 build_libsubdir="$build_subdir"
81ecdfbb
RW
2822fi
2823
b00612cc
PB
2824# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828else
2829 host_subdir=.
2830fi
dd12c3a8
NN
2831# No prefix.
2832target_subdir=${target_noncanonical}
c6b750e1 2833
2fd0b40b
RW
2834# Be sure to cover against remnants of an in-tree build.
2835if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838fi
252b5132 2839
a0da8069
NN
2840# Skipdirs are removed silently.
2841skipdirs=
2842# Noconfigdirs are removed loudly.
2843noconfigdirs=""
252b5132 2844
a0da8069
NN
2845use_gnu_ld=
2846# Make sure we don't let GNU ld be added if we didn't want it.
2847if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
93f9b408 2849 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2850fi
2851
a0da8069
NN
2852use_gnu_as=
2853# Make sure we don't let GNU as be added if we didn't want it.
2854if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2857fi
2858
700d40ca 2859use_included_zlib=
cf39cfc5
L
2860
2861# Check whether --with-system-zlib was given.
2862if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2864fi
2865
700d40ca
ILT
2866# Make sure we don't let ZLIB be added if we didn't want it.
2867if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2870fi
2871
c6b750e1 2872# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2873# it's not even worth trying to configure, much less build, that tool.
252b5132 2874
a0da8069
NN
2875case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2877 no)
675c6968 2878 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2879 # We won't be able to build gdbtk without X.
c6b750e1 2880 enable_gdbtk=no
a0da8069
NN
2881 ;;
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883esac
252b5132 2884
0377a422 2885# Some are only suitable for cross toolchains.
a0da8069
NN
2886# Remove these if host=target.
2887cross_only="target-libgloss target-newlib target-opcodes"
2888
2889case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2891esac
252b5132 2892
a0da8069
NN
2893# If both --with-headers and --with-libs are specified, default to
2894# --without-newlib.
32be62b5
RS
2895if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2899 fi
252b5132
RH
2900fi
2901
a0da8069
NN
2902# Recognize --with-newlib/--without-newlib.
2903case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906esac
252b5132 2907
1b6c0831
L
2908# Check whether --enable-as-accelerator-for was given.
2909if test "${enable_as_accelerator_for+set}" = set; then :
2910 enableval=$enable_as_accelerator_for;
2911fi
2912
2913
2914# Check whether --enable-offload-targets was given.
2915if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2919 fi
2920
2921else
2922 enable_offload_targets=
2923fi
2924
2925
c7791212
NC
2926# Handle --enable-gold, --enable-ld.
2927# --disable-gold [--enable-ld]
2928# Build only ld. Default option.
d3b50760
L
2929# --enable-gold [--enable-ld]
2930# Build both gold and ld. Install gold as "ld.gold", install ld
2931# as "ld.bfd" and "ld".
2932# --enable-gold=default [--enable-ld]
c7791212
NC
2933# Build both gold and ld. Install gold as "ld.gold" and "ld",
2934# install ld as "ld.bfd".
2935# --enable-gold[=default] --disable-ld
2936# Build only gold, which is then installed as both "ld.gold" and "ld".
2937# --enable-gold --enable-ld=default
d3b50760
L
2938# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939# and ld.bfd).
c7791212
NC
2940# In other words, ld is default
2941# --enable-gold=default --enable-ld=default
2942# Error.
2943
2944default_ld=
81ecdfbb
RW
2945# Check whether --enable-gold was given.
2946if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2948else
2949 ENABLE_GOLD=no
81ecdfbb
RW
2950fi
2951
c7791212
NC
2952case "${ENABLE_GOLD}" in
2953 yes|default)
e6de499b
NC
2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
d5451cd4 2960 | *-*-solaris2* | *-*-nto* | *-*-nacl* | *-*-fuchsia*)
e6de499b
NC
2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2963 ;;
2964 *)
2965 is_elf=yes
2966 ;;
2967 esac
2968 esac
2969
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
93f9b408 2972 case "${target}" in
6d26190c 2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
ea016470 2974 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
c7791212
NC
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
e6de499b 2979 ENABLE_GOLD=yes
93f9b408
ILT
2980 ;;
2981 esac
e6de499b
NC
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
c7791212
NC
2989esac
2990
2991# Check whether --enable-ld was given.
2992if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994else
2995 ENABLE_LD=yes
2996fi
2997
2998
2999case "${ENABLE_LD}" in
3000 default)
d3b50760 3001 if test x${default_ld} != x; then
c7791212
NC
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017esac
93f9b408 3018
edeefb67
L
3019# PR gas/19109
3020# Decide the default method for compressing debug sections.
3021# Provide a configure time option to override our default.
3022# Check whether --enable-compressed_debug_sections was given.
3023if test "${enable_compressed_debug_sections+set}" = set; then :
3024 enableval=$enable_compressed_debug_sections;
3025 if test x"$enable_compressed_debug_sections" = xyes; then
3026 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3027 fi
3028
3029else
3030 enable_compressed_debug_sections=
3031fi
3032
3033
a0da8069 3034# Configure extra directories which are host specific
252b5132 3035
a0da8069
NN
3036case "${host}" in
3037 *-cygwin*)
3038 configdirs="$configdirs libtermcap" ;;
3039esac
252b5132 3040
59f7ec45
HPN
3041# A target can indicate whether a language isn't supported for some reason.
3042# Only spaces may be used in this macro; not newlines or tabs.
3043unsupported_languages=
3044
c6b750e1 3045# Remove more programs from consideration, based on the host or
a0da8069
NN
3046# target this usually means that a port of the program doesn't
3047# exist yet.
252b5132 3048
a0da8069 3049case "${host}" in
3516a403 3050 i[3456789]86-*-msdosdjgpp*)
6a608608 3051 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3052 ;;
a0da8069 3053esac
252b5132 3054
4b1cb4fe 3055
89a1e9c3
PB
3056# Check whether --enable-libquadmath was given.
3057if test "${enable_libquadmath+set}" = set; then :
3058 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3059else
3060 ENABLE_LIBQUADMATH=yes
3061fi
3062
3063if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3064 noconfigdirs="$noconfigdirs target-libquadmath"
3065fi
3066
3067
3068# Check whether --enable-libquadmath-support was given.
3069if test "${enable_libquadmath_support+set}" = set; then :
3070 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3071else
3072 ENABLE_LIBQUADMATH_SUPPORT=yes
3073fi
3074
3075enable_libquadmath_support=
3076if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3077 enable_libquadmath_support=no
3078fi
3079
3080
81ecdfbb
RW
3081# Check whether --enable-libada was given.
3082if test "${enable_libada+set}" = set; then :
3083 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3084else
3085 ENABLE_LIBADA=yes
81ecdfbb
RW
3086fi
3087
a2592b1b 3088if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3089 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3090fi
3091
81ecdfbb
RW
3092# Check whether --enable-libssp was given.
3093if test "${enable_libssp+set}" = set; then :
3094 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3095else
3096 ENABLE_LIBSSP=yes
81ecdfbb
RW
3097fi
3098
5f128533 3099
f66a9a70
L
3100# Check whether --enable-libstdcxx was given.
3101if test "${enable_libstdcxx+set}" = set; then :
3102 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3103else
3104 ENABLE_LIBSTDCXX=default
3105fi
3106
3107if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1b6c0831
L
3108 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3109fi
3110
3111# If this is accelerator compiler and its target is intelmic we enable
3112# target liboffloadmic by default. If this is compiler with offloading
3113# for intelmic we enable host liboffloadmic by default. Otherwise
3114# liboffloadmic is disabled by default.
3115# Check whether --enable-liboffloadmic was given.
3116if test "${enable_liboffloadmic+set}" = set; then :
3117 enableval=$enable_liboffloadmic; case "$enableval" in
3118 no | host | target)
3119 enable_liboffloadmic=$enableval ;;
3120 *)
3121 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3122esac
3123else
3124 if test x"$enable_as_accelerator_for" != x; then
3125 case "${target}" in
3126 *-intelmic-* | *-intelmicemul-*)
3127 enable_liboffloadmic=target
3128 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3129 ;;
3130 *)
3131 enable_liboffloadmic=no
3132 ;;
3133 esac
3134else
3135 case "${enable_offload_targets}" in
3136 *-intelmic-* | *-intelmicemul-*)
3137 enable_liboffloadmic=host
3138 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3139 ;;
3140 *)
3141 enable_liboffloadmic=no
3142 ;;
3143 esac
3144fi
f66a9a70
L
3145fi
3146
1b6c0831
L
3147
3148
68996839 3149# Enable libgomp by default on hosted POSIX systems, and a few others.
a6df5a19 3150if test x$enable_libgomp = x ; then
b3ded179 3151 case "${target}" in
29383458 3152 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3153 ;;
5b806d27 3154 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3155 ;;
2479f722 3156 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3157 ;;
3158 *-*-darwin* | *-*-aix*)
3159 ;;
68996839
NC
3160 nvptx*-*-*)
3161 ;;
b3ded179
PB
3162 *)
3163 noconfigdirs="$noconfigdirs target-libgomp"
3164 ;;
3165 esac
a6df5a19 3166fi
b3ded179 3167
7ec59b9e
L
3168# Disable libatomic on unsupported systems.
3169if test -d ${srcdir}/libatomic; then
3170 if test x$enable_libatomic = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3172$as_echo_n "checking for libatomic support... " >&6; }
3173 if (srcdir=${srcdir}/libatomic; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3176 then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libatomic"
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182$as_echo "yes" >&6; }
3183 fi
3184 fi
3185fi
3186
522e3d71 3187# Disable libcilkrts on unsupported systems.
3188if test -d ${srcdir}/libcilkrts; then
3189 if test x$enable_libcilkrts = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3191$as_echo_n "checking for libcilkrts support... " >&6; }
3192 if (srcdir=${srcdir}/libcilkrts; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3195 then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198 noconfigdirs="$noconfigdirs target-libcilkrts"
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201$as_echo "yes" >&6; }
3202 fi
3203 fi
3204fi
3205
1b6c0831
L
3206# Disable liboffloadmic on unsupported systems.
3207if test -d ${srcdir}/liboffloadmic; then
3208 if test x$enable_liboffloadmic != xno; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3210$as_echo_n "checking for liboffloadmic support... " >&6; }
3211 if (srcdir=${srcdir}/liboffloadmic; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-liboffloadmic"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220$as_echo "yes" >&6; }
3221 fi
3222 fi
3223fi
3224
d32e2926
RH
3225# Disable libitm on unsupported systems.
3226if test -d ${srcdir}/libitm; then
3227 if test x$enable_libitm = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3229$as_echo_n "checking for libitm support... " >&6; }
3230 if (srcdir=${srcdir}/libitm; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236 noconfigdirs="$noconfigdirs target-libitm"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3239$as_echo "yes" >&6; }
3240 fi
3241 fi
3242fi
3243
5286fdef
L
3244# Disable libsanitizer on unsupported systems.
3245if test -d ${srcdir}/libsanitizer; then
3246 if test x$enable_libsanitizer = x; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3248$as_echo_n "checking for libsanitizer support... " >&6; }
3249 if (srcdir=${srcdir}/libsanitizer; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3252 then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-libsanitizer"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258$as_echo "yes" >&6; }
3259 fi
3260 fi
3261fi
3262
95e43135
JBG
3263# Disable libvtv on unsupported systems.
3264if test -d ${srcdir}/libvtv; then
3265 if test x$enable_libvtv = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3267$as_echo_n "checking for libvtv support... " >&6; }
3268 if (srcdir=${srcdir}/libvtv; \
3269 . ${srcdir}/configure.tgt; \
3270 test "$VTV_SUPPORTED" != "yes")
3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libvtv"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277$as_echo "yes" >&6; }
3278 fi
3279 fi
3280fi
3281
1b6c0831
L
3282
3283# Enable libmpx on supported systems by request.
3284if test -d ${srcdir}/libmpx; then
4849dfd8 3285 if test x$enable_libmpx = x; then
1b6c0831
L
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3287$as_echo_n "checking for libmpx support... " >&6; }
3288 if (srcdir=${srcdir}/libmpx; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$LIBMPX_SUPPORTED" != "yes")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libmpx"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
1b6c0831
L
3299 fi
3300fi
3301
3302
3303
1488e230
DE
3304# Disable libquadmath for some systems.
3305case "${target}" in
5286fdef
L
3306 avr-*-*)
3307 noconfigdirs="$noconfigdirs target-libquadmath"
3308 ;;
1488e230
DE
3309 # libquadmath is unused on AIX and libquadmath build process use of
3310 # LD_LIBRARY_PATH can break AIX bootstrap.
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libquadmath"
3313 ;;
3314esac
3315
065a5627
JM
3316# Disable libssp for some systems.
3317case "${target}" in
3318 avr-*-*)
c5f5c3c2 3319 # No hosted I/O support.
065a5627
JM
3320 noconfigdirs="$noconfigdirs target-libssp"
3321 ;;
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libssp"
3324 ;;
99c513f6 3325 rl78-*-*)
202e2356
NC
3326 # libssp uses a misaligned load to trigger a fault, but the RL78
3327 # doesn't fault for those - instead, it gives a build-time error
3328 # for explicit misaligned loads.
99c513f6
DD
3329 noconfigdirs="$noconfigdirs target-libssp"
3330 ;;
1b6c0831
L
3331 visium-*-*)
3332 # No hosted I/O support.
3333 noconfigdirs="$noconfigdirs target-libssp"
3334 ;;
065a5627
JM
3335esac
3336
065a5627 3337# Disable libstdc++-v3 for some systems.
f66a9a70
L
3338# Allow user to override this if they pass --enable-libstdc++-v3
3339if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3340 case "${target}" in
3341 *-*-vxworks*)
3342 # VxWorks uses the Dinkumware C++ library.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3344 ;;
3345 arm*-wince-pe*)
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3348 ;;
3349 avr-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3351 ;;
969b1713
L
3352 ft32-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3354 ;;
f66a9a70
L
3355 esac
3356fi
065a5627
JM
3357
3358# Disable Fortran for some systems.
3359case "${target}" in
3360 mmix-*-*)
3361 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3362 unsupported_languages="$unsupported_languages fortran"
3363 ;;
3364esac
3365
05a13254 3366# Disable libffi for some systems.
0827f9a6 3367case "${target}" in
9863d716
JM
3368 powerpc-*-darwin*)
3369 ;;
3370 i[3456789]86-*-darwin*)
3371 ;;
3372 x86_64-*-darwin[912]*)
3373 ;;
3374 *-*-darwin*)
05a13254 3375 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3376 ;;
9863d716 3377 *-*-netware*)
05a13254
NC
3378 noconfigdirs="$noconfigdirs target-libffi"
3379 ;;
3380 *-*-phoenix*)
3381 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3382 ;;
3383 *-*-rtems*)
05a13254 3384 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3385 ;;
3386 *-*-tpf*)
05a13254 3387 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3388 ;;
3389 *-*-uclinux*)
05a13254 3390 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3391 ;;
3392 *-*-vxworks*)
05a13254
NC
3393 noconfigdirs="$noconfigdirs target-libffi"
3394 ;;
3395 aarch64*-*-freebsd*)
3396 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3397 ;;
9863d716 3398 alpha*-*-*vms*)
05a13254 3399 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3400 ;;
1b6c0831 3401 arm*-*-freebsd*)
05a13254 3402 noconfigdirs="$noconfigdirs target-libffi"
1b6c0831 3403 ;;
0827f9a6 3404 arm-wince-pe)
05a13254 3405 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3406 ;;
9863d716 3407 arm*-*-symbianelf*)
05a13254 3408 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3409 ;;
9863d716 3410 cris-*-* | crisv32-*-*)
9863d716
JM
3411 case "${target}" in
3412 *-*-linux*)
3413 ;;
3414 *) # See PR46792 regarding target-libffi.
05a13254 3415 noconfigdirs="$noconfigdirs target-libffi";;
9863d716
JM
3416 esac
3417 ;;
82ae827f 3418 hppa*64*-*-hpux*)
05a13254 3419 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3420 ;;
3421 hppa*-hp-hpux11*)
3422 ;;
82ae827f 3423 hppa*-*-hpux*)
05a13254 3424 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3425 ;;
9863d716 3426 ia64*-*-*vms*)
05a13254 3427 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3428 ;;
9863d716 3429 i[3456789]86-w64-mingw*)
05a13254 3430 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3431 ;;
3432 i[3456789]86-*-mingw*)
05a13254 3433 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3434 ;;
3435 x86_64-*-mingw*)
05a13254 3436 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3437 ;;
9863d716 3438 mmix-*-*)
05a13254 3439 noconfigdirs="$noconfigdirs target-libffi"
9863d716
JM
3440 ;;
3441 powerpc-*-aix*)
3442 # copied from rs6000-*-* entry
05a13254 3443 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3444 ;;
9863d716 3445 rs6000-*-aix*)
05a13254 3446 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3447 ;;
3f8107ab 3448 ft32-*-*)
05a13254 3449 noconfigdirs="$noconfigdirs target-libffi"
3f8107ab 3450 ;;
9863d716 3451 *-*-lynxos*)
05a13254 3452 noconfigdirs="$noconfigdirs target-libffi"
9863d716 3453 ;;
9863d716
JM
3454esac
3455
1b6c0831
L
3456# Disable the go frontend on systems where it is known to not work. Please keep
3457# this in sync with contrib/config-list.mk.
3458case "${target}" in
3459*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3460 unsupported_languages="$unsupported_languages go"
3461 ;;
3462esac
3463
a413f71a
ILT
3464# Disable libgo for some systems where it is known to not work.
3465# For testing, you can easily override this with --enable-libgo.
3466if test x$enable_libgo = x; then
3467 case "${target}" in
3468 *-*-darwin*)
3469 # PR 46986
3470 noconfigdirs="$noconfigdirs target-libgo"
3471 ;;
3472 *-*-cygwin* | *-*-mingw*)
3473 noconfigdirs="$noconfigdirs target-libgo"
3474 ;;
3475 *-*-aix*)
3476 noconfigdirs="$noconfigdirs target-libgo"
3477 ;;
3478 esac
3479fi
3480
691bb5a1
DD
3481# Default libgloss CPU subdirectory.
3482libgloss_dir="$target_cpu"
4b1cb4fe 3483
ff46fb8f
JM
3484case "${target}" in
3485 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3486 libgloss_dir=wince
3487 ;;
f1dd87fc
YZ
3488 aarch64*-*-* )
3489 libgloss_dir=aarch64
3490 ;;
ff46fb8f
JM
3491 arm*-*-*)
3492 libgloss_dir=arm
3493 ;;
3494 cris-*-* | crisv32-*-*)
3495 libgloss_dir=cris
3496 ;;
3497 hppa*-*-*)
3498 libgloss_dir=pa
3499 ;;
3500 i[3456789]86-*-*)
3501 libgloss_dir=i386
3502 ;;
3503 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3504 libgloss_dir=m68hc11
3505 ;;
3506 m68*-*-* | fido-*-*)
3507 libgloss_dir=m68k
3508 ;;
3509 mips*-*-*)
3510 libgloss_dir=mips
3511 ;;
3512 powerpc*-*-*)
3513 libgloss_dir=rs6000
3514 ;;
3515 sparc*-*-*)
3516 libgloss_dir=sparc
3517 ;;
3518esac
3519
c7e4b184 3520# Disable newlib and libgloss for various target OSes.
a0da8069 3521case "${target}" in
c7e4b184
JM
3522 alpha*-dec-osf*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 i[3456789]86-*-linux*)
3526 # This section makes it possible to build newlib natively on linux.
3527 # If we are using a cross compiler then don't configure newlib.
3528 if test x${is_cross_compiler} != xno ; then
3529 noconfigdirs="$noconfigdirs target-newlib"
3530 fi
3531 noconfigdirs="$noconfigdirs target-libgloss"
3532 # If we are not using a cross compiler, do configure newlib.
3533 # Note however, that newlib will only be configured in this situation
3534 # if the --with-newlib option has been given, because otherwise
3535 # 'target-newlib' will appear in skipdirs.
3536 ;;
3537 i[3456789]86-*-rdos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 ;;
3543 sparc-*-sunos4*)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-aix*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-beos*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
a0da8069 3552 *-*-chorusos)
b2f14e4a 3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3554 ;;
c7e4b184
JM
3555 *-*-dragonfly*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 *-*-freebsd*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-lynxos*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 *-*-mingw*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-netbsd*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-netware*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 *-*-tpf*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-uclinux*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-vxworks*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585esac
3586
3587case "${target}" in
3588 *-*-chorusos)
3589 ;;
f075eb5e
TG
3590 aarch64-*-darwin*)
3591 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3592 noconfigdirs="$noconfigdirs sim target-rda"
3593 ;;
3594 arm-*-darwin*)
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3597 ;;
24741ab2 3598 powerpc-*-darwin*)
9d39db92 3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3600 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3601 ;;
85bd1942
TG
3602 i[3456789]86-*-darwin*)
3603 noconfigdirs="$noconfigdirs ld gprof"
3604 noconfigdirs="$noconfigdirs sim target-rda"
3605 ;;
e8a5fa9c 3606 x86_64-*-darwin[912]*)
652dec25
TG
3607 noconfigdirs="$noconfigdirs ld gas gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3609 ;;
04d1ab34 3610 *-*-darwin*)
d320aacb 3611 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3612 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3613 ;;
5b806d27 3614 *-*-dragonfly*)
5b806d27 3615 ;;
de0b4a87 3616 *-*-freebsd*)
4b1cb4fe
DD
3617 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3618 && test -f /usr/local/include/gmp.h; then
3619 with_gmp=/usr/local
3620 fi
4b1cb4fe 3621 ;;
f8a495c8
NC
3622 *-*-kaos*)
3623 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3624 noconfigdirs="$noconfigdirs target-libgloss"
3625 ;;
a0da8069 3626 *-*-netbsd*)
a0da8069 3627 ;;
2a3124ca 3628 *-*-netware*)
a0da8069 3629 ;;
05a13254
NC
3630 *-*-phoenix*)
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 ;;
a0da8069 3633 *-*-rtems*)
9863d716 3634 noconfigdirs="$noconfigdirs target-libgloss"
f8797b5a
JB
3635 # this is not caught below because this stanza matches earlier
3636 case $target in
3637 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3638 esac
a0da8069 3639 ;;
1587117a
EC
3640 # The tpf target doesn't support gdb yet.
3641 *-*-tpf*)
c7e4b184 3642 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3643 ;;
c1968181 3644 *-*-uclinux*)
c7e4b184 3645 noconfigdirs="$noconfigdirs target-rda"
c1968181 3646 ;;
a0da8069 3647 *-*-vxworks*)
a0da8069
NN
3648 ;;
3649 alpha*-dec-osf*)
3650 # ld works, but does not support shared libraries.
a0da8069 3651 # gas doesn't generate exception information.
c7e4b184 3652 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3653 ;;
3654 alpha*-*-*vms*)
9863d716 3655 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3656 ;;
a0da8069
NN
3657 alpha*-*-*)
3658 # newlib is not 64 bit ready
9863d716 3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3660 ;;
a0da8069 3661 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3662 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3663 ;;
05a13254
NC
3664 arc*-*-*)
3665 noconfigdirs="$noconfigdirs sim"
a0da8069 3666 ;;
a0da8069 3667 arm-*-pe*)
9863d716 3668 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3669 ;;
a0da8069 3670 arm-*-riscix*)
b2f14e4a 3671 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3672 ;;
8e71395b
L
3673 avr-*-*)
3674 if test x${with_avrlibc} != xno; then
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 fi
3677 ;;
a0da8069 3678 c4x-*-* | tic4x-*-*)
b2f14e4a 3679 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3680 ;;
b2f14e4a
JM
3681 tic54x-*-*)
3682 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3683 ;;
a0da8069 3684 d10v-*-*)
b2f14e4a 3685 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3686 ;;
3687 d30v-*-*)
b2f14e4a 3688 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3689 ;;
3690 fr30-*-elf*)
9863d716 3691 noconfigdirs="$noconfigdirs gdb"
a0da8069 3692 ;;
3f8107ab
AM
3693 ft32-*-*)
3694 noconfigdirs="$noconfigdirs target-rda gprof"
3695 ;;
20135e4c 3696 moxie-*-*)
10b8fe5e 3697 noconfigdirs="$noconfigdirs"
20135e4c 3698 ;;
a0da8069 3699 h8300*-*-*)
9863d716 3700 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3701 ;;
3702 h8500-*-*)
b2f14e4a 3703 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3704 ;;
caeba88f 3705 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3706 ;;
5569a85f
JDA
3707 hppa*64*-*-hpux*)
3708 noconfigdirs="$noconfigdirs gdb"
3709 ;;
3710 hppa*-*-hpux11*)
3711 noconfigdirs="$noconfigdirs gdb ld"
3712 ;;
93cc359e 3713 hppa*64*-*-linux*)
a0da8069 3714 ;;
f0ff0f90 3715 hppa*-*-linux*)
5dcac624 3716 ;;
a0da8069 3717 hppa*-*-*elf* | \
a0da8069
NN
3718 hppa*-*-lites* | \
3719 hppa*-*-openbsd* | \
3720 hppa*64*-*-*)
4f0ef2d8 3721 ;;
691bb5a1 3722 hppa*-*-pro*)
691bb5a1 3723 ;;
a0da8069 3724 hppa*-*-*)
9863d716 3725 noconfigdirs="$noconfigdirs ld"
a0da8069 3726 ;;
b07c2aad 3727 i960-*-*)
b2f14e4a 3728 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3729 ;;
a0da8069
NN
3730 ia64*-*-elf*)
3731 # No gdb support yet.
0377a422 3732 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3733 ;;
3734 ia64*-**-hpux*)
92c9a463 3735 # No ld support yet.
5569a85f 3736 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
a0da8069 3737 ;;
19e99079 3738 ia64*-*-*vms*)
7ec59b9e
L
3739 # No ld support yet.
3740 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3741 ;;
1f53ca9a 3742 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3743 ;;
3744 i[3456789]86-*-mingw*)
45055374 3745 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3746 ;;
a0da8069
NN
3747 *-*-cygwin*)
3748 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3749 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3750 # always build newlib if winsup directory is present.
45055374 3751 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3752 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3753 elif test -d "$srcdir/newlib"; then
45055374 3754 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3755 fi
c6b750e1 3756 ;;
ec11bdc6 3757 i[3456789]86-*-pe)
782cb41f 3758 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3759 ;;
ec11bdc6 3760 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3761 # The linker does not yet know about weak symbols in COFF,
3762 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3763 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3764 ;;
ec11bdc6 3765 i[3456789]86-*-sco*)
b2f14e4a 3766 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3767 ;;
cff32a7c 3768 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3769 noconfigdirs="$noconfigdirs target-libgloss"
3770 ;;
ec11bdc6 3771 i[3456789]86-*-sysv4*)
b2f14e4a 3772 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3773 ;;
ec11bdc6 3774 i[3456789]86-*-beos*)
c7e4b184 3775 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3776 ;;
b59bea8a 3777 i[3456789]86-*-rdos*)
c7e4b184 3778 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3779 ;;
a0da8069 3780 mmix-*-*)
9863d716 3781 noconfigdirs="$noconfigdirs gdb"
a0da8069 3782 ;;
4970f871 3783 mt-*-*)
cdb9b172
AH
3784 noconfigdirs="$noconfigdirs sim"
3785 ;;
a0da8069
NN
3786 powerpc-*-aix*)
3787 # copied from rs6000-*-* entry
c7e4b184 3788 noconfigdirs="$noconfigdirs gprof"
a0da8069 3789 ;;
93cc359e 3790 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3791 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3792 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3793 # always build newlib.
3794 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3795 ;;
3796 # This is temporary until we can link against shared libraries
3797 powerpcle-*-solaris*)
b2f14e4a 3798 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3799 ;;
3800 powerpc-*-beos*)
c7e4b184 3801 noconfigdirs="$noconfigdirs gdb"
a0da8069 3802 ;;
a0da8069 3803 rs6000-*-lynxos*)
c7e4b184 3804 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3805 ;;
3806 rs6000-*-aix*)
c7e4b184 3807 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3808 ;;
3809 rs6000-*-*)
9863d716 3810 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3811 ;;
3812 m68k-apollo-*)
b2f14e4a 3813 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3814 ;;
25a07265 3815 microblaze*)
9863d716 3816 noconfigdirs="$noconfigdirs gprof"
25a07265 3817 ;;
a9d58c06 3818 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
5bd8be13
RS
3819 if test x$with_newlib = xyes; then
3820 noconfigdirs="$noconfigdirs gprof"
3821 fi
5bd8be13 3822 ;;
a0da8069 3823 mips*-*-irix5*)
b2f14e4a 3824 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3825 ;;
3826 mips*-*-irix6*)
9863d716 3827 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3828 ;;
a0da8069 3829 mips*-*-bsd*)
e8044f35 3830 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3831 ;;
a0da8069 3832 mips*-*-linux*)
a0da8069 3833 ;;
e8044f35
RS
3834 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3835 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3836 noconfigdirs="$noconfigdirs ld gas gprof"
3837 ;;
a0da8069 3838 mips*-*-*)
9863d716 3839 noconfigdirs="$noconfigdirs gprof"
a0da8069 3840 ;;
1b6c0831 3841 nvptx*-*-*)
1b6c0831
L
3842 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3843 ;;
cfbc1a6c
JS
3844 or1k*-*-*)
3845 noconfigdirs="$noconfigdirs gdb"
3846 ;;
05a13254 3847 sh-*-*)
e8a5fa9c
RW
3848 case "${target}" in
3849 sh*-*-elf)
9863d716 3850 ;;
e8a5fa9c 3851 *)
9863d716 3852 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3853 esac
a0da8069 3854 ;;
a0da8069 3855 sparc-*-sunos4*)
c7e4b184 3856 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3857 use_gnu_ld=no
3858 fi
3859 ;;
619a3713 3860 tic6x-*-*)
40ae9136 3861 noconfigdirs="$noconfigdirs sim"
619a3713 3862 ;;
05a13254 3863 tilepro*-*-* | tilegx*-*-*)
eb4b2452
NC
3864 noconfigdirs="$noconfigdirs sim"
3865 ;;
a0da8069 3866 v810-*-*)
b2f14e4a 3867 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3868 ;;
3869 vax-*-*)
9863d716 3870 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3871 ;;
a0da8069 3872esac
252b5132 3873
a0da8069
NN
3874# If we aren't building newlib, then don't build libgloss, since libgloss
3875# depends upon some newlib header files.
3876case "${noconfigdirs}" in
3877 *target-libgloss*) ;;
3878 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3879esac
3880
a0da8069 3881# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3882host_makefile_frag=/dev/null
3883if test -d ${srcdir}/config ; then
3884case "${host}" in
ec11bdc6 3885 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3886 host_makefile_frag="config/mh-djgpp"
3887 ;;
3888 *-cygwin*)
e33b51a6 3889
81ecdfbb
RW
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3891$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3892echo a >cygwin-cat-check
1f53ca9a 3893if test `cat cygwin-cat-check` = a ; then
8ade07e9 3894 rm cygwin-cat-check
81ecdfbb
RW
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896$as_echo "yes" >&6; }
e33b51a6 3897else
8ade07e9 3898 rm cygwin-cat-check
81ecdfbb
RW
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3902 Please either mount the build directory in binary mode or run the following
3903 commands before running any configure script:
3904set -o igncr
3905export SHELLOPTS
81ecdfbb 3906 " "$LINENO" 5
e33b51a6 3907fi
e33b51a6 3908
a0da8069
NN
3909 host_makefile_frag="config/mh-cygwin"
3910 ;;
8a1599ab 3911 *-mingw*)
84e7906e 3912 host_makefile_frag="config/mh-mingw"
2d1e8239 3913 ;;
ce6c656d
L
3914 alpha*-linux*)
3915 host_makefile_frag="config/mh-alpha-linux"
3916 ;;
da888c87 3917 hppa*-hp-hpux10*)
da888c87 3918 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3919 ;;
3516a403 3920 hppa*-hp-hpux*)
da888c87
PB
3921 host_makefile_frag="config/mh-pa"
3922 ;;
3923 hppa*-*)
3924 host_makefile_frag="config/mh-pa"
3925 ;;
e552509b
ILT
3926 *-*-darwin*)
3927 host_makefile_frag="config/mh-darwin"
0df3d27f 3928 ;;
f6d183c0
PB
3929 powerpc-*-aix*)
3930 host_makefile_frag="config/mh-ppc-aix"
3931 ;;
3932 rs6000-*-aix*)
3933 host_makefile_frag="config/mh-ppc-aix"
3934 ;;
a0da8069
NN
3935esac
3936fi
3937
9e07f89d 3938if test "${build}" != "${host}" ; then
1576798e
PB
3939 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3940 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3941 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e 3942 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
1576798e 3943 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3944 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3945 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3946 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3947 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3948 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3949 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3950 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3951else
3952 AR_FOR_BUILD="\$(AR)"
3953 AS_FOR_BUILD="\$(AS)"
512b7dfb 3954 CC_FOR_BUILD="\$(CC)"
1576798e 3955 CXX_FOR_BUILD="\$(CXX)"
1576798e 3956 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3957 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3958 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3959 LD_FOR_BUILD="\$(LD)"
3960 NM_FOR_BUILD="\$(NM)"
3961 RANLIB_FOR_BUILD="\$(RANLIB)"
3962 WINDRES_FOR_BUILD="\$(WINDRES)"
3963 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3964fi
3965
3966ac_ext=c
c6b750e1
DJ
3967ac_cpp='$CPP $CPPFLAGS'
3968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3973set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975$as_echo_n "checking for $ac_word... " >&6; }
3976if test "${ac_cv_prog_CC+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3978else
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3981else
3982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3991 break 2
3992 fi
3993done
81ecdfbb
RW
3994 done
3995IFS=$as_save_IFS
c6b750e1
DJ
3996
3997fi
3998fi
3999CC=$ac_cv_prog_CC
4000if test -n "$CC"; then
81ecdfbb
RW
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002$as_echo "$CC" >&6; }
c6b750e1 4003else
81ecdfbb
RW
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005$as_echo "no" >&6; }
c6b750e1
DJ
4006fi
4007
81ecdfbb 4008
c6b750e1
DJ
4009fi
4010if test -z "$ac_cv_prog_CC"; then
4011 ac_ct_CC=$CC
6a9cf61e 4012 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 4013set dummy gcc; ac_word=$2
81ecdfbb
RW
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015$as_echo_n "checking for $ac_word... " >&6; }
4016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
c6b750e1
DJ
4018else
4019 if test -n "$ac_ct_CC"; then
4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4029 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4031 break 2
4032 fi
4033done
81ecdfbb
RW
4034 done
4035IFS=$as_save_IFS
c6b750e1
DJ
4036
4037fi
4038fi
4039ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042$as_echo "$ac_ct_CC" >&6; }
c6b750e1 4043else
81ecdfbb
RW
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045$as_echo "no" >&6; }
c6b750e1
DJ
4046fi
4047
81ecdfbb
RW
4048 if test "x$ac_ct_CC" = x; then
4049 CC=""
4050 else
4051 case $cross_compiling:$ac_tool_warned in
4052yes:)
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055ac_tool_warned=yes ;;
4056esac
4057 CC=$ac_ct_CC
4058 fi
c6b750e1
DJ
4059else
4060 CC="$ac_cv_prog_CC"
4061fi
4062
4063if test -z "$CC"; then
81ecdfbb
RW
4064 if test -n "$ac_tool_prefix"; then
4065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4066set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068$as_echo_n "checking for $ac_word... " >&6; }
4069if test "${ac_cv_prog_CC+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
9e07f89d
NN
4071else
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4074else
c6b750e1
DJ
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4082 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4084 break 2
4085 fi
4086done
81ecdfbb
RW
4087 done
4088IFS=$as_save_IFS
c6b750e1 4089
9e07f89d
NN
4090fi
4091fi
c6b750e1 4092CC=$ac_cv_prog_CC
9e07f89d 4093if test -n "$CC"; then
81ecdfbb
RW
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095$as_echo "$CC" >&6; }
c6b750e1 4096else
81ecdfbb
RW
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098$as_echo "no" >&6; }
c6b750e1
DJ
4099fi
4100
c6b750e1 4101
81ecdfbb 4102 fi
c6b750e1 4103fi
9e07f89d
NN
4104if test -z "$CC"; then
4105 # Extract the first word of "cc", so it can be a program name with args.
4106set dummy cc; ac_word=$2
81ecdfbb
RW
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108$as_echo_n "checking for $ac_word... " >&6; }
4109if test "${ac_cv_prog_CC+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
9e07f89d
NN
4111else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114else
9e07f89d 4115 ac_prog_rejected=no
c6b750e1
DJ
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4124 ac_prog_rejected=yes
4125 continue
4126 fi
4127 ac_cv_prog_CC="cc"
81ecdfbb 4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4129 break 2
4130 fi
4131done
81ecdfbb
RW
4132 done
4133IFS=$as_save_IFS
c6b750e1 4134
9e07f89d
NN
4135if test $ac_prog_rejected = yes; then
4136 # We found a bogon in the path, so make sure we never use it.
4137 set dummy $ac_cv_prog_CC
4138 shift
c6b750e1 4139 if test $# != 0; then
9e07f89d
NN
4140 # We chose a different compiler from the bogus one.
4141 # However, it has the same basename, so the bogon will be chosen
4142 # first if we set CC to just the basename; use the full file name.
4143 shift
c6b750e1 4144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4145 fi
4146fi
4147fi
4148fi
c6b750e1 4149CC=$ac_cv_prog_CC
9e07f89d 4150if test -n "$CC"; then
81ecdfbb
RW
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152$as_echo "$CC" >&6; }
9e07f89d 4153else
81ecdfbb
RW
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155$as_echo "no" >&6; }
9e07f89d
NN
4156fi
4157
81ecdfbb 4158
c6b750e1
DJ
4159fi
4160if test -z "$CC"; then
4161 if test -n "$ac_tool_prefix"; then
81ecdfbb 4162 for ac_prog in cl.exe
c6b750e1
DJ
4163 do
4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
4168if test "${ac_cv_prog_CC+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
9e07f89d
NN
4170else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173else
c6b750e1
DJ
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4183 break 2
376a0e54 4184 fi
c6b750e1 4185done
81ecdfbb
RW
4186 done
4187IFS=$as_save_IFS
cac3d6c4 4188
c6b750e1
DJ
4189fi
4190fi
4191CC=$ac_cv_prog_CC
4192if test -n "$CC"; then
81ecdfbb
RW
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194$as_echo "$CC" >&6; }
cac3d6c4 4195else
81ecdfbb
RW
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197$as_echo "no" >&6; }
9e07f89d 4198fi
cac3d6c4 4199
81ecdfbb 4200
c6b750e1
DJ
4201 test -n "$CC" && break
4202 done
cac3d6c4 4203fi
c6b750e1
DJ
4204if test -z "$CC"; then
4205 ac_ct_CC=$CC
81ecdfbb 4206 for ac_prog in cl.exe
c6b750e1
DJ
4207do
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
cac3d6c4 4214else
c6b750e1
DJ
4215 if test -n "$ac_ct_CC"; then
4216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4217else
c6b750e1
DJ
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4225 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4227 break 2
4228 fi
4229done
81ecdfbb
RW
4230 done
4231IFS=$as_save_IFS
c6b750e1 4232
cac3d6c4
CM
4233fi
4234fi
c6b750e1
DJ
4235ac_ct_CC=$ac_cv_prog_ac_ct_CC
4236if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4238$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4239else
81ecdfbb
RW
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
cac3d6c4 4242fi
376a0e54 4243
81ecdfbb 4244
c6b750e1
DJ
4245 test -n "$ac_ct_CC" && break
4246done
4247
81ecdfbb
RW
4248 if test "x$ac_ct_CC" = x; then
4249 CC=""
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257 CC=$ac_ct_CC
4258 fi
c6b750e1
DJ
4259fi
4260
4261fi
4262
4263
81ecdfbb
RW
4264test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266as_fn_error "no acceptable C compiler found in \$PATH
4267See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4268
4269# Provide some information about the compiler.
81ecdfbb
RW
4270$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4271set X $ac_compile
4272ac_compiler=$2
4273for ac_option in --version -v -V -qversion; do
4274 { { ac_try="$ac_compiler $ac_option >&5"
4275case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280$as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4282 ac_status=$?
81ecdfbb
RW
4283 if test -s conftest.err; then
4284 sed '10a\
4285... rest of stderr output deleted ...
4286 10q' conftest.err >conftest.er1
4287 cat conftest.er1 >&5
4288 rm -f conftest.er1 conftest.err
4289 fi
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }
4292done
c6b750e1 4293
81ecdfbb 4294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4295/* end confdefs.h. */
4296
4297int
4298main ()
4299{
4300
4301 ;
4302 return 0;
4303}
4304_ACEOF
4305ac_clean_files_save=$ac_clean_files
81ecdfbb 4306ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4307# Try to create an executable without -o first, disregard a.out.
4308# It will help us diagnose broken compilers, and finding out an intuition
4309# of exeext.
81ecdfbb
RW
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4311$as_echo_n "checking for C compiler default output file name... " >&6; }
4312ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4313
4314# The possible output files:
4315ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4316
4317ac_rmfiles=
4318for ac_file in $ac_files
4319do
4320 case $ac_file in
4321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4323 esac
4324done
4325rm -f $ac_rmfiles
4326
4327if { { ac_try="$ac_link_default"
4328case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331esac
4332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333$as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_link_default") 2>&5
c6b750e1 4335 ac_status=$?
81ecdfbb
RW
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; then :
4338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4339# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4340# in a Makefile. We should not override ac_cv_exeext if it was cached,
4341# so that the user can short-circuit this test for compilers unknown to
4342# Autoconf.
4343for ac_file in $ac_files ''
c6b750e1
DJ
4344do
4345 test -f "$ac_file" || continue
4346 case $ac_file in
81ecdfbb 4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4348 ;;
4349 [ab].out )
4350 # We found the default executable, but exeext='' is most
4351 # certainly right.
4352 break;;
4353 *.* )
81ecdfbb
RW
4354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4355 then :; else
4356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4357 fi
4358 # We set ac_cv_exeext here because the later test for it is not
4359 # safe: cross compilers may not add the suffix if given an `-o'
4360 # argument, so we may need to know it at that point already.
4361 # Even if this section looks crufty: it has the advantage of
4362 # actually working.
c6b750e1
DJ
4363 break;;
4364 * )
4365 break;;
4366 esac
4367done
81ecdfbb
RW
4368test "$ac_cv_exeext" = no && ac_cv_exeext=
4369
c6b750e1 4370else
81ecdfbb
RW
4371 ac_file=''
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4374$as_echo "$ac_file" >&6; }
4375if test -z "$ac_file"; then :
4376 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4377sed 's/^/| /' conftest.$ac_ext >&5
4378
81ecdfbb
RW
4379{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381{ as_fn_set_status 77
4382as_fn_error "C compiler cannot create executables
4383See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4384fi
c6b750e1 4385ac_exeext=$ac_cv_exeext
c6b750e1 4386
81ecdfbb 4387# Check that the compiler produces executables we can run. If not, either
c6b750e1 4388# the compiler is broken, or we cross compile.
81ecdfbb
RW
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4390$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4391# If not cross compiling, check that we can run a simple program.
4392if test "$cross_compiling" != yes; then
4393 if { ac_try='./$ac_file'
81ecdfbb
RW
4394 { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399$as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
c6b750e1 4401 ac_status=$?
81ecdfbb
RW
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; }; then
c6b750e1
DJ
4404 cross_compiling=no
4405 else
4406 if test "$cross_compiling" = maybe; then
4407 cross_compiling=yes
4408 else
81ecdfbb
RW
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411as_fn_error "cannot run C compiled programs.
c6b750e1 4412If you meant to cross compile, use \`--host'.
81ecdfbb 4413See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4414 fi
4415 fi
4416fi
81ecdfbb
RW
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4418$as_echo "yes" >&6; }
c6b750e1 4419
81ecdfbb 4420rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4421ac_clean_files=$ac_clean_files_save
81ecdfbb 4422# Check that the compiler produces executables we can run. If not, either
c6b750e1 4423# the compiler is broken, or we cross compile.
81ecdfbb
RW
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4425$as_echo_n "checking whether we are cross compiling... " >&6; }
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4427$as_echo "$cross_compiling" >&6; }
4428
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430$as_echo_n "checking for suffix of executables... " >&6; }
4431if { { ac_try="$ac_link"
4432case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437$as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link") 2>&5
c6b750e1 4439 ac_status=$?
81ecdfbb
RW
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
c6b750e1
DJ
4442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4443# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4444# work properly (i.e., refer to `conftest.exe'), while it won't with
4445# `rm'.
4446for ac_file in conftest.exe conftest conftest.*; do
4447 test -f "$ac_file" || continue
4448 case $ac_file in
81ecdfbb 4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4451 break;;
4452 * ) break;;
4453 esac
4454done
4455else
81ecdfbb
RW
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458as_fn_error "cannot compute suffix of executables: cannot compile and link
4459See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4460fi
c6b750e1 4461rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4464
4465rm -f conftest.$ac_ext
4466EXEEXT=$ac_cv_exeext
4467ac_exeext=$EXEEXT
81ecdfbb
RW
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4469$as_echo_n "checking for suffix of object files... " >&6; }
4470if test "${ac_cv_objext+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
c6b750e1 4472else
81ecdfbb 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4474/* end confdefs.h. */
4475
4476int
4477main ()
4478{
4479
4480 ;
4481 return 0;
4482}
4483_ACEOF
4484rm -f conftest.o conftest.obj
81ecdfbb
RW
4485if { { ac_try="$ac_compile"
4486case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489esac
4490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491$as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_compile") 2>&5
c6b750e1 4493 ac_status=$?
81ecdfbb
RW
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 for ac_file in conftest.o conftest.obj conftest.*; do
4497 test -f "$ac_file" || continue;
c6b750e1 4498 case $ac_file in
81ecdfbb 4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4501 break;;
4502 esac
4503done
cac3d6c4 4504else
81ecdfbb 4505 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4506sed 's/^/| /' conftest.$ac_ext >&5
4507
81ecdfbb
RW
4508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510as_fn_error "cannot compute suffix of object files: cannot compile
4511See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4512fi
c6b750e1
DJ
4513rm -f conftest.$ac_cv_objext conftest.$ac_ext
4514fi
81ecdfbb
RW
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4516$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4517OBJEXT=$ac_cv_objext
4518ac_objext=$OBJEXT
81ecdfbb
RW
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4520$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4521if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
c6b750e1 4523else
81ecdfbb 4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4525/* end confdefs.h. */
4526
4527int
4528main ()
4529{
4530#ifndef __GNUC__
4531 choke me
4532#endif
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
81ecdfbb 4538if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4539 ac_compiler_gnu=yes
4540else
81ecdfbb 4541 ac_compiler_gnu=no
c6b750e1 4542fi
81ecdfbb 4543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4544ac_cv_c_compiler_gnu=$ac_compiler_gnu
4545
4546fi
81ecdfbb
RW
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4548$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4549if test $ac_compiler_gnu = yes; then
4550 GCC=yes
4551else
4552 GCC=
4553fi
c6b750e1
DJ
4554ac_test_CFLAGS=${CFLAGS+set}
4555ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4557$as_echo_n "checking whether $CC accepts -g... " >&6; }
4558if test "${ac_cv_prog_cc_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560else
4561 ac_save_c_werror_flag=$ac_c_werror_flag
4562 ac_c_werror_flag=yes
4563 ac_cv_prog_cc_g=no
4564 CFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4566/* end confdefs.h. */
4567
4568int
4569main ()
4570{
4571
4572 ;
4573 return 0;
4574}
4575_ACEOF
81ecdfbb 4576if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4577 ac_cv_prog_cc_g=yes
4578else
81ecdfbb
RW
4579 CFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581/* end confdefs.h. */
4582
4583int
4584main ()
4585{
4586
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591if ac_fn_c_try_compile "$LINENO"; then :
4592
4593else
4594 ac_c_werror_flag=$ac_save_c_werror_flag
4595 CFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h. */
cac3d6c4 4598
81ecdfbb
RW
4599int
4600main ()
4601{
4602
4603 ;
4604 return 0;
4605}
4606_ACEOF
4607if ac_fn_c_try_compile "$LINENO"; then :
4608 ac_cv_prog_cc_g=yes
4609fi
4610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4611fi
81ecdfbb 4612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4613fi
81ecdfbb
RW
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_c_werror_flag=$ac_save_c_werror_flag
4616fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4618$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4619if test "$ac_test_CFLAGS" = set; then
c6b750e1 4620 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4621elif test $ac_cv_prog_cc_g = yes; then
4622 if test "$GCC" = yes; then
4623 CFLAGS="-g -O2"
4624 else
4625 CFLAGS="-g"
4626 fi
4627else
4628 if test "$GCC" = yes; then
4629 CFLAGS="-O2"
4630 else
4631 CFLAGS=
4632 fi
4633fi
81ecdfbb
RW
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4635$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4636if test "${ac_cv_prog_cc_c89+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
c6b750e1 4638else
81ecdfbb 4639 ac_cv_prog_cc_c89=no
c6b750e1 4640ac_save_CC=$CC
81ecdfbb 4641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4642/* end confdefs.h. */
4643#include <stdarg.h>
4644#include <stdio.h>
4645#include <sys/types.h>
4646#include <sys/stat.h>
4647/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4648struct buf { int x; };
4649FILE * (*rcsopen) (struct buf *, struct stat *, int);
4650static char *e (p, i)
4651 char **p;
4652 int i;
4653{
4654 return p[i];
4655}
4656static char *f (char * (*g) (char **, int), char **p, ...)
4657{
4658 char *s;
4659 va_list v;
4660 va_start (v,p);
4661 s = g (p, va_arg (v,int));
4662 va_end (v);
4663 return s;
4664}
4665
4666/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4667 function prototypes and stuff, but not '\xHH' hex character constants.
4668 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4669 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4671 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4672 that's true only with -std. */
c6b750e1
DJ
4673int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4674
81ecdfbb
RW
4675/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4676 inside strings and character constants. */
4677#define FOO(x) 'x'
4678int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4679
c6b750e1
DJ
4680int test (int i, double x);
4681struct s1 {int (*f) (int a);};
4682struct s2 {int (*f) (double a);};
4683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4684int argc;
4685char **argv;
4686int
4687main ()
4688{
4689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4690 ;
4691 return 0;
4692}
4693_ACEOF
81ecdfbb
RW
4694for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4696do
4697 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4700fi
81ecdfbb
RW
4701rm -f core conftest.err conftest.$ac_objext
4702 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4703done
81ecdfbb 4704rm -f conftest.$ac_ext
c6b750e1
DJ
4705CC=$ac_save_CC
4706
4707fi
81ecdfbb
RW
4708# AC_CACHE_VAL
4709case "x$ac_cv_prog_cc_c89" in
4710 x)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4712$as_echo "none needed" >&6; } ;;
4713 xno)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4715$as_echo "unsupported" >&6; } ;;
c6b750e1 4716 *)
81ecdfbb
RW
4717 CC="$CC $ac_cv_prog_cc_c89"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4719$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4720esac
81ecdfbb 4721if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4722
c6b750e1
DJ
4723fi
4724
c6b750e1
DJ
4725ac_ext=c
4726ac_cpp='$CPP $CPPFLAGS'
4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4730
81ecdfbb 4731ac_ext=cpp
18f6b6ee
PB
4732ac_cpp='$CXXCPP $CPPFLAGS'
4733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4736if test -z "$CXX"; then
4737 if test -n "$CCC"; then
4738 CXX=$CCC
4739 else
4740 if test -n "$ac_tool_prefix"; then
4741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4742 do
4743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4744set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if test "${ac_cv_prog_CXX+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4749else
4750 if test -n "$CXX"; then
4751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4762 break 2
4763 fi
4764done
81ecdfbb
RW
4765 done
4766IFS=$as_save_IFS
512b7dfb 4767
18f6b6ee
PB
4768fi
4769fi
4770CXX=$ac_cv_prog_CXX
4771if test -n "$CXX"; then
81ecdfbb
RW
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4773$as_echo "$CXX" >&6; }
18f6b6ee 4774else
81ecdfbb
RW
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
18f6b6ee
PB
4777fi
4778
81ecdfbb 4779
18f6b6ee
PB
4780 test -n "$CXX" && break
4781 done
4782fi
4783if test -z "$CXX"; then
4784 ac_ct_CXX=$CXX
81ecdfbb 4785 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4786do
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790$as_echo_n "checking for $ac_word... " >&6; }
4791if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4793else
4794 if test -n "$ac_ct_CXX"; then
4795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4796else
4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4804 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4806 break 2
512b7dfb 4807 fi
18f6b6ee 4808done
81ecdfbb
RW
4809 done
4810IFS=$as_save_IFS
512b7dfb 4811
18f6b6ee
PB
4812fi
4813fi
4814ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4815if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4817$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4818else
81ecdfbb
RW
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
18f6b6ee
PB
4821fi
4822
81ecdfbb 4823
18f6b6ee
PB
4824 test -n "$ac_ct_CXX" && break
4825done
18f6b6ee 4826
81ecdfbb
RW
4827 if test "x$ac_ct_CXX" = x; then
4828 CXX="g++"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831yes:)
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834ac_tool_warned=yes ;;
4835esac
4836 CXX=$ac_ct_CXX
4837 fi
18f6b6ee
PB
4838fi
4839
81ecdfbb
RW
4840 fi
4841fi
18f6b6ee 4842# Provide some information about the compiler.
81ecdfbb
RW
4843$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4844set X $ac_compile
4845ac_compiler=$2
4846for ac_option in --version -v -V -qversion; do
4847 { { ac_try="$ac_compiler $ac_option >&5"
4848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
4852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853$as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4855 ac_status=$?
81ecdfbb
RW
4856 if test -s conftest.err; then
4857 sed '10a\
4858... rest of stderr output deleted ...
4859 10q' conftest.err >conftest.er1
4860 cat conftest.er1 >&5
4861 rm -f conftest.er1 conftest.err
4862 fi
4863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865done
18f6b6ee 4866
81ecdfbb
RW
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4868$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4869if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
18f6b6ee 4871else
81ecdfbb 4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4873/* end confdefs.h. */
4874
4875int
4876main ()
4877{
4878#ifndef __GNUC__
4879 choke me
4880#endif
4881
4882 ;
4883 return 0;
4884}
4885_ACEOF
81ecdfbb 4886if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4887 ac_compiler_gnu=yes
4888else
81ecdfbb 4889 ac_compiler_gnu=no
18f6b6ee 4890fi
81ecdfbb 4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4892ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4893
4894fi
81ecdfbb
RW
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4896$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4897if test $ac_compiler_gnu = yes; then
4898 GXX=yes
4899else
4900 GXX=
4901fi
18f6b6ee
PB
4902ac_test_CXXFLAGS=${CXXFLAGS+set}
4903ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4905$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4906if test "${ac_cv_prog_cxx_g+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908else
4909 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4910 ac_cxx_werror_flag=yes
4911 ac_cv_prog_cxx_g=no
4912 CXXFLAGS="-g"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4914/* end confdefs.h. */
4915
4916int
4917main ()
4918{
4919
4920 ;
4921 return 0;
4922}
4923_ACEOF
81ecdfbb 4924if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4925 ac_cv_prog_cxx_g=yes
4926else
81ecdfbb
RW
4927 CXXFLAGS=""
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4929/* end confdefs.h. */
81ecdfbb 4930
18f6b6ee
PB
4931int
4932main ()
4933{
81ecdfbb 4934
18f6b6ee
PB
4935 ;
4936 return 0;
4937}
4938_ACEOF
81ecdfbb 4939if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4940
81ecdfbb
RW
4941else
4942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4943 CXXFLAGS="-g"
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4945/* end confdefs.h. */
81ecdfbb 4946
18f6b6ee
PB
4947int
4948main ()
4949{
81ecdfbb 4950
18f6b6ee
PB
4951 ;
4952 return 0;
4953}
4954_ACEOF
81ecdfbb
RW
4955if ac_fn_cxx_try_compile "$LINENO"; then :
4956 ac_cv_prog_cxx_g=yes
18f6b6ee 4957fi
81ecdfbb
RW
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4966$as_echo "$ac_cv_prog_cxx_g" >&6; }
4967if test "$ac_test_CXXFLAGS" = set; then
4968 CXXFLAGS=$ac_save_CXXFLAGS
4969elif test $ac_cv_prog_cxx_g = yes; then
4970 if test "$GXX" = yes; then
4971 CXXFLAGS="-g -O2"
4972 else
4973 CXXFLAGS="-g"
4974 fi
4975else
4976 if test "$GXX" = yes; then
4977 CXXFLAGS="-O2"
4978 else
4979 CXXFLAGS=
4980 fi
18f6b6ee 4981fi
18f6b6ee
PB
4982ac_ext=c
4983ac_cpp='$CPP $CPPFLAGS'
4984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987
4988
4989# We must set the default linker to the linker used by gcc for the correct
4990# operation of libtool. If LD is not defined and we are using gcc, try to
4991# set the LD default to the ld used by gcc.
4992if test -z "$LD"; then
4993 if test "$GCC" = yes; then
4994 case $build in
4995 *-*-mingw*)
4996 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4997 *)
4998 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4999 esac
5000 case $gcc_prog_ld in
5001 # Accept absolute paths.
5002 [\\/]* | [A-Za-z]:[\\/]*)
5003 LD="$gcc_prog_ld" ;;
5004 esac
5005 fi
512b7dfb
PB
5006fi
5007
b3676d82
EB
5008# Check whether -static-libstdc++ -static-libgcc is supported.
5009have_static_libs=no
5010if test "$GCC" = yes; then
5011 saved_LDFLAGS="$LDFLAGS"
5012
5013 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5015$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5016 ac_ext=cpp
5017ac_cpp='$CXXCPP $CPPFLAGS'
5018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5021
5022
5023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h. */
a882be68
EB
5025
5026#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5027#error -static-libstdc++ not implemented
5028#endif
b3676d82
EB
5029int main() {}
5030_ACEOF
5031if ac_fn_cxx_try_link "$LINENO"; then :
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033$as_echo "yes" >&6; }; have_static_libs=yes
5034else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036$as_echo "no" >&6; }
5037fi
5038rm -f core conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5040 ac_ext=c
5041ac_cpp='$CPP $CPPFLAGS'
5042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046
5047 LDFLAGS="$saved_LDFLAGS"
5048fi
5049
512b7dfb
PB
5050
5051
5052
c6b750e1 5053if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5054 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5055set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057$as_echo_n "checking for $ac_word... " >&6; }
5058if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
9e07f89d 5060else
512b7dfb
PB
5061 if test -n "$GNATBIND"; then
5062 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 5063else
c6b750e1
DJ
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5071 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5073 break 2
5074 fi
5075done
81ecdfbb
RW
5076 done
5077IFS=$as_save_IFS
c6b750e1 5078
9e07f89d
NN
5079fi
5080fi
512b7dfb
PB
5081GNATBIND=$ac_cv_prog_GNATBIND
5082if test -n "$GNATBIND"; then
81ecdfbb
RW
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5084$as_echo "$GNATBIND" >&6; }
9e07f89d 5085else
81ecdfbb
RW
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
9e07f89d
NN
5088fi
5089
81ecdfbb 5090
c6b750e1 5091fi
512b7dfb
PB
5092if test -z "$ac_cv_prog_GNATBIND"; then
5093 ac_ct_GNATBIND=$GNATBIND
5094 # Extract the first word of "gnatbind", so it can be a program name with args.
5095set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
9e07f89d 5100else
512b7dfb
PB
5101 if test -n "$ac_ct_GNATBIND"; then
5102 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5103else
c6b750e1
DJ
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5111 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5113 break 2
5114 fi
5115done
81ecdfbb
RW
5116 done
5117IFS=$as_save_IFS
c6b750e1 5118
9e07f89d
NN
5119fi
5120fi
512b7dfb
PB
5121ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5122if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5124$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5125else
81ecdfbb
RW
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
9e07f89d
NN
5128fi
5129
81ecdfbb
RW
5130 if test "x$ac_ct_GNATBIND" = x; then
5131 GNATBIND="no"
5132 else
5133 case $cross_compiling:$ac_tool_warned in
5134yes:)
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137ac_tool_warned=yes ;;
5138esac
5139 GNATBIND=$ac_ct_GNATBIND
5140 fi
24ff9987 5141else
512b7dfb 5142 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5143fi
5144
7df2cd5d 5145if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5146 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5147set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
5150if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
7df2cd5d 5152else
512b7dfb
PB
5153 if test -n "$GNATMAKE"; then
5154 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5155else
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5163 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5165 break 2
5166 fi
5167done
81ecdfbb
RW
5168 done
5169IFS=$as_save_IFS
7df2cd5d
PB
5170
5171fi
5172fi
512b7dfb
PB
5173GNATMAKE=$ac_cv_prog_GNATMAKE
5174if test -n "$GNATMAKE"; then
81ecdfbb
RW
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5176$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5177else
81ecdfbb
RW
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
7df2cd5d
PB
5180fi
5181
81ecdfbb 5182
7df2cd5d 5183fi
512b7dfb
PB
5184if test -z "$ac_cv_prog_GNATMAKE"; then
5185 ac_ct_GNATMAKE=$GNATMAKE
5186 # Extract the first word of "gnatmake", so it can be a program name with args.
5187set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189$as_echo_n "checking for $ac_word... " >&6; }
5190if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
7df2cd5d 5192else
512b7dfb
PB
5193 if test -n "$ac_ct_GNATMAKE"; then
5194 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5203 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5205 break 2
5206 fi
5207done
81ecdfbb
RW
5208 done
5209IFS=$as_save_IFS
7df2cd5d 5210
7df2cd5d
PB
5211fi
5212fi
512b7dfb
PB
5213ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5214if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5216$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5217else
81ecdfbb
RW
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219$as_echo "no" >&6; }
7df2cd5d
PB
5220fi
5221
81ecdfbb
RW
5222 if test "x$ac_ct_GNATMAKE" = x; then
5223 GNATMAKE="no"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226yes:)
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229ac_tool_warned=yes ;;
5230esac
5231 GNATMAKE=$ac_ct_GNATMAKE
5232 fi
7df2cd5d 5233else
512b7dfb 5234 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5235fi
5236
81ecdfbb
RW
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5238$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5239if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
9e07f89d
NN
5241else
5242 cat >conftest.adb <<EOF
5243procedure conftest is begin null; end conftest;
5244EOF
5245acx_cv_cc_gcc_supports_ada=no
5246# There is a bug in old released versions of GCC which causes the
5247# driver to exit successfully when the appropriate language module
5248# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5249# Therefore we must check for the error message as well as an
5250# unsuccessful exit.
b8908782
DD
5251# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5252# given a .adb file, but produce no object file. So we must check
5253# if an object file was really produced to guard against this.
9e07f89d 5254errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5255if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5256 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5257fi
5258rm -f conftest.*
5259fi
81ecdfbb
RW
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5261$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5262
64b986c0 5263if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5264 have_gnat=yes
5265else
5266 have_gnat=no
5267fi
5268
81ecdfbb
RW
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5270$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5271if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
b8908782
DD
5273else
5274 echo abfoo >t1
5275 echo cdfoo >t2
da17fe9d 5276 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5277 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5278 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5279 :
5280 else
5281 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5282 fi
5283 fi
b8908782
DD
5284 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5285 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5286 :
b8908782
DD
5287 else
5288 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5289 fi
5290 fi
5291 rm t1 t2
5292
5293fi
81ecdfbb
RW
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5295$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5296do_compare="$gcc_cv_prog_cmp_skip"
5297
5298
9e07f89d 5299
ffdd6afc
ILT
5300# Check whether --enable-bootstrap was given.
5301if test "${enable_bootstrap+set}" = set; then :
5302 enableval=$enable_bootstrap;
5303else
5304 enable_bootstrap=default
5305fi
5306
5307
5308# Issue errors and warnings for invalid/strange bootstrap combinations.
5309if test -r $srcdir/gcc/configure; then
5310 have_compiler=yes
5311else
5312 have_compiler=no
5313fi
5314
5315case "$have_compiler:$host:$target:$enable_bootstrap" in
5316 *:*:*:no) ;;
5317
5318 # Default behavior. Enable bootstrap if we have a compiler
5319 # and we are in a native configuration.
5320 yes:$build:$build:default)
5321 enable_bootstrap=yes ;;
5322
5323 *:*:*:default)
5324 enable_bootstrap=no ;;
5325
5326 # We have a compiler and we are in a native configuration, bootstrap is ok
5327 yes:$build:$build:yes)
5328 ;;
5329
5330 # Other configurations, but we have a compiler. Assume the user knows
5331 # what he's doing.
5332 yes:*:*:yes)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5334$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5335 ;;
5336
5337 # No compiler: if they passed --enable-bootstrap explicitly, fail
5338 no:*:*:yes)
5339 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5340
5341 # Fail if wrong command line
5342 *)
5343 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5344 ;;
5345esac
5346
ce6c656d
L
5347# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5348# C++98 compiler can still start the bootstrap.
5349if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5350 CXX="$CXX -std=gnu++98"
5351fi
5352
d5f2ee2e
KG
5353# Used for setting $lt_cv_objdir
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5355$as_echo_n "checking for objdir... " >&6; }
5356if test "${lt_cv_objdir+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358else
5359 rm -f .libs 2>/dev/null
5360mkdir .libs 2>/dev/null
5361if test -d .libs; then
5362 lt_cv_objdir=.libs
5363else
5364 # MS-DOS does not allow filenames that begin with a dot.
5365 lt_cv_objdir=_libs
5366fi
5367rmdir .libs 2>/dev/null
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5370$as_echo "$lt_cv_objdir" >&6; }
5371objdir=$lt_cv_objdir
5372
5373
5374
5375
5376
5377cat >>confdefs.h <<_ACEOF
5378#define LT_OBJDIR "$lt_cv_objdir/"
5379_ACEOF
5380
5381
5382
e8a5fa9c 5383# Check for GMP, MPFR and MPC
d9b76ff9 5384gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5385gmpinc=
4b900473 5386have_gmp=no
e8a5fa9c
RW
5387
5388# Specify a location for mpc
5389# check for this first so it ends up on the link line before mpfr.
5390
81ecdfbb
RW
5391# Check whether --with-mpc was given.
5392if test "${with_mpc+set}" = set; then :
5393 withval=$with_mpc;
5394fi
e8a5fa9c 5395
e8a5fa9c 5396
e552509b 5397# Check whether --with-mpc-include was given.
81ecdfbb
RW
5398if test "${with_mpc_include+set}" = set; then :
5399 withval=$with_mpc_include;
5400fi
e8a5fa9c 5401
e8a5fa9c 5402
e552509b 5403# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5404if test "${with_mpc_lib+set}" = set; then :
5405 withval=$with_mpc_lib;
5406fi
e8a5fa9c 5407
e8a5fa9c
RW
5408
5409if test "x$with_mpc" != x; then
d9b76ff9
KG
5410 gmplibs="-L$with_mpc/lib $gmplibs"
5411 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5412fi
5413if test "x$with_mpc_include" != x; then
d9b76ff9 5414 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5415fi
5416if test "x$with_mpc_lib" != x; then
d9b76ff9 5417 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5418fi
5419if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5420 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5421 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5422 # Do not test the mpc version. Assume that it is sufficient, since
5423 # it is in the source tree, and the library has not been built yet
5424 # but it would be included on the link line in the version check below
5425 # hence making the test fail.
d9b76ff9 5426 have_gmp=yes
e8a5fa9c 5427fi
4b900473 5428
11b04d1f
DD
5429# Specify a location for mpfr
5430# check for this first so it ends up on the link line before gmp.
c6b750e1 5431
81ecdfbb
RW
5432# Check whether --with-mpfr-dir was given.
5433if test "${with_mpfr_dir+set}" = set; then :
5434 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5435Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5436fi
5437
11b04d1f
DD
5438
5439
81ecdfbb
RW
5440# Check whether --with-mpfr was given.
5441if test "${with_mpfr+set}" = set; then :
5442 withval=$with_mpfr;
5443fi
c6b750e1 5444
11b04d1f 5445
e552509b 5446# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5447if test "${with_mpfr_include+set}" = set; then :
5448 withval=$with_mpfr_include;
5449fi
c6b750e1 5450
8a0d8a5c 5451
e552509b 5452# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5453if test "${with_mpfr_lib+set}" = set; then :
5454 withval=$with_mpfr_lib;
5455fi
8a0d8a5c 5456
11b04d1f
DD
5457
5458if test "x$with_mpfr" != x; then
5459 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5460 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5461fi
8a0d8a5c 5462if test "x$with_mpfr_include" != x; then
d9b76ff9 5463 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5464fi
5465if test "x$with_mpfr_lib" != x; then
5466 gmplibs="-L$with_mpfr_lib $gmplibs"
5467fi
4b900473 5468if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21 5469 # MPFR v3.1.0 moved the sources into a src sub-directory.
05a13254
NC
5470 if ! test -d ${srcdir}/mpfr/src; then
5471 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
58b1dd21 5472 fi
05a13254
NC
5473 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5474 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5475 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
4b900473
PB
5476 # Do not test the mpfr version. Assume that it is sufficient, since
5477 # it is in the source tree, and the library has not been built yet
5478 # but it would be included on the link line in the version check below
5479 # hence making the test fail.
5480 have_gmp=yes
5481fi
11b04d1f 5482
4b1cb4fe 5483# Specify a location for gmp
c6b750e1 5484
81ecdfbb
RW
5485# Check whether --with-gmp-dir was given.
5486if test "${with_gmp_dir+set}" = set; then :
5487 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5488Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5489fi
5490
4b1cb4fe
DD
5491
5492
81ecdfbb
RW
5493# Check whether --with-gmp was given.
5494if test "${with_gmp+set}" = set; then :
5495 withval=$with_gmp;
5496fi
c6b750e1 5497
4b1cb4fe 5498
e552509b 5499# Check whether --with-gmp-include was given.
81ecdfbb
RW
5500if test "${with_gmp_include+set}" = set; then :
5501 withval=$with_gmp_include;
5502fi
c6b750e1 5503
8a0d8a5c 5504
e552509b 5505# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5506if test "${with_gmp_lib+set}" = set; then :
5507 withval=$with_gmp_lib;
5508fi
8a0d8a5c
PB
5509
5510
4b1cb4fe 5511
11b04d1f
DD
5512if test "x$with_gmp" != x; then
5513 gmplibs="-L$with_gmp/lib $gmplibs"
5514 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5515fi
8a0d8a5c
PB
5516if test "x$with_gmp_include" != x; then
5517 gmpinc="-I$with_gmp_include $gmpinc"
5518fi
5519if test "x$with_gmp_lib" != x; then
5520 gmplibs="-L$with_gmp_lib $gmplibs"
5521fi
4b900473 5522if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5523 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5524 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5525 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5526 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5527 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5528 # Do not test the gmp version. Assume that it is sufficient, since
5529 # it is in the source tree, and the library has not been built yet
5530 # but it would be included on the link line in the version check below
5531 # hence making the test fail.
5532 have_gmp=yes
5533fi
4b1cb4fe 5534
ceb92e78 5535if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5536 have_gmp=yes
5537 saved_CFLAGS="$CFLAGS"
5538 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5539 # Check for the recommended and required versions of GMP.
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5541$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5542
5543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5544/* end confdefs.h. */
5545#include "gmp.h"
5546int
5547main ()
5548{
5549
5550 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5551 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5552 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5553 choke me
5554 #endif
5555
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5562/* end confdefs.h. */
a6b5846e 5563#include <gmp.h>
c6b750e1
DJ
5564int
5565main ()
5566{
4b1cb4fe 5567
a6b5846e
KG
5568 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5569 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5570 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5571 choke me
5572 #endif
c6b750e1
DJ
5573
5574 ;
5575 return 0;
5576}
5577_ACEOF
81ecdfbb
RW
5578if ac_fn_c_try_compile "$LINENO"; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580$as_echo "yes" >&6; }
a6b5846e
KG
5581else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5583$as_echo "buggy but acceptable" >&6; }
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5586else
81ecdfbb
RW
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5589fi
81ecdfbb 5590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5591
e8a5fa9c 5592 # If we have GMP, check the MPFR version.
4b900473 5593 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5594 # Check for the recommended and required versions of MPFR.
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5596$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5598/* end confdefs.h. */
9b134994 5599#include <gmp.h>
4b900473 5600 #include <mpfr.h>
c6b750e1
DJ
5601int
5602main ()
5603{
9b134994 5604
7ec59b9e 5605 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5606 choke me
5607 #endif
c6b750e1
DJ
5608
5609 ;
5610 return 0;
5611}
5612_ACEOF
81ecdfbb
RW
5613if ac_fn_c_try_compile "$LINENO"; then :
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5615/* end confdefs.h. */
4b1cb4fe 5616#include <gmp.h>
4b900473 5617 #include <mpfr.h>
c6b750e1
DJ
5618int
5619main ()
5620{
9dbaa842 5621
a6b5846e 5622 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5623 choke me
5624 #endif
e8a5fa9c
RW
5625
5626 ;
5627 return 0;
5628}
5629_ACEOF
81ecdfbb
RW
5630if ac_fn_c_try_compile "$LINENO"; then :
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5632$as_echo "yes" >&6; }
e8a5fa9c 5633else
81ecdfbb
RW
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5635$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5636fi
81ecdfbb 5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5638else
81ecdfbb
RW
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5641fi
81ecdfbb 5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5643 fi
5644
5645 # Check for the MPC header version.
d9b76ff9 5646 if test x"$have_gmp" = xyes ; then
a6b5846e 5647 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5649$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5651/* end confdefs.h. */
5652#include <mpc.h>
5653int
5654main ()
5655{
5656
a6b5846e
KG
5657 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5658 choke me
5659 #endif
5660
5661 ;
5662 return 0;
5663}
5664_ACEOF
5665if ac_fn_c_try_compile "$LINENO"; then :
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h. */
5668#include <mpc.h>
5669int
5670main ()
5671{
5672
5673 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5674 choke me
5675 #endif
5676
5677 ;
5678 return 0;
5679}
5680_ACEOF
81ecdfbb
RW
5681if ac_fn_c_try_compile "$LINENO"; then :
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5683$as_echo "yes" >&6; }
a6b5846e
KG
5684else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5686$as_echo "buggy but acceptable" >&6; }
5687fi
5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5689else
81ecdfbb 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5691$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5692fi
81ecdfbb 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5694 fi
5695
5696 # Now check the MPFR library.
5697 if test x"$have_gmp" = xyes; then
5698 saved_LIBS="$LIBS"
5699 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5701$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5703/* end confdefs.h. */
d9b76ff9 5704#include <mpc.h>
e8a5fa9c
RW
5705int
5706main ()
5707{
5708
5709 mpfr_t n;
5710 mpfr_t x;
d9b76ff9 5711 mpc_t c;
e8a5fa9c
RW
5712 int t;
5713 mpfr_init (n);
5714 mpfr_init (x);
5715 mpfr_atan2 (n, n, x, GMP_RNDN);
5716 mpfr_erfc (n, x, GMP_RNDN);
5717 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5718 mpfr_clear(n);
5719 mpfr_clear(x);
5720 mpc_init2 (c, 53);
5721 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5722 mpc_cosh (c, c, MPC_RNDNN);
5723 mpc_pow (c, c, c, MPC_RNDNN);
5724 mpc_acosh (c, c, MPC_RNDNN);
5725 mpc_clear (c);
c6b750e1
DJ
5726
5727 ;
5728 return 0;
5729}
5730_ACEOF
81ecdfbb
RW
5731if ac_fn_c_try_link "$LINENO"; then :
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733$as_echo "yes" >&6; }
c6b750e1 5734else
81ecdfbb
RW
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5737fi
81ecdfbb
RW
5738rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5740 LIBS="$saved_LIBS"
5741 fi
5742
4b900473 5743 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5744
a6b5846e
KG
5745# The library versions listed in the error message below should match
5746# the HARD-minimums enforced above.
4b900473 5747 if test x$have_gmp != xyes; then
7ec59b9e 5748 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5749Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5750their locations. Source code for these libraries can be found at
5751their respective hosting sites as well as at
5752ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5753http://gcc.gnu.org/install/prerequisites.html for additional info. If
5754you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5755make sure that you have installed both the libraries and the header
5756files. They may be located in separate packages." "$LINENO" 5
4b900473 5757 fi
9dbaa842
DD
5758fi
5759
e8a5fa9c
RW
5760# Flags needed for both GMP, MPFR and/or MPC.
5761
5762
5763
4b1cb4fe
DD
5764
5765
5766
7ec59b9e 5767
b3676d82 5768# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5769
b3676d82
EB
5770# Check whether --with-stage1-libs was given.
5771if test "${with_stage1_libs+set}" = set; then :
5772 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5773 stage1_libs=
e8a5fa9c 5774 else
b3676d82 5775 stage1_libs=$withval
e8a5fa9c
RW
5776 fi
5777else
68996839 5778 stage1_libs=
81ecdfbb
RW
5779fi
5780
e8a5fa9c
RW
5781
5782
b3676d82 5783# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5784
b3676d82
EB
5785# Check whether --with-stage1-ldflags was given.
5786if test "${with_stage1_ldflags+set}" = set; then :
5787 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5788 stage1_ldflags=
e8a5fa9c 5789 else
b3676d82 5790 stage1_ldflags=$withval
e8a5fa9c
RW
5791 fi
5792else
b3676d82
EB
5793 stage1_ldflags=
5794 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5795 # if supported. But if the user explicitly specified the libraries to use,
5796 # trust that they are doing what they want.
5797 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5798 stage1_ldflags="-static-libstdc++ -static-libgcc"
5799 fi
81ecdfbb
RW
5800fi
5801
e8a5fa9c
RW
5802
5803
68996839 5804# Libraries to use for stage2 and later builds.
e8a5fa9c 5805
81ecdfbb
RW
5806# Check whether --with-boot-libs was given.
5807if test "${with_boot_libs+set}" = set; then :
5808 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5809 poststage1_libs=
5810 else
5811 poststage1_libs=$withval
5812 fi
5813else
68996839 5814 poststage1_libs=
81ecdfbb
RW
5815fi
5816
e8a5fa9c
RW
5817
5818
143754cd
NC
5819# Linker flags to use for stage2 and later builds.
5820
5821# Check whether --with-boot-ldflags was given.
5822if test "${with_boot_ldflags+set}" = set; then :
5823 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5824 poststage1_ldflags=
5825 else
5826 poststage1_ldflags=$withval
5827 fi
5828else
5829 poststage1_ldflags=
4f11b223
ILT
5830 # In stages 2 and 3, default to linking libstdc++ and libgcc
5831 # statically. But if the user explicitly specified the libraries to
5832 # use, trust that they are doing what they want.
5833 if test "$poststage1_libs" = ""; then
143754cd
NC
5834 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5835 fi
5836fi
5837
5838
5839
4849dfd8 5840# GCC GRAPHITE dependency isl.
1b6c0831 5841# Basic setup is inlined here, actual checks are in config/isl.m4
e28c595f
JM
5842
5843
7ec59b9e
L
5844# Check whether --with-isl was given.
5845if test "${with_isl+set}" = set; then :
5846 withval=$with_isl;
81ecdfbb 5847fi
e28c595f 5848
e28c595f 5849
1b6c0831 5850# Treat --without-isl as a request to disable
8e71395b 5851# GRAPHITE support and skip all following checks.
1b6c0831 5852if test "x$with_isl" != "xno"; then
4849dfd8 5853 # Check for isl
8e71395b
L
5854
5855
7ec59b9e
L
5856# Check whether --with-isl-include was given.
5857if test "${with_isl_include+set}" = set; then :
5858 withval=$with_isl_include;
81ecdfbb
RW
5859fi
5860
e28c595f 5861
7ec59b9e
L
5862# Check whether --with-isl-lib was given.
5863if test "${with_isl_lib+set}" = set; then :
5864 withval=$with_isl_lib;
81ecdfbb 5865fi
e28c595f 5866
e28c595f 5867
7ec59b9e
L
5868 # Check whether --enable-isl-version-check was given.
5869if test "${enable_isl_version_check+set}" = set; then :
5870 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5871else
5872 ENABLE_ISL_CHECK=yes
b123da99
SP
5873fi
5874
5875
7ec59b9e
L
5876 # Initialize isllibs and islinc.
5877 case $with_isl in
5878 no)
5879 isllibs=
5880 islinc=
5881 ;;
5882 "" | yes)
5883 ;;
5884 *)
5885 isllibs="-L$with_isl/lib"
5886 islinc="-I$with_isl/include"
5887 ;;
5888 esac
5889 if test "x${with_isl_include}" != x ; then
5890 islinc="-I$with_isl_include"
5891 fi
5892 if test "x${with_isl_lib}" != x; then
5893 isllibs="-L$with_isl_lib"
5894 fi
5895 if test "x${islinc}" = x && test "x${isllibs}" = x \
5896 && test -d ${srcdir}/isl; then
5897 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5898 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5899 ENABLE_ISL_CHECK=no
4849dfd8
NC
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5901$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
7ec59b9e 5902 fi
b123da99 5903
1b6c0831 5904 isllibs="${isllibs} -lisl"
b123da99 5905
e28c595f 5906
b3fc79f8
JBG
5907
5908 if test "${ENABLE_ISL_CHECK}" = yes ; then
5909 _isl_saved_CFLAGS=$CFLAGS
5910 _isl_saved_LDFLAGS=$LDFLAGS
5911 _isl_saved_LIBS=$LIBS
5912
5913 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
4849dfd8
NC
5914 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5915 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
b3fc79f8 5916
52cf9762
NC
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5918$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
1b6c0831 5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b3fc79f8 5920/* end confdefs.h. */
4849dfd8 5921#include <isl/ctx.h>
b3fc79f8
JBG
5922int
5923main ()
5924{
4849dfd8 5925isl_ctx_get_max_operations (isl_ctx_alloc ());
b3fc79f8
JBG
5926 ;
5927 return 0;
5928}
5929_ACEOF
1b6c0831 5930if ac_fn_c_try_link "$LINENO"; then :
b3fc79f8
JBG
5931 gcc_cv_isl=yes
5932else
5933 gcc_cv_isl=no
5934fi
1b6c0831
L
5935rm -f core conftest.err conftest.$ac_objext \
5936 conftest$ac_exeext conftest.$ac_ext
b3fc79f8
JBG
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5938$as_echo "$gcc_cv_isl" >&6; }
5939
4849dfd8 5940 if test "${gcc_cv_isl}" = no ; then
52cf9762
NC
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5942$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
5943 fi
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5946$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h. */
5949#include <isl/schedule.h>
5950int
5951main ()
5952{
5953isl_options_set_schedule_serialize_sccs (NULL, 0);
5954 ;
5955 return 0;
5956}
5957_ACEOF
5958if ac_fn_c_try_link "$LINENO"; then :
5959 ac_has_isl_options_set_schedule_serialize_sccs=yes
5960else
5961 ac_has_isl_options_set_schedule_serialize_sccs=no
5962fi
5963rm -f core conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5966$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5967
5968 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5969 islver="0.15"
5970
4849dfd8
NC
5971 fi
5972
b3fc79f8
JBG
5973 CFLAGS=$_isl_saved_CFLAGS
5974 LDFLAGS=$_isl_saved_LDFLAGS
5975 LIBS=$_isl_saved_LIBS
5976 fi
5977
5978
e28c595f 5979
e28c595f 5980
7ec59b9e
L
5981
5982
7ec59b9e
L
5983 if test "x${with_isl}" = xno; then
5984 graphite_requested=no
5985 elif test "x${with_isl}" != x \
5986 || test "x${with_isl_include}" != x \
5987 || test "x${with_isl_lib}" != x ; then
5988 graphite_requested=yes
5989 else
5990 graphite_requested=no
b123da99 5991 fi
e28c595f 5992
e28c595f
JM
5993
5994
7ec59b9e
L
5995 if test "${gcc_cv_isl}" = no ; then
5996 isllibs=
5997 islinc=
5998 fi
e28c595f 5999
7ec59b9e
L
6000 if test "${graphite_requested}" = yes \
6001 && test "x${isllibs}" = x \
6002 && test "x${islinc}" = x ; then
e28c595f 6003
4849dfd8 6004 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
7ec59b9e 6005 fi
e552509b 6006
e28c595f 6007
e552509b
ILT
6008fi
6009
4849dfd8 6010# If the isl check failed, disable builds of in-tree variant of isl
8e71395b 6011if test "x$with_isl" = xno ||
8e71395b 6012 test "x$gcc_cv_isl" = xno; then
1b6c0831 6013 noconfigdirs="$noconfigdirs isl"
8e71395b 6014 islinc=
7ec59b9e
L
6015fi
6016
8e71395b
L
6017
6018
6019
700d40ca
ILT
6020# Check for LTO support.
6021# Check whether --enable-lto was given.
6022if test "${enable_lto+set}" = set; then :
6023 enableval=$enable_lto; enable_lto=$enableval
6024else
6025 enable_lto=yes; default_enable_lto=yes
6026fi
6027
6028
143754cd 6029
e49e5c92
DK
6030
6031
6032target_elf=no
6033case $target in
6034 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6035 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
1b6c0831
L
6036 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6037 nvptx-*-none)
e49e5c92
DK
6038 target_elf=no
6039 ;;
6040 *)
6041 target_elf=yes
6042 ;;
6043esac
6044
6045if test $target_elf = yes; then :
74cea91b
DK
6046 # ELF platforms build the lto-plugin always.
6047 build_lto_plugin=yes
e49e5c92 6048
e49e5c92
DK
6049else
6050 if test x"$default_enable_lto" = x"yes" ; then
29821356 6051 case $target in
52cf9762 6052 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
74cea91b 6053 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6054 *) enable_lto=no ;;
6055 esac
e49e5c92 6056 else
29821356
RW
6057 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6058 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6059 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6060 # warn during gcc/ subconfigure; unless you're bootstrapping with
6061 # -flto it won't be needed until after installation anyway.
6062 case $target in
52cf9762 6063 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
e49e5c92
DK
6064 *) if test x"$enable_lto" = x"yes"; then
6065 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6066 fi
6067 ;;
6068 esac
6069 fi
a8eb3f0a 6070 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6071 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6072 case $target in
74cea91b 6073 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6074 *) ;;
6075 esac
74cea91b 6076
e49e5c92
DK
6077fi
6078
700d40ca 6079
1b6c0831
L
6080# Check whether --enable-linker-plugin-configure-flags was given.
6081if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6082 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6083else
6084 extra_linker_plugin_configure_flags=
6085fi
6086
6087
6088# Check whether --enable-linker-plugin-flags was given.
6089if test "${enable_linker_plugin_flags+set}" = set; then :
6090 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6091else
6092 extra_linker_plugin_flags=
6093fi
6094
6095
6096
e28c595f 6097
7ec59b9e 6098# By default, C and C++ are the only stage 1 languages.
9b134994 6099stage1_languages=,c,
1d39f329 6100
e8a5fa9c 6101# Target libraries that we bootstrap.
2aa2364a 6102bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6103
9e07f89d
NN
6104# Figure out what language subdirectories are present.
6105# Look if the user specified --enable-languages="..."; if not, use
6106# the environment variable $LANGUAGES if defined. $LANGUAGES might
6107# go away some day.
6108# NB: embedded tabs in this IF block -- do not untabify
6109if test -d ${srcdir}/gcc; then
6110 if test x"${enable_languages+set}" != xset; then
6111 if test x"${LANGUAGES+set}" = xset; then
6112 enable_languages="${LANGUAGES}"
136bb21f 6113 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
9e07f89d
NN
6114 else
6115 enable_languages=all
6116 fi
6117 else
6118 if test x"${enable_languages}" = x ||
6119 test x"${enable_languages}" = xyes;
6120 then
136bb21f 6121 echo configure.ac: --enable-languages needs at least one language argument 1>&2
9e07f89d
NN
6122 exit 1
6123 fi
6124 fi
6125 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6126
096f7d00
DE
6127 # 'f95' is the old name for the 'fortran' language. We issue a warning
6128 # and make the substitution.
6129 case ,${enable_languages}, in
6130 *,f95,*)
136bb21f 6131 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
096f7d00
DE
6132 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6133 ;;
6134 esac
6135
7ec59b9e
L
6136 # If bootstrapping, C++ must be enabled.
6137 case ",$enable_languages,:$enable_bootstrap" in
6138 *,c++,*:*) ;;
6139 *:yes)
ffdd6afc
ILT
6140 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6141 enable_languages="${enable_languages},c++"
6142 else
7ec59b9e 6143 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6144 fi
6145 ;;
6146 esac
6147
9e07f89d
NN
6148 # First scan to see if an enabled language requires some other language.
6149 # We assume that a given config-lang.in will list all the language
6150 # front ends it requires, even if some are required indirectly.
6151 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6152 case ${lang_frag} in
6153 ..) ;;
6154 # The odd quoting in the next line works around
6155 # an apparent bug in bash 1.12 on linux.
6156 ${srcdir}/gcc/[*]/config-lang.in) ;;
6157 *)
e552509b
ILT
6158 # From the config-lang.in, get $language, $lang_requires, and
6159 # $lang_requires_boot_languages.
9e07f89d
NN
6160 language=
6161 lang_requires=
e552509b 6162 lang_requires_boot_languages=
9e07f89d 6163 . ${lang_frag}
e552509b 6164 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6165 case ,${enable_languages}, in
6166 *,$other,*) ;;
6167 *,all,*) ;;
6168 *,$language,*)
6169 echo " \`$other' language required by \`$language'; enabling" 1>&2
6170 enable_languages="${enable_languages},${other}"
6171 ;;
6172 esac
6173 done
e552509b
ILT
6174 for other in ${lang_requires_boot_languages} ; do
6175 if test "$other" != "c"; then
6176 case ,${enable_stage1_languages}, in
6177 *,$other,*) ;;
6178 *,all,*) ;;
6179 *)
6180 case ,${enable_languages}, in
6181 *,$language,*)
6182 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6183 enable_stage1_languages="$enable_stage1_languages,${other}"
6184 ;;
6185 esac
6186 ;;
6187 esac
6188 fi
6189 done
9e07f89d
NN
6190 ;;
6191 esac
6192 done
6193
9b134994 6194 new_enable_languages=,c,
700d40ca
ILT
6195
6196 # If LTO is enabled, add the LTO front end.
700d40ca 6197 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6198 case ,${enable_languages}, in
6199 *,lto,*) ;;
6200 *) enable_languages="${enable_languages},lto" ;;
6201 esac
a8eb3f0a 6202 if test "${build_lto_plugin}" = "yes" ; then
700d40ca 6203 configdirs="$configdirs lto-plugin"
700d40ca
ILT
6204 fi
6205 fi
6206
1b6c0831
L
6207 # If we're building an offloading compiler, add the LTO front end.
6208 if test x"$enable_as_accelerator_for" != x ; then
6209 case ,${enable_languages}, in
6210 *,lto,*) ;;
6211 *) enable_languages="${enable_languages},lto" ;;
6212 esac
6213 fi
700d40ca 6214
9e07f89d 6215 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6216 potential_languages=,c,
9e07f89d 6217
9e1a94f4
ILT
6218 enabled_target_libs=
6219 disabled_target_libs=
6220
9e07f89d
NN
6221 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6222 case ${lang_frag} in
6223 ..) ;;
6224 # The odd quoting in the next line works around
6225 # an apparent bug in bash 1.12 on linux.
6226 ${srcdir}/gcc/[*]/config-lang.in) ;;
6227 *)
c6b750e1 6228 # From the config-lang.in, get $language, $target_libs,
1d39f329 6229 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6230 language=
6231 target_libs=
6232 lang_dirs=
64ce424c 6233 subdir_requires=
9b134994
PB
6234 boot_language=no
6235 build_by_default=yes
9e07f89d 6236 . ${lang_frag}
9b134994
PB
6237 if test x${language} = x; then
6238 echo "${lang_frag} doesn't set \$language." 1>&2
6239 exit 1
6240 fi
6241
ffdd6afc 6242 if test "$language" = "c++"; then
7ec59b9e 6243 boot_language=yes
e8a5fa9c
RW
6244 fi
6245
8e71395b 6246 add_this_lang=no
9b134994
PB
6247 case ,${enable_languages}, in
6248 *,${language},*)
7ec59b9e
L
6249 # Language was explicitly selected; include it
6250 # unless it is C, which is enabled by default.
6251 if test "$language" != "c"; then
6252 add_this_lang=yes
6253 fi
9e07f89d 6254 ;;
9b134994
PB
6255 *,all,*)
6256 # 'all' was selected, select it if it is a default language
8e71395b
L
6257 if test "$language" != "c"; then
6258 add_this_lang=${build_by_default}
6259 fi
9e07f89d
NN
6260 ;;
6261 esac
4b1cb4fe 6262
64ce424c 6263 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6264 for i in $subdir_requires; do
3d3adb43 6265 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6266 case ,${enable_languages}, in
6267 *,${language},*)
6268 # Specifically requested language; tell them.
81ecdfbb 6269 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6270 ;;
6271 *)
6272 # Silently disable.
9b134994 6273 add_this_lang=unsupported
64ce424c
PB
6274 ;;
6275 esac
6276 done
6277
9b134994
PB
6278 # Disable Ada if no preexisting GNAT is available.
6279 case ,${enable_languages},:${language}:${have_gnat} in
6280 *,${language},*:ada:no)
6281 # Specifically requested language; tell them.
81ecdfbb 6282 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6283 ;;
6284 *:ada:no)
6285 # Silently disable.
6286 add_this_lang=unsupported
6287 ;;
6288 esac
6289
59f7ec45
HPN
6290 # Disable a language that is unsupported by the target.
6291 case " $unsupported_languages " in
6292 *" $language "*)
9b134994 6293 add_this_lang=unsupported
59f7ec45
HPN
6294 ;;
6295 esac
6296
4b1cb4fe 6297 case $add_this_lang in
9b134994 6298 unsupported)
9e07f89d 6299 # Remove language-dependent dirs.
9e1a94f4
ILT
6300 disabled_target_libs="$disabled_target_libs $target_libs"
6301 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6302 ;;
9b134994
PB
6303 no)
6304 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6305 disabled_target_libs="$disabled_target_libs $target_libs"
6306 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6307 potential_languages="${potential_languages}${language},"
6308 ;;
6309 yes)
6310 new_enable_languages="${new_enable_languages}${language},"
6311 potential_languages="${potential_languages}${language},"
1d39f329 6312 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6313 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6314 case "${boot_language}:,$enable_stage1_languages," in
6315 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6316 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6317 case ",$stage1_languages," in
6318 *,$language,* | ,yes, | ,all,) ;;
6319 *) stage1_languages="${stage1_languages}${language}," ;;
6320 esac
e8a5fa9c
RW
6321 # We need to bootstrap any supporting libraries.
6322 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6323 ;;
6324 esac
6325 ;;
9e07f89d
NN
6326 esac
6327 ;;
6328 esac
6329 done
6330
9e1a94f4
ILT
6331 # Add target libraries which are only needed for disabled languages
6332 # to noconfigdirs.
6333 if test -n "$disabled_target_libs"; then
6334 for dir in $disabled_target_libs; do
6335 case " $enabled_target_libs " in
6336 *" ${dir} "*) ;;
6337 *) noconfigdirs="$noconfigdirs $dir" ;;
6338 esac
6339 done
6340 fi
6341
81ecdfbb
RW
6342 # Check whether --enable-stage1-languages was given.
6343if test "${enable_stage1_languages+set}" = set; then :
6344 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6345 ,no,|,,)
6346 # Set it to something that will have no effect in the loop below
6347 enable_stage1_languages=c ;;
6348 ,yes,)
6349 enable_stage1_languages=`echo $new_enable_languages | \
6350 sed -e "s/^,//" -e "s/,$//" ` ;;
6351 *,all,*)
6352 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6353 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6354 esac
6355
6356 # Add "good" languages from enable_stage1_languages to stage1_languages,
6357 # while "bad" languages go in missing_languages. Leave no duplicates.
6358 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6359 case $potential_languages in
6360 *,$i,*)
6361 case $stage1_languages in
6362 *,$i,*) ;;
6363 *) stage1_languages="$stage1_languages$i," ;;
6364 esac ;;
6365 *)
6366 case $missing_languages in
6367 *,$i,*) ;;
6368 *) missing_languages="$missing_languages$i," ;;
6369 esac ;;
6370 esac
6371 done
81ecdfbb
RW
6372fi
6373
9b134994
PB
6374
6375 # Remove leading/trailing commas that were added for simplicity
6376 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6377 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6378 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6379 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6380
9e07f89d 6381 if test "x$missing_languages" != x; then
81ecdfbb 6382 as_fn_error "
27258dd4 6383The following requested languages could not be built: ${missing_languages}
81ecdfbb 6384Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6385 fi
9e07f89d
NN
6386 if test "x$new_enable_languages" != "x$enable_languages"; then
6387 echo The following languages will be built: ${new_enable_languages}
9b134994 6388 enable_languages="$new_enable_languages"
9e07f89d 6389 fi
9b134994 6390
c6b750e1 6391
81ec575a 6392 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6393fi
6394
a6df5a19
PB
6395# Handle --disable-<component> generically.
6396for dir in $configdirs $build_configdirs $target_configdirs ; do
6397 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6398 varname=`echo $dirname | sed -e s/+/_/g`
6399 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6400 noconfigdirs="$noconfigdirs $dir"
6401 fi
6402done
6403
4f0ef2d8 6404# Check for Boehm's garbage collector
81ecdfbb
RW
6405# Check whether --enable-objc-gc was given.
6406if test "${enable_objc_gc+set}" = set; then :
05a13254 6407 enableval=$enable_objc_gc;
81ecdfbb
RW
6408fi
6409
4f0ef2d8 6410
05a13254
NC
6411# Check whether --with-target-bdw-gc was given.
6412if test "${with_target_bdw_gc+set}" = set; then :
6413 withval=$with_target_bdw_gc;
6414fi
6415
6416
6417# Check whether --with-target-bdw-gc-include was given.
6418if test "${with_target_bdw_gc_include+set}" = set; then :
6419 withval=$with_target_bdw_gc_include;
6420fi
6421
6422
6423# Check whether --with-target-bdw-gc-lib was given.
6424if test "${with_target_bdw_gc_lib+set}" = set; then :
6425 withval=$with_target_bdw_gc_lib;
6426fi
6427
6428
6429case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6431$as_echo_n "checking for bdw garbage collector... " >&6; }
6432 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6434$as_echo "using bdw-gc in default locations" >&6; }
6435 else
6436 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6437 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6438 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6439 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6442$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
d42c4017 6443 fi
05a13254 6444 fi
4f0ef2d8
CD
6445esac
6446
1b6c0831 6447# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
7ec59b9e 6448case ,${enable_languages}, in
1b6c0831
L
6449 *,c++,*)
6450 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6451 case "${noconfigdirs}" in
6452 *target-libstdc++-v3*)
6453 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6454 ;;
6455 *) ;;
6456 esac
6457 ;;
7ec59b9e 6458 *)
1b6c0831 6459 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6460 ;;
6461esac
6462
caeba88f
AL
6463# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6464# $build_configdirs and $target_configdirs.
9e07f89d
NN
6465# If we have the source for $noconfigdirs entries, add them to $notsupp.
6466
6467notsupp=""
6468for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6470 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6472 if test -r $srcdir/$dirname/configure ; then
6473 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 true
6475 else
6476 notsupp="$notsupp $dir"
6477 fi
6478 fi
6479 fi
caeba88f
AL
6480 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6482 if test -r $srcdir/$dirname/configure ; then
6483 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 true
6485 else
6486 notsupp="$notsupp $dir"
6487 fi
6488 fi
6489 fi
9e07f89d
NN
6490 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6492 if test -r $srcdir/$dirname/configure ; then
6493 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494 true
6495 else
6496 notsupp="$notsupp $dir"
6497 fi
6498 fi
6499 fi
6500done
6501
9e07f89d
NN
6502# Quietly strip out all directories which aren't configurable in this tree.
6503# This relies on all configurable subdirectories being autoconfiscated, which
6504# is now the case.
6a9cf61e
PB
6505build_configdirs_all="$build_configdirs"
6506build_configdirs=
6507for i in ${build_configdirs_all} ; do
c6b750e1 6508 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6509 if test -f ${srcdir}/$j/configure ; then
6510 build_configdirs="${build_configdirs} $i"
6511 fi
6512done
6513
9e07f89d
NN
6514configdirs_all="$configdirs"
6515configdirs=
6516for i in ${configdirs_all} ; do
6517 if test -f ${srcdir}/$i/configure ; then
6518 configdirs="${configdirs} $i"
6519 fi
6520done
6a9cf61e 6521
9e07f89d
NN
6522target_configdirs_all="$target_configdirs"
6523target_configdirs=
6524for i in ${target_configdirs_all} ; do
c6b750e1 6525 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6526 if test -f ${srcdir}/$j/configure ; then
6527 target_configdirs="${target_configdirs} $i"
6528 fi
6529done
6530
1b6c0831
L
6531# libiberty-linker-plugin is special: it doesn't have its own source directory,
6532# so we have to add it after the preceding checks.
6533if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6534then
6535 case " $configdirs " in
6536 *" libiberty "*)
6537 # If we can build libiberty, we can also build libiberty-linker-plugin.
6538 configdirs="$configdirs libiberty-linker-plugin"
6539 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6540 --with-libiberty=../libiberty-linker-plugin";;
6541 *)
6542 as_fn_error "libiberty missing" "$LINENO" 5;;
6543 esac
6544fi
6545
6546# Sometimes we have special requirements for the host libiberty.
6547extra_host_libiberty_configure_flags=
e81d5d05 6548extra_host_zlib_configure_flags=
1b6c0831
L
6549case " $configdirs " in
6550 *" lto-plugin "* | *" libcc1 "*)
6551 # When these are to be built as shared libraries, the same applies to
6552 # libiberty.
6553 extra_host_libiberty_configure_flags=--enable-shared
6554 ;;
e81d5d05
L
6555 *" bfd "*)
6556 # When bfd is to be built as a shared library, the same applies to
6557 # zlib.
6558 if test "$enable_shared" = "yes"; then
6559 extra_host_zlib_configure_flags=--enable-host-shared
6560 fi
6561 ;;
1b6c0831
L
6562esac
6563
6564
e81d5d05 6565
9e07f89d
NN
6566# Produce a warning message for the subdirs we can't configure.
6567# This isn't especially interesting in the Cygnus tree, but in the individual
6568# FSF releases, it's important to let people know when their machine isn't
6569# supported by the one or two programs in a package.
6570
6571if test -n "${notsupp}" && test -z "${norecursion}" ; then
6572 # If $appdirs is non-empty, at least one of those directories must still
6573 # be configured, or we error out. (E.g., if the gas release supports a
6574 # specified target in some subdirs but not the gas subdir, we shouldn't
6575 # pretend that all is well.)
6576 if test -n "$appdirs" ; then
6577 for dir in $appdirs ; do
6578 if test -r $dir/Makefile.in ; then
6579 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6580 appdirs=""
6581 break
6582 fi
6a9cf61e 6583 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6584 appdirs=""
6585 break
6586 fi
6587 fi
6588 done
6589 if test -n "$appdirs" ; then
6590 echo "*** This configuration is not supported by this package." 1>&2
6591 exit 1
6592 fi
6593 fi
6594 # Okay, some application will build, or we don't care to check. Still
6595 # notify of subdirs not getting built.
6596 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6597 echo " ${notsupp}" 1>&2
6598 echo " (Any other directories should still work fine.)" 1>&2
6599fi
6600
6601case "$host" in
6602 *msdosdjgpp*)
6603 enable_gdbtk=no ;;
6604esac
6605
18f6b6ee
PB
6606# To find our prefix, in gcc_cv_tool_prefix.
6607
6608# The user is always right.
6609if test "${PATH_SEPARATOR+set}" != set; then
6610 echo "#! /bin/sh" >conf$$.sh
6611 echo "exit 0" >>conf$$.sh
6612 chmod +x conf$$.sh
6613 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6614 PATH_SEPARATOR=';'
6615 else
6616 PATH_SEPARATOR=:
6617 fi
6618 rm -f conf$$.sh
6619fi
6620
6621
6622
6623if test "x$exec_prefix" = xNONE; then
6624 if test "x$prefix" = xNONE; then
6625 gcc_cv_tool_prefix=$ac_default_prefix
6626 else
6627 gcc_cv_tool_prefix=$prefix
6628 fi
6629else
6630 gcc_cv_tool_prefix=$exec_prefix
6631fi
6632
6633# If there is no compiler in the tree, use the PATH only. In any
6634# case, if there is no compiler in the tree nobody should use
6635# AS_FOR_TARGET and LD_FOR_TARGET.
6636if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6637 gcc_version=`cat $srcdir/gcc/BASE-VER`
6638 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6639 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6640 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6641 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6642 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6643 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6644else
6645 gcc_cv_tool_dirs=
6646fi
6647
6648if test x$build = x$target && test -n "$md_exec_prefix"; then
6649 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6650fi
6651
6652
6653
9e07f89d
NN
6654copy_dirs=
6655
c6b750e1 6656
81ecdfbb
RW
6657# Check whether --with-build-sysroot was given.
6658if test "${with_build_sysroot+set}" = set; then :
6659 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6660 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6661 fi
6662else
6663 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6664fi
a19b6204
MM
6665
6666
8a6ee3ab 6667
81ecdfbb
RW
6668
6669# Check whether --with-debug-prefix-map was given.
6670if test "${with_debug_prefix_map+set}" = set; then :
6671 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6672 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6673 for debug_map in $withval; do
6674 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6675 done
6676 fi
6677else
6678 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6679fi
6680
8a6ee3ab
JM
6681
6682
7f6ef0c0
PB
6683# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6684# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6685# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6686# We want to ensure that TARGET libraries (which we know are built with
6687# gcc) are built with "-O2 -g", so include those options when setting
6688# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6689if test "x$CFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6690 if test "x${is_cross_compiler}" = xyes; then
6691 CFLAGS_FOR_TARGET="-g -O2"
6692 else
6693 CFLAGS_FOR_TARGET=$CFLAGS
6694 case " $CFLAGS " in
6695 *" -O2 "*) ;;
6696 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6697 esac
6698 case " $CFLAGS " in
6699 *" -g "* | *" -g3 "*) ;;
6700 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6701 esac
6702 fi
7f6ef0c0
PB
6703fi
6704
6705
6706if test "x$CXXFLAGS_FOR_TARGET" = x; then
1b6c0831
L
6707 if test "x${is_cross_compiler}" = xyes; then
6708 CXXFLAGS_FOR_TARGET="-g -O2"
6709 else
6710 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6711 case " $CXXFLAGS " in
6712 *" -O2 "*) ;;
6713 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6714 esac
6715 case " $CXXFLAGS " in
6716 *" -g "* | *" -g3 "*) ;;
6717 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6718 esac
6719 fi
7f6ef0c0
PB
6720fi
6721
6722
91c1f14c
DK
6723
6724
9e07f89d
NN
6725# Handle --with-headers=XXX. If the value is not "yes", the contents of
6726# the named directory are copied to $(tooldir)/sys-include.
6727if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6728 if test x${is_cross_compiler} = xno ; then
6729 echo 1>&2 '***' --with-headers is only supported when cross compiling
6730 exit 1
6731 fi
6732 if test x"${with_headers}" != xyes ; then
18f6b6ee 6733 x=${gcc_cv_tool_prefix}
c6b750e1 6734 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6735 fi
6736fi
6737
6738# Handle --with-libs=XXX. If the value is not "yes", the contents of
6739# the name directories are copied to $(tooldir)/lib. Multiple directories
6740# are permitted.
6741if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6742 if test x${is_cross_compiler} = xno ; then
6743 echo 1>&2 '***' --with-libs is only supported when cross compiling
6744 exit 1
6745 fi
6746 if test x"${with_libs}" != xyes ; then
6747 # Copy the libraries in reverse order, so that files in the first named
6748 # library override files in subsequent libraries.
18f6b6ee 6749 x=${gcc_cv_tool_prefix}
9e07f89d 6750 for l in ${with_libs}; do
c6b750e1 6751 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6752 done
6753 fi
6754fi
6755
700d40ca 6756# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6757#
6758# This is done by determining whether or not the appropriate directory
6759# is available, and by checking whether or not specific configurations
6760# have requested that this magic not happen.
c6b750e1
DJ
6761#
6762# The command line options always override the explicit settings in
136bb21f 6763# configure.ac, and the settings in configure.ac override this magic.
2429c060 6764#
c6b750e1 6765# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6766# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6767# --without-gnu-ld options for the configure script. Similarly, if
6768# the default is to use the included zlib and you don't want to do that,
6769# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6770
6771if test x${use_gnu_as} = x &&
6772 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6773 with_gnu_as=yes
6774 extra_host_args="$extra_host_args --with-gnu-as"
6775fi
6776
6777if test x${use_gnu_ld} = x &&
93f9b408 6778 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6779 with_gnu_ld=yes
6780 extra_host_args="$extra_host_args --with-gnu-ld"
6781fi
6782
700d40ca
ILT
6783if test x${use_included_zlib} = x &&
6784 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6785 :
6786else
6787 with_system_zlib=yes
6788 extra_host_args="$extra_host_args --with-system-zlib"
6789fi
6790
2429c060
PB
6791# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6792# can detect this case.
6793
6794if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6795 with_newlib=yes
6796 extra_host_args="$extra_host_args --with-newlib"
6797fi
6798
9e07f89d
NN
6799# Handle ${copy_dirs}
6800set fnord ${copy_dirs}
6801shift
6802while test $# != 0 ; do
6803 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6804 :
6805 else
6806 echo Copying $1 to $2
6807
6808 # Use the install script to create the directory and all required
6809 # parent directories.
6810 if test -d $2 ; then
6811 :
6812 else
6813 echo >config.temp
6814 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6815 fi
6816
6817 # Copy the directory, assuming we have tar.
6818 # FIXME: Should we use B in the second tar? Not all systems support it.
6819 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6820
6821 # It is the responsibility of the user to correctly adjust all
6822 # symlinks. If somebody can figure out how to handle them correctly
6823 # here, feel free to add the code.
6824
6825 echo $1 > $2/COPIED
6826 fi
6827 shift; shift
6828done
6829
2429c060
PB
6830# Determine a target-dependent exec_prefix that the installed
6831# gcc will search in. Keep this list sorted by triplet, with
6832# the *-*-osname triplets last.
6833md_exec_prefix=
6834case "${target}" in
521ec477 6835 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6836 md_exec_prefix=/dev/env/DJDIR/bin
6837 ;;
2429c060 6838 *-*-hpux* | \
2429c060 6839 *-*-nto-qnx* | \
1f111696 6840 *-*-solaris2*)
2429c060
PB
6841 md_exec_prefix=/usr/ccs/bin
6842 ;;
6843esac
6844
a0da8069
NN
6845extra_arflags_for_target=
6846extra_nmflags_for_target=
6847extra_ranlibflags_for_target=
6848target_makefile_frag=/dev/null
6849case "${target}" in
77d7106f
AM
6850 spu-*-*)
6851 target_makefile_frag="config/mt-spu"
6852 ;;
a9d58c06 6853 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
429acdec
RS
6854 target_makefile_frag="config/mt-sde"
6855 ;;
f3b1e08e
RS
6856 mipsisa*-*-elfoabi*)
6857 target_makefile_frag="config/mt-mips-elfoabi"
6858 ;;
e7c8859c
RS
6859 mips*-*-*linux* | mips*-*-gnu*)
6860 target_makefile_frag="config/mt-mips-gnu"
6861 ;;
d9e042ac
SL
6862 nios2-*-elf*)
6863 target_makefile_frag="config/mt-nios2-elf"
6864 ;;
29383458 6865 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6866 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6867 ;;
6868 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6869 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6870 # commands to handle both 32-bit and 64-bit objects. These flags are
6871 # harmless if we're using GNU nm or ar.
6872 extra_arflags_for_target=" -X32_64"
6873 extra_nmflags_for_target=" -B -X32_64"
6874 ;;
a0da8069
NN
6875esac
6876
6877alphaieee_frag=/dev/null
6878case $target in
6879 alpha*-*-*)
6880 # This just makes sure to use the -mieee option to build target libs.
6881 # This should probably be set individually by each library.
6882 alphaieee_frag="config/mt-alphaieee"
6883 ;;
6884esac
6885
6886# If --enable-target-optspace always use -Os instead of -O2 to build
6887# the target libraries, similarly if it is not specified, use -Os
6888# on selected platforms.
6889ospace_frag=/dev/null
6890case "${enable_target_optspace}:${target}" in
6891 yes:*)
6892 ospace_frag="config/mt-ospace"
6893 ;;
6894 :d30v-*)
6895 ospace_frag="config/mt-d30v"
6896 ;;
16beab3d 6897 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
a0da8069
NN
6898 ospace_frag="config/mt-ospace"
6899 ;;
6900 no:* | :*)
6901 ;;
6902 *)
6903 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6904 ;;
6905esac
6906
a0da8069
NN
6907# Some systems (e.g., one of the i386-aix systems the gas testers are
6908# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6909tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6910build_tooldir=${tooldir}
6911
a0da8069
NN
6912# Create a .gdbinit file which runs the one in srcdir
6913# and tells GDB to look there for source files.
6914
6915if test -r ${srcdir}/.gdbinit ; then
6916 case ${srcdir} in
6917 .) ;;
6918 *) cat > ./.gdbinit <<EOF
6919# ${NO_EDIT}
6920dir ${srcdir}
6921dir .
6922source ${srcdir}/.gdbinit
6923EOF
6924 ;;
6925 esac
6926fi
6927
a0da8069
NN
6928# Make sure that the compiler is able to generate an executable. If it
6929# can't, we are probably in trouble. We don't care whether we can run the
6930# executable--we might be using a cross compiler--we only care whether it
6931# can be created. At this point the main configure script has set CC.
6932we_are_ok=no
6933echo "int main () { return 0; }" > conftest.c
6934${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6935if test $? = 0 ; then
6936 if test -s conftest || test -s conftest.exe ; then
6937 we_are_ok=yes
6938 fi
c6b750e1 6939fi
a0da8069
NN
6940case $we_are_ok in
6941 no)
6942 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6943 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6944 rm -f conftest*
6945 exit 1
6946 ;;
6947esac
6948rm -f conftest*
6949
3bbd2f8f 6950# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6951case "${host}" in
6952 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 6953 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6954 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6955 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6956esac
6957
3bbd2f8f 6958# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6959# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6960# built executables to PATH.
3bbd2f8f
AL
6961if test "$RPATH_ENVVAR" = PATH; then
6962 GCC_SHLIB_SUBDIR=/shlib
6963else
6964 GCC_SHLIB_SUBDIR=
6965fi
6966
730af8ee 6967# Adjust the toplevel makefile according to whether bootstrap was selected.
6968case $enable_bootstrap in
6969 yes)
6970 bootstrap_suffix=bootstrap
6971 BUILD_CONFIG=bootstrap-debug
6972 ;;
6973 no)
6974 bootstrap_suffix=no-bootstrap
6975 BUILD_CONFIG=
6976 ;;
6977esac
6978
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6980$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6981
6982
6983# Check whether --with-build-config was given.
6984if test "${with_build_config+set}" = set; then :
6985 withval=$with_build_config; case $with_build_config in
6986 yes) with_build_config= ;;
6987 no) with_build_config= BUILD_CONFIG= ;;
6988 esac
6989fi
6990
6991
6992if test "x${with_build_config}" != x; then
6993 BUILD_CONFIG=$with_build_config
6994else
6995 case $BUILD_CONFIG in
6996 bootstrap-debug)
6997 if echo "int f (void) { return 0; }" > conftest.c &&
6998 ${CC} -c conftest.c &&
6999 mv conftest.o conftest.o.g0 &&
7000 ${CC} -c -g conftest.c &&
7001 mv conftest.o conftest.o.g &&
7002 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7003 :
7004 else
7005 BUILD_CONFIG=
7006 fi
7007 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7008 ;;
7009 esac
7010fi
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7012$as_echo "$BUILD_CONFIG" >&6; }
7013
7014
7015# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7017$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7018# Check whether --enable-vtable-verify was given.
7019if test "${enable_vtable_verify+set}" = set; then :
7020 enableval=$enable_vtable_verify; case "$enableval" in
7021 yes) enable_vtable_verify=yes ;;
7022 no) enable_vtable_verify=no ;;
7023 *) enable_vtable_verify=no;;
7024 esac
7025else
7026 enable_vtable_verify=no
7027fi
7028
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7030$as_echo "$enable_vtable_verify" >&6; }
7031
a0da8069
NN
7032# Record target_configdirs and the configure arguments for target and
7033# build configuration in Makefile.
7034target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7035build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
201f096f 7036bootstrap_fixincludes=no
a0da8069 7037
2aa2364a
JR
7038# If we are building libgomp, bootstrap it.
7039if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7040 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7041fi
7042
730af8ee 7043# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7044# or bootstrap-ubsan, bootstrap it.
7045if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7046 case "$BUILD_CONFIG" in
7047 *bootstrap-asan* | *bootstrap-ubsan* )
7048 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
201f096f 7049 bootstrap_fixincludes=yes
730af8ee 7050 ;;
7051 esac
5eb08693
L
7052fi
7053
730af8ee 7054# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7055if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7056 test "$enable_vtable_verify" != no; then
95e43135
JBG
7057 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7058fi
7059
05a13254
NC
7060# If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7061# bootstrap it.
1b6c0831 7062if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
05a13254
NC
7063 case "$BUILD_CONFIG" in
7064 *bootstrap-mpx* )
7065 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7066 ;;
7067 esac
1b6c0831
L
7068fi
7069
a0da8069
NN
7070# Determine whether gdb needs tk/tcl or not.
7071# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7072# and in that case we want gdb to be built without tk. Ugh!
7073# In fact I believe gdb is the *only* package directly dependent on tk,
7074# so we should be able to put the 'maybe's in unconditionally and
7075# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7076# 100% sure that that's safe though.
c180f501 7077
675c6968 7078gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7079case "$enable_gdbtk" in
7080 no)
7081 GDB_TK="" ;;
c180f501
AC
7082 yes)
7083 GDB_TK="${gdb_tk}" ;;
a0da8069 7084 *)
c180f501
AC
7085 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7086 # distro. Eventually someone will fix this and move Insight, nee
7087 # gdbtk to a separate directory.
7088 if test -d ${srcdir}/gdb/gdbtk ; then
7089 GDB_TK="${gdb_tk}"
7090 else
7091 GDB_TK=""
7092 fi
7093 ;;
a0da8069 7094esac
907be67c
DJ
7095CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7096INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7097
6bd3dfaa 7098# Strip out unwanted targets.
dd12c3a8
NN
7099
7100# While at that, we remove Makefiles if we were started for recursive
7101# configuration, so that the top-level Makefile reconfigures them,
7102# like we used to do when configure itself was recursive.
dd12c3a8 7103
06a51eac
RW
7104# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7105# but now we're fixing up the Makefile ourselves with the additional
7106# commands passed to AC_CONFIG_FILES. Use separate variables
7107# extrasub-{build,host,target} not because there is any reason to split
7108# the substitutions up that way, but only to remain below the limit of
7109# 99 commands in a script, for HP-UX sed.
7110# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7111
16b1ad29
RW
7112case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7113 yes:yes:*\ gold\ *:*,c++,*) ;;
7114 yes:yes:*\ gold\ *:*)
7115 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7116 ;;
7117esac
7118
06a51eac 7119extrasub_build=
6a9cf61e 7120for module in ${build_configdirs} ; do
498d4a71
CF
7121 if test -z "${no_recursion}" \
7122 && test -f ${build_subdir}/${module}/Makefile; then
7123 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7124 rm -f ${build_subdir}/${module}/Makefile
7125 fi
06a51eac 7126 extrasub_build="$extrasub_build
498d4a71
CF
7127/^@if build-$module\$/d
7128/^@endif build-$module\$/d
7129/^@if build-$module-$bootstrap_suffix\$/d
7130/^@endif build-$module-$bootstrap_suffix\$/d"
7131done
06a51eac 7132extrasub_host=
498d4a71 7133for module in ${configdirs} ; do
80911fe1 7134 if test -z "${no_recursion}"; then
8cf39b1b 7135 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7136 if test -f ${file}; then
7137 echo 1>&2 "*** removing ${file} to force reconfigure"
7138 rm -f ${file}
7139 fi
7140 done
498d4a71 7141 fi
201f096f 7142 case ${module},${bootstrap_fixincludes} in
7143 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7144 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7145 esac
06a51eac 7146 extrasub_host="$extrasub_host
498d4a71
CF
7147/^@if $module\$/d
7148/^@endif $module\$/d
201f096f 7149/^@if $module-$host_bootstrap_suffix\$/d
7150/^@endif $module-$host_bootstrap_suffix\$/d"
498d4a71 7151done
06a51eac 7152extrasub_target=
498d4a71
CF
7153for module in ${target_configdirs} ; do
7154 if test -z "${no_recursion}" \
7155 && test -f ${target_subdir}/${module}/Makefile; then
7156 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7157 rm -f ${target_subdir}/${module}/Makefile
7158 fi
e8a5fa9c
RW
7159
7160 # We only bootstrap target libraries listed in bootstrap_target_libs.
7161 case $bootstrap_target_libs in
7162 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7163 *) target_bootstrap_suffix=no-bootstrap ;;
7164 esac
7165
06a51eac 7166 extrasub_target="$extrasub_target
498d4a71
CF
7167/^@if target-$module\$/d
7168/^@endif target-$module\$/d
e8a5fa9c
RW
7169/^@if target-$module-$target_bootstrap_suffix\$/d
7170/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7171done
7172
06a51eac
RW
7173# Do the final fixup along with target modules.
7174extrasub_target="$extrasub_target
6bd3dfaa 7175/^@if /,/^@endif /d"
a0da8069
NN
7176
7177# Create the serialization dependencies. This uses a temporary file.
7178
81ecdfbb
RW
7179# Check whether --enable-serial-configure was given.
7180if test "${enable_serial_configure+set}" = set; then :
7181 enableval=$enable_serial_configure;
7182fi
e6bfb94a
AO
7183
7184
1047cb91
DD
7185case ${enable_serial_configure} in
7186 yes)
7187 enable_serial_build_configure=yes
7188 enable_serial_host_configure=yes
7189 enable_serial_target_configure=yes
7190 ;;
7191esac
7192
a0da8069
NN
7193# These force 'configure's to be done one at a time, to avoid problems
7194# with contention over a shared config.cache.
7195rm -f serdep.tmp
e6bfb94a 7196echo '# serdep.tmp' > serdep.tmp
a0da8069 7197olditem=
1047cb91 7198test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7199for item in ${build_configdirs} ; do
7200 case ${olditem} in
7201 "") ;;
e6bfb94a 7202 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7203 esac
7204 olditem=${item}
7205done
7206olditem=
1047cb91 7207test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7208for item in ${configdirs} ; do
7209 case ${olditem} in
7210 "") ;;
e6bfb94a 7211 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7212 esac
7213 olditem=${item}
7214done
7215olditem=
1047cb91 7216test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7217for item in ${target_configdirs} ; do
7218 case ${olditem} in
7219 "") ;;
e6bfb94a 7220 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7221 esac
7222 olditem=${item}
7223done
7224serialization_dependencies=serdep.tmp
7225
7226
e6bfb94a 7227# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7228# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7229# might not want to pass down to subconfigures. The exception being
7230# --cache-file=/dev/null, which is used to turn off the use of cache
7231# files altogether, and which should be passed on to subconfigures.
7232# Also strip program-prefix, program-suffix, and program-transform-name,
7233# so that we can pass down a consistent program-transform-name.
c6b750e1 7234baseargs=
65b4571a 7235tbaseargs=
c6b750e1
DJ
7236keep_next=no
7237skip_next=no
7238eval "set -- $ac_configure_args"
18f6b6ee
PB
7239for ac_arg
7240do
c6b750e1
DJ
7241 if test X"$skip_next" = X"yes"; then
7242 skip_next=no
7243 continue
7244 fi
7245 if test X"$keep_next" = X"yes"; then
7246 case $ac_arg in
7247 *\'*)
7248 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7249 esac
7250 baseargs="$baseargs '$ac_arg'"
65b4571a 7251 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7252 keep_next=no
7253 continue
7254 fi
7255
7256 # Handle separated arguments. Based on the logic generated by
7257 # autoconf 2.59.
7258 case $ac_arg in
7259 *=* | --config-cache | -C | -disable-* | --disable-* \
7260 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7261 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7262 | -with-* | --with-* | -without-* | --without-* | --x)
7263 separate_arg=no
7264 ;;
7265 -*)
7266 separate_arg=yes
7267 ;;
7268 *)
7269 separate_arg=no
7270 ;;
7271 esac
7272
65b4571a
AO
7273 skip_targ=no
7274 case $ac_arg in
7275
7276 --with-* | --without-*)
7277 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7278
7279 case $libopt in
7280 *[-_]include)
7281 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7282 ;;
7283 *[-_]lib)
7284 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7285 ;;
7286 *)
7287 lib=$libopt
7288 ;;
7289 esac
7290
7291
7292 case $lib in
1b6c0831 7293 mpc | mpfr | gmp | isl)
65b4571a
AO
7294 # If we're processing --with-$lib, --with-$lib-include or
7295 # --with-$lib-lib, for one of the libs above, and target is
7296 # different from host, don't pass the current argument to any
7297 # target library's configure.
7298 if test x$is_cross_compiler = xyes; then
7299 skip_targ=yes
7300 fi
7301 ;;
7302 esac
7303 ;;
7304 esac
7305
c6b750e1 7306 case "$ac_arg" in
30167e0a
NC
7307 --cache-file=/dev/null | \
7308 -cache-file=/dev/null )
7309 # Handled here to avoid the test to skip args below.
7310 baseargs="$baseargs '$ac_arg'"
65b4571a 7311 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7312 # Assert: $separate_arg should always be no.
7313 keep_next=$separate_arg
7314 ;;
c6b750e1
DJ
7315 --no*)
7316 continue
7317 ;;
7318 --c* | \
7319 --sr* | \
7320 --ho* | \
7321 --bu* | \
7322 --t* | \
7323 --program-* | \
7324 -cache_file* | \
7325 -srcdir* | \
7326 -host* | \
7327 -build* | \
7328 -target* | \
7329 -program-prefix* | \
7330 -program-suffix* | \
7331 -program-transform-name* )
7332 skip_next=$separate_arg
7333 continue
7334 ;;
7335 -*)
7336 # An option. Add it.
7337 case $ac_arg in
7338 *\'*)
7339 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7340 esac
7341 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7342 if test X"$skip_targ" = Xno; then
7343 tbaseargs="$tbaseargs '$ac_arg'"
7344 fi
c6b750e1
DJ
7345 keep_next=$separate_arg
7346 ;;
7347 *)
7348 # Either a variable assignment, or a nonopt (triplet). Don't
7349 # pass it down; let the Makefile handle this.
7350 continue
7351 ;;
7352 esac
7353done
7354# Remove the initial space we just introduced and, as these will be
7355# expanded by make, quote '$'.
7356baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7357
f27d4f92
DJ
7358# Add in --program-transform-name, after --program-prefix and
7359# --program-suffix have been applied to it. Autoconf has already
7360# doubled dollar signs and backslashes in program_transform_name; we want
7361# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7362# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7363# Also, because we want to override the logic in subdir configure scripts to
7364# choose program_transform_name, replace any s,x,x, with s,y,y,.
7365sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7366${program_transform_name}
7367EOF_SED
7368gcc_transform_name=`cat conftestsed.out`
7369rm -f conftestsed.out
7370baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7371tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7372if test "$silent" = yes; then
7373 baseargs="$baseargs --silent"
65b4571a 7374 tbaseargs="$tbaseargs --silent"
2444379b 7375fi
34a0f3cf 7376baseargs="$baseargs --disable-option-checking"
65b4571a 7377tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7378
4074d5f2
RW
7379# Record and document user additions to sub configure arguments.
7380
7381
7382
7383
a0da8069
NN
7384# For the build-side libraries, we just need to pretend we're native,
7385# and not use the same cache file. Multilibs are neither needed nor
1b6c0831
L
7386# desired. We can't even use the same cache file for all build-side
7387# libraries, as they're compiled differently; some with C, some with
7388# C++ or with different feature-enabling options.
7389build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
a0da8069
NN
7390
7391# For host modules, accept cache file option, or specification as blank.
7392case "${cache_file}" in
7393"") # empty
7394 cache_file_option="" ;;
7395/* | [A-Za-z]:[\\/]* ) # absolute path
7396 cache_file_option="--cache-file=${cache_file}" ;;
7397*) # relative path
7398 cache_file_option="--cache-file=../${cache_file}" ;;
7399esac
7400
82252c06
NN
7401# Host dirs don't like to share a cache file either, horribly enough.
7402# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7403host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7404
65b4571a 7405target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7406
7407# Passing a --with-cross-host argument lets the target libraries know
7408# whether they are being built with a cross-compiler or being built
7409# native. However, it would be better to use other mechanisms to make the
7410# sorts of decisions they want to make on this basis. Please consider
7411# this option to be deprecated. FIXME.
7412if test x${is_cross_compiler} = xyes ; then
c6b750e1 7413 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7414fi
7415
afc0578d 7416# Special user-friendly check for native x86_64-linux build, if
7417# multilib is not explicitly enabled.
7418case "$target:$have_compiler:$host:$target:$enable_multilib" in
7419 x86_64-*linux*:yes:$build:$build:)
ce6c656d 7420 # Make sure we have a development environment that handles 32-bit
afc0578d 7421 dev64=no
7422 echo "int main () { return 0; }" > conftest.c
7423 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7424 if test $? = 0 ; then
7425 if test -s conftest || test -s conftest.exe ; then
7426 dev64=yes
7427 fi
7428 fi
7429 rm -f conftest*
7430 if test x${dev64} != xyes ; then
ce6c656d 7431 as_fn_error "I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib." "$LINENO" 5
afc0578d 7432 fi
7433 ;;
7434esac
7435
938d2b74
RW
7436# Default to --enable-multilib.
7437if test x${enable_multilib} = x ; then
a0da8069 7438 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7439fi
a0da8069
NN
7440
7441# Pass --with-newlib if appropriate. Note that target_configdirs has
7442# changed from the earlier setting of with_newlib.
7443if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7444 target_configargs="--with-newlib ${target_configargs}"
7445fi
7446
95036d20
NN
7447# Different target subdirs use different values of certain variables
7448# (notably CXX). Worse, multilibs use *lots* of different values.
7449# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7450# it doesn't automatically accept command-line overrides of them.
7451# This means it's not safe for target subdirs to share a cache file,
7452# which is disgusting, but there you have it. Hopefully this can be
7453# fixed in future. It's still worthwhile to use a cache file for each
7454# directory. I think.
7455
ae380b45
MS
7456# Pass the appropriate --build, --host, --target and --cache-file arguments.
7457# We need to pass --target, as newer autoconf's requires consistency
7458# for target_alias and gcc doesn't manage it consistently.
4b900473 7459target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7460
a0da8069
NN
7461FLAGS_FOR_TARGET=
7462case " $target_configdirs " in
7463 *" newlib "*)
7464 case " $target_configargs " in
7465 *" --with-newlib "*)
7466 case "$target" in
1f53ca9a 7467 *-cygwin*)
6d94c122 7468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7469 ;;
a0da8069
NN
7470 esac
7471
7472 # If we're not building GCC, don't discard standard headers.
7473 if test -d ${srcdir}/gcc; then
7474 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7475
7476 if test "${build}" != "${host}"; then
7477 # On Canadian crosses, CC_FOR_TARGET will have already been set
7478 # by `configure', so we won't have an opportunity to add -Bgcc/
7479 # to it. This is right: we don't want to search that directory
7480 # for binaries, but we want the header files in there, so add
7481 # them explicitly.
e552509b 7482 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7483
7484 # Someone might think of using the pre-installed headers on
7485 # Canadian crosses, in case the installed compiler is not fully
7486 # compatible with the compiler being built. In this case, it
7487 # would be better to flag an error than risking having
7488 # incompatible object files being constructed. We can't
7489 # guarantee that an error will be flagged, but let's hope the
7490 # compiler will do it, when presented with incompatible header
7491 # files.
7492 fi
7493 fi
7494
7495 case "${target}-${is_cross_compiler}" in
ec11bdc6 7496 i[3456789]86-*-linux*-no)
a0da8069
NN
7497 # Here host == target, so we don't need to build gcc,
7498 # so we don't want to discard standard headers.
7499 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7500 ;;
7501 *)
7502 # If we're building newlib, use its generic headers last, but search
7503 # for any libc-related directories first (so make it the last -B
7504 # switch).
7505 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7506
7507 # If we're building libgloss, find the startup file, simulator library
7508 # and linker script.
7509 case " $target_configdirs " in
7510 *" libgloss "*)
7511 # Look for startup file, simulator library and maybe linker script.
7512 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7513 # Look for libnosys.a in case the target needs it.
7514 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7515 # Most targets have the linker script in the source directory.
7516 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7517 ;;
7518 esac
a0da8069
NN
7519 ;;
7520 esac
7521 ;;
7522 esac
7523 ;;
7524esac
1f53ca9a 7525
45055374 7526case "$target" in
1f53ca9a
AO
7527 x86_64-*mingw* | *-w64-mingw*)
7528 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7529 # however, use a symlink named 'mingw' in ${prefix} .
7530 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7531 ;;
7532 *-mingw*)
7533 # MinGW can't be handled as Cygwin above since it does not use newlib.
7534 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'
7535 ;;
45055374 7536esac
a0da8069 7537
5fbad20a
DD
7538# Allow the user to override the flags for
7539# our build compiler if desired.
c66487f8
NC
7540if test x"${build}" = x"${host}" ; then
7541 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7542 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7543 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7544fi
5fbad20a 7545
a0da8069
NN
7546# On Canadian crosses, we'll be searching the right directories for
7547# the previously-installed cross compiler, so don't bother to add
7548# flags for directories within the install tree of the compiler
7549# being built; programs in there won't even run.
7550if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7551 # Search for pre-installed headers if nothing else fits.
bba45b8b 7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7553fi
7554
7555if test "x${use_gnu_ld}" = x &&
7556 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7557 # Arrange for us to find uninstalled linker scripts.
b00612cc 7558 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7559fi
7560
a481dbb7
DD
7561# Search for other target-specific linker scripts and such.
7562case "${target}" in
4e206d7e
DB
7563 mep*)
7564 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7565 ;;
7566esac
7567
a0da8069 7568# Makefile fragments.
3e707e94
PB
7569for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7570do
7571 eval fragval=\$$frag
7572 if test $fragval != /dev/null; then
7573 eval $frag=${srcdir}/$fragval
7574 fi
7575done
a0da8069
NN
7576
7577
7578
7579
7580
7581# Miscellanea: directories, flags, etc.
7582
7583
7584
7585
7586
7587
7588
3bbd2f8f 7589
6a9cf61e 7590# Build module lists & subconfigure args.
a0da8069
NN
7591
7592
7593
be01d343
PB
7594# Host module lists & subconfigure args.
7595
7596
7597
911e63d0 7598
be01d343
PB
7599# Target module lists & subconfigure args.
7600
7601
7602
7603# Build tools.
7604
7605
7606
1576798e
PB
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
be01d343
PB
7620# Generate default definitions for YACC, M4, LEX and other programs that run
7621# on the build machine. These are used if the Makefile can't locate these
7622# programs in objdir.
7623MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7624
7625for ac_prog in 'bison -y' byacc yacc
7626do
c6b750e1 7627 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7628set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630$as_echo_n "checking for $ac_word... " >&6; }
7631if test "${ac_cv_prog_YACC+set}" = set; then :
7632 $as_echo_n "(cached) " >&6
be01d343
PB
7633else
7634 if test -n "$YACC"; then
7635 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7636else
c6b750e1
DJ
7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638for as_dir in $PATH
7639do
7640 IFS=$as_save_IFS
7641 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7644 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7646 break 2
7647 fi
7648done
81ecdfbb
RW
7649 done
7650IFS=$as_save_IFS
c6b750e1 7651
be01d343
PB
7652fi
7653fi
c6b750e1 7654YACC=$ac_cv_prog_YACC
be01d343 7655if test -n "$YACC"; then
81ecdfbb
RW
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7657$as_echo "$YACC" >&6; }
be01d343 7658else
81ecdfbb
RW
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660$as_echo "no" >&6; }
be01d343
PB
7661fi
7662
81ecdfbb 7663
c6b750e1 7664 test -n "$YACC" && break
be01d343
PB
7665done
7666test -n "$YACC" || YACC="$MISSING bison -y"
7667
7668case " $build_configdirs " in
7669 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7670esac
7671
7672for ac_prog in bison
7673do
c6b750e1 7674 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7675set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7677$as_echo_n "checking for $ac_word... " >&6; }
7678if test "${ac_cv_prog_BISON+set}" = set; then :
7679 $as_echo_n "(cached) " >&6
be01d343
PB
7680else
7681 if test -n "$BISON"; then
7682 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7683else
c6b750e1
DJ
7684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685for as_dir in $PATH
7686do
7687 IFS=$as_save_IFS
7688 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7689 for ac_exec_ext in '' $ac_executable_extensions; do
7690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7691 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7693 break 2
7694 fi
7695done
81ecdfbb
RW
7696 done
7697IFS=$as_save_IFS
c6b750e1 7698
be01d343
PB
7699fi
7700fi
c6b750e1 7701BISON=$ac_cv_prog_BISON
be01d343 7702if test -n "$BISON"; then
81ecdfbb
RW
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7704$as_echo "$BISON" >&6; }
be01d343 7705else
81ecdfbb
RW
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7707$as_echo "no" >&6; }
be01d343
PB
7708fi
7709
81ecdfbb 7710
c6b750e1 7711 test -n "$BISON" && break
be01d343
PB
7712done
7713test -n "$BISON" || BISON="$MISSING bison"
7714
7715case " $build_configdirs " in
7716 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7717esac
7718
7719for ac_prog in gm4 gnum4 m4
7720do
c6b750e1 7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7722set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724$as_echo_n "checking for $ac_word... " >&6; }
7725if test "${ac_cv_prog_M4+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
be01d343
PB
7727else
7728 if test -n "$M4"; then
7729 ac_cv_prog_M4="$M4" # Let the user override the test.
7730else
c6b750e1
DJ
7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7738 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7740 break 2
7741 fi
7742done
81ecdfbb
RW
7743 done
7744IFS=$as_save_IFS
c6b750e1 7745
be01d343
PB
7746fi
7747fi
c6b750e1 7748M4=$ac_cv_prog_M4
be01d343 7749if test -n "$M4"; then
81ecdfbb
RW
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7751$as_echo "$M4" >&6; }
be01d343 7752else
81ecdfbb
RW
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
be01d343
PB
7755fi
7756
81ecdfbb 7757
c6b750e1 7758 test -n "$M4" && break
be01d343
PB
7759done
7760test -n "$M4" || M4="$MISSING m4"
7761
7762case " $build_configdirs " in
7763 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7764esac
7765
7766for ac_prog in flex lex
7767do
c6b750e1 7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7769set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
7772if test "${ac_cv_prog_LEX+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
be01d343
PB
7774else
7775 if test -n "$LEX"; then
7776 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7777else
c6b750e1
DJ
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7785 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7787 break 2
7788 fi
7789done
81ecdfbb
RW
7790 done
7791IFS=$as_save_IFS
c6b750e1 7792
be01d343
PB
7793fi
7794fi
c6b750e1 7795LEX=$ac_cv_prog_LEX
be01d343 7796if test -n "$LEX"; then
81ecdfbb
RW
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7798$as_echo "$LEX" >&6; }
be01d343 7799else
81ecdfbb
RW
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
be01d343
PB
7802fi
7803
81ecdfbb 7804
c6b750e1 7805 test -n "$LEX" && break
be01d343
PB
7806done
7807test -n "$LEX" || LEX="$MISSING flex"
7808
7809case " $build_configdirs " in
7810 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7811 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7812esac
7813
7814for ac_prog in flex
7815do
c6b750e1 7816 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7817set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
7820if test "${ac_cv_prog_FLEX+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
be01d343
PB
7822else
7823 if test -n "$FLEX"; then
7824 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7825else
c6b750e1
DJ
7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7833 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7835 break 2
7836 fi
7837done
81ecdfbb
RW
7838 done
7839IFS=$as_save_IFS
c6b750e1 7840
be01d343
PB
7841fi
7842fi
c6b750e1 7843FLEX=$ac_cv_prog_FLEX
be01d343 7844if test -n "$FLEX"; then
81ecdfbb
RW
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7846$as_echo "$FLEX" >&6; }
be01d343 7847else
81ecdfbb
RW
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
be01d343
PB
7850fi
7851
81ecdfbb 7852
c6b750e1 7853 test -n "$FLEX" && break
be01d343
PB
7854done
7855test -n "$FLEX" || FLEX="$MISSING flex"
7856
7857case " $build_configdirs " in
7858 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7859esac
7860
7861for ac_prog in makeinfo
7862do
c6b750e1 7863 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7864set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866$as_echo_n "checking for $ac_word... " >&6; }
7867if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7868 $as_echo_n "(cached) " >&6
be01d343
PB
7869else
7870 if test -n "$MAKEINFO"; then
7871 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7872else
c6b750e1
DJ
7873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874for as_dir in $PATH
7875do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7880 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7882 break 2
7883 fi
7884done
81ecdfbb
RW
7885 done
7886IFS=$as_save_IFS
c6b750e1 7887
be01d343
PB
7888fi
7889fi
c6b750e1 7890MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7891if test -n "$MAKEINFO"; then
81ecdfbb
RW
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7893$as_echo "$MAKEINFO" >&6; }
be01d343 7894else
81ecdfbb
RW
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896$as_echo "no" >&6; }
be01d343
PB
7897fi
7898
81ecdfbb 7899
c6b750e1 7900 test -n "$MAKEINFO" && break
be01d343
PB
7901done
7902test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7903
7904case " $build_configdirs " in
7905 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7906 *)
7907
10ad8ef3 7908 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7909 # higher, else we use the "missing" dummy.
7910 if ${MAKEINFO} --version \
10ad8ef3 7911 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7912 :
7913 else
7914 MAKEINFO="$MISSING makeinfo"
7915 fi
7916 ;;
7917
7918esac
a0da8069 7919
be01d343 7920# FIXME: expect and dejagnu may become build tools?
a0da8069 7921
be01d343
PB
7922for ac_prog in expect
7923do
c6b750e1 7924 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7925set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7927$as_echo_n "checking for $ac_word... " >&6; }
7928if test "${ac_cv_prog_EXPECT+set}" = set; then :
7929 $as_echo_n "(cached) " >&6
be01d343
PB
7930else
7931 if test -n "$EXPECT"; then
7932 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7933else
c6b750e1
DJ
7934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935for as_dir in $PATH
7936do
7937 IFS=$as_save_IFS
7938 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7941 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7943 break 2
7944 fi
7945done
81ecdfbb
RW
7946 done
7947IFS=$as_save_IFS
c6b750e1 7948
be01d343
PB
7949fi
7950fi
c6b750e1 7951EXPECT=$ac_cv_prog_EXPECT
be01d343 7952if test -n "$EXPECT"; then
81ecdfbb
RW
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7954$as_echo "$EXPECT" >&6; }
be01d343 7955else
81ecdfbb
RW
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957$as_echo "no" >&6; }
be01d343 7958fi
a0da8069 7959
81ecdfbb 7960
c6b750e1 7961 test -n "$EXPECT" && break
be01d343
PB
7962done
7963test -n "$EXPECT" || EXPECT="expect"
a0da8069 7964
be01d343
PB
7965case " $configdirs " in
7966 *" expect "*)
7967 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7968 ;;
7969esac
a0da8069 7970
be01d343
PB
7971for ac_prog in runtest
7972do
c6b750e1 7973 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7974set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
be01d343
PB
7979else
7980 if test -n "$RUNTEST"; then
7981 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7982else
c6b750e1
DJ
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7990 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7992 break 2
7993 fi
7994done
81ecdfbb
RW
7995 done
7996IFS=$as_save_IFS
c6b750e1 7997
be01d343
PB
7998fi
7999fi
c6b750e1 8000RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8001if test -n "$RUNTEST"; then
81ecdfbb
RW
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8003$as_echo "$RUNTEST" >&6; }
be01d343 8004else
81ecdfbb
RW
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
be01d343 8007fi
a0da8069 8008
81ecdfbb 8009
c6b750e1 8010 test -n "$RUNTEST" && break
be01d343
PB
8011done
8012test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8013
be01d343
PB
8014case " $configdirs " in
8015 *" dejagnu "*)
6b89cc21 8016 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8017 ;;
8018esac
a0da8069
NN
8019
8020
a0da8069 8021# Host tools.
859789af
AC
8022ncn_tool_prefix=
8023test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8024ncn_target_tool_prefix=
8025test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8026
9a819804
AO
8027
8028
8029if test -n "$AR"; then
8030 ac_cv_prog_AR=$AR
8031elif test -n "$ac_cv_prog_AR"; then
8032 AR=$ac_cv_prog_AR
8033fi
8034
8035if test -n "$ac_cv_prog_AR"; then
8036 for ncn_progname in ar; do
8037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8038set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if test "${ac_cv_prog_AR+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
9a819804
AO
8043else
8044 if test -n "$AR"; then
8045 ac_cv_prog_AR="$AR" # Let the user override the test.
8046else
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8054 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8056 break 2
8057 fi
8058done
81ecdfbb
RW
8059 done
8060IFS=$as_save_IFS
9a819804
AO
8061
8062fi
8063fi
8064AR=$ac_cv_prog_AR
8065if test -n "$AR"; then
81ecdfbb
RW
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8067$as_echo "$AR" >&6; }
9a819804 8068else
81ecdfbb
RW
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
9a819804
AO
8071fi
8072
81ecdfbb 8073
9a819804
AO
8074 done
8075fi
8076
8077for ncn_progname in ar; do
05cbd757
PB
8078 if test -n "$ncn_tool_prefix"; then
8079 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8080set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8082$as_echo_n "checking for $ac_word... " >&6; }
8083if test "${ac_cv_prog_AR+set}" = set; then :
8084 $as_echo_n "(cached) " >&6
859789af
AC
8085else
8086 if test -n "$AR"; then
8087 ac_cv_prog_AR="$AR" # Let the user override the test.
8088else
c6b750e1
DJ
8089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090for as_dir in $PATH
8091do
8092 IFS=$as_save_IFS
8093 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8094 for ac_exec_ext in '' $ac_executable_extensions; do
8095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8096 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8098 break 2
8099 fi
8100done
81ecdfbb
RW
8101 done
8102IFS=$as_save_IFS
c6b750e1 8103
859789af
AC
8104fi
8105fi
c6b750e1 8106AR=$ac_cv_prog_AR
859789af 8107if test -n "$AR"; then
81ecdfbb
RW
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8109$as_echo "$AR" >&6; }
859789af 8110else
81ecdfbb
RW
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112$as_echo "no" >&6; }
859789af
AC
8113fi
8114
81ecdfbb 8115
05cbd757
PB
8116 fi
8117 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8119set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121$as_echo_n "checking for $ac_word... " >&6; }
8122if test "${ac_cv_prog_AR+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
859789af 8124else
05cbd757
PB
8125 if test -n "$AR"; then
8126 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8127else
c6b750e1
DJ
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8135 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8137 break 2
8138 fi
8139done
81ecdfbb
RW
8140 done
8141IFS=$as_save_IFS
c6b750e1 8142
859789af
AC
8143fi
8144fi
c6b750e1 8145AR=$ac_cv_prog_AR
05cbd757 8146if test -n "$AR"; then
81ecdfbb
RW
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8148$as_echo "$AR" >&6; }
859789af 8149else
81ecdfbb
RW
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
859789af 8152fi
c6b750e1 8153
81ecdfbb 8154
05cbd757
PB
8155 fi
8156 test -n "$ac_cv_prog_AR" && break
8157done
8158
8159if test -z "$ac_cv_prog_AR" ; then
8160 set dummy ar
8161 if test $build = $host ; then
8162 AR="$2"
859789af 8163 else
05cbd757 8164 AR="${ncn_tool_prefix}$2"
859789af 8165 fi
859789af
AC
8166fi
8167
9a819804
AO
8168
8169
8170if test -n "$AS"; then
8171 ac_cv_prog_AS=$AS
8172elif test -n "$ac_cv_prog_AS"; then
8173 AS=$ac_cv_prog_AS
8174fi
8175
8176if test -n "$ac_cv_prog_AS"; then
8177 for ncn_progname in as; do
8178 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8179set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181$as_echo_n "checking for $ac_word... " >&6; }
8182if test "${ac_cv_prog_AS+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
9a819804
AO
8184else
8185 if test -n "$AS"; then
8186 ac_cv_prog_AS="$AS" # Let the user override the test.
8187else
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8195 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8197 break 2
8198 fi
8199done
81ecdfbb
RW
8200 done
8201IFS=$as_save_IFS
9a819804
AO
8202
8203fi
8204fi
8205AS=$ac_cv_prog_AS
8206if test -n "$AS"; then
81ecdfbb
RW
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8208$as_echo "$AS" >&6; }
9a819804 8209else
81ecdfbb
RW
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
9a819804
AO
8212fi
8213
81ecdfbb 8214
9a819804
AO
8215 done
8216fi
8217
8218for ncn_progname in as; do
05cbd757
PB
8219 if test -n "$ncn_tool_prefix"; then
8220 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8221set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8223$as_echo_n "checking for $ac_word... " >&6; }
8224if test "${ac_cv_prog_AS+set}" = set; then :
8225 $as_echo_n "(cached) " >&6
859789af
AC
8226else
8227 if test -n "$AS"; then
8228 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8229else
8230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8231for as_dir in $PATH
8232do
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8237 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8239 break 2
8240 fi
8241done
81ecdfbb
RW
8242 done
8243IFS=$as_save_IFS
c6b750e1 8244
859789af
AC
8245fi
8246fi
c6b750e1 8247AS=$ac_cv_prog_AS
859789af 8248if test -n "$AS"; then
81ecdfbb
RW
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8250$as_echo "$AS" >&6; }
859789af 8251else
81ecdfbb
RW
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8253$as_echo "no" >&6; }
859789af
AC
8254fi
8255
81ecdfbb 8256
05cbd757
PB
8257 fi
8258 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8260set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262$as_echo_n "checking for $ac_word... " >&6; }
8263if test "${ac_cv_prog_AS+set}" = set; then :
8264 $as_echo_n "(cached) " >&6
859789af 8265else
05cbd757
PB
8266 if test -n "$AS"; then
8267 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8268else
c6b750e1
DJ
8269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270for as_dir in $PATH
8271do
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8276 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8278 break 2
8279 fi
8280done
81ecdfbb
RW
8281 done
8282IFS=$as_save_IFS
c6b750e1 8283
859789af
AC
8284fi
8285fi
c6b750e1 8286AS=$ac_cv_prog_AS
05cbd757 8287if test -n "$AS"; then
81ecdfbb
RW
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8289$as_echo "$AS" >&6; }
859789af 8290else
81ecdfbb
RW
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292$as_echo "no" >&6; }
859789af 8293fi
c6b750e1 8294
81ecdfbb 8295
05cbd757
PB
8296 fi
8297 test -n "$ac_cv_prog_AS" && break
8298done
8299
8300if test -z "$ac_cv_prog_AS" ; then
8301 set dummy as
8302 if test $build = $host ; then
8303 AS="$2"
859789af 8304 else
05cbd757 8305 AS="${ncn_tool_prefix}$2"
859789af 8306 fi
859789af
AC
8307fi
8308
9a819804
AO
8309
8310
8311if test -n "$DLLTOOL"; then
8312 ac_cv_prog_DLLTOOL=$DLLTOOL
8313elif test -n "$ac_cv_prog_DLLTOOL"; then
8314 DLLTOOL=$ac_cv_prog_DLLTOOL
8315fi
8316
8317if test -n "$ac_cv_prog_DLLTOOL"; then
8318 for ncn_progname in dlltool; do
8319 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8320set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8322$as_echo_n "checking for $ac_word... " >&6; }
8323if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8324 $as_echo_n "(cached) " >&6
9a819804
AO
8325else
8326 if test -n "$DLLTOOL"; then
8327 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8328else
8329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8330for as_dir in $PATH
8331do
8332 IFS=$as_save_IFS
8333 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8334 for ac_exec_ext in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8336 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8338 break 2
8339 fi
8340done
81ecdfbb
RW
8341 done
8342IFS=$as_save_IFS
9a819804
AO
8343
8344fi
8345fi
8346DLLTOOL=$ac_cv_prog_DLLTOOL
8347if test -n "$DLLTOOL"; then
81ecdfbb
RW
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8349$as_echo "$DLLTOOL" >&6; }
9a819804 8350else
81ecdfbb
RW
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8352$as_echo "no" >&6; }
9a819804
AO
8353fi
8354
81ecdfbb 8355
9a819804
AO
8356 done
8357fi
8358
8359for ncn_progname in dlltool; do
05cbd757
PB
8360 if test -n "$ncn_tool_prefix"; then
8361 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8362set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364$as_echo_n "checking for $ac_word... " >&6; }
8365if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8366 $as_echo_n "(cached) " >&6
859789af
AC
8367else
8368 if test -n "$DLLTOOL"; then
8369 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8370else
c6b750e1
DJ
8371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8378 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8380 break 2
8381 fi
8382done
81ecdfbb
RW
8383 done
8384IFS=$as_save_IFS
c6b750e1 8385
859789af
AC
8386fi
8387fi
c6b750e1 8388DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8389if test -n "$DLLTOOL"; then
81ecdfbb
RW
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8391$as_echo "$DLLTOOL" >&6; }
859789af 8392else
81ecdfbb
RW
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394$as_echo "no" >&6; }
859789af
AC
8395fi
8396
81ecdfbb 8397
05cbd757
PB
8398 fi
8399 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8401set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403$as_echo_n "checking for $ac_word... " >&6; }
8404if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
859789af 8406else
05cbd757
PB
8407 if test -n "$DLLTOOL"; then
8408 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8409else
c6b750e1
DJ
8410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411for as_dir in $PATH
8412do
8413 IFS=$as_save_IFS
8414 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8415 for ac_exec_ext in '' $ac_executable_extensions; do
8416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8417 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8419 break 2
8420 fi
8421done
81ecdfbb
RW
8422 done
8423IFS=$as_save_IFS
c6b750e1 8424
859789af
AC
8425fi
8426fi
c6b750e1 8427DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8428if test -n "$DLLTOOL"; then
81ecdfbb
RW
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8430$as_echo "$DLLTOOL" >&6; }
859789af 8431else
81ecdfbb
RW
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433$as_echo "no" >&6; }
859789af 8434fi
c6b750e1 8435
81ecdfbb 8436
05cbd757
PB
8437 fi
8438 test -n "$ac_cv_prog_DLLTOOL" && break
8439done
8440
8441if test -z "$ac_cv_prog_DLLTOOL" ; then
8442 set dummy dlltool
8443 if test $build = $host ; then
8444 DLLTOOL="$2"
859789af 8445 else
05cbd757 8446 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8447 fi
859789af
AC
8448fi
8449
9a819804
AO
8450
8451
8452if test -n "$LD"; then
8453 ac_cv_prog_LD=$LD
8454elif test -n "$ac_cv_prog_LD"; then
8455 LD=$ac_cv_prog_LD
8456fi
8457
8458if test -n "$ac_cv_prog_LD"; then
8459 for ncn_progname in ld; do
8460 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8461set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463$as_echo_n "checking for $ac_word... " >&6; }
8464if test "${ac_cv_prog_LD+set}" = set; then :
8465 $as_echo_n "(cached) " >&6
9a819804
AO
8466else
8467 if test -n "$LD"; then
8468 ac_cv_prog_LD="$LD" # Let the user override the test.
8469else
8470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471for as_dir in $PATH
8472do
8473 IFS=$as_save_IFS
8474 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8475 for ac_exec_ext in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8477 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8479 break 2
8480 fi
8481done
81ecdfbb
RW
8482 done
8483IFS=$as_save_IFS
9a819804
AO
8484
8485fi
8486fi
8487LD=$ac_cv_prog_LD
8488if test -n "$LD"; then
81ecdfbb
RW
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8490$as_echo "$LD" >&6; }
9a819804 8491else
81ecdfbb
RW
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493$as_echo "no" >&6; }
9a819804
AO
8494fi
8495
81ecdfbb 8496
9a819804
AO
8497 done
8498fi
8499
8500for ncn_progname in ld; do
05cbd757
PB
8501 if test -n "$ncn_tool_prefix"; then
8502 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8503set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505$as_echo_n "checking for $ac_word... " >&6; }
8506if test "${ac_cv_prog_LD+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
859789af
AC
8508else
8509 if test -n "$LD"; then
8510 ac_cv_prog_LD="$LD" # Let the user override the test.
8511else
c6b750e1
DJ
8512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8513for as_dir in $PATH
8514do
8515 IFS=$as_save_IFS
8516 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8517 for ac_exec_ext in '' $ac_executable_extensions; do
8518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8519 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8521 break 2
8522 fi
8523done
81ecdfbb
RW
8524 done
8525IFS=$as_save_IFS
c6b750e1 8526
859789af
AC
8527fi
8528fi
c6b750e1 8529LD=$ac_cv_prog_LD
859789af 8530if test -n "$LD"; then
81ecdfbb
RW
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8532$as_echo "$LD" >&6; }
859789af 8533else
81ecdfbb
RW
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535$as_echo "no" >&6; }
859789af
AC
8536fi
8537
81ecdfbb 8538
05cbd757
PB
8539 fi
8540 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8542set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544$as_echo_n "checking for $ac_word... " >&6; }
8545if test "${ac_cv_prog_LD+set}" = set; then :
8546 $as_echo_n "(cached) " >&6
859789af 8547else
05cbd757
PB
8548 if test -n "$LD"; then
8549 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8550else
c6b750e1
DJ
8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552for as_dir in $PATH
8553do
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8558 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8560 break 2
8561 fi
8562done
81ecdfbb
RW
8563 done
8564IFS=$as_save_IFS
c6b750e1 8565
859789af
AC
8566fi
8567fi
c6b750e1 8568LD=$ac_cv_prog_LD
05cbd757 8569if test -n "$LD"; then
81ecdfbb
RW
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8571$as_echo "$LD" >&6; }
859789af 8572else
81ecdfbb
RW
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574$as_echo "no" >&6; }
859789af 8575fi
c6b750e1 8576
81ecdfbb 8577
05cbd757
PB
8578 fi
8579 test -n "$ac_cv_prog_LD" && break
8580done
8581
8582if test -z "$ac_cv_prog_LD" ; then
8583 set dummy ld
8584 if test $build = $host ; then
8585 LD="$2"
859789af 8586 else
05cbd757 8587 LD="${ncn_tool_prefix}$2"
859789af 8588 fi
859789af
AC
8589fi
8590
9a819804
AO
8591
8592
8593if test -n "$LIPO"; then
8594 ac_cv_prog_LIPO=$LIPO
8595elif test -n "$ac_cv_prog_LIPO"; then
8596 LIPO=$ac_cv_prog_LIPO
8597fi
8598
8599if test -n "$ac_cv_prog_LIPO"; then
8600 for ncn_progname in lipo; do
8601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8602set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604$as_echo_n "checking for $ac_word... " >&6; }
8605if test "${ac_cv_prog_LIPO+set}" = set; then :
8606 $as_echo_n "(cached) " >&6
9a819804
AO
8607else
8608 if test -n "$LIPO"; then
8609 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8610else
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614 IFS=$as_save_IFS
8615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8616 for ac_exec_ext in '' $ac_executable_extensions; do
8617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8618 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8620 break 2
8621 fi
8622done
81ecdfbb
RW
8623 done
8624IFS=$as_save_IFS
9a819804
AO
8625
8626fi
8627fi
8628LIPO=$ac_cv_prog_LIPO
8629if test -n "$LIPO"; then
81ecdfbb
RW
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8631$as_echo "$LIPO" >&6; }
9a819804 8632else
81ecdfbb
RW
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
9a819804
AO
8635fi
8636
81ecdfbb 8637
9a819804
AO
8638 done
8639fi
8640
8641for ncn_progname in lipo; do
be01d343
PB
8642 if test -n "$ncn_tool_prefix"; then
8643 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8644set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8646$as_echo_n "checking for $ac_word... " >&6; }
8647if test "${ac_cv_prog_LIPO+set}" = set; then :
8648 $as_echo_n "(cached) " >&6
be01d343
PB
8649else
8650 if test -n "$LIPO"; then
8651 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8652else
c6b750e1
DJ
8653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8658 for ac_exec_ext in '' $ac_executable_extensions; do
8659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8660 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8662 break 2
8663 fi
8664done
81ecdfbb
RW
8665 done
8666IFS=$as_save_IFS
c6b750e1 8667
be01d343
PB
8668fi
8669fi
c6b750e1 8670LIPO=$ac_cv_prog_LIPO
be01d343 8671if test -n "$LIPO"; then
81ecdfbb
RW
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8673$as_echo "$LIPO" >&6; }
be01d343 8674else
81ecdfbb
RW
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676$as_echo "no" >&6; }
be01d343
PB
8677fi
8678
81ecdfbb 8679
be01d343
PB
8680 fi
8681 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8683set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685$as_echo_n "checking for $ac_word... " >&6; }
8686if test "${ac_cv_prog_LIPO+set}" = set; then :
8687 $as_echo_n "(cached) " >&6
be01d343
PB
8688else
8689 if test -n "$LIPO"; then
8690 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8691else
c6b750e1
DJ
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695 IFS=$as_save_IFS
8696 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8697 for ac_exec_ext in '' $ac_executable_extensions; do
8698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8699 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8701 break 2
8702 fi
8703done
81ecdfbb
RW
8704 done
8705IFS=$as_save_IFS
c6b750e1 8706
be01d343
PB
8707fi
8708fi
c6b750e1 8709LIPO=$ac_cv_prog_LIPO
be01d343 8710if test -n "$LIPO"; then
81ecdfbb
RW
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8712$as_echo "$LIPO" >&6; }
be01d343 8713else
81ecdfbb
RW
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8715$as_echo "no" >&6; }
be01d343 8716fi
c6b750e1 8717
81ecdfbb 8718
be01d343
PB
8719 fi
8720 test -n "$ac_cv_prog_LIPO" && break
8721done
8722
8723if test -z "$ac_cv_prog_LIPO" ; then
8724 set dummy lipo
8725 if test $build = $host ; then
8726 LIPO="$2"
8727 else
8728 LIPO="${ncn_tool_prefix}$2"
8729 fi
8730fi
8731
9a819804
AO
8732
8733
8734if test -n "$NM"; then
8735 ac_cv_prog_NM=$NM
8736elif test -n "$ac_cv_prog_NM"; then
8737 NM=$ac_cv_prog_NM
8738fi
8739
8740if test -n "$ac_cv_prog_NM"; then
8741 for ncn_progname in nm; do
8742 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8743set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745$as_echo_n "checking for $ac_word... " >&6; }
8746if test "${ac_cv_prog_NM+set}" = set; then :
8747 $as_echo_n "(cached) " >&6
859789af
AC
8748else
8749 if test -n "$NM"; then
8750 ac_cv_prog_NM="$NM" # Let the user override the test.
8751else
c6b750e1
DJ
8752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753for as_dir in $PATH
8754do
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8759 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8761 break 2
8762 fi
8763done
81ecdfbb
RW
8764 done
8765IFS=$as_save_IFS
c6b750e1 8766
859789af
AC
8767fi
8768fi
c6b750e1 8769NM=$ac_cv_prog_NM
859789af 8770if test -n "$NM"; then
81ecdfbb
RW
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8772$as_echo "$NM" >&6; }
859789af 8773else
81ecdfbb
RW
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775$as_echo "no" >&6; }
859789af
AC
8776fi
8777
81ecdfbb 8778
9a819804
AO
8779 done
8780fi
8781
8782for ncn_progname in nm; do
8783 if test -n "$ncn_tool_prefix"; then
8784 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8785set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787$as_echo_n "checking for $ac_word... " >&6; }
8788if test "${ac_cv_prog_NM+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
859789af 8790else
05cbd757
PB
8791 if test -n "$NM"; then
8792 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8793else
c6b750e1
DJ
8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795for as_dir in $PATH
8796do
8797 IFS=$as_save_IFS
8798 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8799 for ac_exec_ext in '' $ac_executable_extensions; do
8800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8801 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8803 break 2
8804 fi
8805done
81ecdfbb
RW
8806 done
8807IFS=$as_save_IFS
c6b750e1 8808
859789af
AC
8809fi
8810fi
c6b750e1 8811NM=$ac_cv_prog_NM
05cbd757 8812if test -n "$NM"; then
81ecdfbb
RW
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8814$as_echo "$NM" >&6; }
859789af 8815else
81ecdfbb
RW
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817$as_echo "no" >&6; }
859789af 8818fi
c6b750e1 8819
81ecdfbb 8820
05cbd757 8821 fi
9a819804
AO
8822 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8824set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8826$as_echo_n "checking for $ac_word... " >&6; }
8827if test "${ac_cv_prog_NM+set}" = set; then :
8828 $as_echo_n "(cached) " >&6
9a819804
AO
8829else
8830 if test -n "$NM"; then
8831 ac_cv_prog_NM="$NM" # Let the user override the test.
8832else
8833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8834for as_dir in $PATH
8835do
8836 IFS=$as_save_IFS
8837 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8838 for ac_exec_ext in '' $ac_executable_extensions; do
8839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8840 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8842 break 2
8843 fi
8844done
81ecdfbb
RW
8845 done
8846IFS=$as_save_IFS
9a819804
AO
8847
8848fi
8849fi
8850NM=$ac_cv_prog_NM
8851if test -n "$NM"; then
81ecdfbb
RW
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8853$as_echo "$NM" >&6; }
9a819804 8854else
81ecdfbb
RW
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8856$as_echo "no" >&6; }
9a819804
AO
8857fi
8858
81ecdfbb 8859
9a819804
AO
8860 fi
8861 test -n "$ac_cv_prog_NM" && break
8862done
8863
8864if test -z "$ac_cv_prog_NM" ; then
8865 set dummy nm
8866 if test $build = $host ; then
8867 NM="$2"
8868 else
8869 NM="${ncn_tool_prefix}$2"
8870 fi
8871fi
8872
8873
8874
8875if test -n "$RANLIB"; then
8876 ac_cv_prog_RANLIB=$RANLIB
8877elif test -n "$ac_cv_prog_RANLIB"; then
8878 RANLIB=$ac_cv_prog_RANLIB
8879fi
8880
8881if test -n "$ac_cv_prog_RANLIB"; then
8882 for ncn_progname in ranlib; do
8883 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8884set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886$as_echo_n "checking for $ac_word... " >&6; }
8887if test "${ac_cv_prog_RANLIB+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
9a819804
AO
8889else
8890 if test -n "$RANLIB"; then
8891 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8892else
8893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8894for as_dir in $PATH
8895do
8896 IFS=$as_save_IFS
8897 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8898 for ac_exec_ext in '' $ac_executable_extensions; do
8899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8900 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8902 break 2
8903 fi
8904done
81ecdfbb
RW
8905 done
8906IFS=$as_save_IFS
9a819804
AO
8907
8908fi
8909fi
8910RANLIB=$ac_cv_prog_RANLIB
8911if test -n "$RANLIB"; then
81ecdfbb
RW
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8913$as_echo "$RANLIB" >&6; }
9a819804 8914else
81ecdfbb
RW
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916$as_echo "no" >&6; }
9a819804
AO
8917fi
8918
81ecdfbb 8919
9a819804
AO
8920 done
8921fi
859789af 8922
9a819804 8923for ncn_progname in ranlib; do
05cbd757
PB
8924 if test -n "$ncn_tool_prefix"; then
8925 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8926set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928$as_echo_n "checking for $ac_word... " >&6; }
8929if test "${ac_cv_prog_RANLIB+set}" = set; then :
8930 $as_echo_n "(cached) " >&6
859789af
AC
8931else
8932 if test -n "$RANLIB"; then
8933 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8934else
c6b750e1
DJ
8935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8936for as_dir in $PATH
8937do
8938 IFS=$as_save_IFS
8939 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8940 for ac_exec_ext in '' $ac_executable_extensions; do
8941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8942 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8944 break 2
8945 fi
8946done
81ecdfbb
RW
8947 done
8948IFS=$as_save_IFS
c6b750e1 8949
859789af
AC
8950fi
8951fi
c6b750e1 8952RANLIB=$ac_cv_prog_RANLIB
859789af 8953if test -n "$RANLIB"; then
81ecdfbb
RW
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8955$as_echo "$RANLIB" >&6; }
859789af 8956else
81ecdfbb
RW
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8958$as_echo "no" >&6; }
859789af
AC
8959fi
8960
81ecdfbb 8961
05cbd757
PB
8962 fi
8963 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8964 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8965set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967$as_echo_n "checking for $ac_word... " >&6; }
8968if test "${ac_cv_prog_RANLIB+set}" = set; then :
8969 $as_echo_n "(cached) " >&6
859789af 8970else
05cbd757
PB
8971 if test -n "$RANLIB"; then
8972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8973else
c6b750e1
DJ
8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $PATH
8976do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8979 for ac_exec_ext in '' $ac_executable_extensions; do
8980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8981 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8983 break 2
8984 fi
8985done
81ecdfbb
RW
8986 done
8987IFS=$as_save_IFS
c6b750e1 8988
859789af
AC
8989fi
8990fi
c6b750e1 8991RANLIB=$ac_cv_prog_RANLIB
05cbd757 8992if test -n "$RANLIB"; then
81ecdfbb
RW
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8994$as_echo "$RANLIB" >&6; }
859789af 8995else
81ecdfbb
RW
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8997$as_echo "no" >&6; }
859789af 8998fi
c6b750e1 8999
81ecdfbb 9000
859789af 9001 fi
05cbd757
PB
9002 test -n "$ac_cv_prog_RANLIB" && break
9003done
9004
9005if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9006 RANLIB="true"
859789af
AC
9007fi
9008
9a819804
AO
9009
9010
9011if test -n "$STRIP"; then
9012 ac_cv_prog_STRIP=$STRIP
9013elif test -n "$ac_cv_prog_STRIP"; then
9014 STRIP=$ac_cv_prog_STRIP
9015fi
9016
9017if test -n "$ac_cv_prog_STRIP"; then
9018 for ncn_progname in strip; do
9019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9020set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
9023if test "${ac_cv_prog_STRIP+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
9a819804
AO
9025else
9026 if test -n "$STRIP"; then
9027 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9028else
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9036 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9038 break 2
9039 fi
9040done
81ecdfbb
RW
9041 done
9042IFS=$as_save_IFS
9a819804
AO
9043
9044fi
9045fi
9046STRIP=$ac_cv_prog_STRIP
9047if test -n "$STRIP"; then
81ecdfbb
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9049$as_echo "$STRIP" >&6; }
9a819804 9050else
81ecdfbb
RW
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
9a819804
AO
9053fi
9054
81ecdfbb 9055
9a819804
AO
9056 done
9057fi
9058
9059for ncn_progname in strip; do
be01d343
PB
9060 if test -n "$ncn_tool_prefix"; then
9061 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9062set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064$as_echo_n "checking for $ac_word... " >&6; }
9065if test "${ac_cv_prog_STRIP+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
be01d343
PB
9067else
9068 if test -n "$STRIP"; then
9069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9070else
c6b750e1
DJ
9071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH
9073do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9078 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9080 break 2
9081 fi
9082done
81ecdfbb
RW
9083 done
9084IFS=$as_save_IFS
c6b750e1 9085
be01d343
PB
9086fi
9087fi
c6b750e1 9088STRIP=$ac_cv_prog_STRIP
be01d343 9089if test -n "$STRIP"; then
81ecdfbb
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9091$as_echo "$STRIP" >&6; }
be01d343 9092else
81ecdfbb
RW
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
be01d343
PB
9095fi
9096
81ecdfbb 9097
be01d343
PB
9098 fi
9099 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9101set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103$as_echo_n "checking for $ac_word... " >&6; }
9104if test "${ac_cv_prog_STRIP+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
be01d343
PB
9106else
9107 if test -n "$STRIP"; then
9108 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9109else
c6b750e1
DJ
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9117 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9119 break 2
9120 fi
9121done
81ecdfbb
RW
9122 done
9123IFS=$as_save_IFS
c6b750e1 9124
be01d343
PB
9125fi
9126fi
c6b750e1 9127STRIP=$ac_cv_prog_STRIP
be01d343 9128if test -n "$STRIP"; then
81ecdfbb
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9130$as_echo "$STRIP" >&6; }
be01d343 9131else
81ecdfbb
RW
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133$as_echo "no" >&6; }
be01d343 9134fi
c6b750e1 9135
81ecdfbb 9136
be01d343
PB
9137 fi
9138 test -n "$ac_cv_prog_STRIP" && break
9139done
9140
9141if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9142 STRIP="true"
be01d343
PB
9143fi
9144
9a819804
AO
9145
9146
9147if test -n "$WINDRES"; then
9148 ac_cv_prog_WINDRES=$WINDRES
9149elif test -n "$ac_cv_prog_WINDRES"; then
9150 WINDRES=$ac_cv_prog_WINDRES
9151fi
9152
9153if test -n "$ac_cv_prog_WINDRES"; then
9154 for ncn_progname in windres; do
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158$as_echo_n "checking for $ac_word... " >&6; }
9159if test "${ac_cv_prog_WINDRES+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9a819804
AO
9161else
9162 if test -n "$WINDRES"; then
9163 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9164else
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9172 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9174 break 2
9175 fi
9176done
81ecdfbb
RW
9177 done
9178IFS=$as_save_IFS
9a819804
AO
9179
9180fi
9181fi
9182WINDRES=$ac_cv_prog_WINDRES
9183if test -n "$WINDRES"; then
81ecdfbb
RW
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9185$as_echo "$WINDRES" >&6; }
9a819804 9186else
81ecdfbb
RW
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188$as_echo "no" >&6; }
9a819804
AO
9189fi
9190
81ecdfbb 9191
9a819804
AO
9192 done
9193fi
9194
9195for ncn_progname in windres; do
05cbd757
PB
9196 if test -n "$ncn_tool_prefix"; then
9197 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9198set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200$as_echo_n "checking for $ac_word... " >&6; }
9201if test "${ac_cv_prog_WINDRES+set}" = set; then :
9202 $as_echo_n "(cached) " >&6
859789af
AC
9203else
9204 if test -n "$WINDRES"; then
9205 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9206else
c6b750e1
DJ
9207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208for as_dir in $PATH
9209do
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9214 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9216 break 2
9217 fi
9218done
81ecdfbb
RW
9219 done
9220IFS=$as_save_IFS
c6b750e1 9221
859789af
AC
9222fi
9223fi
c6b750e1 9224WINDRES=$ac_cv_prog_WINDRES
859789af 9225if test -n "$WINDRES"; then
81ecdfbb
RW
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9227$as_echo "$WINDRES" >&6; }
859789af 9228else
81ecdfbb
RW
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230$as_echo "no" >&6; }
859789af
AC
9231fi
9232
81ecdfbb 9233
05cbd757
PB
9234 fi
9235 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9236 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9237set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239$as_echo_n "checking for $ac_word... " >&6; }
9240if test "${ac_cv_prog_WINDRES+set}" = set; then :
9241 $as_echo_n "(cached) " >&6
859789af 9242else
05cbd757
PB
9243 if test -n "$WINDRES"; then
9244 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9245else
c6b750e1
DJ
9246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $PATH
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9251 for ac_exec_ext in '' $ac_executable_extensions; do
9252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9253 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9255 break 2
9256 fi
9257done
81ecdfbb
RW
9258 done
9259IFS=$as_save_IFS
c6b750e1 9260
859789af
AC
9261fi
9262fi
c6b750e1 9263WINDRES=$ac_cv_prog_WINDRES
05cbd757 9264if test -n "$WINDRES"; then
81ecdfbb
RW
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9266$as_echo "$WINDRES" >&6; }
859789af 9267else
81ecdfbb
RW
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269$as_echo "no" >&6; }
859789af 9270fi
c6b750e1 9271
81ecdfbb 9272
05cbd757
PB
9273 fi
9274 test -n "$ac_cv_prog_WINDRES" && break
9275done
9276
9277if test -z "$ac_cv_prog_WINDRES" ; then
9278 set dummy windres
9279 if test $build = $host ; then
9280 WINDRES="$2"
859789af 9281 else
05cbd757 9282 WINDRES="${ncn_tool_prefix}$2"
859789af 9283 fi
859789af
AC
9284fi
9285
9a819804
AO
9286
9287
0c24b341
NC
9288if test -n "$WINDMC"; then
9289 ac_cv_prog_WINDMC=$WINDMC
9290elif test -n "$ac_cv_prog_WINDMC"; then
9291 WINDMC=$ac_cv_prog_WINDMC
9292fi
9293
9294if test -n "$ac_cv_prog_WINDMC"; then
9295 for ncn_progname in windmc; do
9296 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9297set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299$as_echo_n "checking for $ac_word... " >&6; }
9300if test "${ac_cv_prog_WINDMC+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
0c24b341
NC
9302else
9303 if test -n "$WINDMC"; then
9304 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9305else
9306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307for as_dir in $PATH
9308do
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9313 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9315 break 2
9316 fi
9317done
81ecdfbb
RW
9318 done
9319IFS=$as_save_IFS
0c24b341
NC
9320
9321fi
9322fi
9323WINDMC=$ac_cv_prog_WINDMC
9324if test -n "$WINDMC"; then
81ecdfbb
RW
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9326$as_echo "$WINDMC" >&6; }
0c24b341 9327else
81ecdfbb
RW
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329$as_echo "no" >&6; }
0c24b341
NC
9330fi
9331
81ecdfbb 9332
0c24b341
NC
9333 done
9334fi
9335
9336for ncn_progname in windmc; do
9337 if test -n "$ncn_tool_prefix"; then
9338 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9339set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341$as_echo_n "checking for $ac_word... " >&6; }
9342if test "${ac_cv_prog_WINDMC+set}" = set; then :
9343 $as_echo_n "(cached) " >&6
0c24b341
NC
9344else
9345 if test -n "$WINDMC"; then
9346 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9347else
9348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9349for as_dir in $PATH
9350do
9351 IFS=$as_save_IFS
9352 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9353 for ac_exec_ext in '' $ac_executable_extensions; do
9354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9355 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9357 break 2
9358 fi
9359done
81ecdfbb
RW
9360 done
9361IFS=$as_save_IFS
0c24b341
NC
9362
9363fi
9364fi
9365WINDMC=$ac_cv_prog_WINDMC
9366if test -n "$WINDMC"; then
81ecdfbb
RW
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9368$as_echo "$WINDMC" >&6; }
0c24b341 9369else
81ecdfbb
RW
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9371$as_echo "no" >&6; }
0c24b341
NC
9372fi
9373
81ecdfbb 9374
0c24b341
NC
9375 fi
9376 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9378set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380$as_echo_n "checking for $ac_word... " >&6; }
9381if test "${ac_cv_prog_WINDMC+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
0c24b341
NC
9383else
9384 if test -n "$WINDMC"; then
9385 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9386else
9387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9388for as_dir in $PATH
9389do
9390 IFS=$as_save_IFS
9391 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9392 for ac_exec_ext in '' $ac_executable_extensions; do
9393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9394 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9396 break 2
9397 fi
9398done
81ecdfbb
RW
9399 done
9400IFS=$as_save_IFS
0c24b341
NC
9401
9402fi
9403fi
9404WINDMC=$ac_cv_prog_WINDMC
9405if test -n "$WINDMC"; then
81ecdfbb
RW
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9407$as_echo "$WINDMC" >&6; }
0c24b341 9408else
81ecdfbb
RW
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9410$as_echo "no" >&6; }
0c24b341
NC
9411fi
9412
81ecdfbb 9413
0c24b341
NC
9414 fi
9415 test -n "$ac_cv_prog_WINDMC" && break
9416done
9417
9418if test -z "$ac_cv_prog_WINDMC" ; then
9419 set dummy windmc
9420 if test $build = $host ; then
9421 WINDMC="$2"
9422 else
9423 WINDMC="${ncn_tool_prefix}$2"
9424 fi
9425fi
9426
9427
9428
9a819804
AO
9429if test -n "$OBJCOPY"; then
9430 ac_cv_prog_OBJCOPY=$OBJCOPY
9431elif test -n "$ac_cv_prog_OBJCOPY"; then
9432 OBJCOPY=$ac_cv_prog_OBJCOPY
9433fi
9434
9435if test -n "$ac_cv_prog_OBJCOPY"; then
9436 for ncn_progname in objcopy; do
9437 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9438set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9440$as_echo_n "checking for $ac_word... " >&6; }
9441if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9a819804
AO
9443else
9444 if test -n "$OBJCOPY"; then
9445 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9446else
9447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448for as_dir in $PATH
9449do
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9454 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9456 break 2
9457 fi
9458done
81ecdfbb
RW
9459 done
9460IFS=$as_save_IFS
9a819804
AO
9461
9462fi
9463fi
9464OBJCOPY=$ac_cv_prog_OBJCOPY
9465if test -n "$OBJCOPY"; then
81ecdfbb
RW
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9467$as_echo "$OBJCOPY" >&6; }
9a819804 9468else
81ecdfbb
RW
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9470$as_echo "no" >&6; }
9a819804
AO
9471fi
9472
81ecdfbb 9473
9a819804
AO
9474 done
9475fi
9476
9477for ncn_progname in objcopy; do
05cbd757
PB
9478 if test -n "$ncn_tool_prefix"; then
9479 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9480set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9482$as_echo_n "checking for $ac_word... " >&6; }
9483if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9484 $as_echo_n "(cached) " >&6
859789af
AC
9485else
9486 if test -n "$OBJCOPY"; then
9487 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9488else
c6b750e1
DJ
9489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490for as_dir in $PATH
9491do
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9496 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9498 break 2
9499 fi
9500done
81ecdfbb
RW
9501 done
9502IFS=$as_save_IFS
c6b750e1 9503
859789af
AC
9504fi
9505fi
c6b750e1 9506OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9507if test -n "$OBJCOPY"; then
81ecdfbb
RW
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9509$as_echo "$OBJCOPY" >&6; }
859789af 9510else
81ecdfbb
RW
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9512$as_echo "no" >&6; }
859789af
AC
9513fi
9514
81ecdfbb 9515
05cbd757
PB
9516 fi
9517 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9519set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9521$as_echo_n "checking for $ac_word... " >&6; }
9522if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
859789af 9524else
05cbd757
PB
9525 if test -n "$OBJCOPY"; then
9526 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9527else
c6b750e1
DJ
9528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529for as_dir in $PATH
9530do
9531 IFS=$as_save_IFS
9532 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9533 for ac_exec_ext in '' $ac_executable_extensions; do
9534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9535 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9537 break 2
9538 fi
9539done
81ecdfbb
RW
9540 done
9541IFS=$as_save_IFS
c6b750e1 9542
859789af
AC
9543fi
9544fi
c6b750e1 9545OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9546if test -n "$OBJCOPY"; then
81ecdfbb
RW
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9548$as_echo "$OBJCOPY" >&6; }
859789af 9549else
81ecdfbb
RW
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9551$as_echo "no" >&6; }
859789af 9552fi
c6b750e1 9553
81ecdfbb 9554
05cbd757
PB
9555 fi
9556 test -n "$ac_cv_prog_OBJCOPY" && break
9557done
9558
9559if test -z "$ac_cv_prog_OBJCOPY" ; then
9560 set dummy objcopy
9561 if test $build = $host ; then
9562 OBJCOPY="$2"
859789af 9563 else
05cbd757 9564 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9565 fi
859789af
AC
9566fi
9567
9a819804
AO
9568
9569
9570if test -n "$OBJDUMP"; then
9571 ac_cv_prog_OBJDUMP=$OBJDUMP
9572elif test -n "$ac_cv_prog_OBJDUMP"; then
9573 OBJDUMP=$ac_cv_prog_OBJDUMP
9574fi
9575
9576if test -n "$ac_cv_prog_OBJDUMP"; then
9577 for ncn_progname in objdump; do
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
9582if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9a819804
AO
9584else
9585 if test -n "$OBJDUMP"; then
9586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9595 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9597 break 2
9598 fi
9599done
81ecdfbb
RW
9600 done
9601IFS=$as_save_IFS
9a819804
AO
9602
9603fi
9604fi
9605OBJDUMP=$ac_cv_prog_OBJDUMP
9606if test -n "$OBJDUMP"; then
81ecdfbb
RW
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9608$as_echo "$OBJDUMP" >&6; }
9a819804 9609else
81ecdfbb
RW
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
9a819804
AO
9612fi
9613
81ecdfbb 9614
9a819804
AO
9615 done
9616fi
9617
9618for ncn_progname in objdump; do
05cbd757
PB
9619 if test -n "$ncn_tool_prefix"; then
9620 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9621set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623$as_echo_n "checking for $ac_word... " >&6; }
9624if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9625 $as_echo_n "(cached) " >&6
859789af
AC
9626else
9627 if test -n "$OBJDUMP"; then
9628 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9629else
c6b750e1
DJ
9630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631for as_dir in $PATH
9632do
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9637 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9639 break 2
9640 fi
9641done
81ecdfbb
RW
9642 done
9643IFS=$as_save_IFS
c6b750e1 9644
859789af
AC
9645fi
9646fi
c6b750e1 9647OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9648if test -n "$OBJDUMP"; then
81ecdfbb
RW
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9650$as_echo "$OBJDUMP" >&6; }
859789af 9651else
81ecdfbb
RW
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9653$as_echo "no" >&6; }
859789af
AC
9654fi
9655
81ecdfbb 9656
05cbd757
PB
9657 fi
9658 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9659 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9660set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9662$as_echo_n "checking for $ac_word... " >&6; }
9663if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9664 $as_echo_n "(cached) " >&6
859789af 9665else
05cbd757
PB
9666 if test -n "$OBJDUMP"; then
9667 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9668else
c6b750e1
DJ
9669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9670for as_dir in $PATH
9671do
9672 IFS=$as_save_IFS
9673 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9674 for ac_exec_ext in '' $ac_executable_extensions; do
9675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9676 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9678 break 2
9679 fi
9680done
81ecdfbb
RW
9681 done
9682IFS=$as_save_IFS
c6b750e1 9683
859789af
AC
9684fi
9685fi
c6b750e1 9686OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9687if test -n "$OBJDUMP"; then
81ecdfbb
RW
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9689$as_echo "$OBJDUMP" >&6; }
859789af 9690else
81ecdfbb
RW
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692$as_echo "no" >&6; }
859789af 9693fi
c6b750e1 9694
81ecdfbb 9695
05cbd757
PB
9696 fi
9697 test -n "$ac_cv_prog_OBJDUMP" && break
9698done
9699
9700if test -z "$ac_cv_prog_OBJDUMP" ; then
9701 set dummy objdump
9702 if test $build = $host ; then
9703 OBJDUMP="$2"
859789af 9704 else
05cbd757 9705 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9706 fi
859789af
AC
9707fi
9708
a0da8069
NN
9709
9710
b121d7d4
DD
9711if test -n "$READELF"; then
9712 ac_cv_prog_READELF=$READELF
9713elif test -n "$ac_cv_prog_READELF"; then
9714 READELF=$ac_cv_prog_READELF
9715fi
9716
9717if test -n "$ac_cv_prog_READELF"; then
9718 for ncn_progname in readelf; 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
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_READELF+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725else
9726 if test -n "$READELF"; then
9727 ac_cv_prog_READELF="$READELF" # 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=.
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
9736 ac_cv_prog_READELF="${ncn_progname}"
9737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9738 break 2
9739 fi
9740done
9741 done
9742IFS=$as_save_IFS
9743
9744fi
9745fi
9746READELF=$ac_cv_prog_READELF
9747if test -n "$READELF"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9749$as_echo "$READELF" >&6; }
9750else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752$as_echo "no" >&6; }
9753fi
9754
9755
9756 done
9757fi
9758
9759for ncn_progname in readelf; do
9760 if test -n "$ncn_tool_prefix"; then
9761 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9762set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9764$as_echo_n "checking for $ac_word... " >&6; }
9765if test "${ac_cv_prog_READELF+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767else
9768 if test -n "$READELF"; then
9769 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9770else
9771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772for as_dir in $PATH
9773do
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9781 fi
9782done
9783 done
9784IFS=$as_save_IFS
9785
9786fi
9787fi
9788READELF=$ac_cv_prog_READELF
9789if test -n "$READELF"; then
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9791$as_echo "$READELF" >&6; }
9792else
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9794$as_echo "no" >&6; }
9795fi
9796
9797
9798 fi
9799 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9801set dummy ${ncn_progname}; ac_word=$2
9802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803$as_echo_n "checking for $ac_word... " >&6; }
9804if test "${ac_cv_prog_READELF+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9806else
9807 if test -n "$READELF"; then
9808 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9809else
9810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9811for as_dir in $PATH
9812do
9813 IFS=$as_save_IFS
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9817 ac_cv_prog_READELF="${ncn_progname}"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 break 2
9820 fi
9821done
9822 done
9823IFS=$as_save_IFS
9824
9825fi
9826fi
9827READELF=$ac_cv_prog_READELF
9828if test -n "$READELF"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9830$as_echo "$READELF" >&6; }
9831else
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833$as_echo "no" >&6; }
9834fi
9835
9836
9837 fi
9838 test -n "$ac_cv_prog_READELF" && break
9839done
9840
9841if test -z "$ac_cv_prog_READELF" ; then
9842 set dummy readelf
9843 if test $build = $host ; then
9844 READELF="$2"
9845 else
9846 READELF="${ncn_tool_prefix}$2"
9847 fi
9848fi
9849
9850
9851
a0da8069
NN
9852
9853
9854
be01d343 9855# Target tools.
c6b750e1 9856
81ecdfbb
RW
9857# Check whether --with-build-time-tools was given.
9858if test "${with_build_time_tools+set}" = set; then :
9859 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9860 x/*) ;;
9861 *)
9862 with_build_time_tools=
81ecdfbb
RW
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9864$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9865 ;;
9866 esac
859789af 9867else
2429c060 9868 with_build_time_tools=
81ecdfbb
RW
9869fi
9870
859789af 9871
9a819804
AO
9872
9873
9874if test -n "$CC_FOR_TARGET"; then
9875 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9876elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9877 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9878fi
9879
9880if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9881 for ncn_progname in cc gcc; do
9882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9883set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885$as_echo_n "checking for $ac_word... " >&6; }
9886if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9a819804
AO
9888else
9889 if test -n "$CC_FOR_TARGET"; then
9890 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9891else
9892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893for as_dir in $PATH
9894do
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9899 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9901 break 2
9902 fi
9903done
81ecdfbb
RW
9904 done
9905IFS=$as_save_IFS
9a819804
AO
9906
9907fi
9908fi
9909CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9910if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9912$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9913else
81ecdfbb
RW
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915$as_echo "no" >&6; }
9a819804
AO
9916fi
9917
81ecdfbb 9918
9a819804
AO
9919 done
9920fi
9921
9922if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9923 for ncn_progname in cc gcc; do
81ecdfbb
RW
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9925$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9926 if test -x $with_build_time_tools/${ncn_progname}; then
9927 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9929$as_echo "yes" >&6; }
cac3d6c4 9930 break
2429c060 9931 else
81ecdfbb
RW
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933$as_echo "no" >&6; }
cac3d6c4
CM
9934 fi
9935 done
55db4b87
PB
9936fi
9937
2429c060
PB
9938if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9939 for ncn_progname in cc gcc; do
9940 if test -n "$ncn_target_tool_prefix"; then
9941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9942set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944$as_echo_n "checking for $ac_word... " >&6; }
9945if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
55db4b87
PB
9947else
9948 if test -n "$CC_FOR_TARGET"; then
9949 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9950else
c6b750e1
DJ
9951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952for as_dir in $PATH
9953do
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9958 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9960 break 2
9961 fi
9962done
81ecdfbb
RW
9963 done
9964IFS=$as_save_IFS
c6b750e1 9965
55db4b87
PB
9966fi
9967fi
c6b750e1 9968CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9969if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9971$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9972else
81ecdfbb
RW
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974$as_echo "no" >&6; }
55db4b87
PB
9975fi
9976
81ecdfbb 9977
2429c060
PB
9978 fi
9979 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9981set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983$as_echo_n "checking for $ac_word... " >&6; }
9984if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
55db4b87 9986else
05cbd757
PB
9987 if test -n "$CC_FOR_TARGET"; then
9988 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9989else
c6b750e1
DJ
9990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in $PATH
9992do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9997 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9999 break 2
10000 fi
10001done
81ecdfbb
RW
10002 done
10003IFS=$as_save_IFS
c6b750e1 10004
55db4b87
PB
10005fi
10006fi
c6b750e1 10007CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10008if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10010$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10011else
81ecdfbb
RW
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013$as_echo "no" >&6; }
55db4b87 10014fi
c6b750e1 10015
81ecdfbb 10016
2429c060
PB
10017 fi
10018 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10019 done
10020fi
c6b750e1 10021
05cbd757
PB
10022if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10023 set dummy cc gcc
10024 if test $build = $target ; then
10025 CC_FOR_TARGET="$2"
55db4b87 10026 else
05cbd757 10027 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10028 fi
d3f5afc4
MS
10029else
10030 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10031fi
10032
9a819804
AO
10033
10034
10035if test -n "$CXX_FOR_TARGET"; then
10036 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10037elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10038 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10039fi
10040
10041if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10042 for ncn_progname in c++ g++ cxx gxx; do
10043 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10044set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10046$as_echo_n "checking for $ac_word... " >&6; }
10047if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10048 $as_echo_n "(cached) " >&6
9a819804
AO
10049else
10050 if test -n "$CXX_FOR_TARGET"; then
10051 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10052else
10053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054for as_dir in $PATH
10055do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10060 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10062 break 2
10063 fi
10064done
81ecdfbb
RW
10065 done
10066IFS=$as_save_IFS
9a819804
AO
10067
10068fi
10069fi
10070CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10071if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10073$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10074else
81ecdfbb
RW
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10076$as_echo "no" >&6; }
9a819804
AO
10077fi
10078
81ecdfbb 10079
9a819804
AO
10080 done
10081fi
10082
10083if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10084 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10086$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10087 if test -x $with_build_time_tools/${ncn_progname}; then
10088 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10090$as_echo "yes" >&6; }
2429c060
PB
10091 break
10092 else
81ecdfbb
RW
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094$as_echo "no" >&6; }
2429c060
PB
10095 fi
10096 done
10097fi
10098
10099if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10100 for ncn_progname in c++ g++ cxx gxx; do
10101 if test -n "$ncn_target_tool_prefix"; then
10102 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10103set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10105$as_echo_n "checking for $ac_word... " >&6; }
10106if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
55db4b87
PB
10108else
10109 if test -n "$CXX_FOR_TARGET"; then
10110 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10111else
c6b750e1
DJ
10112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113for as_dir in $PATH
10114do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10119 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10121 break 2
10122 fi
10123done
81ecdfbb
RW
10124 done
10125IFS=$as_save_IFS
c6b750e1 10126
55db4b87
PB
10127fi
10128fi
c6b750e1 10129CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10130if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10132$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10133else
81ecdfbb
RW
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10135$as_echo "no" >&6; }
55db4b87
PB
10136fi
10137
81ecdfbb 10138
2429c060
PB
10139 fi
10140 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10142set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144$as_echo_n "checking for $ac_word... " >&6; }
10145if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10146 $as_echo_n "(cached) " >&6
55db4b87 10147else
05cbd757
PB
10148 if test -n "$CXX_FOR_TARGET"; then
10149 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10150else
c6b750e1
DJ
10151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10152for as_dir in $PATH
10153do
10154 IFS=$as_save_IFS
10155 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10156 for ac_exec_ext in '' $ac_executable_extensions; do
10157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10158 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10160 break 2
10161 fi
10162done
81ecdfbb
RW
10163 done
10164IFS=$as_save_IFS
c6b750e1 10165
55db4b87
PB
10166fi
10167fi
c6b750e1 10168CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10169if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10171$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10172else
81ecdfbb
RW
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10174$as_echo "no" >&6; }
55db4b87 10175fi
c6b750e1 10176
81ecdfbb 10177
2429c060
PB
10178 fi
10179 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10180 done
10181fi
c6b750e1 10182
05cbd757
PB
10183if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10184 set dummy c++ g++ cxx gxx
10185 if test $build = $target ; then
10186 CXX_FOR_TARGET="$2"
55db4b87 10187 else
05cbd757 10188 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10189 fi
d3f5afc4
MS
10190else
10191 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10192fi
10193
9a819804
AO
10194
10195
10196if test -n "$GCC_FOR_TARGET"; then
10197 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10198elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10199 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10200fi
10201
10202if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10203 for ncn_progname in gcc; do
10204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10205set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10207$as_echo_n "checking for $ac_word... " >&6; }
10208if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
9a819804
AO
10210else
10211 if test -n "$GCC_FOR_TARGET"; then
10212 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10213else
10214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10215for as_dir in $PATH
10216do
10217 IFS=$as_save_IFS
10218 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10219 for ac_exec_ext in '' $ac_executable_extensions; do
10220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10221 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10223 break 2
10224 fi
10225done
81ecdfbb
RW
10226 done
10227IFS=$as_save_IFS
9a819804
AO
10228
10229fi
10230fi
10231GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10232if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10234$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10235else
81ecdfbb
RW
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237$as_echo "no" >&6; }
9a819804
AO
10238fi
10239
81ecdfbb 10240
9a819804
AO
10241 done
10242fi
10243
10244if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10245 for ncn_progname in gcc; do
81ecdfbb
RW
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10247$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10248 if test -x $with_build_time_tools/${ncn_progname}; then
10249 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10251$as_echo "yes" >&6; }
2429c060
PB
10252 break
10253 else
81ecdfbb
RW
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255$as_echo "no" >&6; }
2429c060
PB
10256 fi
10257 done
10258fi
10259
10260if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10261 for ncn_progname in gcc; do
10262 if test -n "$ncn_target_tool_prefix"; then
10263 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10264set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10266$as_echo_n "checking for $ac_word... " >&6; }
10267if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10268 $as_echo_n "(cached) " >&6
859789af 10269else
2429c060
PB
10270 if test -n "$GCC_FOR_TARGET"; then
10271 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10272else
c6b750e1
DJ
10273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10274for as_dir in $PATH
10275do
10276 IFS=$as_save_IFS
10277 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10278 for ac_exec_ext in '' $ac_executable_extensions; do
10279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10280 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10282 break 2
10283 fi
10284done
81ecdfbb
RW
10285 done
10286IFS=$as_save_IFS
c6b750e1 10287
55db4b87
PB
10288fi
10289fi
c6b750e1 10290GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10291if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10293$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10294else
81ecdfbb
RW
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10296$as_echo "no" >&6; }
55db4b87
PB
10297fi
10298
81ecdfbb 10299
2429c060
PB
10300 fi
10301 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10303set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10305$as_echo_n "checking for $ac_word... " >&6; }
10306if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10307 $as_echo_n "(cached) " >&6
55db4b87 10308else
05cbd757
PB
10309 if test -n "$GCC_FOR_TARGET"; then
10310 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10311else
c6b750e1
DJ
10312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10313for as_dir in $PATH
10314do
10315 IFS=$as_save_IFS
10316 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10317 for ac_exec_ext in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10319 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10321 break 2
10322 fi
10323done
81ecdfbb
RW
10324 done
10325IFS=$as_save_IFS
c6b750e1 10326
55db4b87
PB
10327fi
10328fi
c6b750e1 10329GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10330if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10332$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10333else
81ecdfbb
RW
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10335$as_echo "no" >&6; }
55db4b87 10336fi
c6b750e1 10337
81ecdfbb 10338
2429c060
PB
10339 fi
10340 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10341 done
10342fi
c6b750e1 10343
05cbd757
PB
10344if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10345 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10346else
10347 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10348fi
10349
9a819804
AO
10350
10351
9a819804
AO
10352if test -n "$GFORTRAN_FOR_TARGET"; then
10353 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10354elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10355 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10356fi
10357
9a819804
AO
10358if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10359 for ncn_progname in gfortran; do
10360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10361set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363$as_echo_n "checking for $ac_word... " >&6; }
10364if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10365 $as_echo_n "(cached) " >&6
55db4b87 10366else
9a819804
AO
10367 if test -n "$GFORTRAN_FOR_TARGET"; then
10368 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10369else
c6b750e1
DJ
10370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371for as_dir in $PATH
10372do
10373 IFS=$as_save_IFS
10374 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10375 for ac_exec_ext in '' $ac_executable_extensions; do
10376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10377 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10379 break 2
10380 fi
10381done
81ecdfbb
RW
10382 done
10383IFS=$as_save_IFS
c6b750e1 10384
55db4b87
PB
10385fi
10386fi
9a819804
AO
10387GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10388if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10390$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10391else
81ecdfbb
RW
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393$as_echo "no" >&6; }
55db4b87 10394fi
c6b750e1 10395
81ecdfbb 10396
2429c060
PB
10397 done
10398fi
c6b750e1 10399
9a819804 10400if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10401 for ncn_progname in gfortran; do
81ecdfbb
RW
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10403$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10404 if test -x $with_build_time_tools/${ncn_progname}; then
10405 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407$as_echo "yes" >&6; }
2429c060
PB
10408 break
10409 else
81ecdfbb
RW
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411$as_echo "no" >&6; }
2429c060
PB
10412 fi
10413 done
10414fi
10415
10416if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10417 for ncn_progname in gfortran; do
10418 if test -n "$ncn_target_tool_prefix"; then
10419 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10420set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422$as_echo_n "checking for $ac_word... " >&6; }
10423if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
55db4b87
PB
10425else
10426 if test -n "$GFORTRAN_FOR_TARGET"; then
10427 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10428else
c6b750e1
DJ
10429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10436 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10438 break 2
10439 fi
10440done
81ecdfbb
RW
10441 done
10442IFS=$as_save_IFS
c6b750e1 10443
55db4b87
PB
10444fi
10445fi
c6b750e1 10446GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10447if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10449$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10450else
81ecdfbb
RW
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452$as_echo "no" >&6; }
55db4b87
PB
10453fi
10454
81ecdfbb 10455
2429c060
PB
10456 fi
10457 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10459set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461$as_echo_n "checking for $ac_word... " >&6; }
10462if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10463 $as_echo_n "(cached) " >&6
55db4b87 10464else
05cbd757 10465 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10466 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10467else
10468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469for as_dir in $PATH
10470do
10471 IFS=$as_save_IFS
10472 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10473 for ac_exec_ext in '' $ac_executable_extensions; do
10474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10475 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10477 break 2
10478 fi
10479done
81ecdfbb
RW
10480 done
10481IFS=$as_save_IFS
c6b750e1 10482
55db4b87
PB
10483fi
10484fi
c6b750e1 10485GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10486if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10488$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10489else
81ecdfbb
RW
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491$as_echo "no" >&6; }
55db4b87 10492fi
c6b750e1 10493
81ecdfbb 10494
2429c060
PB
10495 fi
10496 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10497 done
10498fi
c6b750e1 10499
05cbd757
PB
10500if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10501 set dummy gfortran
10502 if test $build = $target ; then
10503 GFORTRAN_FOR_TARGET="$2"
55db4b87 10504 else
05cbd757 10505 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10506 fi
d3f5afc4
MS
10507else
10508 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10509fi
10510
2429c060
PB
10511
10512
e552509b
ILT
10513if test -n "$GOC_FOR_TARGET"; then
10514 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10515elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10516 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10517fi
10518
10519if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10520 for ncn_progname in gccgo; do
10521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10522set dummy ${ncn_progname}; ac_word=$2
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524$as_echo_n "checking for $ac_word... " >&6; }
10525if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527else
10528 if test -n "$GOC_FOR_TARGET"; then
10529 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10530else
10531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532for as_dir in $PATH
10533do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542done
10543 done
10544IFS=$as_save_IFS
10545
10546fi
10547fi
10548GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10549if test -n "$GOC_FOR_TARGET"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10551$as_echo "$GOC_FOR_TARGET" >&6; }
10552else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554$as_echo "no" >&6; }
10555fi
10556
10557
10558 done
10559fi
10560
10561if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10562 for ncn_progname in gccgo; do
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10564$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10565 if test -x $with_build_time_tools/${ncn_progname}; then
10566 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10568$as_echo "yes" >&6; }
10569 break
10570 else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572$as_echo "no" >&6; }
10573 fi
10574 done
10575fi
10576
10577if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10578 for ncn_progname in gccgo; do
10579 if test -n "$ncn_target_tool_prefix"; then
10580 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10581set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10583$as_echo_n "checking for $ac_word... " >&6; }
10584if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10585 $as_echo_n "(cached) " >&6
10586else
10587 if test -n "$GOC_FOR_TARGET"; then
10588 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10589else
10590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591for as_dir in $PATH
10592do
10593 IFS=$as_save_IFS
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10597 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10599 break 2
10600 fi
10601done
10602 done
10603IFS=$as_save_IFS
10604
10605fi
10606fi
10607GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10608if test -n "$GOC_FOR_TARGET"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10610$as_echo "$GOC_FOR_TARGET" >&6; }
10611else
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10613$as_echo "no" >&6; }
10614fi
10615
10616
10617 fi
10618 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10620set dummy ${ncn_progname}; ac_word=$2
10621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10622$as_echo_n "checking for $ac_word... " >&6; }
10623if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10624 $as_echo_n "(cached) " >&6
10625else
10626 if test -n "$GOC_FOR_TARGET"; then
10627 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10628else
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10636 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641 done
10642IFS=$as_save_IFS
10643
10644fi
10645fi
10646GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10647if test -n "$GOC_FOR_TARGET"; then
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10649$as_echo "$GOC_FOR_TARGET" >&6; }
10650else
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652$as_echo "no" >&6; }
10653fi
10654
10655
10656 fi
10657 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10658 done
10659fi
10660
10661if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10662 set dummy gccgo
10663 if test $build = $target ; then
10664 GOC_FOR_TARGET="$2"
10665 else
10666 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10667 fi
10668else
10669 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10670fi
10671
10672
10673
2429c060
PB
10674cat > conftest.c << \EOF
10675#ifdef __GNUC__
10676 gcc_yay;
10677#endif
10678EOF
10679if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10680 have_gcc_for_target=yes
859789af 10681else
2429c060
PB
10682 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10683 have_gcc_for_target=no
859789af 10684fi
2429c060
PB
10685rm conftest.c
10686
10687
10688
859789af 10689
2429c060
PB
10690if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10691 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10693$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10694 if test -x $with_build_time_tools/ar; then
10695 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10696 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10698$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10699 else
81ecdfbb
RW
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701$as_echo "no" >&6; }
3a35eeb3 10702 fi
2429c060
PB
10703 elif test $build != $host && test $have_gcc_for_target = yes; then
10704 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10705 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10706 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10707 fi
2429c060 10708fi
c6b750e1 10709if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10710 # Extract the first word of "ar", so it can be a program name with args.
10711set dummy ar; ac_word=$2
81ecdfbb
RW
10712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10713$as_echo_n "checking for $ac_word... " >&6; }
10714if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10715 $as_echo_n "(cached) " >&6
859789af 10716else
c6b750e1
DJ
10717 case $AR_FOR_TARGET in
10718 [\\/]* | ?:[\\/]*)
2429c060
PB
10719 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10720 ;;
2429c060 10721 *)
c6b750e1
DJ
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $gcc_cv_tool_dirs
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10729 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10731 break 2
10732 fi
10733done
81ecdfbb
RW
10734 done
10735IFS=$as_save_IFS
c6b750e1 10736
2429c060
PB
10737 ;;
10738esac
859789af 10739fi
c6b750e1 10740AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10741if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10743$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10744else
81ecdfbb
RW
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746$as_echo "no" >&6; }
859789af 10747fi
05cbd757 10748
81ecdfbb 10749
2429c060
PB
10750fi
10751if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10752
10753
10754if test -n "$AR_FOR_TARGET"; then
10755 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10756elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10757 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10758fi
10759
10760if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10761 for ncn_progname in ar; do
10762 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10763set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10765$as_echo_n "checking for $ac_word... " >&6; }
10766if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10767 $as_echo_n "(cached) " >&6
9a819804
AO
10768else
10769 if test -n "$AR_FOR_TARGET"; then
10770 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10771else
10772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773for as_dir in $PATH
10774do
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10777 for ac_exec_ext in '' $ac_executable_extensions; do
10778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10779 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10781 break 2
10782 fi
10783done
81ecdfbb
RW
10784 done
10785IFS=$as_save_IFS
9a819804
AO
10786
10787fi
10788fi
10789AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10790if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10792$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10793else
81ecdfbb
RW
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10795$as_echo "no" >&6; }
9a819804
AO
10796fi
10797
81ecdfbb 10798
9a819804
AO
10799 done
10800fi
10801
10802if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10803 for ncn_progname in ar; do
81ecdfbb
RW
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10805$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10806 if test -x $with_build_time_tools/${ncn_progname}; then
10807 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10809$as_echo "yes" >&6; }
2429c060
PB
10810 break
10811 else
81ecdfbb
RW
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
2429c060
PB
10814 fi
10815 done
859789af
AC
10816fi
10817
2429c060
PB
10818if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10819 for ncn_progname in ar; do
10820 if test -n "$ncn_target_tool_prefix"; then
10821 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10822set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10824$as_echo_n "checking for $ac_word... " >&6; }
10825if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10826 $as_echo_n "(cached) " >&6
7e0f7140 10827else
2429c060
PB
10828 if test -n "$AR_FOR_TARGET"; then
10829 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10830else
c6b750e1
DJ
10831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10832for as_dir in $PATH
10833do
10834 IFS=$as_save_IFS
10835 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10838 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10840 break 2
10841 fi
10842done
81ecdfbb
RW
10843 done
10844IFS=$as_save_IFS
c6b750e1 10845
7e0f7140
GK
10846fi
10847fi
c6b750e1 10848AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10849if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10851$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10852else
81ecdfbb
RW
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854$as_echo "no" >&6; }
7e0f7140
GK
10855fi
10856
81ecdfbb 10857
2429c060
PB
10858 fi
10859 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10861set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863$as_echo_n "checking for $ac_word... " >&6; }
10864if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
7e0f7140 10866else
2429c060
PB
10867 if test -n "$AR_FOR_TARGET"; then
10868 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10869else
c6b750e1
DJ
10870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871for as_dir in $PATH
10872do
10873 IFS=$as_save_IFS
10874 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10877 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10879 break 2
10880 fi
10881done
81ecdfbb
RW
10882 done
10883IFS=$as_save_IFS
c6b750e1 10884
7e0f7140
GK
10885fi
10886fi
c6b750e1 10887AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10888if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10890$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10891else
81ecdfbb
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893$as_echo "no" >&6; }
7e0f7140 10894fi
c6b750e1 10895
81ecdfbb 10896
2429c060
PB
10897 fi
10898 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10899 done
10900fi
c6b750e1 10901
2429c060
PB
10902if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10903 set dummy ar
7e0f7140 10904 if test $build = $target ; then
2429c060 10905 AR_FOR_TARGET="$2"
7e0f7140 10906 else
2429c060 10907 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10908 fi
d3f5afc4
MS
10909else
10910 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10911fi
10912
3a35eeb3
PB
10913else
10914 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10915fi
10916
10917
10918
10919
10920if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10921 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10923$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10924 if test -x $with_build_time_tools/as; then
10925 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10926 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10928$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10929 else
81ecdfbb
RW
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10931$as_echo "no" >&6; }
3a35eeb3 10932 fi
2429c060
PB
10933 elif test $build != $host && test $have_gcc_for_target = yes; then
10934 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10935 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10936 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10937 fi
10938fi
c6b750e1 10939if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10940 # Extract the first word of "as", so it can be a program name with args.
10941set dummy as; ac_word=$2
81ecdfbb
RW
10942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943$as_echo_n "checking for $ac_word... " >&6; }
10944if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10945 $as_echo_n "(cached) " >&6
2429c060 10946else
c6b750e1
DJ
10947 case $AS_FOR_TARGET in
10948 [\\/]* | ?:[\\/]*)
2429c060
PB
10949 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10950 ;;
2429c060 10951 *)
c6b750e1
DJ
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953for as_dir in $gcc_cv_tool_dirs
10954do
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10959 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10961 break 2
10962 fi
10963done
81ecdfbb
RW
10964 done
10965IFS=$as_save_IFS
c6b750e1 10966
2429c060
PB
10967 ;;
10968esac
10969fi
c6b750e1 10970AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10971if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10973$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10974else
81ecdfbb
RW
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976$as_echo "no" >&6; }
2429c060
PB
10977fi
10978
81ecdfbb 10979
2429c060
PB
10980fi
10981if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10982
10983
10984if test -n "$AS_FOR_TARGET"; then
10985 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10986elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10987 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10988fi
10989
10990if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10991 for ncn_progname in as; do
10992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10993set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995$as_echo_n "checking for $ac_word... " >&6; }
10996if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
9a819804
AO
10998else
10999 if test -n "$AS_FOR_TARGET"; then
11000 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11001else
11002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003for as_dir in $PATH
11004do
11005 IFS=$as_save_IFS
11006 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11009 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11011 break 2
11012 fi
11013done
81ecdfbb
RW
11014 done
11015IFS=$as_save_IFS
9a819804
AO
11016
11017fi
11018fi
11019AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11020if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11022$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11023else
81ecdfbb
RW
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025$as_echo "no" >&6; }
9a819804
AO
11026fi
11027
81ecdfbb 11028
9a819804
AO
11029 done
11030fi
11031
11032if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11033 for ncn_progname in as; do
81ecdfbb
RW
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11035$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11036 if test -x $with_build_time_tools/${ncn_progname}; then
11037 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11039$as_echo "yes" >&6; }
2429c060
PB
11040 break
11041 else
81ecdfbb
RW
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043$as_echo "no" >&6; }
2429c060
PB
11044 fi
11045 done
11046fi
11047
11048if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11049 for ncn_progname in as; do
11050 if test -n "$ncn_target_tool_prefix"; then
11051 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11052set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11054$as_echo_n "checking for $ac_word... " >&6; }
11055if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
2429c060
PB
11057else
11058 if test -n "$AS_FOR_TARGET"; then
11059 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11060else
c6b750e1
DJ
11061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11062for as_dir in $PATH
11063do
11064 IFS=$as_save_IFS
11065 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11066 for ac_exec_ext in '' $ac_executable_extensions; do
11067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11068 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11070 break 2
11071 fi
11072done
81ecdfbb
RW
11073 done
11074IFS=$as_save_IFS
c6b750e1 11075
2429c060
PB
11076fi
11077fi
c6b750e1 11078AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11079if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11081$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11082else
81ecdfbb
RW
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084$as_echo "no" >&6; }
2429c060
PB
11085fi
11086
81ecdfbb 11087
2429c060
PB
11088 fi
11089 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11091set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093$as_echo_n "checking for $ac_word... " >&6; }
11094if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
2429c060
PB
11096else
11097 if test -n "$AS_FOR_TARGET"; then
11098 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11099else
c6b750e1
DJ
11100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101for as_dir in $PATH
11102do
11103 IFS=$as_save_IFS
11104 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11107 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11109 break 2
11110 fi
11111done
81ecdfbb
RW
11112 done
11113IFS=$as_save_IFS
c6b750e1 11114
2429c060
PB
11115fi
11116fi
c6b750e1 11117AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11118if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11120$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11121else
81ecdfbb
RW
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123$as_echo "no" >&6; }
2429c060 11124fi
c6b750e1 11125
81ecdfbb 11126
2429c060
PB
11127 fi
11128 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11129 done
11130fi
c6b750e1 11131
2429c060
PB
11132if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11133 set dummy as
11134 if test $build = $target ; then
11135 AS_FOR_TARGET="$2"
11136 else
11137 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11138 fi
d3f5afc4
MS
11139else
11140 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11141fi
11142
3a35eeb3
PB
11143else
11144 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11145fi
11146
11147
11148
11149
11150if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11151 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11153$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11154 if test -x $with_build_time_tools/dlltool; then
11155 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11156 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11158$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11159 else
81ecdfbb
RW
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11161$as_echo "no" >&6; }
3a35eeb3 11162 fi
2429c060
PB
11163 elif test $build != $host && test $have_gcc_for_target = yes; then
11164 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11165 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11166 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11167 fi
11168fi
c6b750e1 11169if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11170 # Extract the first word of "dlltool", so it can be a program name with args.
11171set dummy dlltool; ac_word=$2
81ecdfbb
RW
11172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11173$as_echo_n "checking for $ac_word... " >&6; }
11174if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11175 $as_echo_n "(cached) " >&6
2429c060 11176else
c6b750e1
DJ
11177 case $DLLTOOL_FOR_TARGET in
11178 [\\/]* | ?:[\\/]*)
2429c060
PB
11179 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11180 ;;
2429c060 11181 *)
c6b750e1
DJ
11182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11183for as_dir in $gcc_cv_tool_dirs
11184do
11185 IFS=$as_save_IFS
11186 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11187 for ac_exec_ext in '' $ac_executable_extensions; do
11188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11189 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11191 break 2
11192 fi
11193done
81ecdfbb
RW
11194 done
11195IFS=$as_save_IFS
c6b750e1 11196
2429c060
PB
11197 ;;
11198esac
11199fi
c6b750e1 11200DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11201if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11203$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11204else
81ecdfbb
RW
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
2429c060
PB
11207fi
11208
81ecdfbb 11209
2429c060
PB
11210fi
11211if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11212
11213
11214if test -n "$DLLTOOL_FOR_TARGET"; then
11215 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11216elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11217 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11218fi
11219
11220if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11221 for ncn_progname in dlltool; do
11222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225$as_echo_n "checking for $ac_word... " >&6; }
11226if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
9a819804
AO
11228else
11229 if test -n "$DLLTOOL_FOR_TARGET"; then
11230 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11231else
11232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233for as_dir in $PATH
11234do
11235 IFS=$as_save_IFS
11236 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11239 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11241 break 2
11242 fi
11243done
81ecdfbb
RW
11244 done
11245IFS=$as_save_IFS
9a819804
AO
11246
11247fi
11248fi
11249DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11250if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11252$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11253else
81ecdfbb
RW
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255$as_echo "no" >&6; }
9a819804
AO
11256fi
11257
81ecdfbb 11258
9a819804
AO
11259 done
11260fi
11261
11262if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11263 for ncn_progname in dlltool; do
81ecdfbb
RW
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11265$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11266 if test -x $with_build_time_tools/${ncn_progname}; then
11267 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11269$as_echo "yes" >&6; }
2429c060
PB
11270 break
11271 else
81ecdfbb
RW
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
2429c060
PB
11274 fi
11275 done
11276fi
11277
11278if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11279 for ncn_progname in dlltool; do
11280 if test -n "$ncn_target_tool_prefix"; then
11281 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11282set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11284$as_echo_n "checking for $ac_word... " >&6; }
11285if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
2429c060
PB
11287else
11288 if test -n "$DLLTOOL_FOR_TARGET"; then
11289 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11290else
c6b750e1
DJ
11291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11292for as_dir in $PATH
11293do
11294 IFS=$as_save_IFS
11295 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11296 for ac_exec_ext in '' $ac_executable_extensions; do
11297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11298 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11300 break 2
11301 fi
11302done
81ecdfbb
RW
11303 done
11304IFS=$as_save_IFS
c6b750e1 11305
2429c060
PB
11306fi
11307fi
c6b750e1 11308DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11309if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11311$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11312else
81ecdfbb
RW
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314$as_echo "no" >&6; }
2429c060
PB
11315fi
11316
81ecdfbb 11317
2429c060
PB
11318 fi
11319 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11321set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323$as_echo_n "checking for $ac_word... " >&6; }
11324if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
2429c060
PB
11326else
11327 if test -n "$DLLTOOL_FOR_TARGET"; then
11328 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11329else
c6b750e1
DJ
11330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11337 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11339 break 2
11340 fi
11341done
81ecdfbb
RW
11342 done
11343IFS=$as_save_IFS
c6b750e1 11344
2429c060
PB
11345fi
11346fi
c6b750e1 11347DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11348if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11350$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11351else
81ecdfbb
RW
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11353$as_echo "no" >&6; }
2429c060 11354fi
c6b750e1 11355
81ecdfbb 11356
2429c060
PB
11357 fi
11358 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11359 done
11360fi
c6b750e1 11361
2429c060
PB
11362if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11363 set dummy dlltool
11364 if test $build = $target ; then
11365 DLLTOOL_FOR_TARGET="$2"
11366 else
11367 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11368 fi
d3f5afc4
MS
11369else
11370 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11371fi
11372
3a35eeb3
PB
11373else
11374 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11375fi
11376
11377
11378
11379
11380if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11381 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11383$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11384 if test -x $with_build_time_tools/ld; then
11385 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11386 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11388$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11389 else
81ecdfbb
RW
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391$as_echo "no" >&6; }
3a35eeb3 11392 fi
2429c060
PB
11393 elif test $build != $host && test $have_gcc_for_target = yes; then
11394 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11395 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11396 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11397 fi
11398fi
c6b750e1 11399if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11400 # Extract the first word of "ld", so it can be a program name with args.
11401set dummy ld; ac_word=$2
81ecdfbb
RW
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11403$as_echo_n "checking for $ac_word... " >&6; }
11404if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11405 $as_echo_n "(cached) " >&6
2429c060 11406else
c6b750e1
DJ
11407 case $LD_FOR_TARGET in
11408 [\\/]* | ?:[\\/]*)
2429c060
PB
11409 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11410 ;;
2429c060 11411 *)
c6b750e1
DJ
11412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11413for as_dir in $gcc_cv_tool_dirs
11414do
11415 IFS=$as_save_IFS
11416 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11417 for ac_exec_ext in '' $ac_executable_extensions; do
11418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11419 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11421 break 2
11422 fi
11423done
81ecdfbb
RW
11424 done
11425IFS=$as_save_IFS
c6b750e1 11426
2429c060
PB
11427 ;;
11428esac
11429fi
c6b750e1 11430LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11431if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11433$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11434else
81ecdfbb
RW
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
2429c060
PB
11437fi
11438
81ecdfbb 11439
2429c060
PB
11440fi
11441if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11442
11443
11444if test -n "$LD_FOR_TARGET"; then
11445 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11446elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11447 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11448fi
11449
11450if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11451 for ncn_progname in ld; do
11452 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11453set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11455$as_echo_n "checking for $ac_word... " >&6; }
11456if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11457 $as_echo_n "(cached) " >&6
9a819804
AO
11458else
11459 if test -n "$LD_FOR_TARGET"; then
11460 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11461else
11462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11463for as_dir in $PATH
11464do
11465 IFS=$as_save_IFS
11466 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11467 for ac_exec_ext in '' $ac_executable_extensions; do
11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11469 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11471 break 2
11472 fi
11473done
81ecdfbb
RW
11474 done
11475IFS=$as_save_IFS
9a819804
AO
11476
11477fi
11478fi
11479LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11480if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11482$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11483else
81ecdfbb
RW
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11485$as_echo "no" >&6; }
9a819804
AO
11486fi
11487
81ecdfbb 11488
9a819804
AO
11489 done
11490fi
11491
11492if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11493 for ncn_progname in ld; do
81ecdfbb
RW
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11495$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11496 if test -x $with_build_time_tools/${ncn_progname}; then
11497 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11499$as_echo "yes" >&6; }
2429c060
PB
11500 break
11501 else
81ecdfbb
RW
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
2429c060
PB
11504 fi
11505 done
11506fi
11507
11508if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11509 for ncn_progname in ld; do
11510 if test -n "$ncn_target_tool_prefix"; then
11511 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11512set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11514$as_echo_n "checking for $ac_word... " >&6; }
11515if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11516 $as_echo_n "(cached) " >&6
2429c060
PB
11517else
11518 if test -n "$LD_FOR_TARGET"; then
11519 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11520else
c6b750e1
DJ
11521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522for as_dir in $PATH
11523do
11524 IFS=$as_save_IFS
11525 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11526 for ac_exec_ext in '' $ac_executable_extensions; do
11527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11528 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11530 break 2
11531 fi
11532done
81ecdfbb
RW
11533 done
11534IFS=$as_save_IFS
c6b750e1 11535
2429c060
PB
11536fi
11537fi
c6b750e1 11538LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11539if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11541$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11542else
81ecdfbb
RW
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544$as_echo "no" >&6; }
2429c060
PB
11545fi
11546
81ecdfbb 11547
2429c060
PB
11548 fi
11549 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11551set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553$as_echo_n "checking for $ac_word... " >&6; }
11554if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
2429c060
PB
11556else
11557 if test -n "$LD_FOR_TARGET"; then
11558 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11559else
c6b750e1
DJ
11560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11561for as_dir in $PATH
11562do
11563 IFS=$as_save_IFS
11564 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11565 for ac_exec_ext in '' $ac_executable_extensions; do
11566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11567 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11569 break 2
11570 fi
11571done
81ecdfbb
RW
11572 done
11573IFS=$as_save_IFS
c6b750e1 11574
2429c060
PB
11575fi
11576fi
c6b750e1 11577LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11578if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11580$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11581else
81ecdfbb
RW
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583$as_echo "no" >&6; }
2429c060 11584fi
c6b750e1 11585
81ecdfbb 11586
2429c060
PB
11587 fi
11588 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11589 done
11590fi
c6b750e1 11591
2429c060
PB
11592if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11593 set dummy ld
11594 if test $build = $target ; then
11595 LD_FOR_TARGET="$2"
11596 else
11597 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11598 fi
d3f5afc4
MS
11599else
11600 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11601fi
11602
3a35eeb3
PB
11603else
11604 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11605fi
11606
11607
11608
11609
11610if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11611 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11613$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11614 if test -x $with_build_time_tools/lipo; then
11615 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11616 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11618$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11619 else
81ecdfbb
RW
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621$as_echo "no" >&6; }
3a35eeb3 11622 fi
2429c060
PB
11623 elif test $build != $host && test $have_gcc_for_target = yes; then
11624 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11625 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11626 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11627 fi
11628fi
9a819804
AO
11629if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11630 # Extract the first word of "lipo", so it can be a program name with args.
11631set dummy lipo; ac_word=$2
81ecdfbb
RW
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11633$as_echo_n "checking for $ac_word... " >&6; }
11634if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11635 $as_echo_n "(cached) " >&6
9a819804
AO
11636else
11637 case $LIPO_FOR_TARGET in
11638 [\\/]* | ?:[\\/]*)
11639 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11640 ;;
11641 *)
11642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11643for as_dir in $gcc_cv_tool_dirs
11644do
11645 IFS=$as_save_IFS
11646 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11647 for ac_exec_ext in '' $ac_executable_extensions; do
11648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11649 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11651 break 2
11652 fi
11653done
81ecdfbb
RW
11654 done
11655IFS=$as_save_IFS
9a819804
AO
11656
11657 ;;
11658esac
11659fi
11660LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11661if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11663$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11664else
81ecdfbb
RW
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
9a819804
AO
11667fi
11668
81ecdfbb 11669
9a819804
AO
11670fi
11671if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11672
11673
11674if test -n "$LIPO_FOR_TARGET"; then
11675 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11676elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11677 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11678fi
11679
11680if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11681 for ncn_progname in lipo; do
11682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11683set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11685$as_echo_n "checking for $ac_word... " >&6; }
11686if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11687 $as_echo_n "(cached) " >&6
2429c060 11688else
9a819804
AO
11689 if test -n "$LIPO_FOR_TARGET"; then
11690 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11691else
11692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
c6b750e1
DJ
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11697 for ac_exec_ext in '' $ac_executable_extensions; do
11698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11699 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11701 break 2
11702 fi
11703done
81ecdfbb
RW
11704 done
11705IFS=$as_save_IFS
c6b750e1 11706
2429c060 11707fi
9a819804
AO
11708fi
11709LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11710if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11712$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11713else
81ecdfbb
RW
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715$as_echo "no" >&6; }
2429c060
PB
11716fi
11717
81ecdfbb 11718
9a819804 11719 done
2429c060 11720fi
9a819804
AO
11721
11722if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11723 for ncn_progname in lipo; do
81ecdfbb
RW
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11725$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11726 if test -x $with_build_time_tools/${ncn_progname}; then
11727 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11729$as_echo "yes" >&6; }
2429c060
PB
11730 break
11731 else
81ecdfbb
RW
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
2429c060
PB
11734 fi
11735 done
11736fi
11737
11738if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11739 for ncn_progname in lipo; do
11740 if test -n "$ncn_target_tool_prefix"; then
11741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11742set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744$as_echo_n "checking for $ac_word... " >&6; }
11745if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11746 $as_echo_n "(cached) " >&6
2429c060
PB
11747else
11748 if test -n "$LIPO_FOR_TARGET"; then
11749 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11750else
c6b750e1
DJ
11751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11752for as_dir in $PATH
11753do
11754 IFS=$as_save_IFS
11755 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11756 for ac_exec_ext in '' $ac_executable_extensions; do
11757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11758 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11760 break 2
11761 fi
11762done
81ecdfbb
RW
11763 done
11764IFS=$as_save_IFS
c6b750e1 11765
2429c060
PB
11766fi
11767fi
c6b750e1 11768LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11769if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11771$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11772else
81ecdfbb
RW
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774$as_echo "no" >&6; }
2429c060
PB
11775fi
11776
81ecdfbb 11777
2429c060
PB
11778 fi
11779 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11781set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783$as_echo_n "checking for $ac_word... " >&6; }
11784if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
2429c060
PB
11786else
11787 if test -n "$LIPO_FOR_TARGET"; then
11788 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11789else
c6b750e1
DJ
11790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11791for as_dir in $PATH
11792do
11793 IFS=$as_save_IFS
11794 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11795 for ac_exec_ext in '' $ac_executable_extensions; do
11796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11797 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11799 break 2
11800 fi
11801done
81ecdfbb
RW
11802 done
11803IFS=$as_save_IFS
c6b750e1 11804
2429c060
PB
11805fi
11806fi
c6b750e1 11807LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11808if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11810$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11811else
81ecdfbb
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813$as_echo "no" >&6; }
2429c060 11814fi
c6b750e1 11815
81ecdfbb 11816
2429c060
PB
11817 fi
11818 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11819 done
11820fi
c6b750e1 11821
2429c060
PB
11822if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11823 set dummy lipo
11824 if test $build = $target ; then
11825 LIPO_FOR_TARGET="$2"
11826 else
11827 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11828 fi
d3f5afc4
MS
11829else
11830 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11831fi
11832
3a35eeb3
PB
11833else
11834 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11835fi
11836
11837
11838
11839
11840if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11841 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11843$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11844 if test -x $with_build_time_tools/nm; then
11845 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11846 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11848$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11849 else
81ecdfbb
RW
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11851$as_echo "no" >&6; }
3a35eeb3 11852 fi
2429c060
PB
11853 elif test $build != $host && test $have_gcc_for_target = yes; then
11854 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11855 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11856 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11857 fi
11858fi
c6b750e1 11859if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11860 # Extract the first word of "nm", so it can be a program name with args.
11861set dummy nm; ac_word=$2
81ecdfbb
RW
11862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
11864if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11865 $as_echo_n "(cached) " >&6
2429c060 11866else
c6b750e1
DJ
11867 case $NM_FOR_TARGET in
11868 [\\/]* | ?:[\\/]*)
2429c060
PB
11869 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11870 ;;
2429c060 11871 *)
c6b750e1
DJ
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873for as_dir in $gcc_cv_tool_dirs
11874do
11875 IFS=$as_save_IFS
11876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11879 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11881 break 2
11882 fi
11883done
81ecdfbb
RW
11884 done
11885IFS=$as_save_IFS
c6b750e1 11886
2429c060
PB
11887 ;;
11888esac
11889fi
c6b750e1 11890NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11891if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11893$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11894else
81ecdfbb
RW
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
2429c060
PB
11897fi
11898
81ecdfbb 11899
2429c060
PB
11900fi
11901if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11902
11903
11904if test -n "$NM_FOR_TARGET"; then
11905 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11906elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11907 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11908fi
11909
11910if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11911 for ncn_progname in nm; do
11912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11913set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915$as_echo_n "checking for $ac_word... " >&6; }
11916if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11917 $as_echo_n "(cached) " >&6
9a819804
AO
11918else
11919 if test -n "$NM_FOR_TARGET"; then
11920 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11921else
11922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11923for as_dir in $PATH
11924do
11925 IFS=$as_save_IFS
11926 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11927 for ac_exec_ext in '' $ac_executable_extensions; do
11928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11929 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11931 break 2
11932 fi
11933done
81ecdfbb
RW
11934 done
11935IFS=$as_save_IFS
9a819804
AO
11936
11937fi
11938fi
11939NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11940if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11942$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11943else
81ecdfbb
RW
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945$as_echo "no" >&6; }
9a819804
AO
11946fi
11947
81ecdfbb 11948
9a819804
AO
11949 done
11950fi
11951
11952if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11953 for ncn_progname in nm; do
81ecdfbb
RW
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11955$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11956 if test -x $with_build_time_tools/${ncn_progname}; then
11957 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11959$as_echo "yes" >&6; }
2429c060
PB
11960 break
11961 else
81ecdfbb
RW
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963$as_echo "no" >&6; }
2429c060
PB
11964 fi
11965 done
11966fi
11967
11968if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11969 for ncn_progname in nm; do
11970 if test -n "$ncn_target_tool_prefix"; then
11971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11972set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11974$as_echo_n "checking for $ac_word... " >&6; }
11975if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11976 $as_echo_n "(cached) " >&6
859789af 11977else
55db4b87
PB
11978 if test -n "$NM_FOR_TARGET"; then
11979 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11980else
c6b750e1
DJ
11981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982for as_dir in $PATH
11983do
11984 IFS=$as_save_IFS
11985 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11988 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11990 break 2
11991 fi
11992done
81ecdfbb
RW
11993 done
11994IFS=$as_save_IFS
c6b750e1 11995
859789af
AC
11996fi
11997fi
c6b750e1 11998NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11999if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12001$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12002else
81ecdfbb
RW
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12004$as_echo "no" >&6; }
859789af
AC
12005fi
12006
81ecdfbb 12007
2429c060
PB
12008 fi
12009 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12011set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013$as_echo_n "checking for $ac_word... " >&6; }
12014if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
859789af 12016else
05cbd757
PB
12017 if test -n "$NM_FOR_TARGET"; then
12018 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12019else
c6b750e1
DJ
12020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021for as_dir in $PATH
12022do
12023 IFS=$as_save_IFS
12024 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12027 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12029 break 2
12030 fi
12031done
81ecdfbb
RW
12032 done
12033IFS=$as_save_IFS
c6b750e1 12034
859789af
AC
12035fi
12036fi
c6b750e1 12037NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12038if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12040$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12041else
81ecdfbb
RW
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043$as_echo "no" >&6; }
859789af 12044fi
c6b750e1 12045
81ecdfbb 12046
2429c060
PB
12047 fi
12048 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12049 done
12050fi
c6b750e1 12051
05cbd757
PB
12052if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12053 set dummy nm
12054 if test $build = $target ; then
12055 NM_FOR_TARGET="$2"
859789af 12056 else
05cbd757 12057 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12058 fi
d3f5afc4
MS
12059else
12060 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12061fi
12062
3a35eeb3
PB
12063else
12064 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12065fi
12066
12067
12068
12069
6b91c541
AP
12070if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12071 if test -n "$with_build_time_tools"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12073$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12074 if test -x $with_build_time_tools/objcopy; then
12075 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12076 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12078$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12079 else
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081$as_echo "no" >&6; }
12082 fi
12083 elif test $build != $host && test $have_gcc_for_target = yes; then
12084 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12085 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12086 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12087 fi
12088fi
12089if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12090 # Extract the first word of "objcopy", so it can be a program name with args.
12091set dummy objcopy; ac_word=$2
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093$as_echo_n "checking for $ac_word... " >&6; }
12094if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12095 $as_echo_n "(cached) " >&6
12096else
12097 case $OBJCOPY_FOR_TARGET in
12098 [\\/]* | ?:[\\/]*)
12099 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12100 ;;
12101 *)
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103for as_dir in $gcc_cv_tool_dirs
12104do
12105 IFS=$as_save_IFS
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12109 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 break 2
12112 fi
12113done
12114 done
12115IFS=$as_save_IFS
12116
12117 ;;
12118esac
12119fi
12120OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12121if test -n "$OBJCOPY_FOR_TARGET"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12123$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12124else
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126$as_echo "no" >&6; }
12127fi
12128
12129
12130fi
12131if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12132
12133
12134if test -n "$OBJCOPY_FOR_TARGET"; then
12135 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12136elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12137 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12138fi
12139
12140if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12141 for ncn_progname in objcopy; do
12142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12143set dummy ${ncn_progname}; ac_word=$2
12144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145$as_echo_n "checking for $ac_word... " >&6; }
12146if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12147 $as_echo_n "(cached) " >&6
12148else
12149 if test -n "$OBJCOPY_FOR_TARGET"; then
12150 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12151else
12152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12153for as_dir in $PATH
12154do
12155 IFS=$as_save_IFS
12156 test -z "$as_dir" && as_dir=.
12157 for ac_exec_ext in '' $ac_executable_extensions; do
12158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12159 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12161 break 2
12162 fi
12163done
12164 done
12165IFS=$as_save_IFS
12166
12167fi
12168fi
12169OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12170if test -n "$OBJCOPY_FOR_TARGET"; then
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12172$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12173else
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12175$as_echo "no" >&6; }
12176fi
12177
12178
12179 done
12180fi
12181
12182if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12183 for ncn_progname in objcopy; do
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12185$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12186 if test -x $with_build_time_tools/${ncn_progname}; then
12187 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12189$as_echo "yes" >&6; }
12190 break
12191 else
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193$as_echo "no" >&6; }
12194 fi
12195 done
12196fi
12197
12198if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12199 for ncn_progname in objcopy; do
12200 if test -n "$ncn_target_tool_prefix"; then
12201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12202set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12204$as_echo_n "checking for $ac_word... " >&6; }
12205if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207else
12208 if test -n "$OBJCOPY_FOR_TARGET"; then
12209 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12210else
12211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
12216 for ac_exec_ext in '' $ac_executable_extensions; do
12217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12218 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12220 break 2
12221 fi
12222done
12223 done
12224IFS=$as_save_IFS
12225
12226fi
12227fi
12228OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12229if test -n "$OBJCOPY_FOR_TARGET"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12231$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12232else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234$as_echo "no" >&6; }
12235fi
12236
12237
12238 fi
12239 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12241set dummy ${ncn_progname}; ac_word=$2
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243$as_echo_n "checking for $ac_word... " >&6; }
12244if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
12246else
12247 if test -n "$OBJCOPY_FOR_TARGET"; then
12248 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12249else
12250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251for as_dir in $PATH
12252do
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
12256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12257 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12260 fi
12261done
12262 done
12263IFS=$as_save_IFS
12264
12265fi
12266fi
12267OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12268if test -n "$OBJCOPY_FOR_TARGET"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12270$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12271else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273$as_echo "no" >&6; }
12274fi
12275
12276
12277 fi
12278 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12279 done
12280fi
12281
12282if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12283 set dummy objcopy
12284 if test $build = $target ; then
12285 OBJCOPY_FOR_TARGET="$2"
12286 else
12287 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12288 fi
12289else
12290 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12291fi
12292
12293else
12294 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12295fi
12296
12297
12298
12299
2429c060
PB
12300if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12301 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12303$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12304 if test -x $with_build_time_tools/objdump; then
12305 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12306 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12308$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12309 else
81ecdfbb
RW
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12311$as_echo "no" >&6; }
3a35eeb3 12312 fi
2429c060
PB
12313 elif test $build != $host && test $have_gcc_for_target = yes; then
12314 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12315 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12316 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12317 fi
12318fi
c6b750e1 12319if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12320 # Extract the first word of "objdump", so it can be a program name with args.
12321set dummy objdump; ac_word=$2
81ecdfbb
RW
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12323$as_echo_n "checking for $ac_word... " >&6; }
12324if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12325 $as_echo_n "(cached) " >&6
2429c060 12326else
c6b750e1
DJ
12327 case $OBJDUMP_FOR_TARGET in
12328 [\\/]* | ?:[\\/]*)
2429c060
PB
12329 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12330 ;;
2429c060 12331 *)
c6b750e1
DJ
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333for as_dir in $gcc_cv_tool_dirs
12334do
12335 IFS=$as_save_IFS
12336 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12339 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12341 break 2
12342 fi
12343done
81ecdfbb
RW
12344 done
12345IFS=$as_save_IFS
c6b750e1 12346
2429c060
PB
12347 ;;
12348esac
12349fi
c6b750e1 12350OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12351if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12353$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12354else
81ecdfbb
RW
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356$as_echo "no" >&6; }
2429c060
PB
12357fi
12358
81ecdfbb 12359
2429c060
PB
12360fi
12361if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12362
12363
12364if test -n "$OBJDUMP_FOR_TARGET"; then
12365 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12366elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12367 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12368fi
12369
12370if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12371 for ncn_progname in objdump; do
12372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12373set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375$as_echo_n "checking for $ac_word... " >&6; }
12376if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12377 $as_echo_n "(cached) " >&6
9a819804
AO
12378else
12379 if test -n "$OBJDUMP_FOR_TARGET"; then
12380 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12381else
12382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383for as_dir in $PATH
12384do
12385 IFS=$as_save_IFS
12386 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12389 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12391 break 2
12392 fi
12393done
81ecdfbb
RW
12394 done
12395IFS=$as_save_IFS
9a819804
AO
12396
12397fi
12398fi
12399OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12400if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12402$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12403else
81ecdfbb
RW
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405$as_echo "no" >&6; }
9a819804
AO
12406fi
12407
81ecdfbb 12408
9a819804
AO
12409 done
12410fi
12411
12412if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12413 for ncn_progname in objdump; do
81ecdfbb
RW
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12415$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12416 if test -x $with_build_time_tools/${ncn_progname}; then
12417 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12419$as_echo "yes" >&6; }
2429c060
PB
12420 break
12421 else
81ecdfbb
RW
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
2429c060
PB
12424 fi
12425 done
12426fi
12427
12428if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12429 for ncn_progname in objdump; do
12430 if test -n "$ncn_target_tool_prefix"; then
12431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12432set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434$as_echo_n "checking for $ac_word... " >&6; }
12435if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12436 $as_echo_n "(cached) " >&6
5ae72758
DJ
12437else
12438 if test -n "$OBJDUMP_FOR_TARGET"; then
12439 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12440else
c6b750e1
DJ
12441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442for as_dir in $PATH
12443do
12444 IFS=$as_save_IFS
12445 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12448 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12450 break 2
12451 fi
12452done
81ecdfbb
RW
12453 done
12454IFS=$as_save_IFS
c6b750e1 12455
5ae72758
DJ
12456fi
12457fi
c6b750e1 12458OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12459if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12461$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12462else
81ecdfbb
RW
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12464$as_echo "no" >&6; }
5ae72758
DJ
12465fi
12466
81ecdfbb 12467
2429c060
PB
12468 fi
12469 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12471set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473$as_echo_n "checking for $ac_word... " >&6; }
12474if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
5ae72758
DJ
12476else
12477 if test -n "$OBJDUMP_FOR_TARGET"; then
12478 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12479else
c6b750e1
DJ
12480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12481for as_dir in $PATH
12482do
12483 IFS=$as_save_IFS
12484 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12485 for ac_exec_ext in '' $ac_executable_extensions; do
12486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12487 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12489 break 2
12490 fi
12491done
81ecdfbb
RW
12492 done
12493IFS=$as_save_IFS
c6b750e1 12494
5ae72758
DJ
12495fi
12496fi
c6b750e1 12497OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12498if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12500$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12501else
81ecdfbb
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12503$as_echo "no" >&6; }
5ae72758 12504fi
c6b750e1 12505
81ecdfbb 12506
2429c060
PB
12507 fi
12508 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12509 done
12510fi
c6b750e1 12511
5ae72758
DJ
12512if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12513 set dummy objdump
12514 if test $build = $target ; then
12515 OBJDUMP_FOR_TARGET="$2"
12516 else
12517 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12518 fi
d3f5afc4
MS
12519else
12520 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12521fi
12522
3a35eeb3
PB
12523else
12524 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12525fi
12526
12527
12528
12529
12530if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12531 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12533$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12534 if test -x $with_build_time_tools/ranlib; then
12535 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12536 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12538$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12539 else
81ecdfbb
RW
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12541$as_echo "no" >&6; }
3a35eeb3 12542 fi
2429c060
PB
12543 elif test $build != $host && test $have_gcc_for_target = yes; then
12544 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12545 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12546 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12547 fi
12548fi
c6b750e1 12549if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12550 # Extract the first word of "ranlib", so it can be a program name with args.
12551set dummy ranlib; ac_word=$2
81ecdfbb
RW
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12553$as_echo_n "checking for $ac_word... " >&6; }
12554if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12555 $as_echo_n "(cached) " >&6
2429c060 12556else
c6b750e1
DJ
12557 case $RANLIB_FOR_TARGET in
12558 [\\/]* | ?:[\\/]*)
2429c060
PB
12559 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12560 ;;
2429c060 12561 *)
c6b750e1
DJ
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563for as_dir in $gcc_cv_tool_dirs
12564do
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12569 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12571 break 2
12572 fi
12573done
81ecdfbb
RW
12574 done
12575IFS=$as_save_IFS
c6b750e1 12576
2429c060
PB
12577 ;;
12578esac
12579fi
c6b750e1 12580RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12581if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12583$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12584else
81ecdfbb
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
2429c060
PB
12587fi
12588
81ecdfbb 12589
2429c060
PB
12590fi
12591if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12592
12593
12594if test -n "$RANLIB_FOR_TARGET"; then
12595 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12596elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12597 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12598fi
12599
12600if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12601 for ncn_progname in ranlib; do
12602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12603set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12605$as_echo_n "checking for $ac_word... " >&6; }
12606if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12607 $as_echo_n "(cached) " >&6
9a819804
AO
12608else
12609 if test -n "$RANLIB_FOR_TARGET"; then
12610 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12611else
12612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613for as_dir in $PATH
12614do
12615 IFS=$as_save_IFS
12616 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12619 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12621 break 2
12622 fi
12623done
81ecdfbb
RW
12624 done
12625IFS=$as_save_IFS
9a819804
AO
12626
12627fi
12628fi
12629RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12630if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12632$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12633else
81ecdfbb
RW
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12635$as_echo "no" >&6; }
9a819804
AO
12636fi
12637
81ecdfbb 12638
9a819804
AO
12639 done
12640fi
12641
12642if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12643 for ncn_progname in ranlib; do
81ecdfbb
RW
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12645$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12646 if test -x $with_build_time_tools/${ncn_progname}; then
12647 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649$as_echo "yes" >&6; }
2429c060
PB
12650 break
12651 else
81ecdfbb
RW
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
2429c060
PB
12654 fi
12655 done
12656fi
12657
12658if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12659 for ncn_progname in ranlib; do
12660 if test -n "$ncn_target_tool_prefix"; then
12661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12662set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664$as_echo_n "checking for $ac_word... " >&6; }
12665if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12666 $as_echo_n "(cached) " >&6
859789af 12667else
55db4b87
PB
12668 if test -n "$RANLIB_FOR_TARGET"; then
12669 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12670else
c6b750e1
DJ
12671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672for as_dir in $PATH
12673do
12674 IFS=$as_save_IFS
12675 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12678 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12680 break 2
12681 fi
12682done
81ecdfbb
RW
12683 done
12684IFS=$as_save_IFS
c6b750e1 12685
859789af
AC
12686fi
12687fi
c6b750e1 12688RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12689if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12691$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12692else
81ecdfbb
RW
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694$as_echo "no" >&6; }
859789af
AC
12695fi
12696
81ecdfbb 12697
2429c060
PB
12698 fi
12699 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12701set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703$as_echo_n "checking for $ac_word... " >&6; }
12704if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
859789af 12706else
05cbd757
PB
12707 if test -n "$RANLIB_FOR_TARGET"; then
12708 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12709else
c6b750e1
DJ
12710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12711for as_dir in $PATH
12712do
12713 IFS=$as_save_IFS
12714 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12715 for ac_exec_ext in '' $ac_executable_extensions; do
12716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12717 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12719 break 2
12720 fi
12721done
81ecdfbb
RW
12722 done
12723IFS=$as_save_IFS
c6b750e1 12724
859789af
AC
12725fi
12726fi
c6b750e1 12727RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12728if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12730$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12731else
81ecdfbb
RW
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733$as_echo "no" >&6; }
859789af 12734fi
c6b750e1 12735
81ecdfbb 12736
2429c060
PB
12737 fi
12738 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12739 done
12740fi
c6b750e1 12741
2429c060
PB
12742if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12743 set dummy ranlib
12744 if test $build = $target ; then
12745 RANLIB_FOR_TARGET="$2"
12746 else
12747 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12748 fi
d3f5afc4
MS
12749else
12750 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12751fi
05cbd757 12752
3a35eeb3
PB
12753else
12754 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12755fi
12756
2429c060
PB
12757
12758
12759
b121d7d4
DD
12760if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12761 if test -n "$with_build_time_tools"; then
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12763$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12764 if test -x $with_build_time_tools/readelf; then
12765 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12766 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12768$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12769 else
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771$as_echo "no" >&6; }
12772 fi
12773 elif test $build != $host && test $have_gcc_for_target = yes; then
12774 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12775 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12776 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12777 fi
12778fi
12779if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12780 # Extract the first word of "readelf", so it can be a program name with args.
12781set dummy readelf; ac_word=$2
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12783$as_echo_n "checking for $ac_word... " >&6; }
12784if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12785 $as_echo_n "(cached) " >&6
12786else
12787 case $READELF_FOR_TARGET in
12788 [\\/]* | ?:[\\/]*)
12789 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12790 ;;
12791 *)
12792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12793for as_dir in $gcc_cv_tool_dirs
12794do
12795 IFS=$as_save_IFS
12796 test -z "$as_dir" && as_dir=.
12797 for ac_exec_ext in '' $ac_executable_extensions; do
12798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12799 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12801 break 2
12802 fi
12803done
12804 done
12805IFS=$as_save_IFS
12806
12807 ;;
12808esac
12809fi
12810READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12811if test -n "$READELF_FOR_TARGET"; then
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12813$as_echo "$READELF_FOR_TARGET" >&6; }
12814else
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
12817fi
12818
12819
12820fi
12821if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12822
12823
12824if test -n "$READELF_FOR_TARGET"; then
12825 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12826elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12827 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12828fi
12829
12830if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12831 for ncn_progname in readelf; do
12832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12833set dummy ${ncn_progname}; ac_word=$2
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12835$as_echo_n "checking for $ac_word... " >&6; }
12836if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12837 $as_echo_n "(cached) " >&6
12838else
12839 if test -n "$READELF_FOR_TARGET"; then
12840 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12841else
12842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843for as_dir in $PATH
12844do
12845 IFS=$as_save_IFS
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 break 2
12852 fi
12853done
12854 done
12855IFS=$as_save_IFS
12856
12857fi
12858fi
12859READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12860if test -n "$READELF_FOR_TARGET"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12862$as_echo "$READELF_FOR_TARGET" >&6; }
12863else
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865$as_echo "no" >&6; }
12866fi
12867
12868
12869 done
12870fi
12871
12872if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12873 for ncn_progname in readelf; do
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12875$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12876 if test -x $with_build_time_tools/${ncn_progname}; then
12877 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12879$as_echo "yes" >&6; }
12880 break
12881 else
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
12884 fi
12885 done
12886fi
12887
12888if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12889 for ncn_progname in readelf; do
12890 if test -n "$ncn_target_tool_prefix"; then
12891 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12892set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894$as_echo_n "checking for $ac_word... " >&6; }
12895if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897else
12898 if test -n "$READELF_FOR_TARGET"; then
12899 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12900else
12901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12902for as_dir in $PATH
12903do
12904 IFS=$as_save_IFS
12905 test -z "$as_dir" && as_dir=.
12906 for ac_exec_ext in '' $ac_executable_extensions; do
12907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12908 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12910 break 2
12911 fi
12912done
12913 done
12914IFS=$as_save_IFS
12915
12916fi
12917fi
12918READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12919if test -n "$READELF_FOR_TARGET"; then
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12921$as_echo "$READELF_FOR_TARGET" >&6; }
12922else
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924$as_echo "no" >&6; }
12925fi
12926
12927
12928 fi
12929 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12931set dummy ${ncn_progname}; ac_word=$2
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933$as_echo_n "checking for $ac_word... " >&6; }
12934if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
12936else
12937 if test -n "$READELF_FOR_TARGET"; then
12938 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12939else
12940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12941for as_dir in $PATH
12942do
12943 IFS=$as_save_IFS
12944 test -z "$as_dir" && as_dir=.
12945 for ac_exec_ext in '' $ac_executable_extensions; do
12946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12947 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12949 break 2
12950 fi
12951done
12952 done
12953IFS=$as_save_IFS
12954
12955fi
12956fi
12957READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12958if test -n "$READELF_FOR_TARGET"; then
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12960$as_echo "$READELF_FOR_TARGET" >&6; }
12961else
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963$as_echo "no" >&6; }
12964fi
12965
12966
12967 fi
12968 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12969 done
12970fi
12971
12972if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12973 set dummy readelf
12974 if test $build = $target ; then
12975 READELF_FOR_TARGET="$2"
12976 else
12977 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12978 fi
12979else
12980 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12981fi
12982
12983else
12984 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12985fi
12986
12987
12988
12989
2429c060
PB
12990if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12991 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12993$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12994 if test -x $with_build_time_tools/strip; then
12995 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12996 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12998$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12999 else
81ecdfbb
RW
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13001$as_echo "no" >&6; }
3a35eeb3 13002 fi
2429c060
PB
13003 elif test $build != $host && test $have_gcc_for_target = yes; then
13004 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
13005 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13006 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
13007 fi
13008fi
c6b750e1 13009if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13010 # Extract the first word of "strip", so it can be a program name with args.
13011set dummy strip; ac_word=$2
81ecdfbb
RW
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13013$as_echo_n "checking for $ac_word... " >&6; }
13014if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13015 $as_echo_n "(cached) " >&6
2429c060 13016else
c6b750e1
DJ
13017 case $STRIP_FOR_TARGET in
13018 [\\/]* | ?:[\\/]*)
2429c060
PB
13019 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13020 ;;
2429c060 13021 *)
c6b750e1
DJ
13022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13023for as_dir in $gcc_cv_tool_dirs
13024do
13025 IFS=$as_save_IFS
13026 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13027 for ac_exec_ext in '' $ac_executable_extensions; do
13028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13029 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13031 break 2
13032 fi
13033done
81ecdfbb
RW
13034 done
13035IFS=$as_save_IFS
c6b750e1 13036
2429c060
PB
13037 ;;
13038esac
13039fi
c6b750e1 13040STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13041if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13043$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13044else
81ecdfbb
RW
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046$as_echo "no" >&6; }
2429c060
PB
13047fi
13048
81ecdfbb 13049
2429c060
PB
13050fi
13051if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13052
13053
13054if test -n "$STRIP_FOR_TARGET"; then
13055 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13056elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13057 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13058fi
13059
13060if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13061 for ncn_progname in strip; do
13062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13063set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13065$as_echo_n "checking for $ac_word... " >&6; }
13066if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13067 $as_echo_n "(cached) " >&6
9a819804
AO
13068else
13069 if test -n "$STRIP_FOR_TARGET"; then
13070 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13071else
13072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13073for as_dir in $PATH
13074do
13075 IFS=$as_save_IFS
13076 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13077 for ac_exec_ext in '' $ac_executable_extensions; do
13078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13079 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13081 break 2
13082 fi
13083done
81ecdfbb
RW
13084 done
13085IFS=$as_save_IFS
9a819804
AO
13086
13087fi
13088fi
13089STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13090if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13092$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13093else
81ecdfbb
RW
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095$as_echo "no" >&6; }
9a819804
AO
13096fi
13097
81ecdfbb 13098
9a819804
AO
13099 done
13100fi
13101
13102if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13103 for ncn_progname in strip; do
81ecdfbb
RW
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13105$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13106 if test -x $with_build_time_tools/${ncn_progname}; then
13107 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13109$as_echo "yes" >&6; }
2429c060
PB
13110 break
13111 else
81ecdfbb
RW
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113$as_echo "no" >&6; }
2429c060
PB
13114 fi
13115 done
13116fi
13117
13118if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13119 for ncn_progname in strip; do
13120 if test -n "$ncn_target_tool_prefix"; then
13121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13122set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13124$as_echo_n "checking for $ac_word... " >&6; }
13125if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13126 $as_echo_n "(cached) " >&6
7e0f7140
GK
13127else
13128 if test -n "$STRIP_FOR_TARGET"; then
13129 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13130else
13131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13132for as_dir in $PATH
13133do
13134 IFS=$as_save_IFS
13135 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13136 for ac_exec_ext in '' $ac_executable_extensions; do
13137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13138 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13140 break 2
13141 fi
13142done
81ecdfbb
RW
13143 done
13144IFS=$as_save_IFS
c6b750e1 13145
7e0f7140
GK
13146fi
13147fi
c6b750e1 13148STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13149if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13151$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13152else
81ecdfbb
RW
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13154$as_echo "no" >&6; }
7e0f7140
GK
13155fi
13156
81ecdfbb 13157
2429c060
PB
13158 fi
13159 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13161set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13163$as_echo_n "checking for $ac_word... " >&6; }
13164if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13165 $as_echo_n "(cached) " >&6
7e0f7140
GK
13166else
13167 if test -n "$STRIP_FOR_TARGET"; then
13168 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13169else
c6b750e1
DJ
13170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13171for as_dir in $PATH
13172do
13173 IFS=$as_save_IFS
13174 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13175 for ac_exec_ext in '' $ac_executable_extensions; do
13176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13177 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13179 break 2
13180 fi
13181done
81ecdfbb
RW
13182 done
13183IFS=$as_save_IFS
c6b750e1 13184
7e0f7140
GK
13185fi
13186fi
c6b750e1 13187STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13188if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13190$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13191else
81ecdfbb
RW
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13193$as_echo "no" >&6; }
7e0f7140 13194fi
c6b750e1 13195
81ecdfbb 13196
2429c060
PB
13197 fi
13198 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13199 done
13200fi
c6b750e1 13201
7e0f7140
GK
13202if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13203 set dummy strip
13204 if test $build = $target ; then
13205 STRIP_FOR_TARGET="$2"
13206 else
13207 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13208 fi
d3f5afc4
MS
13209else
13210 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13211fi
13212
3a35eeb3
PB
13213else
13214 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13215fi
13216
13217
13218
13219
13220if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13221 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13223$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13224 if test -x $with_build_time_tools/windres; then
13225 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13226 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13228$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13229 else
81ecdfbb
RW
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231$as_echo "no" >&6; }
3a35eeb3 13232 fi
2429c060
PB
13233 elif test $build != $host && test $have_gcc_for_target = yes; then
13234 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13235 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13236 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13237 fi
13238fi
c6b750e1 13239if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13240 # Extract the first word of "windres", so it can be a program name with args.
13241set dummy windres; ac_word=$2
81ecdfbb
RW
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243$as_echo_n "checking for $ac_word... " >&6; }
13244if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13245 $as_echo_n "(cached) " >&6
2429c060 13246else
c6b750e1
DJ
13247 case $WINDRES_FOR_TARGET in
13248 [\\/]* | ?:[\\/]*)
2429c060
PB
13249 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13250 ;;
2429c060 13251 *)
c6b750e1
DJ
13252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13253for as_dir in $gcc_cv_tool_dirs
13254do
13255 IFS=$as_save_IFS
13256 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13257 for ac_exec_ext in '' $ac_executable_extensions; do
13258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13259 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13261 break 2
13262 fi
13263done
81ecdfbb
RW
13264 done
13265IFS=$as_save_IFS
c6b750e1 13266
2429c060
PB
13267 ;;
13268esac
13269fi
c6b750e1 13270WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13271if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13273$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13274else
81ecdfbb
RW
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276$as_echo "no" >&6; }
2429c060
PB
13277fi
13278
81ecdfbb 13279
2429c060
PB
13280fi
13281if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13282
13283
13284if test -n "$WINDRES_FOR_TARGET"; then
13285 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13286elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13287 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13288fi
13289
13290if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13291 for ncn_progname in windres; do
13292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13293set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295$as_echo_n "checking for $ac_word... " >&6; }
13296if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13297 $as_echo_n "(cached) " >&6
9a819804
AO
13298else
13299 if test -n "$WINDRES_FOR_TARGET"; then
13300 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13301else
13302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303for as_dir in $PATH
13304do
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13309 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13311 break 2
13312 fi
13313done
81ecdfbb
RW
13314 done
13315IFS=$as_save_IFS
9a819804
AO
13316
13317fi
13318fi
13319WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13320if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13322$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13323else
81ecdfbb
RW
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325$as_echo "no" >&6; }
9a819804
AO
13326fi
13327
81ecdfbb 13328
9a819804
AO
13329 done
13330fi
13331
13332if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13333 for ncn_progname in windres; do
81ecdfbb
RW
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13335$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13336 if test -x $with_build_time_tools/${ncn_progname}; then
13337 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13339$as_echo "yes" >&6; }
2429c060
PB
13340 break
13341 else
81ecdfbb
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343$as_echo "no" >&6; }
2429c060
PB
13344 fi
13345 done
13346fi
13347
13348if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13349 for ncn_progname in windres; do
13350 if test -n "$ncn_target_tool_prefix"; then
13351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13352set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354$as_echo_n "checking for $ac_word... " >&6; }
13355if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
859789af 13357else
55db4b87
PB
13358 if test -n "$WINDRES_FOR_TARGET"; then
13359 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13360else
c6b750e1
DJ
13361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362for as_dir in $PATH
13363do
13364 IFS=$as_save_IFS
13365 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13366 for ac_exec_ext in '' $ac_executable_extensions; do
13367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13368 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13370 break 2
13371 fi
13372done
81ecdfbb
RW
13373 done
13374IFS=$as_save_IFS
c6b750e1 13375
859789af
AC
13376fi
13377fi
c6b750e1 13378WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13379if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13381$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13382else
81ecdfbb
RW
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384$as_echo "no" >&6; }
859789af
AC
13385fi
13386
81ecdfbb 13387
2429c060
PB
13388 fi
13389 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13391set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393$as_echo_n "checking for $ac_word... " >&6; }
13394if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13395 $as_echo_n "(cached) " >&6
859789af 13396else
05cbd757
PB
13397 if test -n "$WINDRES_FOR_TARGET"; then
13398 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13399else
c6b750e1
DJ
13400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401for as_dir in $PATH
13402do
13403 IFS=$as_save_IFS
13404 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13407 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13409 break 2
13410 fi
13411done
81ecdfbb
RW
13412 done
13413IFS=$as_save_IFS
c6b750e1 13414
859789af
AC
13415fi
13416fi
c6b750e1 13417WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13418if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13420$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13421else
81ecdfbb
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423$as_echo "no" >&6; }
859789af 13424fi
c6b750e1 13425
81ecdfbb 13426
2429c060
PB
13427 fi
13428 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13429 done
13430fi
c6b750e1 13431
05cbd757
PB
13432if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13433 set dummy windres
13434 if test $build = $target ; then
13435 WINDRES_FOR_TARGET="$2"
859789af 13436 else
05cbd757 13437 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13438 fi
d3f5afc4
MS
13439else
13440 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13441fi
13442
3a35eeb3
PB
13443else
13444 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13445fi
13446
852e5f18 13447
0c24b341
NC
13448
13449
13450if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13451 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13453$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13454 if test -x $with_build_time_tools/windmc; then
13455 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13456 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13458$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13459 else
81ecdfbb
RW
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461$as_echo "no" >&6; }
0c24b341
NC
13462 fi
13463 elif test $build != $host && test $have_gcc_for_target = yes; then
13464 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13465 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13466 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13467 fi
13468fi
13469if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13470 # Extract the first word of "windmc", so it can be a program name with args.
13471set dummy windmc; ac_word=$2
81ecdfbb
RW
13472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13473$as_echo_n "checking for $ac_word... " >&6; }
13474if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13475 $as_echo_n "(cached) " >&6
0c24b341
NC
13476else
13477 case $WINDMC_FOR_TARGET in
13478 [\\/]* | ?:[\\/]*)
13479 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13480 ;;
13481 *)
13482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13483for as_dir in $gcc_cv_tool_dirs
13484do
13485 IFS=$as_save_IFS
13486 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13487 for ac_exec_ext in '' $ac_executable_extensions; do
13488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13489 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13491 break 2
13492 fi
13493done
81ecdfbb
RW
13494 done
13495IFS=$as_save_IFS
0c24b341
NC
13496
13497 ;;
13498esac
13499fi
13500WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13501if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13503$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13504else
81ecdfbb
RW
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13506$as_echo "no" >&6; }
0c24b341
NC
13507fi
13508
81ecdfbb 13509
0c24b341
NC
13510fi
13511if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13512
13513
13514if test -n "$WINDMC_FOR_TARGET"; then
13515 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13516elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13517 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13518fi
13519
13520if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13521 for ncn_progname in windmc; do
13522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13523set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13525$as_echo_n "checking for $ac_word... " >&6; }
13526if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13527 $as_echo_n "(cached) " >&6
0c24b341
NC
13528else
13529 if test -n "$WINDMC_FOR_TARGET"; then
13530 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13531else
13532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533for as_dir in $PATH
13534do
13535 IFS=$as_save_IFS
13536 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13539 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13541 break 2
13542 fi
13543done
81ecdfbb
RW
13544 done
13545IFS=$as_save_IFS
0c24b341
NC
13546
13547fi
13548fi
13549WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13550if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13552$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13553else
81ecdfbb
RW
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555$as_echo "no" >&6; }
0c24b341
NC
13556fi
13557
81ecdfbb 13558
0c24b341
NC
13559 done
13560fi
13561
13562if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13563 for ncn_progname in windmc; do
81ecdfbb
RW
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13565$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13566 if test -x $with_build_time_tools/${ncn_progname}; then
13567 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13569$as_echo "yes" >&6; }
0c24b341
NC
13570 break
13571 else
81ecdfbb
RW
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13573$as_echo "no" >&6; }
0c24b341
NC
13574 fi
13575 done
13576fi
13577
13578if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13579 for ncn_progname in windmc; do
13580 if test -n "$ncn_target_tool_prefix"; then
13581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13582set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13584$as_echo_n "checking for $ac_word... " >&6; }
13585if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13586 $as_echo_n "(cached) " >&6
0c24b341
NC
13587else
13588 if test -n "$WINDMC_FOR_TARGET"; then
13589 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13590else
13591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13592for as_dir in $PATH
13593do
13594 IFS=$as_save_IFS
13595 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13596 for ac_exec_ext in '' $ac_executable_extensions; do
13597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13598 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13600 break 2
13601 fi
13602done
81ecdfbb
RW
13603 done
13604IFS=$as_save_IFS
0c24b341
NC
13605
13606fi
13607fi
13608WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13609if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13611$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13612else
81ecdfbb
RW
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13614$as_echo "no" >&6; }
0c24b341
NC
13615fi
13616
81ecdfbb 13617
0c24b341
NC
13618 fi
13619 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13621set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13623$as_echo_n "checking for $ac_word... " >&6; }
13624if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13625 $as_echo_n "(cached) " >&6
0c24b341
NC
13626else
13627 if test -n "$WINDMC_FOR_TARGET"; then
13628 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13629else
13630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631for as_dir in $PATH
13632do
13633 IFS=$as_save_IFS
13634 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13637 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13639 break 2
13640 fi
13641done
81ecdfbb
RW
13642 done
13643IFS=$as_save_IFS
0c24b341
NC
13644
13645fi
13646fi
13647WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13648if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13650$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13651else
81ecdfbb
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13653$as_echo "no" >&6; }
0c24b341
NC
13654fi
13655
81ecdfbb 13656
0c24b341
NC
13657 fi
13658 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13659 done
13660fi
13661
13662if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13663 set dummy windmc
13664 if test $build = $target ; then
13665 WINDMC_FOR_TARGET="$2"
13666 else
13667 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13668 fi
13669else
13670 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13671fi
13672
13673else
13674 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13675fi
13676
13677
be01d343
PB
13678RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13679
81ecdfbb
RW
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13681$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13682if test "x${build}" != "x${host}" ; then
2429c060
PB
13683 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13684 # We already found the complete path
b8025f34 13685 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13687$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13688 else
13689 # Canadian cross, just use what we found
81ecdfbb
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13691$as_echo "pre-installed" >&6; }
2429c060 13692 fi
be01d343
PB
13693else
13694 ok=yes
13695 case " ${configdirs} " in
13696 *" binutils "*) ;;
13697 *) ok=no ;;
13698 esac
c6b750e1 13699
be01d343
PB
13700 if test $ok = yes; then
13701 # An in-tree tool is available and we can use it
13702 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13704$as_echo "just compiled" >&6; }
2429c060
PB
13705 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13706 # We already found the complete path
b8025f34 13707 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13709$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13710 elif test "x$target" = "x$host"; then
13711 # We can use an host tool
13712 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13714$as_echo "host tool" >&6; }
be01d343
PB
13715 else
13716 # We need a cross tool
81ecdfbb
RW
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13718$as_echo "pre-installed" >&6; }
be01d343
PB
13719 fi
13720fi
4b900473 13721
81ecdfbb
RW
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13723$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13724if test "x${build}" != "x${host}" ; then
2429c060
PB
13725 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13726 # We already found the complete path
b8025f34 13727 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13729$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13730 else
13731 # Canadian cross, just use what we found
81ecdfbb
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13733$as_echo "pre-installed" >&6; }
2429c060 13734 fi
be01d343
PB
13735else
13736 ok=yes
13737 case " ${configdirs} " in
13738 *" gas "*) ;;
13739 *) ok=no ;;
13740 esac
c6b750e1 13741
be01d343
PB
13742 if test $ok = yes; then
13743 # An in-tree tool is available and we can use it
13744 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13746$as_echo "just compiled" >&6; }
2429c060
PB
13747 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13748 # We already found the complete path
b8025f34 13749 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13751$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13752 elif test "x$target" = "x$host"; then
13753 # We can use an host tool
13754 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13756$as_echo "host tool" >&6; }
be01d343
PB
13757 else
13758 # We need a cross tool
81ecdfbb
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13760$as_echo "pre-installed" >&6; }
be01d343
PB
13761 fi
13762fi
4b900473 13763
81ecdfbb
RW
13764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13765$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13766if test "x${build}" != "x${host}" ; then
2429c060
PB
13767 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13768 # We already found the complete path
b8025f34 13769 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13771$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13772 else
13773 # Canadian cross, just use what we found
81ecdfbb
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13775$as_echo "pre-installed" >&6; }
2429c060 13776 fi
be01d343
PB
13777else
13778 ok=yes
13779 case " ${configdirs} " in
13780 *" gcc "*) ;;
13781 *) ok=no ;;
13782 esac
c6b750e1 13783
be01d343
PB
13784 if test $ok = yes; then
13785 # An in-tree tool is available and we can use it
13786 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13788$as_echo "just compiled" >&6; }
2429c060
PB
13789 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
b8025f34 13791 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13794 elif test "x$target" = "x$host"; then
13795 # We can use an host tool
13796 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13798$as_echo "host tool" >&6; }
be01d343
PB
13799 else
13800 # We need a cross tool
81ecdfbb
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13802$as_echo "pre-installed" >&6; }
be01d343
PB
13803 fi
13804fi
4b900473 13805
81ecdfbb
RW
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13807$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13808if test "x${build}" != "x${host}" ; then
2429c060
PB
13809 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13810 # We already found the complete path
b8025f34 13811 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13813$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13814 else
13815 # Canadian cross, just use what we found
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13817$as_echo "pre-installed" >&6; }
2429c060 13818 fi
be01d343
PB
13819else
13820 ok=yes
13821 case " ${configdirs} " in
13822 *" gcc "*) ;;
13823 *) ok=no ;;
13824 esac
13825 case ,${enable_languages}, in
13826 *,c++,*) ;;
13827 *) ok=no ;;
13828 esac
13829 if test $ok = yes; then
13830 # An in-tree tool is available and we can use it
95e43135 13831 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13833$as_echo "just compiled" >&6; }
2429c060
PB
13834 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13835 # We already found the complete path
b8025f34 13836 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13838$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13839 elif test "x$target" = "x$host"; then
13840 # We can use an host tool
13841 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13843$as_echo "host tool" >&6; }
be01d343
PB
13844 else
13845 # We need a cross tool
81ecdfbb
RW
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13847$as_echo "pre-installed" >&6; }
be01d343
PB
13848 fi
13849fi
4b900473 13850
81ecdfbb
RW
13851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13852$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13853if test "x${build}" != "x${host}" ; then
2429c060
PB
13854 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13855 # We already found the complete path
b8025f34 13856 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13858$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13859 else
13860 # Canadian cross, just use what we found
81ecdfbb
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13862$as_echo "pre-installed" >&6; }
2429c060 13863 fi
be01d343
PB
13864else
13865 ok=yes
13866 case " ${configdirs} " in
13867 *" gcc "*) ;;
13868 *) ok=no ;;
13869 esac
13870 case ,${enable_languages}, in
13871 *,c++,*) ;;
13872 *) ok=no ;;
13873 esac
13874 if test $ok = yes; then
13875 # An in-tree tool is available and we can use it
95e43135 13876 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13878$as_echo "just compiled" >&6; }
2429c060
PB
13879 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13880 # We already found the complete path
b8025f34 13881 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13883$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13884 elif test "x$target" = "x$host"; then
13885 # We can use an host tool
13886 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13888$as_echo "host tool" >&6; }
be01d343
PB
13889 else
13890 # We need a cross tool
81ecdfbb
RW
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13892$as_echo "pre-installed" >&6; }
be01d343
PB
13893 fi
13894fi
4b900473 13895
81ecdfbb
RW
13896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13897$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13898if test "x${build}" != "x${host}" ; then
2429c060
PB
13899 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13900 # We already found the complete path
b8025f34 13901 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13903$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13904 else
13905 # Canadian cross, just use what we found
81ecdfbb
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13907$as_echo "pre-installed" >&6; }
2429c060 13908 fi
be01d343
PB
13909else
13910 ok=yes
13911 case " ${configdirs} " in
13912 *" binutils "*) ;;
13913 *) ok=no ;;
13914 esac
c6b750e1 13915
be01d343
PB
13916 if test $ok = yes; then
13917 # An in-tree tool is available and we can use it
13918 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13920$as_echo "just compiled" >&6; }
2429c060
PB
13921 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13922 # We already found the complete path
b8025f34 13923 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13925$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13926 elif test "x$target" = "x$host"; then
13927 # We can use an host tool
13928 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13930$as_echo "host tool" >&6; }
be01d343
PB
13931 else
13932 # We need a cross tool
81ecdfbb
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13934$as_echo "pre-installed" >&6; }
be01d343
PB
13935 fi
13936fi
4b900473 13937
81ecdfbb
RW
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13939$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13940if test "x${build}" != "x${host}" ; then
2429c060
PB
13941 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13942 # We already found the complete path
b8025f34 13943 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13945$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13946 else
13947 # Canadian cross, just use what we found
81ecdfbb
RW
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13949$as_echo "pre-installed" >&6; }
2429c060 13950 fi
be01d343
PB
13951else
13952 ok=yes
13953 case " ${configdirs} " in
13954 *" gcc "*) ;;
13955 *) ok=no ;;
13956 esac
c6b750e1 13957
be01d343
PB
13958 if test $ok = yes; then
13959 # An in-tree tool is available and we can use it
13960 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13962$as_echo "just compiled" >&6; }
2429c060
PB
13963 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
b8025f34 13965 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13968 elif test "x$target" = "x$host"; then
13969 # We can use an host tool
13970 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13972$as_echo "host tool" >&6; }
be01d343
PB
13973 else
13974 # We need a cross tool
81ecdfbb
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13976$as_echo "pre-installed" >&6; }
be01d343
PB
13977 fi
13978fi
4b900473 13979
81ecdfbb
RW
13980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13981$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13982if test "x${build}" != "x${host}" ; then
2429c060
PB
13983 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13984 # We already found the complete path
b8025f34 13985 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13987$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13988 else
13989 # Canadian cross, just use what we found
81ecdfbb
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13991$as_echo "pre-installed" >&6; }
2429c060 13992 fi
be01d343
PB
13993else
13994 ok=yes
13995 case " ${configdirs} " in
13996 *" gcc "*) ;;
13997 *) ok=no ;;
13998 esac
13999 case ,${enable_languages}, in
14000 *,fortran,*) ;;
14001 *) ok=no ;;
14002 esac
14003 if test $ok = yes; then
14004 # An in-tree tool is available and we can use it
14005 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14007$as_echo "just compiled" >&6; }
2429c060
PB
14008 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14009 # We already found the complete path
b8025f34 14010 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14012$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14013 elif test "x$target" = "x$host"; then
14014 # We can use an host tool
14015 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14017$as_echo "host tool" >&6; }
be01d343
PB
14018 else
14019 # We need a cross tool
81ecdfbb
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021$as_echo "pre-installed" >&6; }
be01d343
PB
14022 fi
14023fi
4b900473 14024
e552509b
ILT
14025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14026$as_echo_n "checking where to find the target gccgo... " >&6; }
14027if test "x${build}" != "x${host}" ; then
14028 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14029 # We already found the complete path
14030 ac_dir=`dirname $GOC_FOR_TARGET`
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14032$as_echo "pre-installed in $ac_dir" >&6; }
14033 else
14034 # Canadian cross, just use what we found
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14036$as_echo "pre-installed" >&6; }
14037 fi
14038else
14039 ok=yes
14040 case " ${configdirs} " in
14041 *" gcc "*) ;;
14042 *) ok=no ;;
14043 esac
14044 case ,${enable_languages}, in
14045 *,go,*) ;;
14046 *) ok=no ;;
14047 esac
14048 if test $ok = yes; then
14049 # An in-tree tool is available and we can use it
14050 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14052$as_echo "just compiled" >&6; }
14053 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14054 # We already found the complete path
14055 ac_dir=`dirname $GOC_FOR_TARGET`
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14057$as_echo "pre-installed in $ac_dir" >&6; }
14058 elif test "x$target" = "x$host"; then
14059 # We can use an host tool
14060 GOC_FOR_TARGET='$(GOC)'
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14062$as_echo "host tool" >&6; }
14063 else
14064 # We need a cross tool
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14066$as_echo "pre-installed" >&6; }
14067 fi
14068fi
14069
81ecdfbb
RW
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14071$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14072if test "x${build}" != "x${host}" ; then
2429c060
PB
14073 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14074 # We already found the complete path
b8025f34 14075 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14077$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14078 else
14079 # Canadian cross, just use what we found
81ecdfbb
RW
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14081$as_echo "pre-installed" >&6; }
2429c060 14082 fi
be01d343
PB
14083else
14084 ok=yes
14085 case " ${configdirs} " in
14086 *" ld "*) ;;
14087 *) ok=no ;;
14088 esac
c6b750e1 14089
be01d343
PB
14090 if test $ok = yes; then
14091 # An in-tree tool is available and we can use it
14092 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14094$as_echo "just compiled" >&6; }
2429c060
PB
14095 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
b8025f34 14097 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14100 elif test "x$target" = "x$host"; then
14101 # We can use an host tool
14102 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14104$as_echo "host tool" >&6; }
be01d343
PB
14105 else
14106 # We need a cross tool
81ecdfbb
RW
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14108$as_echo "pre-installed" >&6; }
be01d343
PB
14109 fi
14110fi
4b900473 14111
81ecdfbb
RW
14112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14113$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14114if test "x${build}" != "x${host}" ; then
2429c060
PB
14115 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14116 # We already found the complete path
b8025f34 14117 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14119$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14120 else
14121 # Canadian cross, just use what we found
81ecdfbb
RW
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14123$as_echo "pre-installed" >&6; }
2429c060 14124 fi
be01d343 14125else
2429c060
PB
14126 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14127 # We already found the complete path
b8025f34 14128 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14130$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14131 elif test "x$target" = "x$host"; then
be01d343
PB
14132 # We can use an host tool
14133 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14135$as_echo "host tool" >&6; }
be01d343
PB
14136 else
14137 # We need a cross tool
81ecdfbb
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14139$as_echo "pre-installed" >&6; }
be01d343
PB
14140 fi
14141fi
4b900473 14142
81ecdfbb
RW
14143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14144$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14145if test "x${build}" != "x${host}" ; then
2429c060
PB
14146 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14147 # We already found the complete path
b8025f34 14148 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14150$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14151 else
14152 # Canadian cross, just use what we found
81ecdfbb
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14154$as_echo "pre-installed" >&6; }
2429c060 14155 fi
be01d343
PB
14156else
14157 ok=yes
14158 case " ${configdirs} " in
14159 *" binutils "*) ;;
14160 *) ok=no ;;
14161 esac
c6b750e1 14162
be01d343
PB
14163 if test $ok = yes; then
14164 # An in-tree tool is available and we can use it
14165 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14167$as_echo "just compiled" >&6; }
2429c060
PB
14168 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14169 # We already found the complete path
b8025f34 14170 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14172$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14173 elif test "x$target" = "x$host"; then
14174 # We can use an host tool
14175 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14177$as_echo "host tool" >&6; }
be01d343
PB
14178 else
14179 # We need a cross tool
81ecdfbb
RW
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14181$as_echo "pre-installed" >&6; }
be01d343
PB
14182 fi
14183fi
4b900473 14184
6b91c541
AP
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14186$as_echo_n "checking where to find the target objcopy... " >&6; }
14187if test "x${build}" != "x${host}" ; then
14188 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14189 # We already found the complete path
14190 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14192$as_echo "pre-installed in $ac_dir" >&6; }
14193 else
14194 # Canadian cross, just use what we found
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14196$as_echo "pre-installed" >&6; }
14197 fi
14198else
14199 ok=yes
14200 case " ${configdirs} " in
14201 *" binutils "*) ;;
14202 *) ok=no ;;
14203 esac
14204
14205 if test $ok = yes; then
14206 # An in-tree tool is available and we can use it
14207 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14209$as_echo "just compiled" >&6; }
14210 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
14212 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214$as_echo "pre-installed in $ac_dir" >&6; }
14215 elif test "x$target" = "x$host"; then
14216 # We can use an host tool
1b6c0831 14217 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
6b91c541
AP
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14219$as_echo "host tool" >&6; }
14220 else
14221 # We need a cross tool
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223$as_echo "pre-installed" >&6; }
14224 fi
14225fi
14226
81ecdfbb
RW
14227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14228$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14229if test "x${build}" != "x${host}" ; then
2429c060
PB
14230 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
b8025f34 14232 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14234$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14235 else
14236 # Canadian cross, just use what we found
81ecdfbb
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238$as_echo "pre-installed" >&6; }
2429c060 14239 fi
be01d343
PB
14240else
14241 ok=yes
14242 case " ${configdirs} " in
14243 *" binutils "*) ;;
14244 *) ok=no ;;
14245 esac
c6b750e1 14246
be01d343
PB
14247 if test $ok = yes; then
14248 # An in-tree tool is available and we can use it
14249 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14251$as_echo "just compiled" >&6; }
2429c060
PB
14252 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14253 # We already found the complete path
b8025f34 14254 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14257 elif test "x$target" = "x$host"; then
14258 # We can use an host tool
14259 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14261$as_echo "host tool" >&6; }
be01d343
PB
14262 else
14263 # We need a cross tool
81ecdfbb
RW
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14265$as_echo "pre-installed" >&6; }
be01d343
PB
14266 fi
14267fi
4b900473 14268
81ecdfbb
RW
14269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14270$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14271if test "x${build}" != "x${host}" ; then
2429c060
PB
14272 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14273 # We already found the complete path
b8025f34 14274 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14276$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14277 else
14278 # Canadian cross, just use what we found
81ecdfbb
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14280$as_echo "pre-installed" >&6; }
2429c060 14281 fi
be01d343
PB
14282else
14283 ok=yes
14284 case " ${configdirs} " in
14285 *" binutils "*) ;;
14286 *) ok=no ;;
14287 esac
c6b750e1 14288
be01d343
PB
14289 if test $ok = yes; then
14290 # An in-tree tool is available and we can use it
14291 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14293$as_echo "just compiled" >&6; }
2429c060
PB
14294 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14295 # We already found the complete path
b8025f34 14296 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14298$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14299 elif test "x$target" = "x$host"; then
14300 # We can use an host tool
14301 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14303$as_echo "host tool" >&6; }
be01d343
PB
14304 else
14305 # We need a cross tool
81ecdfbb
RW
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14307$as_echo "pre-installed" >&6; }
be01d343
PB
14308 fi
14309fi
4b900473 14310
b121d7d4
DD
14311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14312$as_echo_n "checking where to find the target readelf... " >&6; }
14313if test "x${build}" != "x${host}" ; then
14314 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14315 # We already found the complete path
14316 ac_dir=`dirname $READELF_FOR_TARGET`
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14318$as_echo "pre-installed in $ac_dir" >&6; }
14319 else
14320 # Canadian cross, just use what we found
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14322$as_echo "pre-installed" >&6; }
14323 fi
14324else
14325 ok=yes
14326 case " ${configdirs} " in
14327 *" binutils "*) ;;
14328 *) ok=no ;;
14329 esac
14330
14331 if test $ok = yes; then
14332 # An in-tree tool is available and we can use it
14333 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14335$as_echo "just compiled" >&6; }
14336 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14337 # We already found the complete path
14338 ac_dir=`dirname $READELF_FOR_TARGET`
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14340$as_echo "pre-installed in $ac_dir" >&6; }
14341 elif test "x$target" = "x$host"; then
14342 # We can use an host tool
14343 READELF_FOR_TARGET='$(READELF)'
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14345$as_echo "host tool" >&6; }
14346 else
14347 # We need a cross tool
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14349$as_echo "pre-installed" >&6; }
14350 fi
14351fi
14352
81ecdfbb
RW
14353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14354$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14355if test "x${build}" != "x${host}" ; then
2429c060
PB
14356 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14357 # We already found the complete path
b8025f34 14358 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14360$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14361 else
14362 # Canadian cross, just use what we found
81ecdfbb
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14364$as_echo "pre-installed" >&6; }
2429c060 14365 fi
be01d343
PB
14366else
14367 ok=yes
14368 case " ${configdirs} " in
14369 *" binutils "*) ;;
14370 *) ok=no ;;
14371 esac
c6b750e1 14372
be01d343
PB
14373 if test $ok = yes; then
14374 # An in-tree tool is available and we can use it
9b980aa1 14375 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14377$as_echo "just compiled" >&6; }
2429c060
PB
14378 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14379 # We already found the complete path
b8025f34 14380 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14382$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14383 elif test "x$target" = "x$host"; then
14384 # We can use an host tool
14385 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14387$as_echo "host tool" >&6; }
be01d343
PB
14388 else
14389 # We need a cross tool
81ecdfbb
RW
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14391$as_echo "pre-installed" >&6; }
be01d343
PB
14392 fi
14393fi
4b900473 14394
81ecdfbb
RW
14395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14396$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14397if test "x${build}" != "x${host}" ; then
2429c060
PB
14398 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14399 # We already found the complete path
b8025f34 14400 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14402$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14403 else
14404 # Canadian cross, just use what we found
81ecdfbb
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14406$as_echo "pre-installed" >&6; }
2429c060 14407 fi
be01d343
PB
14408else
14409 ok=yes
14410 case " ${configdirs} " in
14411 *" binutils "*) ;;
14412 *) ok=no ;;
14413 esac
c6b750e1 14414
be01d343
PB
14415 if test $ok = yes; then
14416 # An in-tree tool is available and we can use it
14417 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14419$as_echo "just compiled" >&6; }
2429c060
PB
14420 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
b8025f34 14422 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14425 elif test "x$target" = "x$host"; then
14426 # We can use an host tool
14427 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14429$as_echo "host tool" >&6; }
be01d343
PB
14430 else
14431 # We need a cross tool
81ecdfbb
RW
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14433$as_echo "pre-installed" >&6; }
be01d343 14434 fi
a0da8069 14435fi
54752a6b 14436
81ecdfbb
RW
14437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14438$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14439if test "x${build}" != "x${host}" ; then
14440 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14441 # We already found the complete path
14442 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14444$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14445 else
14446 # Canadian cross, just use what we found
81ecdfbb
RW
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14448$as_echo "pre-installed" >&6; }
0c24b341
NC
14449 fi
14450else
14451 ok=yes
14452 case " ${configdirs} " in
14453 *" binutils "*) ;;
14454 *) ok=no ;;
14455 esac
14456
14457 if test $ok = yes; then
14458 # An in-tree tool is available and we can use it
14459 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14461$as_echo "just compiled" >&6; }
0c24b341
NC
14462 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14463 # We already found the complete path
14464 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14467 elif test "x$target" = "x$host"; then
14468 # We can use an host tool
14469 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14471$as_echo "host tool" >&6; }
0c24b341
NC
14472 else
14473 # We need a cross tool
81ecdfbb
RW
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14475$as_echo "pre-installed" >&6; }
0c24b341
NC
14476 fi
14477fi
14478
54752a6b
NN
14479
14480
be01d343 14481
4b900473 14482
a0da8069
NN
14483# Certain tools may need extra flags.
14484AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14485RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14486NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14487
be01d343
PB
14488# When building target libraries, except in a Canadian cross, we use
14489# the same toolchain as the compiler we just built.
14490COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14491COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14492COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14493if test $host = $build; then
14494 case " $configdirs " in
14495 *" gcc "*)
14496 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14497 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14498 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14499 ;;
14500 esac
14501fi
14502
14503
14504
14505
14506
81ecdfbb
RW
14507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14508$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14509# Check whether --enable-maintainer-mode was given.
14510if test "${enable_maintainer_mode+set}" = set; then :
14511 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14512else
14513 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14514fi
14515
14516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14517$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14518
14519
14520if test "$USE_MAINTAINER_MODE" = yes; then
14521 MAINTAINER_MODE_TRUE=
14522 MAINTAINER_MODE_FALSE='#'
14523else
14524 MAINTAINER_MODE_TRUE='#'
14525 MAINTAINER_MODE_FALSE=
c6b750e1 14526fi
3d5e36ae
AO
14527MAINT=$MAINTAINER_MODE_TRUE
14528
1d39f329
NN
14529# ---------------------
14530# GCC bootstrap support
14531# ---------------------
14532
14533# Stage specific cflags for build.
14534stage1_cflags="-g"
14535case $build in
14536 vax-*-*)
14537 case ${GCC} in
14538 yes) stage1_cflags="-g -Wa,-J" ;;
14539 *) stage1_cflags="-g -J" ;;
14540 esac ;;
1d39f329
NN
14541esac
14542
1d89b610 14543
1d39f329 14544
8a0d8a5c 14545# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14546# Check whether --enable-stage1-checking was given.
14547if test "${enable_stage1_checking+set}" = set; then :
14548 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14549else
5566c1fa 14550 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
ce6c656d
L
14551 # For --disable-checking or implicit --enable-checking=release, avoid
14552 # setting --enable-checking=gc in the default stage1 checking for LTO
14553 # bootstraps. See PR62077.
ce6c656d
L
14554 case $BUILD_CONFIG in
14555 *lto*)
05a13254
NC
14556 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14557 *)
14558 stage1_checking=--enable-checking=yes,types;;
ce6c656d 14559 esac
05a13254
NC
14560 if test "x$enable_checking" = x && \
14561 test -d ${srcdir}/gcc && \
14562 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14563 stage1_checking=--enable-checking=yes,types,extra
14564 fi
8a0d8a5c 14565else
5566c1fa 14566 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14567fi
81ecdfbb 14568fi
8a0d8a5c
PB
14569
14570
c6b750e1 14571
81ecdfbb
RW
14572# Enable -Werror in bootstrap stage2 and later.
14573# Check whether --enable-werror was given.
14574if test "${enable_werror+set}" = set; then :
14575 enableval=$enable_werror;
1d39f329 14576else
a0323144 14577 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14578 enable_werror=yes
79fcd0ec
PB
14579else
14580 enable_werror=no
14581fi
81ecdfbb
RW
14582fi
14583
1a6f2dc7
NN
14584case ${enable_werror} in
14585 yes) stage2_werror_flag="--enable-werror-always" ;;
14586 *) stage2_werror_flag="" ;;
1d39f329
NN
14587esac
14588
14589
82033c9b
JBG
14590# Enable --enable-host-shared.
14591# Check whether --enable-host-shared was given.
14592if test "${enable_host_shared+set}" = set; then :
14593 enableval=$enable_host_shared; host_shared=$enableval
14594else
14595 host_shared=no
14596fi
14597
14598
14599
1b6c0831
L
14600# PR jit/64780: Require the user to explicitly specify
14601# --enable-host-shared if the jit is enabled, hinting
14602# that they might want to do a separate configure/build of
14603# the jit, to avoid users from slowing down the rest of the
14604# compiler by enabling the jit.
14605if test ${host_shared} = "no" ; then
14606 case "${enable_languages}" in
14607 *jit*)
14608 as_fn_error "
14609Enabling language \"jit\" requires --enable-host-shared.
14610
14611--enable-host-shared typically slows the rest of the compiler down by
14612a few %, so you must explicitly enable it.
14613
14614If you want to build both the jit and the regular compiler, it is often
14615best to do this via two separate configure/builds, in separate
14616directories, to avoid imposing the performance cost of
14617--enable-host-shared on the regular compiler." "$LINENO" 5
14618 ;;
14619 *)
14620 ;;
14621 esac
14622fi
14623
e8a5fa9c
RW
14624# Specify what files to not compare during bootstrap.
14625
14626compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14627case "$target" in
14628 hppa*64*-*-hpux*) ;;
14629 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14630 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14631esac
14632
14633
81ecdfbb
RW
14634ac_config_files="$ac_config_files Makefile"
14635
c6b750e1 14636cat >confcache <<\_ACEOF
a0da8069
NN
14637# This file is a shell script that caches the results of configure
14638# tests run on this system so they can be shared between configure
c6b750e1
DJ
14639# scripts and configure runs, see configure's option --config-cache.
14640# It is not useful on other systems. If it contains results you don't
14641# want to keep, you may remove or edit it.
a0da8069 14642#
c6b750e1
DJ
14643# config.status only pays attention to the cache file if you give it
14644# the --recheck option to rerun configure.
a0da8069 14645#
c6b750e1
DJ
14646# `ac_cv_env_foo' variables (set or unset) will be overridden when
14647# loading this file, other *unset* `ac_cv_foo' will be assigned the
14648# following values.
14649
14650_ACEOF
14651
a0da8069
NN
14652# The following way of writing the cache mishandles newlines in values,
14653# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14654# So, we kill variables containing newlines.
a0da8069
NN
14655# Ultrix sh set writes to stderr and can't be redirected directly,
14656# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14657(
14658 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14659 eval ac_val=\$$ac_var
14660 case $ac_val in #(
14661 *${as_nl}*)
14662 case $ac_var in #(
14663 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14664$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14665 esac
14666 case $ac_var in #(
14667 _ | IFS | as_nl) ;; #(
14668 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14669 *) { eval $ac_var=; unset $ac_var;} ;;
14670 esac ;;
14671 esac
14672 done
14673
c6b750e1 14674 (set) 2>&1 |
81ecdfbb
RW
14675 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14676 *${as_nl}ac_space=\ *)
14677 # `set' does not quote correctly, so add quotes: double-quote
14678 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14679 sed -n \
14680 "s/'/'\\\\''/g;
14681 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14682 ;; #(
c6b750e1
DJ
14683 *)
14684 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14686 ;;
81ecdfbb
RW
14687 esac |
14688 sort
14689) |
c6b750e1 14690 sed '
81ecdfbb 14691 /^ac_cv_env_/b end
c6b750e1 14692 t clear
81ecdfbb 14693 :clear
c6b750e1
DJ
14694 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14695 t end
81ecdfbb
RW
14696 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14697 :end' >>confcache
14698if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14699 if test -w "$cache_file"; then
14700 test "x$cache_file" != "x/dev/null" &&
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14702$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14703 cat confcache >$cache_file
a0da8069 14704 else
81ecdfbb
RW
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14706$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14707 fi
852e5f18 14708fi
a0da8069 14709rm -f confcache
852e5f18 14710
a0da8069
NN
14711test "x$prefix" = xNONE && prefix=$ac_default_prefix
14712# Let make expand exec_prefix.
14713test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14714
a0da8069
NN
14715# Transform confdefs.h into DEFS.
14716# Protect against shell expansion while executing Makefile rules.
14717# Protect against Makefile macro expansion.
c6b750e1
DJ
14718#
14719# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14720# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14721# look for a macro that doesn't take arguments.
81ecdfbb
RW
14722ac_script='
14723:mline
14724/\\$/{
14725 N
14726 s,\\\n,,
14727 b mline
14728}
c6b750e1 14729t clear
81ecdfbb
RW
14730:clear
14731s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14732t quote
81ecdfbb 14733s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14734t quote
81ecdfbb
RW
14735b any
14736:quote
14737s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14738s/\[/\\&/g
14739s/\]/\\&/g
14740s/\$/$$/g
14741H
14742:any
14743${
14744 g
14745 s/^\n//
14746 s/\n/ /g
14747 p
14748}
14749'
14750DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14751
14752
14753ac_libobjs=
14754ac_ltlibobjs=
14755for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14756 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14757 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14758 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14759 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14760 # will be set to the directory where LIBOBJS objects are built.
14761 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14762 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14763done
14764LIBOBJS=$ac_libobjs
852e5f18 14765
c6b750e1 14766LTLIBOBJS=$ac_ltlibobjs
376a0e54 14767
cac3d6c4 14768
c6b750e1
DJ
14769
14770: ${CONFIG_STATUS=./config.status}
81ecdfbb 14771ac_write_fail=0
c6b750e1
DJ
14772ac_clean_files_save=$ac_clean_files
14773ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14774{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14775$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14776as_write_fail=0
14777cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14778#! $SHELL
14779# Generated by $as_me.
a0da8069 14780# Run this file to recreate the current configuration.
a0da8069 14781# Compiler output produced by configure, useful for debugging
c6b750e1 14782# configure, is in config.log if it exists.
376a0e54 14783
c6b750e1
DJ
14784debug=false
14785ac_cs_recheck=false
14786ac_cs_silent=false
c6b750e1 14787
81ecdfbb
RW
14788SHELL=\${CONFIG_SHELL-$SHELL}
14789export SHELL
14790_ASEOF
14791cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14792## -------------------- ##
14793## M4sh Initialization. ##
14794## -------------------- ##
14795
14796# Be more Bourne compatible
14797DUALCASE=1; export DUALCASE # for MKS sh
14798if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14799 emulate sh
14800 NULLCMD=:
81ecdfbb 14801 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14802 # is contrary to our usage. Disable this feature.
14803 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14804 setopt NO_GLOB_SUBST
14805else
14806 case `(set -o) 2>/dev/null` in #(
14807 *posix*) :
14808 set -o posix ;; #(
14809 *) :
14810 ;;
14811esac
c6b750e1 14812fi
c6b750e1 14813
81ecdfbb
RW
14814
14815as_nl='
14816'
14817export as_nl
14818# Printing a long string crashes Solaris 7 /usr/bin/printf.
14819as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14820as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14821as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14822# Prefer a ksh shell builtin over an external printf program on Solaris,
14823# but without wasting forks for bash or zsh.
14824if test -z "$BASH_VERSION$ZSH_VERSION" \
14825 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14826 as_echo='print -r --'
14827 as_echo_n='print -rn --'
14828elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14829 as_echo='printf %s\n'
14830 as_echo_n='printf %s'
14831else
14832 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14833 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14834 as_echo_n='/usr/ucb/echo -n'
14835 else
14836 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14837 as_echo_n_body='eval
14838 arg=$1;
14839 case $arg in #(
14840 *"$as_nl"*)
14841 expr "X$arg" : "X\\(.*\\)$as_nl";
14842 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14843 esac;
14844 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14845 '
14846 export as_echo_n_body
14847 as_echo_n='sh -c $as_echo_n_body as_echo'
14848 fi
14849 export as_echo_body
14850 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14851fi
14852
81ecdfbb
RW
14853# The user is always right.
14854if test "${PATH_SEPARATOR+set}" != set; then
14855 PATH_SEPARATOR=:
14856 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14857 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14858 PATH_SEPARATOR=';'
14859 }
14860fi
14861
14862
14863# IFS
14864# We need space, tab and new line, in precisely that order. Quoting is
14865# there to prevent editors from complaining about space-tab.
14866# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14867# splitting by setting IFS to empty value.)
14868IFS=" "" $as_nl"
14869
14870# Find who we are. Look in the path if we contain no directory separator.
14871case $0 in #((
14872 *[\\/]* ) as_myself=$0 ;;
14873 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14874for as_dir in $PATH
14875do
14876 IFS=$as_save_IFS
14877 test -z "$as_dir" && as_dir=.
14878 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14879 done
14880IFS=$as_save_IFS
14881
14882 ;;
14883esac
14884# We did not find ourselves, most probably we were run as `sh COMMAND'
14885# in which case we are not to be found in the path.
14886if test "x$as_myself" = x; then
14887 as_myself=$0
14888fi
14889if test ! -f "$as_myself"; then
14890 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14891 exit 1
14892fi
c6b750e1 14893
81ecdfbb
RW
14894# Unset variables that we do not need and which cause bugs (e.g. in
14895# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14896# suppresses any "Segmentation fault" message there. '((' could
14897# trigger a bug in pdksh 5.2.14.
14898for as_var in BASH_ENV ENV MAIL MAILPATH
14899do eval test x\${$as_var+set} = xset \
14900 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14901done
c6b750e1
DJ
14902PS1='$ '
14903PS2='> '
14904PS4='+ '
14905
14906# NLS nuisances.
81ecdfbb
RW
14907LC_ALL=C
14908export LC_ALL
14909LANGUAGE=C
14910export LANGUAGE
14911
14912# CDPATH.
14913(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14914
14915
14916# as_fn_error ERROR [LINENO LOG_FD]
14917# ---------------------------------
14918# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14919# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14920# script with status $?, using 1 if that was 0.
14921as_fn_error ()
14922{
14923 as_status=$?; test $as_status -eq 0 && as_status=1
14924 if test "$3"; then
14925 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14926 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14927 fi
81ecdfbb
RW
14928 $as_echo "$as_me: error: $1" >&2
14929 as_fn_exit $as_status
14930} # as_fn_error
14931
14932
14933# as_fn_set_status STATUS
14934# -----------------------
14935# Set $? to STATUS, without forking.
14936as_fn_set_status ()
14937{
14938 return $1
14939} # as_fn_set_status
14940
14941# as_fn_exit STATUS
14942# -----------------
14943# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14944as_fn_exit ()
14945{
14946 set +e
14947 as_fn_set_status $1
14948 exit $1
14949} # as_fn_exit
14950
14951# as_fn_unset VAR
14952# ---------------
14953# Portably unset VAR.
14954as_fn_unset ()
14955{
14956 { eval $1=; unset $1;}
14957}
14958as_unset=as_fn_unset
14959# as_fn_append VAR VALUE
14960# ----------------------
14961# Append the text in VALUE to the end of the definition contained in VAR. Take
14962# advantage of any shell optimizations that allow amortized linear growth over
14963# repeated appends, instead of the typical quadratic growth present in naive
14964# implementations.
14965if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14966 eval 'as_fn_append ()
14967 {
14968 eval $1+=\$2
14969 }'
14970else
14971 as_fn_append ()
14972 {
14973 eval $1=\$$1\$2
14974 }
14975fi # as_fn_append
14976
14977# as_fn_arith ARG...
14978# ------------------
14979# Perform arithmetic evaluation on the ARGs, and store the result in the
14980# global $as_val. Take advantage of shells that can avoid forks. The arguments
14981# must be portable across $(()) and expr.
14982if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14983 eval 'as_fn_arith ()
14984 {
14985 as_val=$(( $* ))
14986 }'
14987else
14988 as_fn_arith ()
14989 {
14990 as_val=`expr "$@" || test $? -eq 1`
14991 }
14992fi # as_fn_arith
14993
c6b750e1 14994
81ecdfbb
RW
14995if expr a : '\(a\)' >/dev/null 2>&1 &&
14996 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14997 as_expr=expr
14998else
14999 as_expr=false
15000fi
15001
81ecdfbb 15002if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
15003 as_basename=basename
15004else
15005 as_basename=false
15006fi
15007
81ecdfbb
RW
15008if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15009 as_dirname=dirname
15010else
15011 as_dirname=false
15012fi
c6b750e1 15013
81ecdfbb 15014as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
15015$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15016 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15017 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15018$as_echo X/"$0" |
15019 sed '/^.*\/\([^/][^/]*\)\/*$/{
15020 s//\1/
15021 q
15022 }
15023 /^X\/\(\/\/\)$/{
15024 s//\1/
15025 q
15026 }
15027 /^X\/\(\/\).*/{
15028 s//\1/
15029 q
15030 }
15031 s/.*/./; q'`
c6b750e1 15032
c6b750e1
DJ
15033# Avoid depending upon Character Ranges.
15034as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15035as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15036as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15037as_cr_digits='0123456789'
15038as_cr_alnum=$as_cr_Letters$as_cr_digits
15039
81ecdfbb
RW
15040ECHO_C= ECHO_N= ECHO_T=
15041case `echo -n x` in #(((((
15042-n*)
15043 case `echo 'xy\c'` in
15044 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15045 xy) ECHO_C='\c';;
15046 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15047 ECHO_T=' ';;
15048 esac;;
15049*)
15050 ECHO_N='-n';;
c6b750e1
DJ
15051esac
15052
81ecdfbb
RW
15053rm -f conf$$ conf$$.exe conf$$.file
15054if test -d conf$$.dir; then
15055 rm -f conf$$.dir/conf$$.file
c6b750e1 15056else
81ecdfbb
RW
15057 rm -f conf$$.dir
15058 mkdir conf$$.dir 2>/dev/null
c6b750e1 15059fi
81ecdfbb
RW
15060if (echo >conf$$.file) 2>/dev/null; then
15061 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15062 as_ln_s='ln -s'
81ecdfbb
RW
15063 # ... but there are two gotchas:
15064 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15065 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15066 # In both cases, we have to default to `cp -p'.
15067 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15068 as_ln_s='cp -p'
15069 elif ln conf$$.file conf$$ 2>/dev/null; then
15070 as_ln_s=ln
15071 else
15072 as_ln_s='cp -p'
c6b750e1 15073 fi
c6b750e1
DJ
15074else
15075 as_ln_s='cp -p'
15076fi
81ecdfbb
RW
15077rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15078rmdir conf$$.dir 2>/dev/null
15079
15080
15081# as_fn_mkdir_p
15082# -------------
15083# Create "$as_dir" as a directory, including parents if necessary.
15084as_fn_mkdir_p ()
15085{
15086
15087 case $as_dir in #(
15088 -*) as_dir=./$as_dir;;
15089 esac
15090 test -d "$as_dir" || eval $as_mkdir_p || {
15091 as_dirs=
15092 while :; do
15093 case $as_dir in #(
15094 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15095 *) as_qdir=$as_dir;;
15096 esac
15097 as_dirs="'$as_qdir' $as_dirs"
15098 as_dir=`$as_dirname -- "$as_dir" ||
15099$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15100 X"$as_dir" : 'X\(//\)[^/]' \| \
15101 X"$as_dir" : 'X\(//\)$' \| \
15102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15103$as_echo X"$as_dir" |
15104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15105 s//\1/
15106 q
15107 }
15108 /^X\(\/\/\)[^/].*/{
15109 s//\1/
15110 q
15111 }
15112 /^X\(\/\/\)$/{
15113 s//\1/
15114 q
15115 }
15116 /^X\(\/\).*/{
15117 s//\1/
15118 q
15119 }
15120 s/.*/./; q'`
15121 test -d "$as_dir" && break
15122 done
15123 test -z "$as_dirs" || eval "mkdir $as_dirs"
15124 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15125
c6b750e1 15126
81ecdfbb 15127} # as_fn_mkdir_p
c6b750e1 15128if mkdir -p . 2>/dev/null; then
81ecdfbb 15129 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15130else
15131 test -d ./-p && rmdir ./-p
15132 as_mkdir_p=false
15133fi
15134
81ecdfbb
RW
15135if test -x / >/dev/null 2>&1; then
15136 as_test_x='test -x'
15137else
15138 if ls -dL / >/dev/null 2>&1; then
15139 as_ls_L_option=L
15140 else
15141 as_ls_L_option=
15142 fi
15143 as_test_x='
15144 eval sh -c '\''
15145 if test -d "$1"; then
15146 test -d "$1/.";
15147 else
15148 case $1 in #(
15149 -*)set "./$1";;
15150 esac;
15151 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15152 ???[sx]*):;;*)false;;esac;fi
15153 '\'' sh
15154 '
15155fi
15156as_executable_p=$as_test_x
c6b750e1
DJ
15157
15158# Sed expression to map a string onto a valid CPP name.
15159as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15160
15161# Sed expression to map a string onto a valid variable name.
15162as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15163
15164
c6b750e1 15165exec 6>&1
81ecdfbb
RW
15166## ----------------------------------- ##
15167## Main body of $CONFIG_STATUS script. ##
15168## ----------------------------------- ##
15169_ASEOF
15170test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15171
15172cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15173# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15174# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15175# values after options handling.
15176ac_log="
c6b750e1 15177This file was extended by $as_me, which was
81ecdfbb 15178generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15179
15180 CONFIG_FILES = $CONFIG_FILES
15181 CONFIG_HEADERS = $CONFIG_HEADERS
15182 CONFIG_LINKS = $CONFIG_LINKS
15183 CONFIG_COMMANDS = $CONFIG_COMMANDS
15184 $ $0 $@
15185
81ecdfbb
RW
15186on `(hostname || uname -n) 2>/dev/null | sed 1q`
15187"
15188
c6b750e1
DJ
15189_ACEOF
15190
81ecdfbb
RW
15191case $ac_config_files in *"
15192"*) set x $ac_config_files; shift; ac_config_files=$*;;
15193esac
c6b750e1 15194
c6b750e1 15195
c6b750e1 15196
81ecdfbb
RW
15197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15198# Files that config.status was made for.
15199config_files="$ac_config_files"
c6b750e1 15200
81ecdfbb 15201_ACEOF
c6b750e1 15202
81ecdfbb 15203cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15204ac_cs_usage="\
81ecdfbb
RW
15205\`$as_me' instantiates files and other configuration actions
15206from templates according to the current configuration. Unless the files
15207and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15208
81ecdfbb 15209Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15210
15211 -h, --help print this help, then exit
81ecdfbb
RW
15212 -V, --version print version number and configuration settings, then exit
15213 -q, --quiet, --silent
15214 do not print progress messages
c6b750e1
DJ
15215 -d, --debug don't remove temporary files
15216 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15217 --file=FILE[:TEMPLATE]
15218 instantiate the configuration file FILE
c6b750e1
DJ
15219
15220Configuration files:
15221$config_files
15222
81ecdfbb 15223Report bugs to the package provider."
c6b750e1 15224
81ecdfbb
RW
15225_ACEOF
15226cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15227ac_cs_version="\\
15228config.status
81ecdfbb
RW
15229configured by $0, generated by GNU Autoconf 2.64,
15230 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15231
81ecdfbb 15232Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15233This config.status script is free software; the Free Software Foundation
15234gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15235
15236ac_pwd='$ac_pwd'
15237srcdir='$srcdir'
15238INSTALL='$INSTALL'
8e957354 15239AWK='$AWK'
81ecdfbb 15240test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15241_ACEOF
15242
81ecdfbb
RW
15243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15244# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15245ac_need_defaults=:
15246while test $# != 0
a0da8069 15247do
c6b750e1
DJ
15248 case $1 in
15249 --*=*)
81ecdfbb
RW
15250 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15251 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15252 ac_shift=:
15253 ;;
81ecdfbb 15254 *)
c6b750e1
DJ
15255 ac_option=$1
15256 ac_optarg=$2
15257 ac_shift=shift
15258 ;;
c6b750e1
DJ
15259 esac
15260
15261 case $ac_option in
15262 # Handling of the options.
a0da8069 15263 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15264 ac_cs_recheck=: ;;
81ecdfbb
RW
15265 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15266 $as_echo "$ac_cs_version"; exit ;;
15267 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15268 debug=: ;;
15269 --file | --fil | --fi | --f )
15270 $ac_shift
81ecdfbb
RW
15271 case $ac_optarg in
15272 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15273 esac
15274 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15275 ac_need_defaults=false;;
81ecdfbb
RW
15276 --he | --h | --help | --hel | -h )
15277 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15279 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15280 ac_cs_silent=: ;;
15281
15282 # This is an error.
81ecdfbb
RW
15283 -*) as_fn_error "unrecognized option: \`$1'
15284Try \`$0 --help' for more information." ;;
c6b750e1 15285
81ecdfbb
RW
15286 *) as_fn_append ac_config_targets " $1"
15287 ac_need_defaults=false ;;
c6b750e1 15288
376a0e54 15289 esac
c6b750e1 15290 shift
376a0e54
CM
15291done
15292
c6b750e1 15293ac_configure_extra_args=
376a0e54 15294
c6b750e1
DJ
15295if $ac_cs_silent; then
15296 exec 6>/dev/null
15297 ac_configure_extra_args="$ac_configure_extra_args --silent"
15298fi
376a0e54 15299
c6b750e1 15300_ACEOF
81ecdfbb 15301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15302if \$ac_cs_recheck; then
81ecdfbb
RW
15303 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15304 shift
15305 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15306 CONFIG_SHELL='$SHELL'
15307 export CONFIG_SHELL
15308 exec "\$@"
c6b750e1
DJ
15309fi
15310
15311_ACEOF
81ecdfbb
RW
15312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15313exec 5>>config.log
15314{
15315 echo
15316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15317## Running $as_me. ##
15318_ASBOX
15319 $as_echo "$ac_log"
15320} >&5
c6b750e1 15321
81ecdfbb
RW
15322_ACEOF
15323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15324#
15325# INIT-COMMANDS
15326#
15327extrasub_build="$extrasub_build"
15328 extrasub_host="$extrasub_host"
15329 extrasub_target="$extrasub_target"
15330
81ecdfbb 15331_ACEOF
c6b750e1 15332
81ecdfbb 15333cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15334
81ecdfbb 15335# Handling of arguments.
c6b750e1
DJ
15336for ac_config_target in $ac_config_targets
15337do
81ecdfbb
RW
15338 case $ac_config_target in
15339 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15340
15341 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15342 esac
15343done
15344
81ecdfbb 15345
c6b750e1
DJ
15346# If the user did not use the arguments to specify the items to instantiate,
15347# then the envvar interface is used. Set only those that are not.
15348# We use the long form for the default assignment because of an extremely
15349# bizarre bug on SunOS 4.1.3.
15350if $ac_need_defaults; then
15351 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15352fi
15353
15354# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15355# simply because there is no reason against having it here, and in addition,
c6b750e1 15356# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15357# Hook for its removal unless debugging.
15358# Note that there is a small window in which the directory will not be cleaned:
15359# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15360$debug ||
15361{
81ecdfbb
RW
15362 tmp=
15363 trap 'exit_status=$?
15364 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15365' 0
15366 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15367}
c6b750e1
DJ
15368# Create a (secure) tmp directory for tmp files.
15369
15370{
81ecdfbb 15371 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15372 test -n "$tmp" && test -d "$tmp"
15373} ||
15374{
81ecdfbb
RW
15375 tmp=./conf$$-$RANDOM
15376 (umask 077 && mkdir "$tmp")
15377} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15378
15379# Set up the scripts for CONFIG_FILES section.
15380# No need to generate them if there are no CONFIG_FILES.
15381# This happens for instance with `./config.status config.h'.
15382if test -n "$CONFIG_FILES"; then
15383
15384if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15385 ac_cs_awk_getline=:
15386 ac_cs_awk_pipe_init=
15387 ac_cs_awk_read_file='
15388 while ((getline aline < (F[key])) > 0)
15389 print(aline)
15390 close(F[key])'
15391 ac_cs_awk_pipe_fini=
15392else
15393 ac_cs_awk_getline=false
15394 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15395 ac_cs_awk_read_file='
15396 print "|#_!!_#|"
15397 print "cat " F[key] " &&"
15398 '$ac_cs_awk_pipe_init
15399 # The final `:' finishes the AND list.
15400 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15401fi
15402ac_cr=`echo X | tr X '\015'`
15403# On cygwin, bash can eat \r inside `` if the user requested igncr.
15404# But we know of no other shell where ac_cr would be empty at this
15405# point, so we can use a bashism as a fallback.
15406if test "x$ac_cr" = x; then
15407 eval ac_cr=\$\'\\r\'
15408fi
15409ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15410if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15411 ac_cs_awk_cr='\r'
15412else
15413 ac_cs_awk_cr=$ac_cr
15414fi
15415
15416echo 'BEGIN {' >"$tmp/subs1.awk" &&
15417_ACEOF
15418
15419# Create commands to substitute file output variables.
c6b750e1 15420{
81ecdfbb
RW
15421 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15422 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15423 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15424 echo "_ACAWK" &&
15425 echo "_ACEOF"
15426} >conf$$files.sh &&
15427. ./conf$$files.sh ||
15428 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15429rm -f conf$$files.sh
c6b750e1 15430
81ecdfbb
RW
15431{
15432 echo "cat >conf$$subs.awk <<_ACEOF" &&
15433 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15434 echo "_ACEOF"
15435} >conf$$subs.sh ||
15436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15437ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15438ac_delim='%!_!# '
15439for ac_last_try in false false false false false :; do
15440 . ./conf$$subs.sh ||
15441 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15442
15443 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15444 if test $ac_delim_n = $ac_delim_num; then
15445 break
15446 elif $ac_last_try; then
15447 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15448 else
15449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15450 fi
15451done
15452rm -f conf$$subs.sh
15453
15454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15455cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15456_ACEOF
81ecdfbb
RW
15457sed -n '
15458h
15459s/^/S["/; s/!.*/"]=/
15460p
15461g
15462s/^[^!]*!//
15463:repl
15464t repl
15465s/'"$ac_delim"'$//
15466t delim
15467:nl
15468h
15469s/\(.\{148\}\).*/\1/
15470t more1
15471s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15472p
15473n
15474b repl
15475:more1
15476s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15477p
15478g
15479s/.\{148\}//
15480t nl
15481:delim
15482h
15483s/\(.\{148\}\).*/\1/
15484t more2
15485s/["\\]/\\&/g; s/^/"/; s/$/"/
15486p
15487b
15488:more2
15489s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15490p
15491g
15492s/.\{148\}//
15493t delim
15494' <conf$$subs.awk | sed '
15495/^[^""]/{
15496 N
15497 s/\n//
15498}
15499' >>$CONFIG_STATUS || ac_write_fail=1
15500rm -f conf$$subs.awk
15501cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15502_ACAWK
15503cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15504 for (key in S) S_is_set[key] = 1
15505 FS = "\a"
15506 \$ac_cs_awk_pipe_init
15507}
15508{
15509 line = $ 0
15510 nfields = split(line, field, "@")
15511 substed = 0
15512 len = length(field[1])
15513 for (i = 2; i < nfields; i++) {
15514 key = field[i]
15515 keylen = length(key)
15516 if (S_is_set[key]) {
15517 value = S[key]
15518 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15519 len += length(value) + length(field[++i])
15520 substed = 1
15521 } else
15522 len += 1 + keylen
15523 }
15524 if (nfields == 3 && !substed) {
15525 key = field[2]
15526 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15527 \$ac_cs_awk_read_file
15528 next
15529 }
15530 }
15531 print line
15532}
15533\$ac_cs_awk_pipe_fini
15534_ACAWK
15535_ACEOF
15536cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15537if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15539else
15540 cat
15541fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15542 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15543_ACEOF
15544
15545# VPATH may cause trouble with some makes, so we remove $(srcdir),
15546# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15547# trailing colons and then remove the whole line if VPATH becomes empty
15548# (actually we leave an empty line to preserve line numbers).
15549if test "x$srcdir" = x.; then
15550 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15551s/:*\$(srcdir):*/:/
15552s/:*\${srcdir}:*/:/
15553s/:*@srcdir@:*/:/
15554s/^\([^=]*=[ ]*\):*/\1/
15555s/:*$//
15556s/^[^=]*=[ ]*$//
15557}'
15558fi
c6b750e1 15559
81ecdfbb
RW
15560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15561fi # test -n "$CONFIG_FILES"
c6b750e1 15562
c6b750e1 15563
81ecdfbb
RW
15564eval set X " :F $CONFIG_FILES "
15565shift
15566for ac_tag
15567do
15568 case $ac_tag in
15569 :[FHLC]) ac_mode=$ac_tag; continue;;
15570 esac
15571 case $ac_mode$ac_tag in
15572 :[FHL]*:*);;
15573 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15574 :[FH]-) ac_tag=-:-;;
15575 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15576 esac
15577 ac_save_IFS=$IFS
15578 IFS=:
15579 set x $ac_tag
15580 IFS=$ac_save_IFS
15581 shift
15582 ac_file=$1
15583 shift
252b5132 15584
81ecdfbb
RW
15585 case $ac_mode in
15586 :L) ac_source=$1;;
15587 :[FH])
15588 ac_file_inputs=
15589 for ac_f
15590 do
15591 case $ac_f in
15592 -) ac_f="$tmp/stdin";;
15593 *) # Look for the file first in the build tree, then in the source tree
15594 # (if the path is not absolute). The absolute path cannot be DOS-style,
15595 # because $ac_f cannot contain `:'.
15596 test -f "$ac_f" ||
15597 case $ac_f in
15598 [\\/$]*) false;;
15599 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15600 esac ||
15601 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15602 esac
15603 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15604 as_fn_append ac_file_inputs " '$ac_f'"
15605 done
c6b750e1 15606
81ecdfbb
RW
15607 # Let's still pretend it is `configure' which instantiates (i.e., don't
15608 # use $as_me), people would be surprised to read:
15609 # /* config.h. Generated by config.status. */
15610 configure_input='Generated from '`
15611 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15612 `' by configure.'
15613 if test x"$ac_file" != x-; then
15614 configure_input="$ac_file. $configure_input"
15615 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15616$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15617 fi
81ecdfbb
RW
15618 # Neutralize special characters interpreted by sed in replacement strings.
15619 case $configure_input in #(
15620 *\&* | *\|* | *\\* )
15621 ac_sed_conf_input=`$as_echo "$configure_input" |
15622 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15623 *) ac_sed_conf_input=$configure_input;;
15624 esac
cac3d6c4 15625
81ecdfbb
RW
15626 case $ac_tag in
15627 *:-:* | *:-) cat >"$tmp/stdin" \
15628 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15629 esac
15630 ;;
a0da8069 15631 esac
252b5132 15632
81ecdfbb 15633 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15634$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15635 X"$ac_file" : 'X\(//\)[^/]' \| \
15636 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15637 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15638$as_echo X"$ac_file" |
15639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15640 s//\1/
15641 q
15642 }
15643 /^X\(\/\/\)[^/].*/{
15644 s//\1/
15645 q
15646 }
15647 /^X\(\/\/\)$/{
15648 s//\1/
15649 q
15650 }
15651 /^X\(\/\).*/{
15652 s//\1/
15653 q
15654 }
15655 s/.*/./; q'`
15656 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15657 ac_builddir=.
252b5132 15658
81ecdfbb
RW
15659case "$ac_dir" in
15660.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15661*)
15662 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15663 # A ".." for each directory in $ac_dir_suffix.
15664 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15665 case $ac_top_builddir_sub in
15666 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15667 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15668 esac ;;
15669esac
15670ac_abs_top_builddir=$ac_pwd
15671ac_abs_builddir=$ac_pwd$ac_dir_suffix
15672# for backward compatibility:
15673ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15674
15675case $srcdir in
81ecdfbb 15676 .) # We are building in place.
c6b750e1 15677 ac_srcdir=.
81ecdfbb
RW
15678 ac_top_srcdir=$ac_top_builddir_sub
15679 ac_abs_top_srcdir=$ac_pwd ;;
15680 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15681 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15682 ac_top_srcdir=$srcdir
15683 ac_abs_top_srcdir=$srcdir ;;
15684 *) # Relative name.
15685 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15686 ac_top_srcdir=$ac_top_build_prefix$srcdir
15687 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15688esac
81ecdfbb 15689ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15690
252b5132 15691
81ecdfbb
RW
15692 case $ac_mode in
15693 :F)
15694 #
15695 # CONFIG_FILE
15696 #
c6b750e1
DJ
15697
15698 case $INSTALL in
15699 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15700 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15701 esac
81ecdfbb 15702_ACEOF
252b5132 15703
81ecdfbb
RW
15704cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15705# If the template does not know about datarootdir, expand it.
15706# FIXME: This hack should be removed a few years after 2.60.
15707ac_datarootdir_hack=; ac_datarootdir_seen=
15708ac_sed_dataroot='
15709/datarootdir/ {
15710 p
15711 q
15712}
15713/@datadir@/p
15714/@docdir@/p
15715/@infodir@/p
15716/@localedir@/p
15717/@mandir@/p'
15718case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15719*datarootdir*) ac_datarootdir_seen=yes;;
15720*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15722$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15723_ACEOF
81ecdfbb
RW
15724cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15725 ac_datarootdir_hack='
15726 s&@datadir@&$datadir&g
15727 s&@docdir@&$docdir&g
15728 s&@infodir@&$infodir&g
15729 s&@localedir@&$localedir&g
15730 s&@mandir@&$mandir&g
15731 s&\\\${datarootdir}&$datarootdir&g' ;;
15732esac
15733_ACEOF
15734
15735# Neutralize VPATH when `$srcdir' = `.'.
15736# Shell code in configure.ac might set extrasub.
15737# FIXME: do we really want to maintain this feature?
15738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15739ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15740$extrasub
15741_ACEOF
81ecdfbb 15742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15743:t
15744/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15745s|@configure_input@|$ac_sed_conf_input|;t t
15746s&@top_builddir@&$ac_top_builddir_sub&;t t
15747s&@top_build_prefix@&$ac_top_build_prefix&;t t
15748s&@srcdir@&$ac_srcdir&;t t
15749s&@abs_srcdir@&$ac_abs_srcdir&;t t
15750s&@top_srcdir@&$ac_top_srcdir&;t t
15751s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15752s&@builddir@&$ac_builddir&;t t
15753s&@abs_builddir@&$ac_abs_builddir&;t t
15754s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15755s&@INSTALL@&$ac_INSTALL&;t t
15756$ac_datarootdir_hack
15757"
15758eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15759if $ac_cs_awk_getline; then
15760 $AWK -f "$tmp/subs.awk"
15761else
15762 $AWK -f "$tmp/subs.awk" | $SHELL
15763fi >$tmp/out \
15764 || as_fn_error "could not create $ac_file" "$LINENO" 5
15765
15766test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15767 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15768 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15770which seems to be undefined. Please make sure it is defined." >&5
15771$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15772which seems to be undefined. Please make sure it is defined." >&2;}
15773
15774 rm -f "$tmp/stdin"
15775 case $ac_file in
15776 -) cat "$tmp/out" && rm -f "$tmp/out";;
15777 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15778 esac \
15779 || as_fn_error "could not create $ac_file" "$LINENO" 5
15780 ;;
c148b4cb 15781
c148b4cb 15782
c148b4cb 15783
81ecdfbb
RW
15784 esac
15785
06a51eac
RW
15786
15787 case $ac_file$ac_mode in
15788 "Makefile":F) sed "$extrasub_build" Makefile |
15789 sed "$extrasub_host" |
15790 sed "$extrasub_target" > mf$$
15791 mv -f mf$$ Makefile ;;
15792
15793 esac
81ecdfbb
RW
15794done # for ac_tag
15795
15796
15797as_fn_exit 0
c6b750e1 15798_ACEOF
c6b750e1
DJ
15799ac_clean_files=$ac_clean_files_save
15800
81ecdfbb
RW
15801test $ac_write_fail = 0 ||
15802 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15803
c6b750e1
DJ
15804
15805# configure is writing to config.log, and then calls config.status.
15806# config.status does its own redirection, appending to config.log.
15807# Unfortunately, on DOS this fails, as config.log is still kept open
15808# by configure, so config.status won't be able to write to it; its
15809# output is simply discarded. So we exec the FD to /dev/null,
15810# effectively closing config.log, so it can be properly (re)opened and
15811# appended to by config.status. When coming back to configure, we
15812# need to make the FD available again.
15813if test "$no_create" != yes; then
15814 ac_cs_success=:
15815 ac_config_status_args=
15816 test "$silent" = yes &&
15817 ac_config_status_args="$ac_config_status_args --quiet"
15818 exec 5>/dev/null
15819 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15820 exec 5>>config.log
15821 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15822 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15823 $ac_cs_success || as_fn_exit $?
15824fi
15825if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15827$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15828fi
c148b4cb 15829