]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
459260ec 559host_shared
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
e7a82751 574READELF_FOR_TARGET
5213506e
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
9bccfdf5 577OBJCOPY_FOR_TARGET
5213506e
RW
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
632e2a07 584GOC_FOR_TARGET
5213506e
RW
585GFORTRAN_FOR_TARGET
586GCJ_FOR_TARGET
587GCC_FOR_TARGET
588CXX_FOR_TARGET
589CC_FOR_TARGET
e7a82751 590READELF
5213506e
RW
591OBJDUMP
592OBJCOPY
593WINDMC
594WINDRES
595STRIP
596RANLIB
597NM
598LIPO
599LD
600DLLTOOL
601AS
602AR
603RUNTEST
604EXPECT
605MAKEINFO
606FLEX
607LEX
608M4
609BISON
610YACC
5213506e
RW
611WINDRES_FOR_BUILD
612WINDMC_FOR_BUILD
613RANLIB_FOR_BUILD
614NM_FOR_BUILD
615LD_FOR_BUILD
616LDFLAGS_FOR_BUILD
632e2a07 617GOC_FOR_BUILD
5213506e
RW
618GFORTRAN_FOR_BUILD
619GCJ_FOR_BUILD
620DLLTOOL_FOR_BUILD
621CXX_FOR_BUILD
622CXXFLAGS_FOR_BUILD
623CFLAGS_FOR_BUILD
624CC_FOR_BUILD
625AS_FOR_BUILD
626AR_FOR_BUILD
aae29963 627target_configdirs
5213506e 628configdirs
5213506e 629build_configdirs
5213506e
RW
630INSTALL_GDB_TK
631GDB_TK
632CONFIGURE_GDB_TK
633build_tooldir
634tooldir
635GCC_SHLIB_SUBDIR
636RPATH_ENVVAR
ffedf511
RW
637target_configargs
638host_configargs
639build_configargs
e12c4094 640BUILD_CONFIG
6f57bdf6 641LDFLAGS_FOR_TARGET
5213506e
RW
642CXXFLAGS_FOR_TARGET
643CFLAGS_FOR_TARGET
644DEBUG_PREFIX_CFLAGS_FOR_TARGET
645SYSROOT_CFLAGS_FOR_TARGET
1c01ebf6 646extra_host_zlib_configure_flags
d7f09764 647extra_host_libiberty_configure_flags
fca38047 648stage1_languages
45b3824d
TS
649extra_linker_plugin_flags
650extra_linker_plugin_configure_flags
33ad93b9 651islinc
eae1a5d4 652isllibs
1e050c90 653islver
5213506e 654poststage1_ldflags
ed2eaa9f 655poststage1_libs
5213506e 656stage1_ldflags
0b21f5d3 657stage1_libs
0ff2d841 658extra_isl_gmp_configure_flags
5213506e
RW
659extra_mpc_mpfr_configure_flags
660extra_mpc_gmp_configure_flags
661extra_mpfr_configure_flags
662gmpinc
663gmplibs
664do_compare
665GNATMAKE
666GNATBIND
667ac_ct_CXX
668CXXFLAGS
669CXX
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
a4a2c37d 677EXTRA_CONFIGARGS_LIBJAVA
5f520819 678extra_liboffloadmic_configure_flags
5213506e
RW
679target_subdir
680host_subdir
681build_subdir
682build_libsubdir
87264276
PB
683AWK
684SED
5213506e
RW
685LN_S
686LN
687INSTALL_DATA
688INSTALL_SCRIPT
689INSTALL_PROGRAM
690target_os
691target_vendor
692target_cpu
693target
694host_os
695host_vendor
696host_cpu
697host
698target_noncanonical
699host_noncanonical
700build_noncanonical
701build_os
702build_vendor
703build_cpu
704build
705TOPLEVEL_CONFIGURE_ARGUMENTS
706target_alias
707host_alias
708build_alias
709LIBS
710ECHO_T
711ECHO_N
712ECHO_C
713DEFS
714mandir
715localedir
716libdir
717psdir
718pdfdir
719dvidir
720htmldir
721infodir
722docdir
723oldincludedir
724includedir
725localstatedir
726sharedstatedir
727sysconfdir
728datadir
729datarootdir
730libexecdir
731sbindir
732bindir
733program_transform_name
734prefix
735exec_prefix
736PACKAGE_URL
737PACKAGE_BUGREPORT
738PACKAGE_STRING
739PACKAGE_VERSION
740PACKAGE_TARNAME
741PACKAGE_NAME
742PATH_SEPARATOR
743SHELL'
744ac_subst_files='serialization_dependencies
745host_makefile_frag
746target_makefile_frag
747alphaieee_frag
748ospace_frag'
749ac_user_opts='
750enable_option_checking
751with_build_libsubdir
a05c2c75 752with_system_zlib
85c64bbe
BS
753enable_as_accelerator_for
754enable_offload_targets
5213506e 755enable_gold
21539e2e 756enable_ld
78edb32f 757enable_compressed_debug_sections
87e6d9dc
TB
758enable_libquadmath
759enable_libquadmath_support
5213506e
RW
760enable_libada
761enable_libssp
1873ec0c 762enable_libstdcxx
5f520819 763enable_liboffloadmic
a4a2c37d 764enable_static_libjava
ff3ac0f4 765enable_bootstrap
5213506e
RW
766with_mpc
767with_mpc_include
768with_mpc_lib
769with_mpfr_dir
770with_mpfr
771with_mpfr_include
772with_mpfr_lib
773with_gmp_dir
774with_gmp
775with_gmp_include
776with_gmp_lib
5213506e 777with_stage1_libs
0b21f5d3 778with_stage1_ldflags
5213506e 779with_boot_libs
ed2eaa9f 780with_boot_ldflags
33ad93b9
RG
781with_isl
782with_isl_include
783with_isl_lib
784enable_isl_version_check
d7f09764 785enable_lto
45b3824d
TS
786enable_linker_plugin_configure_flags
787enable_linker_plugin_flags
5213506e
RW
788enable_stage1_languages
789enable_objc_gc
790with_build_sysroot
791with_debug_prefix_map
5646b7b9 792with_build_config
beeda1d9 793enable_vtable_verify
5213506e
RW
794enable_serial_configure
795with_build_time_tools
796enable_maintainer_mode
797enable_stage1_checking
798enable_werror
459260ec 799enable_host_shared
5213506e
RW
800'
801 ac_precious_vars='build_alias
802host_alias
803target_alias
804CC
805CFLAGS
806LDFLAGS
807LIBS
808CPPFLAGS
809CXX
810CXXFLAGS
811CCC
ffedf511
RW
812build_configargs
813host_configargs
814target_configargs
5213506e
RW
815AR
816AS
817DLLTOOL
818LD
819LIPO
820NM
821RANLIB
822STRIP
823WINDRES
824WINDMC
825OBJCOPY
826OBJDUMP
e7a82751 827READELF
5213506e
RW
828CC_FOR_TARGET
829CXX_FOR_TARGET
830GCC_FOR_TARGET
831GCJ_FOR_TARGET
832GFORTRAN_FOR_TARGET
632e2a07 833GOC_FOR_TARGET
5213506e
RW
834AR_FOR_TARGET
835AS_FOR_TARGET
836DLLTOOL_FOR_TARGET
837LD_FOR_TARGET
838LIPO_FOR_TARGET
839NM_FOR_TARGET
9bccfdf5 840OBJCOPY_FOR_TARGET
5213506e
RW
841OBJDUMP_FOR_TARGET
842RANLIB_FOR_TARGET
e7a82751 843READELF_FOR_TARGET
5213506e
RW
844STRIP_FOR_TARGET
845WINDRES_FOR_TARGET
846WINDMC_FOR_TARGET'
847
671aa708
NN
848
849# Initialize some variables set by options.
1c710c3c
DJ
850ac_init_help=
851ac_init_version=false
5213506e
RW
852ac_unrecognized_opts=
853ac_unrecognized_sep=
671aa708
NN
854# The variables have the same names as the options, with
855# dashes changed to underlines.
1c710c3c 856cache_file=/dev/null
671aa708 857exec_prefix=NONE
671aa708 858no_create=
671aa708
NN
859no_recursion=
860prefix=NONE
861program_prefix=NONE
862program_suffix=NONE
863program_transform_name=s,x,x,
864silent=
865site=
866srcdir=
671aa708
NN
867verbose=
868x_includes=NONE
869x_libraries=NONE
1c710c3c
DJ
870
871# Installation directory options.
872# These are left unexpanded so users can "make install exec_prefix=/foo"
873# and all the variables that are supposed to be based on exec_prefix
874# by default will actually change.
875# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 876# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
877bindir='${exec_prefix}/bin'
878sbindir='${exec_prefix}/sbin'
879libexecdir='${exec_prefix}/libexec'
5213506e
RW
880datarootdir='${prefix}/share'
881datadir='${datarootdir}'
671aa708
NN
882sysconfdir='${prefix}/etc'
883sharedstatedir='${prefix}/com'
884localstatedir='${prefix}/var'
671aa708
NN
885includedir='${prefix}/include'
886oldincludedir='/usr/include'
5213506e
RW
887docdir='${datarootdir}/doc/${PACKAGE}'
888infodir='${datarootdir}/info'
889htmldir='${docdir}'
890dvidir='${docdir}'
891pdfdir='${docdir}'
892psdir='${docdir}'
893libdir='${exec_prefix}/lib'
894localedir='${datarootdir}/locale'
895mandir='${datarootdir}/man'
79c06341 896
671aa708 897ac_prev=
5213506e 898ac_dashdash=
671aa708
NN
899for ac_option
900do
671aa708
NN
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
5213506e 903 eval $ac_prev=\$ac_option
671aa708
NN
904 ac_prev=
905 continue
906 fi
79c06341 907
5213506e
RW
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
671aa708
NN
912
913 # Accept the important Cygnus configure options, so we can diagnose typos.
914
5213506e
RW
915 case $ac_dashdash$ac_option in
916 --)
917 ac_dashdash=yes ;;
671aa708
NN
918
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 922 bindir=$ac_optarg ;;
671aa708
NN
923
924 -build | --build | --buil | --bui | --bu)
1c710c3c 925 ac_prev=build_alias ;;
671aa708 926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 927 build_alias=$ac_optarg ;;
671aa708
NN
928
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
934 cache_file=$ac_optarg ;;
935
936 --config-cache | -C)
937 cache_file=config.cache ;;
671aa708 938
5213506e 939 -datadir | --datadir | --datadi | --datad)
671aa708 940 ac_prev=datadir ;;
5213506e 941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 942 datadir=$ac_optarg ;;
671aa708 943
5213506e
RW
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
950
671aa708 951 -disable-* | --disable-*)
5213506e 952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 953 # Reject names that are not valid shell variable names.
5213506e
RW
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960"enable_$ac_useropt"
961"*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
671aa708
NN
976
977 -enable-* | --enable-*)
5213506e 978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 979 # Reject names that are not valid shell variable names.
5213506e
RW
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986"enable_$ac_useropt"
987"*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
2aeb72e9 990 esac
5213506e 991 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1c710c3c 1000 exec_prefix=$ac_optarg ;;
671aa708
NN
1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
1c710c3c
DJ
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
671aa708
NN
1012
1013 -host | --host | --hos | --ho)
1c710c3c 1014 ac_prev=host_alias ;;
671aa708 1015 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1016 host_alias=$ac_optarg ;;
671aa708 1017
5213506e
RW
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
671aa708
NN
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1029 includedir=$ac_optarg ;;
671aa708
NN
1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1034 infodir=$ac_optarg ;;
671aa708
NN
1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1039 libdir=$ac_optarg ;;
671aa708
NN
1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1046 libexecdir=$ac_optarg ;;
671aa708 1047
5213506e
RW
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
671aa708 1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1054 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1058 localstatedir=$ac_optarg ;;
671aa708
NN
1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1063 mandir=$ac_optarg ;;
671aa708
NN
1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1070 | --no-cr | --no-c | -n)
671aa708
NN
1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1084 oldincludedir=$ac_optarg ;;
671aa708
NN
1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1089 prefix=$ac_optarg ;;
671aa708
NN
1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1096 program_prefix=$ac_optarg ;;
671aa708
NN
1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1103 program_suffix=$ac_optarg ;;
671aa708
NN
1104
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1120 program_transform_name=$ac_optarg ;;
671aa708 1121
5213506e
RW
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
671aa708
NN
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1c710c3c 1140 sbindir=$ac_optarg ;;
671aa708
NN
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1c710c3c 1151 sharedstatedir=$ac_optarg ;;
671aa708
NN
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1c710c3c 1156 site=$ac_optarg ;;
671aa708
NN
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1161 srcdir=$ac_optarg ;;
671aa708
NN
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1168 sysconfdir=$ac_optarg ;;
671aa708
NN
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1171 ac_prev=target_alias ;;
671aa708 1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1173 target_alias=$ac_optarg ;;
671aa708
NN
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1c710c3c
DJ
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
671aa708
NN
1180
1181 -with-* | --with-*)
5213506e 1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1183 # Reject names that are not valid shell variable names.
5213506e
RW
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
2aeb72e9 1194 esac
5213506e 1195 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1196
1197 -without-* | --without-*)
5213506e 1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1199 # Reject names that are not valid shell variable names.
5213506e
RW
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
671aa708
NN
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1222 x_includes=$ac_optarg ;;
671aa708
NN
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1229 x_libraries=$ac_optarg ;;
671aa708 1230
5213506e
RW
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232Try \`$0 --help' for more information."
671aa708
NN
1233 ;;
1234
1c710c3c
DJ
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
5213506e
RW
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1243 export $ac_envvar ;;
1244
671aa708 1245 *)
1c710c3c 1246 # FIXME: should be removed in autoconf 3.0.
5213506e 1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1251 ;;
1252
1253 esac
1254done
1255
1256if test -n "$ac_prev"; then
1c710c3c 1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1258 as_fn_error "missing argument to $ac_option"
af71363e 1259fi
af71363e 1260
5213506e
RW
1261if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1266 esac
5213506e 1267fi
2aeb72e9 1268
5213506e
RW
1269# Check all directory arguments for consistency.
1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
2aeb72e9 1274do
5213506e
RW
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
2aeb72e9 1283 case $ac_val in
5213506e
RW
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1286 esac
5213506e 1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1288done
1289
1c710c3c
DJ
1290# There might be people who depend on the old broken behavior: `$host'
1291# used to hold the argument of --host etc.
1292# FIXME: To remove some day.
1293build=$build_alias
1294host=$host_alias
1295target=$target_alias
0b0dc272 1296
1c710c3c
DJ
1297# FIXME: To remove some day.
1298if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
5213506e 1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306fi
1307
1308ac_tool_prefix=
1309test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311test "$silent" = yes && exec 6>/dev/null
671aa708 1312
671aa708 1313
5213506e
RW
1314ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315ac_ls_di=`ls -di .` &&
1316ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1320
1321
671aa708
NN
1322# Find the source files, if location was not specified.
1323if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
5213506e
RW
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331$as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
671aa708 1349 srcdir=$ac_confdir
5213506e 1350 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1351 srcdir=..
1352 fi
1353else
1354 ac_srcdir_defaulted=no
1355fi
5213506e
RW
1356if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359fi
1360ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364# When building in place, set srcdir=.
1365if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367fi
1368# Remove unnecessary trailing slashes from srcdir.
1369# Double slashes in file names in object file debugging info
1370# mess up M-x gdb in Emacs.
1371case $srcdir in
1372*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373esac
87841584
AM
1374case $srcdir in
1375 *" "*)
1376 as_fn_error "path to source, $srcdir, contains spaces"
1377 ;;
1378esac
ac9e6043
RW
1379ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380
5213506e
RW
1381for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1c710c3c
DJ
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395\`configure' configures this package to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1c710c3c
DJ
1415Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1417 [$ac_default_prefix]
1c710c3c 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1419 [PREFIX]
1c710c3c
DJ
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
5213506e
RW
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1448_ACEOF
1449
1450 cat <<\_ACEOF
1451
1452Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465
1466 cat <<\_ACEOF
1467
1468Optional Features:
5213506e 1469 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1474 host triple by ARG
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
21539e2e 1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1482 Enable compressed debug sections for gas, gold or ld
1483 by default
87e6d9dc
TB
1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
30b74385
RW
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
1873ec0c 1489 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
a4a2c37d
MK
1492 --enable-static-libjava[=ARG]
1493 build static libjava [default=no]
ff3ac0f4 1494 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1495 --disable-isl-version-check
560d18d3 1496 disable check for isl version
d7f09764 1497 --enable-lto enable link time optimization support
45b3824d
TS
1498 --enable-linker-plugin-configure-flags=FLAGS
1499 additional flags for configuring linker plugins
1500 [none]
1501 --enable-linker-plugin-flags=FLAGS
1502 additional flags for configuring and building linker
1503 plugins [none]
33e39b66
AS
1504 --enable-stage1-languages[=all]
1505 choose additional languages to build during stage1.
1506 Mostly useful for compiler development
1507 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1508 Objective-C runtime
318a4e6d 1509 --enable-vtable-verify Enable vtable verification feature
30b74385 1510 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1511 force sequential configuration of sub-packages for
1512 the host, target or build machine, or all
1513 sub-packages
1514 --enable-maintainer-mode
1515 enable make rules and dependencies not useful (and
1516 sometimes confusing) to the casual installer
1517 --enable-stage1-checking[=all]
1518 choose additional checking for stage1 of the
1519 compiler
1c710c3c 1520 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1521 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1522
1523Optional Packages:
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1527 --with-system-zlib use installed libz
33e39b66
AS
1528 --with-mpc=PATH specify prefix directory for installed MPC package.
1529 Equivalent to --with-mpc-include=PATH/include plus
1530 --with-mpc-lib=PATH/lib
1531 --with-mpc-include=PATH specify directory for installed MPC include files
1532 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1533 --with-mpfr-dir=PATH this option has been REMOVED
1534 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1535 Equivalent to --with-mpfr-include=PATH/include plus
1536 --with-mpfr-lib=PATH/lib
1c710c3c 1537 --with-mpfr-include=PATH
30b74385
RW
1538 specify directory for installed MPFR include files
1539 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1540 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1541 --with-gmp=PATH specify prefix directory for the installed GMP
1542 package. Equivalent to
1543 --with-gmp-include=PATH/include plus
1544 --with-gmp-lib=PATH/lib
30b74385
RW
1545 --with-gmp-include=PATH specify directory for installed GMP include files
1546 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1547 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1548 --with-stage1-ldflags=FLAGS
1549 linker flags for stage1
33e39b66
AS
1550 --with-boot-libs=LIBS libraries for stage2 and later
1551 --with-boot-ldflags=FLAGS
1552 linker flags for stage2 and later
e357a5e0 1553 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1554 package. Equivalent to
33ad93b9
RG
1555 --with-isl-include=PATH/include plus
1556 --with-isl-lib=PATH/lib
560d18d3
AK
1557 --with-isl-include=PATH Specify directory for installed isl include files
1558 --with-isl-lib=PATH Specify the directory for the installed isl library
30b74385 1559 --with-build-sysroot=SYSROOT
1c710c3c 1560 use sysroot as the system root during the build
c8aea42c 1561 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1562 map A to B, C to D ... in debug information
1563 --with-build-config='NAME NAME2...'
1564 use config/NAME.mk build configuration
30b74385 1565 --with-build-time-tools=PATH
1c710c3c 1566 use given path to find target tools during the build
1c710c3c
DJ
1567
1568Some influential environment variables:
1569 CC C compiler command
1570 CFLAGS C compiler flags
1571 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1572 nonstandard directory <lib dir>
5213506e
RW
1573 LIBS libraries to pass to the linker, e.g. -l<library>
1574 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1575 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1576 CXX C++ compiler command
1577 CXXFLAGS C++ compiler flags
ffedf511
RW
1578 build_configargs
1579 additional configure arguments for build directories
1580 host_configargs
1581 additional configure arguments for host directories
1582 target_configargs
1583 additional configure arguments for target directories
278a7a38
AO
1584 AR AR for the host
1585 AS AS for the host
1586 DLLTOOL DLLTOOL for the host
1587 LD LD for the host
1588 LIPO LIPO for the host
1589 NM NM for the host
1590 RANLIB RANLIB for the host
1591 STRIP STRIP for the host
1592 WINDRES WINDRES for the host
901119ae 1593 WINDMC WINDMC for the host
278a7a38
AO
1594 OBJCOPY OBJCOPY for the host
1595 OBJDUMP OBJDUMP for the host
e7a82751 1596 READELF READELF for the host
278a7a38
AO
1597 CC_FOR_TARGET
1598 CC for the target
1599 CXX_FOR_TARGET
1600 CXX for the target
1601 GCC_FOR_TARGET
1602 GCC for the target
1603 GCJ_FOR_TARGET
1604 GCJ for the target
1605 GFORTRAN_FOR_TARGET
1606 GFORTRAN for the target
632e2a07
ILT
1607 GOC_FOR_TARGET
1608 GOC for the target
278a7a38
AO
1609 AR_FOR_TARGET
1610 AR for the target
1611 AS_FOR_TARGET
1612 AS for the target
1613 DLLTOOL_FOR_TARGET
1614 DLLTOOL for the target
1615 LD_FOR_TARGET
1616 LD for the target
1617 LIPO_FOR_TARGET
1618 LIPO for the target
1619 NM_FOR_TARGET
1620 NM for the target
9bccfdf5
AP
1621 OBJCOPY_FOR_TARGET
1622 OBJCOPY for the target
278a7a38
AO
1623 OBJDUMP_FOR_TARGET
1624 OBJDUMP for the target
1625 RANLIB_FOR_TARGET
1626 RANLIB for the target
e7a82751
RM
1627 READELF_FOR_TARGET
1628 READELF for the target
278a7a38
AO
1629 STRIP_FOR_TARGET
1630 STRIP for the target
1631 WINDRES_FOR_TARGET
1632 WINDRES for the target
901119ae
KT
1633 WINDMC_FOR_TARGET
1634 WINDMC for the target
1c710c3c
DJ
1635
1636Use these variables to override the choices made by `configure' or to help
1637it to find libraries and programs with nonstandard names/locations.
1638
5213506e 1639Report bugs to the package provider.
1c710c3c 1640_ACEOF
5213506e 1641ac_status=$?
1c710c3c
DJ
1642fi
1643
1644if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1c710c3c 1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
1c710c3c
DJ
1650 ac_builddir=.
1651
5213506e
RW
1652case "$ac_dir" in
1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654*)
1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662esac
1663ac_abs_top_builddir=$ac_pwd
1664ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665# for backward compatibility:
1666ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1667
1668case $srcdir in
5213506e 1669 .) # We are building in place.
1c710c3c 1670 ac_srcdir=.
5213506e
RW
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1674 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1681esac
5213506e
RW
1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1692 else
5213506e
RW
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1696 done
1697fi
1698
5213506e 1699test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1700if $ac_init_version; then
1701 cat <<\_ACEOF
5213506e
RW
1702configure
1703generated by GNU Autoconf 2.64
1c710c3c 1704
5213506e 1705Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1706This configure script is free software; the Free Software Foundation
1707gives unlimited permission to copy, distribute and modify it.
1708_ACEOF
5213506e 1709 exit
0b0dc272 1710fi
5213506e
RW
1711
1712## ------------------------ ##
1713## Autoconf initialization. ##
1714## ------------------------ ##
1715
1716# ac_fn_c_try_compile LINENO
1717# --------------------------
1718# Try to compile conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_compile ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748fi
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1750 return $ac_retval
1751
1752} # ac_fn_c_try_compile
1753
1754# ac_fn_cxx_try_compile LINENO
1755# ----------------------------
1756# Try to compile conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_cxx_try_compile ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext
1761 if { { ac_try="$ac_compile"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_compile") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_cxx_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest.$ac_objext; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786fi
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 return $ac_retval
1789
1790} # ac_fn_cxx_try_compile
1791
0b21f5d3
EB
1792# ac_fn_cxx_try_link LINENO
1793# -------------------------
1794# Try to link conftest.$ac_ext, and return whether this succeeded.
1795ac_fn_cxx_try_link ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 rm -f conftest.$ac_objext conftest$ac_exeext
1799 if { { ac_try="$ac_link"
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_link") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; } && {
1815 test -z "$ac_cxx_werror_flag" ||
1816 test ! -s conftest.err
1817 } && test -s conftest$ac_exeext && {
1818 test "$cross_compiling" = yes ||
1819 $as_test_x conftest$ac_exeext
1820 }; then :
1821 ac_retval=0
1822else
1823 $as_echo "$as_me: failed program was:" >&5
1824sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=1
1827fi
1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1830 # interfere with the next link command; also delete a directory that is
1831 # left behind by Apple's compiler. We do this before executing the actions.
1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1834 return $ac_retval
1835
1836} # ac_fn_cxx_try_link
1837
5213506e
RW
1838# ac_fn_c_try_link LINENO
1839# -----------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_c_try_link ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1846case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest$ac_exeext
1866 }; then :
1867 ac_retval=0
1868else
1869 $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873fi
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1880 return $ac_retval
1881
1882} # ac_fn_c_try_link
1883cat >config.log <<_ACEOF
1c710c3c
DJ
1884This file contains any messages produced by compilers while
1885running configure, to aid debugging if configure makes a mistake.
1886
1887It was created by $as_me, which was
5213506e 1888generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1889
1890 $ $0 $@
1891
1892_ACEOF
5213506e 1893exec 5>>config.log
1c710c3c
DJ
1894{
1895cat <<_ASUNAME
1896## --------- ##
1897## Platform. ##
1898## --------- ##
1899
1900hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1901uname -m = `(uname -m) 2>/dev/null || echo unknown`
1902uname -r = `(uname -r) 2>/dev/null || echo unknown`
1903uname -s = `(uname -s) 2>/dev/null || echo unknown`
1904uname -v = `(uname -v) 2>/dev/null || echo unknown`
1905
1906/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1907/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1908
1909/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1910/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1911/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1912/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1913/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1914/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1915/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1916
1917_ASUNAME
1918
1919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1920for as_dir in $PATH
1921do
1922 IFS=$as_save_IFS
1923 test -z "$as_dir" && as_dir=.
5213506e
RW
1924 $as_echo "PATH: $as_dir"
1925 done
1926IFS=$as_save_IFS
1c710c3c
DJ
1927
1928} >&5
1929
1930cat >&5 <<_ACEOF
1931
1932
1933## ----------- ##
1934## Core tests. ##
1935## ----------- ##
1936
1937_ACEOF
1938
1939
1940# Keep a trace of the command line.
1941# Strip out --no-create and --no-recursion so they do not pile up.
1942# Strip out --silent because we don't want to record it for future runs.
1943# Also quote any args containing shell meta-characters.
1944# Make two passes to allow for proper duplicate-argument suppression.
1945ac_configure_args=
1946ac_configure_args0=
1947ac_configure_args1=
1c710c3c
DJ
1948ac_must_keep_next=false
1949for ac_pass in 1 2
1950do
1951 for ac_arg
1952 do
1953 case $ac_arg in
1954 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1956 | -silent | --silent | --silen | --sile | --sil)
1957 continue ;;
5213506e
RW
1958 *\'*)
1959 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1960 esac
1961 case $ac_pass in
5213506e 1962 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1963 2)
5213506e 1964 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1965 if test $ac_must_keep_next = true; then
1966 ac_must_keep_next=false # Got value, back to normal.
1967 else
1968 case $ac_arg in
1969 *=* | --config-cache | -C | -disable-* | --disable-* \
1970 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1971 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1972 | -with-* | --with-* | -without-* | --without-* | --x)
1973 case "$ac_configure_args0 " in
1974 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1975 esac
1976 ;;
1977 -* ) ac_must_keep_next=true ;;
1978 esac
1979 fi
5213506e 1980 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1981 ;;
1982 esac
1983 done
1984done
5213506e
RW
1985{ ac_configure_args0=; unset ac_configure_args0;}
1986{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1987
1988# When interrupted or exit'd, cleanup temporary files, and complete
1989# config.log. We remove comments because anyway the quotes in there
1990# would cause problems or look ugly.
5213506e
RW
1991# WARNING: Use '\'' to represent an apostrophe within the trap.
1992# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1993trap 'exit_status=$?
1994 # Save into config.log some information that might help in debugging.
1995 {
1996 echo
1997
1998 cat <<\_ASBOX
1999## ---------------- ##
2000## Cache variables. ##
2001## ---------------- ##
2002_ASBOX
2003 echo
2004 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2005(
2006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in #(
2009 *${as_nl}*)
2010 case $ac_var in #(
2011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2013 esac
2014 case $ac_var in #(
2015 _ | IFS | as_nl) ;; #(
2016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2017 *) { eval $ac_var=; unset $ac_var;} ;;
2018 esac ;;
2019 esac
2020 done
1c710c3c 2021 (set) 2>&1 |
5213506e
RW
2022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2023 *${as_nl}ac_space=\ *)
1c710c3c 2024 sed -n \
5213506e
RW
2025 "s/'\''/'\''\\\\'\'''\''/g;
2026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2027 ;; #(
1c710c3c 2028 *)
5213506e 2029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2030 ;;
5213506e
RW
2031 esac |
2032 sort
2033)
1c710c3c
DJ
2034 echo
2035
2036 cat <<\_ASBOX
2037## ----------------- ##
2038## Output variables. ##
2039## ----------------- ##
2040_ASBOX
2041 echo
2042 for ac_var in $ac_subst_vars
2043 do
5213506e
RW
2044 eval ac_val=\$$ac_var
2045 case $ac_val in
2046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2047 esac
2048 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2049 done | sort
2050 echo
2051
2052 if test -n "$ac_subst_files"; then
2053 cat <<\_ASBOX
5213506e
RW
2054## ------------------- ##
2055## File substitutions. ##
2056## ------------------- ##
1c710c3c
DJ
2057_ASBOX
2058 echo
2059 for ac_var in $ac_subst_files
2060 do
5213506e
RW
2061 eval ac_val=\$$ac_var
2062 case $ac_val in
2063 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2064 esac
2065 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2066 done | sort
2067 echo
2068 fi
2069
2070 if test -s confdefs.h; then
2071 cat <<\_ASBOX
2072## ----------- ##
2073## confdefs.h. ##
2074## ----------- ##
2075_ASBOX
2076 echo
5213506e 2077 cat confdefs.h
1c710c3c
DJ
2078 echo
2079 fi
2080 test "$ac_signal" != 0 &&
5213506e
RW
2081 $as_echo "$as_me: caught signal $ac_signal"
2082 $as_echo "$as_me: exit $exit_status"
1c710c3c 2083 } >&5
5213506e
RW
2084 rm -f core *.core core.conftest.* &&
2085 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2086 exit $exit_status
5213506e 2087' 0
1c710c3c 2088for ac_signal in 1 2 13 15; do
5213506e 2089 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2090done
2091ac_signal=0
2092
2093# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2094rm -f -r conftest* confdefs.h
2095
2096$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2097
2098# Predefined preprocessor variables.
2099
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_NAME "$PACKAGE_NAME"
2102_ACEOF
2103
1c710c3c
DJ
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2106_ACEOF
2107
1c710c3c
DJ
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_VERSION "$PACKAGE_VERSION"
2110_ACEOF
0b0dc272 2111
1c710c3c
DJ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_STRING "$PACKAGE_STRING"
2114_ACEOF
2115
1c710c3c
DJ
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2118_ACEOF
2119
5213506e
RW
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_URL "$PACKAGE_URL"
2122_ACEOF
2123
1c710c3c
DJ
2124
2125# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2126# Prefer an explicitly selected file to automatically selected ones.
2127ac_site_file1=NONE
2128ac_site_file2=NONE
2129if test -n "$CONFIG_SITE"; then
2130 ac_site_file1=$CONFIG_SITE
2131elif test "x$prefix" != xNONE; then
2132 ac_site_file1=$prefix/share/config.site
2133 ac_site_file2=$prefix/etc/config.site
2134else
2135 ac_site_file1=$ac_default_prefix/share/config.site
2136 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2137fi
5213506e
RW
2138for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2139do
2140 test "x$ac_site_file" = xNONE && continue
671aa708 2141 if test -r "$ac_site_file"; then
5213506e
RW
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2143$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2144 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2145 . "$ac_site_file"
2146 fi
2147done
2148
2149if test -r "$cache_file"; then
1c710c3c
DJ
2150 # Some versions of bash will fail to source /dev/null (special
2151 # files actually), so we avoid doing that.
2152 if test -f "$cache_file"; then
5213506e
RW
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2154$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2155 case $cache_file in
5213506e
RW
2156 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2157 *) . "./$cache_file";;
1c710c3c
DJ
2158 esac
2159 fi
671aa708 2160else
5213506e
RW
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2162$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2163 >$cache_file
2164fi
2165
2166# Check that the precious variables saved in the cache have kept the same
2167# value.
2168ac_cache_corrupted=false
5213506e 2169for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2170 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2171 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2172 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2173 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2174 case $ac_old_set,$ac_new_set in
2175 set,)
5213506e
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2177$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2178 ac_cache_corrupted=: ;;
2179 ,set)
5213506e
RW
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2182 ac_cache_corrupted=: ;;
2183 ,);;
2184 *)
2185 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2186 # differences in whitespace do not lead to failure.
2187 ac_old_val_w=`echo x $ac_old_val`
2188 ac_new_val_w=`echo x $ac_new_val`
2189 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2191$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2192 ac_cache_corrupted=:
2193 else
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2195$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2196 eval $ac_var=\$ac_old_val
2197 fi
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2199$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2201$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2202 fi;;
2203 esac
2204 # Pass precious variables to config.status.
2205 if test "$ac_new_set" = set; then
2206 case $ac_new_val in
5213506e 2207 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2208 *) ac_arg=$ac_var=$ac_new_val ;;
2209 esac
2210 case " $ac_configure_args " in
2211 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2212 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2213 esac
2214 fi
2215done
2216if $ac_cache_corrupted; then
5213506e
RW
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2218$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2220$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2221 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2222fi
5213506e
RW
2223## -------------------- ##
2224## Main body of script. ##
2225## -------------------- ##
671aa708 2226
2aeb72e9
DD
2227ac_ext=c
2228ac_cpp='$CPP $CPPFLAGS'
2229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
1c710c3c
DJ
2233
2234
2235
1c710c3c
DJ
2236
2237
0115d4a3 2238
1c710c3c 2239
ad33ff57
RW
2240
2241progname=$0
2242# if PWD already has a value, it is probably wrong.
2243if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2244
2245# Export original configure arguments for use by sub-configures.
2246# Quote arguments with shell meta charatcers.
2247TOPLEVEL_CONFIGURE_ARGUMENTS=
2248set -- "$progname" "$@"
2249for ac_arg
2250do
2251 case "$ac_arg" in
2252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2254 # if the argument is of the form -foo=baz, quote the baz part only
2255 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2256 *) ;;
2257 esac
2258 # Add the quoted argument to the list.
2259 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2260done
2261if test "$silent" = yes; then
2262 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2263fi
2264# Remove the initial space we just introduced and, as these will be
2265# expanded by make, quote '$'.
2266TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2267
1c710c3c
DJ
2268
2269# Find the build, host, and target systems.
671aa708 2270ac_aux_dir=
5213506e
RW
2271for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2272 for ac_t in install-sh install.sh shtool; do
2273 if test -f "$ac_dir/$ac_t"; then
2274 ac_aux_dir=$ac_dir
2275 ac_install_sh="$ac_aux_dir/$ac_t -c"
2276 break 2
2277 fi
2278 done
671aa708
NN
2279done
2280if test -z "$ac_aux_dir"; then
5213506e 2281 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2282fi
5213506e
RW
2283
2284# These three variables are undocumented and unsupported,
2285# and are intended to be withdrawn in a future Autoconf release.
2286# They can cause serious problems if a builder's source tree is in a directory
2287# whose full name contains unusual characters.
2288ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2291
671aa708 2292
1c710c3c 2293# Make sure we can run config.sub.
5213506e
RW
2294$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2296
2297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298$as_echo_n "checking build system type... " >&6; }
2299if test "${ac_cv_build+set}" = set; then :
2300 $as_echo_n "(cached) " >&6
2301else
2302 ac_build_alias=$build_alias
2303test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305test "x$ac_build_alias" = x &&
2306 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2307ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2309
2310fi
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312$as_echo "$ac_cv_build" >&6; }
2313case $ac_cv_build in
2314*-*-*) ;;
2315*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2316esac
1c710c3c 2317build=$ac_cv_build
5213506e
RW
2318ac_save_IFS=$IFS; IFS='-'
2319set x $ac_cv_build
2320shift
2321build_cpu=$1
2322build_vendor=$2
2323shift; shift
2324# Remember, the first character of IFS is used to create $*,
2325# except with old shells:
2326build_os=$*
2327IFS=$ac_save_IFS
2328case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2329
671aa708 2330
1c710c3c
DJ
2331 case ${build_alias} in
2332 "") build_noncanonical=${build} ;;
2333 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2334esac
2335
2336
af71363e 2337
1c710c3c
DJ
2338 case ${host_alias} in
2339 "") host_noncanonical=${build_noncanonical} ;;
2340 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2341esac
2342
af71363e 2343
1c710c3c
DJ
2344
2345 case ${target_alias} in
2346 "") target_noncanonical=${host_noncanonical} ;;
2347 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2348esac
2349
af71363e 2350
1c710c3c
DJ
2351
2352
2353test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2354 test "$program_prefix$program_suffix$program_transform_name" = \
2355 NONENONEs,x,x, &&
1c710c3c 2356 program_transform_name=s,y,y,
af71363e 2357
5213506e
RW
2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2359$as_echo_n "checking host system type... " >&6; }
2360if test "${ac_cv_host+set}" = set; then :
2361 $as_echo_n "(cached) " >&6
af71363e 2362else
5213506e
RW
2363 if test "x$host_alias" = x; then
2364 ac_cv_host=$ac_cv_build
2365else
2366 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2367 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2368fi
1c710c3c 2369
af71363e 2370fi
5213506e
RW
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2372$as_echo "$ac_cv_host" >&6; }
2373case $ac_cv_host in
2374*-*-*) ;;
2375*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2376esac
1c710c3c 2377host=$ac_cv_host
5213506e
RW
2378ac_save_IFS=$IFS; IFS='-'
2379set x $ac_cv_host
2380shift
2381host_cpu=$1
2382host_vendor=$2
2383shift; shift
2384# Remember, the first character of IFS is used to create $*,
2385# except with old shells:
2386host_os=$*
2387IFS=$ac_save_IFS
2388case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2389
2390
5213506e
RW
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2392$as_echo_n "checking target system type... " >&6; }
2393if test "${ac_cv_target+set}" = set; then :
2394 $as_echo_n "(cached) " >&6
1c710c3c 2395else
5213506e
RW
2396 if test "x$target_alias" = x; then
2397 ac_cv_target=$ac_cv_host
2398else
2399 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2400 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2401fi
1c710c3c
DJ
2402
2403fi
5213506e
RW
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2405$as_echo "$ac_cv_target" >&6; }
2406case $ac_cv_target in
2407*-*-*) ;;
2408*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2409esac
1c710c3c 2410target=$ac_cv_target
5213506e
RW
2411ac_save_IFS=$IFS; IFS='-'
2412set x $ac_cv_target
2413shift
2414target_cpu=$1
2415target_vendor=$2
2416shift; shift
2417# Remember, the first character of IFS is used to create $*,
2418# except with old shells:
2419target_os=$*
2420IFS=$ac_save_IFS
2421case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2422
2423
2424# The aliases save the names the user supplied, while $host etc.
2425# will get canonicalized.
2426test -n "$target_alias" &&
2427 test "$program_prefix$program_suffix$program_transform_name" = \
2428 NONENONEs,x,x, &&
2429 program_prefix=${target_alias}-
5213506e 2430
671aa708 2431test "$program_prefix" != NONE &&
5213506e 2432 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2433# Use a double $ so make ignores it.
2434test "$program_suffix" != NONE &&
5213506e
RW
2435 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2436# Double any \ or $.
1c710c3c 2437# By default was `s,x,x', remove it if useless.
5213506e
RW
2438ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2439program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2440
671aa708
NN
2441
2442
775956d0
NN
2443# Get 'install' or 'install-sh' and its variants.
2444# Find a good install program. We prefer a C program (faster),
2445# so one script is as good as another. But avoid the broken or
2446# incompatible versions:
2447# SysV /etc/install, /usr/sbin/install
2448# SunOS /usr/etc/install
2449# IRIX /sbin/install
2450# AIX /bin/install
1c710c3c 2451# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2452# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2453# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2454# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2455# OS/2's system install, which has a completely different semantic
775956d0 2456# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2457# Reject install programs that cannot install multiple files.
5213506e
RW
2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2459$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2460if test -z "$INSTALL"; then
5213506e
RW
2461if test "${ac_cv_path_install+set}" = set; then :
2462 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2463else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465for as_dir in $PATH
2466do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
5213506e
RW
2469 # Account for people who put trailing slashes in PATH elements.
2470case $as_dir/ in #((
2471 ./ | .// | /[cC]/* | \
1c710c3c 2472 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2473 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2474 /usr/ucb/* ) ;;
2475 *)
2476 # OSF1 and SCO ODT 3.0 have their own names for install.
2477 # Don't use installbsd from OSF since it installs stuff as root
2478 # by default.
2479 for ac_prog in ginstall scoinst install; do
2480 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2481 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2482 if test $ac_prog = install &&
1c710c3c 2483 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2484 # AIX install. It has an incompatible calling convention.
2485 :
1c710c3c
DJ
2486 elif test $ac_prog = install &&
2487 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2488 # program-specific install script used by HP pwplus--don't use.
2489 :
775956d0 2490 else
38d24731
RW
2491 rm -rf conftest.one conftest.two conftest.dir
2492 echo one > conftest.one
2493 echo two > conftest.two
2494 mkdir conftest.dir
2495 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2496 test -s conftest.one && test -s conftest.two &&
2497 test -s conftest.dir/conftest.one &&
2498 test -s conftest.dir/conftest.two
2499 then
2500 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2501 break 3
2502 fi
775956d0
NN
2503 fi
2504 fi
2505 done
1c710c3c
DJ
2506 done
2507 ;;
2508esac
5213506e
RW
2509
2510 done
2511IFS=$as_save_IFS
1c710c3c 2512
38d24731 2513rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2514
2515fi
2516 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2517 INSTALL=$ac_cv_path_install
775956d0 2518 else
38d24731
RW
2519 # As a last resort, use the slow shell script. Don't cache a
2520 # value for INSTALL within a source directory, because that will
775956d0 2521 # break other packages using the cache if that directory is
38d24731 2522 # removed, or if the value is a relative name.
1c710c3c 2523 INSTALL=$ac_install_sh
775956d0
NN
2524 fi
2525fi
5213506e
RW
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2527$as_echo "$INSTALL" >&6; }
775956d0
NN
2528
2529# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2530# It thinks the first close brace ends the variable substitution.
2531test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2532
1c710c3c 2533test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2534
2535test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2536
5213506e
RW
2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2538$as_echo_n "checking whether ln works... " >&6; }
2539if test "${acx_cv_prog_LN+set}" = set; then :
2540 $as_echo_n "(cached) " >&6
ad6717df
PB
2541else
2542 rm -f conftestdata_t
2543echo >conftestdata_f
2544if ln conftestdata_f conftestdata_t 2>/dev/null
2545then
2546 acx_cv_prog_LN=ln
2547else
2548 acx_cv_prog_LN=no
2549fi
2550rm -f conftestdata_f conftestdata_t
2551
2552fi
2553if test $acx_cv_prog_LN = no; then
2554 LN="cp"
5213506e
RW
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2556$as_echo "no, using $LN" >&6; }
ad6717df
PB
2557else
2558 LN="$acx_cv_prog_LN"
5213506e
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2560$as_echo "yes" >&6; }
ad6717df
PB
2561fi
2562
5213506e
RW
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2564$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2565LN_S=$as_ln_s
2566if test "$LN_S" = "ln -s"; then
5213506e
RW
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568$as_echo "yes" >&6; }
fb0103e5 2569else
5213506e
RW
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2571$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2572fi
2573
87264276
PB
2574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2575$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2576if test "${ac_cv_path_SED+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578else
2579 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2580 for ac_i in 1 2 3 4 5 6 7; do
2581 ac_script="$ac_script$as_nl$ac_script"
2582 done
2583 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2584 { ac_script=; unset ac_script;}
2585 if test -z "$SED"; then
2586 ac_path_SED_found=false
2587 # Loop through the user's path and test for each of PROGNAME-LIST
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_prog in sed gsed; do
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2596 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2597# Check for GNU ac_path_SED and select it if it is found.
2598 # Check for GNU $ac_path_SED
2599case `"$ac_path_SED" --version 2>&1` in
2600*GNU*)
2601 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2602*)
2603 ac_count=0
2604 $as_echo_n 0123456789 >"conftest.in"
2605 while :
2606 do
2607 cat "conftest.in" "conftest.in" >"conftest.tmp"
2608 mv "conftest.tmp" "conftest.in"
2609 cp "conftest.in" "conftest.nl"
2610 $as_echo '' >> "conftest.nl"
2611 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2613 as_fn_arith $ac_count + 1 && ac_count=$as_val
2614 if test $ac_count -gt ${ac_path_SED_max-0}; then
2615 # Best one so far, save it but keep looking for a better one
2616 ac_cv_path_SED="$ac_path_SED"
2617 ac_path_SED_max=$ac_count
2618 fi
2619 # 10*(2^10) chars as input seems more than enough
2620 test $ac_count -gt 10 && break
2621 done
2622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2623esac
2624
2625 $ac_path_SED_found && break 3
2626 done
2627 done
2628 done
2629IFS=$as_save_IFS
2630 if test -z "$ac_cv_path_SED"; then
2631 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2632 fi
2633else
2634 ac_cv_path_SED=$SED
2635fi
2636
2637fi
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2639$as_echo "$ac_cv_path_SED" >&6; }
2640 SED="$ac_cv_path_SED"
2641 rm -f conftest.sed
2642
2643for ac_prog in gawk mawk nawk awk
2644do
2645 # Extract the first word of "$ac_prog", so it can be a program name with args.
2646set dummy $ac_prog; ac_word=$2
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2648$as_echo_n "checking for $ac_word... " >&6; }
2649if test "${ac_cv_prog_AWK+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2651else
2652 if test -n "$AWK"; then
2653 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2654else
2655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656for as_dir in $PATH
2657do
2658 IFS=$as_save_IFS
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_prog_AWK="$ac_prog"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2664 break 2
2665 fi
2666done
2667 done
2668IFS=$as_save_IFS
2669
2670fi
2671fi
2672AWK=$ac_cv_prog_AWK
2673if test -n "$AWK"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2675$as_echo "$AWK" >&6; }
2676else
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2678$as_echo "no" >&6; }
2679fi
2680
2681
2682 test -n "$AWK" && break
2683done
2684
775956d0 2685
ee6a22df
L
2686srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2687
2688# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2689# a relative path.
2690if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2691 INSTALL="${srcpwd}/install-sh -c"
2692fi
2693
671aa708
NN
2694# Set srcdir to "." if that's what it is.
2695# This is important for multilib support.
2696pwd=`${PWDCMD-pwd}`
671aa708
NN
2697if test "${pwd}" = "${srcpwd}" ; then
2698 srcdir=.
79c06341
JL
2699fi
2700
671aa708 2701topsrcdir=$srcpwd
5d4a5ee6 2702
671aa708 2703extra_host_args=
afabd8e6 2704
671aa708
NN
2705### To add a new directory to the tree, first choose whether it is a target
2706### or a host dependent tool. Then put it into the appropriate list
2707### (library or tools, host or target), doing a dependency sort.
79c06341 2708
1c710c3c 2709# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2710# configdirs, or target_configdirs; see the serialization section below.
79c06341 2711
1c710c3c
DJ
2712# Dependency sorting is only needed when *configuration* must be done in
2713# a particular order. In all cases a dependency should be specified in
671aa708 2714# the Makefile, whether or not it's implicitly specified here.
79c06341 2715
671aa708
NN
2716# Double entries in build_configdirs, configdirs, or target_configdirs may
2717# cause circular dependencies and break everything horribly.
79c06341 2718
23f6b2f9
PB
2719# these library is used by various programs built for the build
2720# environment
2721#
929315a9 2722build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2723
2724# these tools are built for the build environment
85bfb75e 2725build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2726
671aa708 2727# these libraries are used by various programs built for the host environment
eae1a5d4 2728#f
4a9bb2aa 2729host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2730
671aa708
NN
2731# these tools are built for the host environment
2732# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2733# know that we are building the simulator.
2734# binutils, gas and ld appear in that order because it makes sense to run
2735# "make check" in that particular order.
38e3d868 2736# If --enable-gold is used, "gold" may replace "ld".
bf1de3f0 2737host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708
NN
2738
2739# libgcj represents the runtime libraries only used by gcj.
2740libgcj="target-libffi \
671aa708 2741 target-zlib \
671aa708
NN
2742 target-libjava"
2743
2744# these libraries are built for the target environment, and are built after
2745# the host libraries and the host tools (which may be a cross compiler)
8499116a 2746# Note that libiberty is not a target library.
291f172e 2747target_libraries="target-libgcc \
eff02e4f 2748 target-libbacktrace \
671aa708
NN
2749 target-libgloss \
2750 target-newlib \
6d3b5aea 2751 target-libgomp \
3038054c 2752 target-libcilkrts \
5f520819 2753 target-liboffloadmic \
48310492 2754 target-libatomic \
0a35513e 2755 target-libitm \
cb543528 2756 target-libstdc++-v3 \
f35db108 2757 target-libsanitizer \
2077db1b 2758 target-libvtv \
5373cd33 2759 target-libmpx \
77008252 2760 target-libssp \
1ec601bf 2761 target-libquadmath \
6de9cd9a 2762 target-libgfortran \
7cd0cf9c 2763 target-boehm-gc \
77d187bc 2764 ${libgcj} \
d9cdb878 2765 target-libobjc \
632e2a07
ILT
2766 target-libada \
2767 target-libgo"
671aa708 2768
4dbda6f0
NN
2769# these tools are built using the target libraries, and are intended to
2770# run only in the target environment
671aa708 2771#
4dbda6f0 2772# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2773# list belongs in this list.
671aa708 2774#
85bfb75e 2775target_tools="target-rda"
79c06341 2776
671aa708 2777################################################################################
79c06341 2778
671aa708
NN
2779## All tools belong in one of the four categories, and are assigned above
2780## We assign ${configdirs} this way to remove all embedded newlines. This
2781## is important because configure will choke if they ever get through.
2782## ${configdirs} is directories we build using the host tools.
2783## ${target_configdirs} is directories we build using the target tools.
671aa708 2784configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2785target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2786build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2787
ac9e6043
RW
2788
2789
671aa708 2790################################################################################
79c06341 2791
671aa708 2792srcname="gnu development package"
79c06341 2793
671aa708
NN
2794# This gets set non-empty for some net releases of packages.
2795appdirs=""
79c06341 2796
671aa708
NN
2797# Define is_cross_compiler to save on calls to 'test'.
2798is_cross_compiler=
2799if test x"${host}" = x"${target}" ; then
2800 is_cross_compiler=no
79c06341 2801else
671aa708 2802 is_cross_compiler=yes
1c710c3c 2803fi
79c06341 2804
b4acb5ef 2805# Find the build and target subdir names.
8b87bb96 2806
2e9e6f68
DJ
2807# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2808# have matching libraries, they should use host libraries: Makefile.tpl
2809# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2810# However, they still use the build modules, because the corresponding
2811# host modules (e.g. bison) are only built for the host when bootstrap
2812# finishes. So:
2813# - build_subdir is where we find build modules, and never changes.
2814# - build_libsubdir is where we find build libraries, and can be overridden.
2815
2816# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2817build_subdir="build-${build_noncanonical}"
1c710c3c 2818
5213506e
RW
2819# Check whether --with-build-libsubdir was given.
2820if test "${with_build_libsubdir+set}" = set; then :
2821 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2822else
2823 build_libsubdir="$build_subdir"
5213506e
RW
2824fi
2825
215c351a
PB
2826# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2827if ( test $srcdir = . && test -d gcc ) \
2828 || test -d $srcdir/../host-${host_noncanonical}; then
2829 host_subdir="host-${host_noncanonical}"
2830else
2831 host_subdir=.
2832fi
8b87bb96
NN
2833# No prefix.
2834target_subdir=${target_noncanonical}
1c710c3c 2835
0db770bd
RW
2836# Be sure to cover against remnants of an in-tree build.
2837if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2838 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2839Use a pristine source tree when building in a separate tree" "$LINENO" 5
2840fi
79c06341 2841
671aa708
NN
2842# Skipdirs are removed silently.
2843skipdirs=
2844# Noconfigdirs are removed loudly.
2845noconfigdirs=""
79c06341 2846
671aa708
NN
2847use_gnu_ld=
2848# Make sure we don't let GNU ld be added if we didn't want it.
2849if test x$with_gnu_ld = xno ; then
2850 use_gnu_ld=no
5afab7ad 2851 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2852fi
2853
671aa708
NN
2854use_gnu_as=
2855# Make sure we don't let GNU as be added if we didn't want it.
2856if test x$with_gnu_as = xno ; then
2857 use_gnu_as=no
2858 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2859fi
2860
d7f09764 2861use_included_zlib=
a05c2c75
L
2862
2863# Check whether --with-system-zlib was given.
2864if test "${with_system_zlib+set}" = set; then :
2865 withval=$with_system_zlib;
2866fi
2867
d7f09764
DN
2868# Make sure we don't let ZLIB be added if we didn't want it.
2869if test x$with_system_zlib = xyes ; then
2870 use_included_zlib=no
2871 noconfigdirs="$noconfigdirs zlib"
2872fi
2873
1c710c3c 2874# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2875# it's not even worth trying to configure, much less build, that tool.
79c06341 2876
671aa708
NN
2877case ${with_x} in
2878 yes | "") ;; # the default value for this tree is that X11 is available
2879 no)
b4f96efe 2880 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2881 # We won't be able to build gdbtk without X.
1c710c3c 2882 enable_gdbtk=no
671aa708
NN
2883 ;;
2884 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2885esac
79c06341 2886
1bcce263 2887# Some are only suitable for cross toolchains.
671aa708
NN
2888# Remove these if host=target.
2889cross_only="target-libgloss target-newlib target-opcodes"
2890
2891case $is_cross_compiler in
2892 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2893esac
79c06341 2894
671aa708
NN
2895# If both --with-headers and --with-libs are specified, default to
2896# --without-newlib.
ee6a22df
L
2897if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2898 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2899 if test x"${with_newlib}" = x ; then
2900 with_newlib=no
2901 fi
79c06341
JL
2902fi
2903
671aa708
NN
2904# Recognize --with-newlib/--without-newlib.
2905case ${with_newlib} in
2906 no) skipdirs="${skipdirs} target-newlib" ;;
2907 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2908esac
79c06341 2909
85c64bbe
BS
2910# Check whether --enable-as-accelerator-for was given.
2911if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2912 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2913fi
2914
2915
2916# Check whether --enable-offload-targets was given.
2917if test "${enable_offload_targets+set}" = set; then :
2918 enableval=$enable_offload_targets;
2919 if test x"$enable_offload_targets" = x; then
2920 as_fn_error "no offload targets specified" "$LINENO" 5
2921 fi
2922
2923else
2924 enable_offload_targets=
2925fi
2926
2927
21539e2e
MK
2928# Handle --enable-gold, --enable-ld.
2929# --disable-gold [--enable-ld]
2930# Build only ld. Default option.
9580395f
L
2931# --enable-gold [--enable-ld]
2932# Build both gold and ld. Install gold as "ld.gold", install ld
2933# as "ld.bfd" and "ld".
2934# --enable-gold=default [--enable-ld]
21539e2e
MK
2935# Build both gold and ld. Install gold as "ld.gold" and "ld",
2936# install ld as "ld.bfd".
2937# --enable-gold[=default] --disable-ld
2938# Build only gold, which is then installed as both "ld.gold" and "ld".
2939# --enable-gold --enable-ld=default
9580395f
L
2940# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2941# and ld.bfd).
21539e2e
MK
2942# In other words, ld is default
2943# --enable-gold=default --enable-ld=default
2944# Error.
2945
2946default_ld=
5213506e
RW
2947# Check whether --enable-gold was given.
2948if test "${enable_gold+set}" = set; then :
2949 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2950else
2951 ENABLE_GOLD=no
5213506e
RW
2952fi
2953
21539e2e
MK
2954case "${ENABLE_GOLD}" in
2955 yes|default)
38e3d868
RM
2956 # Check for ELF target.
2957 is_elf=no
2958 case "${target}" in
2959 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2960 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2961 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2962 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2963 case "${target}" in
2964 *-*-linux*aout* | *-*-linux*oldld*)
2965 ;;
2966 *)
2967 is_elf=yes
2968 ;;
2969 esac
2970 esac
2971
2972 if test "$is_elf" = "yes"; then
2973 # Check for target supported by gold.
5afab7ad 2974 case "${target}" in
7705dfd1 2975 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 2976 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
2977 configdirs="$configdirs gold"
2978 if test x${ENABLE_GOLD} = xdefault; then
2979 default_ld=gold
2980 fi
38e3d868 2981 ENABLE_GOLD=yes
5afab7ad
ILT
2982 ;;
2983 esac
38e3d868
RM
2984 fi
2985 ;;
2986 no)
2987 ;;
2988 *)
2989 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2990 ;;
21539e2e
MK
2991esac
2992
2993# Check whether --enable-ld was given.
2994if test "${enable_ld+set}" = set; then :
2995 enableval=$enable_ld; ENABLE_LD=$enableval
2996else
2997 ENABLE_LD=yes
2998fi
2999
3000
3001case "${ENABLE_LD}" in
3002 default)
9580395f 3003 if test x${default_ld} != x; then
21539e2e
MK
3004 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3005 fi
3006 ;;
3007 yes)
3008 ;;
3009 no)
3010 if test x${ENABLE_GOLD} != xyes; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3012$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3013 fi
3014 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3015 ;;
3016 *)
3017 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3018 ;;
3019esac
5afab7ad 3020
78edb32f
L
3021# PR gas/19109
3022# Decide the default method for compressing debug sections.
3023# Provide a configure time option to override our default.
3024# Check whether --enable-compressed_debug_sections was given.
3025if test "${enable_compressed_debug_sections+set}" = set; then :
3026 enableval=$enable_compressed_debug_sections;
3027 if test x"$enable_compressed_debug_sections" = xyes; then
3028 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3029 fi
3030
3031else
3032 enable_compressed_debug_sections=
3033fi
3034
3035
671aa708 3036# Configure extra directories which are host specific
79c06341 3037
671aa708
NN
3038case "${host}" in
3039 *-cygwin*)
3040 configdirs="$configdirs libtermcap" ;;
3041esac
79c06341 3042
4fab7234
HPN
3043# A target can indicate whether a language isn't supported for some reason.
3044# Only spaces may be used in this macro; not newlines or tabs.
3045unsupported_languages=
3046
1c710c3c 3047# Remove more programs from consideration, based on the host or
671aa708
NN
3048# target this usually means that a port of the program doesn't
3049# exist yet.
ec8d6ddc 3050
671aa708 3051case "${host}" in
111eeb6e 3052 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3053 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3054 ;;
671aa708 3055esac
ec8d6ddc 3056
6de9cd9a 3057
87e6d9dc
TB
3058# Check whether --enable-libquadmath was given.
3059if test "${enable_libquadmath+set}" = set; then :
3060 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3061else
3062 ENABLE_LIBQUADMATH=yes
3063fi
3064
3065if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3066 noconfigdirs="$noconfigdirs target-libquadmath"
3067fi
3068
3069
3070# Check whether --enable-libquadmath-support was given.
3071if test "${enable_libquadmath_support+set}" = set; then :
3072 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3073else
3074 ENABLE_LIBQUADMATH_SUPPORT=yes
3075fi
3076
3077enable_libquadmath_support=
3078if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3079 enable_libquadmath_support=no
3080fi
3081
3082
5213506e
RW
3083# Check whether --enable-libada was given.
3084if test "${enable_libada+set}" = set; then :
3085 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3086else
3087 ENABLE_LIBADA=yes
5213506e
RW
3088fi
3089
d9cdb878 3090if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3091 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3092fi
3093
5213506e
RW
3094# Check whether --enable-libssp was given.
3095if test "${enable_libssp+set}" = set; then :
3096 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3097else
3098 ENABLE_LIBSSP=yes
5213506e
RW
3099fi
3100
ef0087a7 3101
1873ec0c
L
3102# Check whether --enable-libstdcxx was given.
3103if test "${enable_libstdcxx+set}" = set; then :
3104 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3105else
3106 ENABLE_LIBSTDCXX=default
3107fi
3108
3109if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3110 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3111fi
3112
5f520819
KY
3113# If this is accelerator compiler and its target is intelmic we enable
3114# target liboffloadmic by default. If this is compiler with offloading
3115# for intelmic we enable host liboffloadmic by default. Otherwise
3116# liboffloadmic is disabled by default.
3117# Check whether --enable-liboffloadmic was given.
3118if test "${enable_liboffloadmic+set}" = set; then :
3119 enableval=$enable_liboffloadmic; case "$enableval" in
3120 no | host | target)
3121 enable_liboffloadmic=$enableval ;;
3122 *)
3123 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3124esac
3125else
4b4f2e35 3126 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3127 case "${target}" in
3128 *-intelmic-* | *-intelmicemul-*)
3129 enable_liboffloadmic=target
3130 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3131 ;;
3132 *)
3133 enable_liboffloadmic=no
3134 ;;
3135 esac
3136else
3137 case "${enable_offload_targets}" in
3138 *-intelmic-* | *-intelmicemul-*)
3139 enable_liboffloadmic=host
3140 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3141 ;;
3142 *)
3143 enable_liboffloadmic=no
3144 ;;
3145 esac
3146fi
3147fi
3148
3149
3150
671aa708
NN
3151# Save it here so that, even in case of --enable-libgcj, if the Java
3152# front-end isn't enabled, we still get libgcj disabled.
3153libgcj_saved=$libgcj
3154case $enable_libgcj in
3155yes)
3156 # If we reset it here, it won't get added to noconfigdirs in the
3157 # target-specific build rules, so it will be forcibly enabled
3158 # (unless the Java language itself isn't enabled).
3159 libgcj=
3160 ;;
3161no)
3162 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3163 # Don't disable libffi, though, other languages use it.
3164 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3165 # Clear libgcj_saved so that even if java is enabled libffi won't be
3166 # built.
3167 libgcj_saved=
671aa708
NN
3168 ;;
3169esac
ec8d6ddc 3170
a4a2c37d
MK
3171# Check whether --enable-static-libjava was given.
3172if test "${enable_static_libjava+set}" = set; then :
3173 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3174else
3175 ENABLE_STATIC_LIBJAVA=no
3176fi
3177
3178enable_static_libjava=
3179if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3180 enable_static_libjava=yes
3181fi
3182
3183if test x$enable_static_libjava != xyes ; then
3184 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3185fi
3186
6de9cd9a 3187
44a7d18d 3188# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3189if test x$enable_libgomp = x ; then
953ff289 3190 case "${target}" in
416ac4d4 3191 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3192 ;;
8c6d158a 3193 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3194 ;;
b24513a1 3195 *-*-solaris2* | *-*-hpux11*)
953ff289 3196 ;;
cac90078 3197 *-*-darwin* | *-*-aix*)
953ff289 3198 ;;
44a7d18d
TS
3199 nvptx*-*-*)
3200 ;;
953ff289
DN
3201 *)
3202 noconfigdirs="$noconfigdirs target-libgomp"
3203 ;;
3204 esac
27079765 3205fi
953ff289 3206
48310492
RH
3207# Disable libatomic on unsupported systems.
3208if test -d ${srcdir}/libatomic; then
3209 if test x$enable_libatomic = x; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3211$as_echo_n "checking for libatomic support... " >&6; }
3212 if (srcdir=${srcdir}/libatomic; \
3213 . ${srcdir}/configure.tgt; \
3214 test -n "$UNSUPPORTED")
3215 then
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217$as_echo "no" >&6; }
3218 noconfigdirs="$noconfigdirs target-libatomic"
3219 else
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3221$as_echo "yes" >&6; }
3222 fi
3223 fi
3224fi
3225
3038054c
BI
3226# Disable libcilkrts on unsupported systems.
3227if test -d ${srcdir}/libcilkrts; then
3228 if test x$enable_libcilkrts = x; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3230$as_echo_n "checking for libcilkrts support... " >&6; }
3231 if (srcdir=${srcdir}/libcilkrts; \
3232 . ${srcdir}/configure.tgt; \
3233 test -n "$UNSUPPORTED")
3234 then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236$as_echo "no" >&6; }
3237 noconfigdirs="$noconfigdirs target-libcilkrts"
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3240$as_echo "yes" >&6; }
3241 fi
3242 fi
3243fi
3244
5f520819
KY
3245# Disable liboffloadmic on unsupported systems.
3246if test -d ${srcdir}/liboffloadmic; then
3247 if test x$enable_liboffloadmic != xno; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3249$as_echo_n "checking for liboffloadmic support... " >&6; }
3250 if (srcdir=${srcdir}/liboffloadmic; \
3251 . ${srcdir}/configure.tgt; \
3252 test -n "$UNSUPPORTED")
3253 then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3255$as_echo "no" >&6; }
3256 noconfigdirs="$noconfigdirs target-liboffloadmic"
3257 else
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3259$as_echo "yes" >&6; }
3260 fi
3261 fi
3262fi
3263
e948157d
RH
3264# Disable libitm on unsupported systems.
3265if test -d ${srcdir}/libitm; then
3266 if test x$enable_libitm = x; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3268$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3269 if (srcdir=${srcdir}/libitm; \
3270 . ${srcdir}/configure.tgt; \
3271 test -n "$UNSUPPORTED")
3272 then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3274$as_echo "no" >&6; }
e948157d
RH
3275 noconfigdirs="$noconfigdirs target-libitm"
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3278$as_echo "yes" >&6; }
e948157d
RH
3279 fi
3280 fi
0a35513e
AH
3281fi
3282
93bf5390
RH
3283# Disable libsanitizer on unsupported systems.
3284if test -d ${srcdir}/libsanitizer; then
3285 if test x$enable_libsanitizer = x; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3287$as_echo_n "checking for libsanitizer support... " >&6; }
3288 if (srcdir=${srcdir}/libsanitizer; \
3289 . ${srcdir}/configure.tgt; \
3290 test -n "$UNSUPPORTED")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libsanitizer"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
3299 fi
3300fi
3301
2077db1b
CT
3302# Disable libvtv on unsupported systems.
3303if test -d ${srcdir}/libvtv; then
3304 if test x$enable_libvtv = x; then
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3306$as_echo_n "checking for libvtv support... " >&6; }
3307 if (srcdir=${srcdir}/libvtv; \
3308 . ${srcdir}/configure.tgt; \
1e74b850 3309 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3310 then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313 noconfigdirs="$noconfigdirs target-libvtv"
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316$as_echo "yes" >&6; }
3317 fi
3318 fi
3319fi
3320
5373cd33
IE
3321
3322# Enable libmpx on supported systems by request.
3323if test -d ${srcdir}/libmpx; then
54985c70 3324 if test x$enable_libmpx = x; then
5373cd33
IE
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3326$as_echo_n "checking for libmpx support... " >&6; }
3327 if (srcdir=${srcdir}/libmpx; \
3328 . ${srcdir}/configure.tgt; \
3329 test "$LIBMPX_SUPPORTED" != "yes")
3330 then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332$as_echo "no" >&6; }
3333 noconfigdirs="$noconfigdirs target-libmpx"
3334 else
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3336$as_echo "yes" >&6; }
3337 fi
5373cd33
IE
3338 fi
3339fi
3340
3341
3342
d91491e5
SE
3343# Disable libquadmath for some systems.
3344case "${target}" in
e7fae550
DE
3345 avr-*-*)
3346 noconfigdirs="$noconfigdirs target-libquadmath"
3347 ;;
d91491e5
SE
3348 # libquadmath is unused on AIX and libquadmath build process use of
3349 # LD_LIBRARY_PATH can break AIX bootstrap.
3350 powerpc-*-aix* | rs6000-*-aix*)
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3352 ;;
3353esac
3354
1e9e0e23
JM
3355# Disable libssp for some systems.
3356case "${target}" in
3357 avr-*-*)
b318fb4b 3358 # No hosted I/O support.
1e9e0e23
JM
3359 noconfigdirs="$noconfigdirs target-libssp"
3360 ;;
3361 powerpc-*-aix* | rs6000-*-aix*)
3362 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3363 ;;
3364 rl78-*-*)
7cb62ef1
EB
3365 # libssp uses a misaligned load to trigger a fault, but the RL78
3366 # doesn't fault for those - instead, it gives a build-time error
3367 # for explicit misaligned loads.
85b8555e 3368 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3369 ;;
0969ec7d
EB
3370 visium-*-*)
3371 # No hosted I/O support.
3372 noconfigdirs="$noconfigdirs target-libssp"
3373 ;;
1e9e0e23
JM
3374esac
3375
1e9e0e23 3376# Disable libstdc++-v3 for some systems.
1873ec0c
L
3377# Allow user to override this if they pass --enable-libstdc++-v3
3378if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3379 case "${target}" in
3380 *-*-vxworks*)
3381 # VxWorks uses the Dinkumware C++ library.
3382 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3383 ;;
3384 arm*-wince-pe*)
3385 # the C++ libraries don't build on top of CE's C libraries
3386 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3387 ;;
3388 avr-*-*)
3389 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3390 ;;
fef939d6
JB
3391 ft32-*-*)
3392 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3393 ;;
1873ec0c
L
3394 esac
3395fi
1e9e0e23
JM
3396
3397# Disable Fortran for some systems.
3398case "${target}" in
3399 mmix-*-*)
3400 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3401 unsupported_languages="$unsupported_languages fortran"
3402 ;;
3403esac
3404
80f81134 3405# Disable Java if libffi is not supported.
2909494b 3406case "${target}" in
eb7062cf
AS
3407 aarch64-*-*)
3408 ;;
80f81134
JM
3409 alpha*-*-*)
3410 ;;
3411 arm*-*-*)
3412 ;;
3413 cris-*-*)
3414 ;;
3415 frv-*-*)
3416 ;;
3417 hppa*-*-linux*)
3418 ;;
3419 hppa*-*-hpux*)
3420 ;;
3421 i?86-*-*)
3422 ;;
3423 ia64*-*-*)
3424 ;;
3425 m32r*-*-*)
3426 ;;
3427 m68k-*-*)
3428 ;;
b24513a1 3429 mips*-*-rtems*)
80f81134
JM
3430 ;;
3431 mips*-*-linux*)
3432 ;;
3433 powerpc*-*-linux*)
3434 ;;
3435 powerpc-*-darwin*)
3436 ;;
3437 powerpc-*-aix* | rs6000-*-aix*)
3438 ;;
3439 powerpc-*-freebsd*)
3440 ;;
3441 powerpc64-*-freebsd*)
3442 ;;
3443 powerpc*-*-rtems*)
2909494b 3444 ;;
80f81134
JM
3445 s390-*-* | s390x-*-*)
3446 ;;
3447 sh-*-* | sh[34]*-*-*)
3448 ;;
80f81134
JM
3449 sparc*-*-*)
3450 ;;
3451 x86_64-*-*)
3452 ;;
3453 *-*-*)
3454 unsupported_languages="$unsupported_languages java"
3455 ;;
3456esac
3457
3458# Disable Java, libgcj or related libraries for some systems.
3459case "${target}" in
2909494b
JM
3460 powerpc-*-darwin*)
3461 ;;
3462 i[3456789]86-*-darwin*)
3463 ;;
3464 x86_64-*-darwin[912]*)
3465 ;;
3466 *-*-darwin*)
3467 noconfigdirs="$noconfigdirs ${libgcj}"
3468 ;;
2909494b
JM
3469 *-*-netware*)
3470 noconfigdirs="$noconfigdirs ${libgcj}"
3471 ;;
fd6487af
JS
3472 *-*-phoenix*)
3473 noconfigdirs="$noconfigdirs ${libgcj}"
3474 ;;
2909494b
JM
3475 *-*-rtems*)
3476 noconfigdirs="$noconfigdirs ${libgcj}"
3477 ;;
3478 *-*-tpf*)
3479 noconfigdirs="$noconfigdirs ${libgcj}"
3480 ;;
3481 *-*-uclinux*)
3482 noconfigdirs="$noconfigdirs ${libgcj}"
3483 ;;
3484 *-*-vxworks*)
3485 noconfigdirs="$noconfigdirs ${libgcj}"
3486 ;;
2909494b
JM
3487 alpha*-*-*vms*)
3488 noconfigdirs="$noconfigdirs ${libgcj}"
3489 ;;
82a19768
AT
3490 arm*-*-freebsd*)
3491 noconfigdirs="$noconfigdirs ${libgcj}"
3492 ;;
80f81134 3493 arm-wince-pe)
2909494b
JM
3494 noconfigdirs="$noconfigdirs ${libgcj}"
3495 ;;
2909494b
JM
3496 arm*-*-symbianelf*)
3497 noconfigdirs="$noconfigdirs ${libgcj}"
3498 ;;
2909494b 3499 bfin-*-*)
2909494b
JM
3500 noconfigdirs="$noconfigdirs target-boehm-gc"
3501 ;;
2909494b
JM
3502 cris-*-* | crisv32-*-*)
3503 unsupported_languages="$unsupported_languages java"
3504 case "${target}" in
3505 *-*-linux*)
3506 ;;
3507 *) # See PR46792 regarding target-libffi.
3508 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3509 esac
3510 ;;
2909494b
JM
3511 hppa*64*-*-linux*)
3512 # In this case, it's because the hppa64-linux target is for
3513 # the kernel only at this point and has no libc, and thus no
3514 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3515 unsupported_languages="$unsupported_languages java"
2909494b 3516 ;;
fddf9ee7 3517 hppa*64*-*-hpux*)
2909494b
JM
3518 noconfigdirs="$noconfigdirs ${libgcj}"
3519 ;;
3520 hppa*-hp-hpux11*)
3521 ;;
fddf9ee7 3522 hppa*-*-hpux*)
2909494b
JM
3523 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3524 # build on HP-UX 10.20.
3525 noconfigdirs="$noconfigdirs ${libgcj}"
3526 ;;
2909494b
JM
3527 ia64*-*-*vms*)
3528 noconfigdirs="$noconfigdirs ${libgcj}"
3529 ;;
2909494b
JM
3530 i[3456789]86-w64-mingw*)
3531 noconfigdirs="$noconfigdirs ${libgcj}"
3532 ;;
3533 i[3456789]86-*-mingw*)
3534 noconfigdirs="$noconfigdirs ${libgcj}"
3535 ;;
3536 x86_64-*-mingw*)
3537 noconfigdirs="$noconfigdirs ${libgcj}"
3538 ;;
2909494b
JM
3539 mmix-*-*)
3540 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3541 ;;
3542 powerpc-*-aix*)
3543 # copied from rs6000-*-* entry
3544 noconfigdirs="$noconfigdirs ${libgcj}"
3545 ;;
2909494b
JM
3546 rs6000-*-aix*)
3547 noconfigdirs="$noconfigdirs ${libgcj}"
3548 ;;
a05c2c75
L
3549 ft32-*-*)
3550 noconfigdirs="$noconfigdirs ${libgcj}"
3551 ;;
2909494b
JM
3552 *-*-lynxos*)
3553 noconfigdirs="$noconfigdirs ${libgcj}"
3554 ;;
2909494b
JM
3555esac
3556
1335a8ca
JBG
3557# Disable the go frontend on systems where it is known to not work. Please keep
3558# this in sync with contrib/config-list.mk.
74cc5471
ILT
3559case "${target}" in
3560*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3561 unsupported_languages="$unsupported_languages go"
3562 ;;
3563esac
3564
cdbc9e92
ILT
3565# Disable libgo for some systems where it is known to not work.
3566# For testing, you can easily override this with --enable-libgo.
3567if test x$enable_libgo = x; then
3568 case "${target}" in
3569 *-*-darwin*)
3570 # PR 46986
3571 noconfigdirs="$noconfigdirs target-libgo"
3572 ;;
3573 *-*-cygwin* | *-*-mingw*)
3574 noconfigdirs="$noconfigdirs target-libgo"
3575 ;;
3576 *-*-aix*)
3577 noconfigdirs="$noconfigdirs target-libgo"
3578 ;;
3579 esac
3580fi
3581
c03353e2
RIL
3582# Default libgloss CPU subdirectory.
3583libgloss_dir="$target_cpu"
6de9cd9a 3584
fbcf0dca
JM
3585case "${target}" in
3586 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3587 libgloss_dir=wince
3588 ;;
4dddfc74
YZ
3589 aarch64*-*-* )
3590 libgloss_dir=aarch64
3591 ;;
fbcf0dca
JM
3592 arm*-*-*)
3593 libgloss_dir=arm
3594 ;;
3595 cris-*-* | crisv32-*-*)
3596 libgloss_dir=cris
3597 ;;
3598 hppa*-*-*)
3599 libgloss_dir=pa
3600 ;;
3601 i[3456789]86-*-*)
3602 libgloss_dir=i386
3603 ;;
3604 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3605 libgloss_dir=m68hc11
3606 ;;
3607 m68*-*-* | fido-*-*)
3608 libgloss_dir=m68k
3609 ;;
3610 mips*-*-*)
3611 libgloss_dir=mips
3612 ;;
3613 powerpc*-*-*)
3614 libgloss_dir=rs6000
3615 ;;
3616 sparc*-*-*)
3617 libgloss_dir=sparc
3618 ;;
3619esac
3620
6a789d5e 3621# Disable newlib and libgloss for various target OSes.
671aa708 3622case "${target}" in
6a789d5e
JM
3623 alpha*-dec-osf*)
3624 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3625 ;;
3626 i[3456789]86-*-linux*)
3627 # This section makes it possible to build newlib natively on linux.
3628 # If we are using a cross compiler then don't configure newlib.
3629 if test x${is_cross_compiler} != xno ; then
3630 noconfigdirs="$noconfigdirs target-newlib"
3631 fi
3632 noconfigdirs="$noconfigdirs target-libgloss"
3633 # If we are not using a cross compiler, do configure newlib.
3634 # Note however, that newlib will only be configured in this situation
3635 # if the --with-newlib option has been given, because otherwise
3636 # 'target-newlib' will appear in skipdirs.
3637 ;;
3638 i[3456789]86-*-rdos*)
3639 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3640 ;;
3641 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3642 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3643 ;;
3644 sparc-*-sunos4*)
3645 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3646 ;;
3647 *-*-aix*)
3648 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3649 ;;
3650 *-*-beos*)
3651 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3652 ;;
671aa708 3653 *-*-chorusos)
0036370f 3654 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3655 ;;
6a789d5e
JM
3656 *-*-dragonfly*)
3657 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3658 ;;
3659 *-*-freebsd*)
3660 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3661 ;;
3662 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3664 ;;
3665 *-*-lynxos*)
3666 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3667 ;;
3668 *-*-mingw*)
3669 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 ;;
3671 *-*-netbsd*)
3672 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3673 ;;
3674 *-*-netware*)
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 ;;
3677 *-*-tpf*)
3678 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3679 ;;
3680 *-*-uclinux*)
3681 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3682 ;;
3683 *-*-vxworks*)
3684 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 ;;
3686esac
3687
3688case "${target}" in
3689 *-*-chorusos)
3690 ;;
3be96231
TG
3691 aarch64-*-darwin*)
3692 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3693 noconfigdirs="$noconfigdirs sim target-rda"
3694 ;;
3695 arm-*-darwin*)
3696 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3697 noconfigdirs="$noconfigdirs sim target-rda"
3698 ;;
75eeae1a 3699 powerpc-*-darwin*)
e1514c3f 3700 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3701 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3702 ;;
354ebf88
RW
3703 i[3456789]86-*-darwin*)
3704 noconfigdirs="$noconfigdirs ld gprof"
3705 noconfigdirs="$noconfigdirs sim target-rda"
3706 ;;
3707 x86_64-*-darwin[912]*)
0db3a858
TG
3708 noconfigdirs="$noconfigdirs ld gas gprof"
3709 noconfigdirs="$noconfigdirs sim target-rda"
3710 ;;
42c1cd8a
AT
3711 *-*-darwin*)
3712 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3713 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3714 ;;
8c6d158a 3715 *-*-dragonfly*)
8c6d158a 3716 ;;
c3f84f61 3717 *-*-freebsd*)
6de9cd9a
DN
3718 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3719 && test -f /usr/local/include/gmp.h; then
3720 with_gmp=/usr/local
3721 fi
6de9cd9a 3722 ;;
ef4e7569
US
3723 *-*-kaos*)
3724 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3725 noconfigdirs="$noconfigdirs target-libgloss"
3726 ;;
671aa708 3727 *-*-netbsd*)
671aa708 3728 ;;
61fec9ff 3729 *-*-netware*)
671aa708 3730 ;;
fd6487af
JS
3731 *-*-phoenix*)
3732 noconfigdirs="$noconfigdirs target-libgloss"
3733 ;;
671aa708 3734 *-*-rtems*)
2909494b 3735 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3736 # this is not caught below because this stanza matches earlier
3737 case $target in
3738 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3739 esac
671aa708 3740 ;;
a8ba31f2
EC
3741 # The tpf target doesn't support gdb yet.
3742 *-*-tpf*)
6a789d5e 3743 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3744 ;;
5785c0ed 3745 *-*-uclinux*)
6a789d5e 3746 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3747 ;;
671aa708 3748 *-*-vxworks*)
671aa708
NN
3749 ;;
3750 alpha*-dec-osf*)
3751 # ld works, but does not support shared libraries.
671aa708 3752 # gas doesn't generate exception information.
6a789d5e 3753 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3754 ;;
3755 alpha*-*-*vms*)
2909494b 3756 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3757 ;;
671aa708
NN
3758 alpha*-*-*)
3759 # newlib is not 64 bit ready
2909494b 3760 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3761 ;;
671aa708 3762 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3763 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3764 ;;
671aa708 3765 arm-*-pe*)
2909494b 3766 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3767 ;;
671aa708 3768 arm-*-riscix*)
0036370f 3769 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3770 ;;
b588ae30
GJL
3771 avr-*-*)
3772 if test x${with_avrlibc} != xno; then
3773 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3774 fi
3775 ;;
671aa708 3776 c4x-*-* | tic4x-*-*)
0036370f 3777 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3778 ;;
0036370f
JM
3779 tic54x-*-*)
3780 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3781 ;;
671aa708 3782 d10v-*-*)
0036370f 3783 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3784 ;;
3785 d30v-*-*)
0036370f 3786 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3787 ;;
3788 fr30-*-elf*)
2909494b 3789 noconfigdirs="$noconfigdirs gdb"
671aa708 3790 ;;
a05c2c75
L
3791 ft32-*-*)
3792 noconfigdirs="$noconfigdirs target-rda gprof"
3793 ;;
55f2d967 3794 moxie-*-*)
a05c2c75 3795 noconfigdirs="$noconfigdirs"
55f2d967 3796 ;;
671aa708 3797 h8300*-*-*)
2909494b 3798 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3799 ;;
3800 h8500-*-*)
0036370f 3801 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3802 ;;
ee6a22df 3803 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3804 ;;
a05c2c75
L
3805 hppa*64*-*-hpux*)
3806 noconfigdirs="$noconfigdirs gdb"
3807 ;;
3808 hppa*-*-hpux11*)
3809 noconfigdirs="$noconfigdirs gdb ld"
3810 ;;
4569f85e 3811 hppa*64*-*-linux*)
671aa708 3812 ;;
56f8587a 3813 hppa*-*-linux*)
3e732ba0 3814 ;;
671aa708 3815 hppa*-*-*elf* | \
671aa708
NN
3816 hppa*-*-lites* | \
3817 hppa*-*-openbsd* | \
3818 hppa*64*-*-*)
671aa708 3819 ;;
c03353e2 3820 hppa*-*-pro*)
c03353e2 3821 ;;
671aa708 3822 hppa*-*-*)
2909494b 3823 noconfigdirs="$noconfigdirs ld"
671aa708 3824 ;;
fb87ad5d 3825 i960-*-*)
0036370f 3826 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3827 ;;
671aa708
NN
3828 ia64*-*-elf*)
3829 # No gdb support yet.
1bcce263 3830 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3831 ;;
3832 ia64*-**-hpux*)
5a2931d1 3833 # No ld support yet.
a05c2c75 3834 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3835 ;;
52535a64 3836 ia64*-*-*vms*)
091fe9ca
TG
3837 # No ld support yet.
3838 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3839 ;;
ef4c4300 3840 i[3456789]86-w64-mingw*)
ef4c4300
KT
3841 ;;
3842 i[3456789]86-*-mingw*)
b91f0a41 3843 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3844 ;;
671aa708
NN
3845 *-*-cygwin*)
3846 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3847 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3848 # always build newlib if winsup directory is present.
b91f0a41 3849 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3850 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3851 elif test -d "$srcdir/newlib"; then
b91f0a41 3852 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3853 fi
1c710c3c 3854 ;;
f2a0e225 3855 i[3456789]86-*-pe)
ebb9f8b0 3856 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3857 ;;
f2a0e225 3858 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3859 # The linker does not yet know about weak symbols in COFF,
3860 # and is not configured to handle mixed ELF and COFF.
0036370f 3861 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3862 ;;
f2a0e225 3863 i[3456789]86-*-sco*)
0036370f 3864 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3865 ;;
fbdd5d87 3866 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3867 noconfigdirs="$noconfigdirs target-libgloss"
3868 ;;
f2a0e225 3869 i[3456789]86-*-sysv4*)
0036370f 3870 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3871 ;;
f2a0e225 3872 i[3456789]86-*-beos*)
6a789d5e 3873 noconfigdirs="$noconfigdirs gdb"
3aa83176 3874 ;;
d1f8db0c 3875 i[3456789]86-*-rdos*)
6a789d5e 3876 noconfigdirs="$noconfigdirs gdb"
c03353e2 3877 ;;
671aa708 3878 mmix-*-*)
2909494b 3879 noconfigdirs="$noconfigdirs gdb"
671aa708 3880 ;;
ab34901f 3881 mt-*-*)
79dd769c
AH
3882 noconfigdirs="$noconfigdirs sim"
3883 ;;
671aa708
NN
3884 powerpc-*-aix*)
3885 # copied from rs6000-*-* entry
6a789d5e 3886 noconfigdirs="$noconfigdirs gprof"
671aa708 3887 ;;
4569f85e 3888 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3889 target_configdirs="$target_configdirs target-winsup"
0036370f 3890 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3891 # always build newlib.
3892 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3893 ;;
3894 # This is temporary until we can link against shared libraries
3895 powerpcle-*-solaris*)
0036370f 3896 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3897 ;;
3898 powerpc-*-beos*)
6a789d5e 3899 noconfigdirs="$noconfigdirs gdb"
671aa708 3900 ;;
671aa708 3901 rs6000-*-lynxos*)
6a789d5e 3902 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3903 ;;
3904 rs6000-*-aix*)
6a789d5e 3905 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3906 ;;
3907 rs6000-*-*)
2909494b 3908 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3909 ;;
3910 m68k-apollo-*)
0036370f 3911 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3912 ;;
ca9fe997 3913 microblaze*)
2909494b 3914 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3915 ;;
d896cc4d 3916 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3917 if test x$with_newlib = xyes; then
3918 noconfigdirs="$noconfigdirs gprof"
3919 fi
d9dced13 3920 ;;
671aa708 3921 mips*-*-irix5*)
0036370f 3922 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3923 ;;
3924 mips*-*-irix6*)
2909494b 3925 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3926 ;;
671aa708 3927 mips*-*-bsd*)
bc98bcc4 3928 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3929 ;;
671aa708 3930 mips*-*-linux*)
671aa708 3931 ;;
bc98bcc4
JBG
3932 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3933 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3934 noconfigdirs="$noconfigdirs ld gas gprof"
3935 ;;
671aa708 3936 mips*-*-*)
2909494b 3937 noconfigdirs="$noconfigdirs gprof"
671aa708 3938 ;;
738f2522 3939 nvptx*-*-*)
738f2522
BS
3940 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3941 ;;
d896cc4d
JBG
3942 or1k*-*-*)
3943 noconfigdirs="$noconfigdirs gdb"
3944 ;;
bc6d9014 3945 sh-*-*)
ea2002ba
CB
3946 case "${target}" in
3947 sh*-*-elf)
2909494b 3948 ;;
ea2002ba 3949 *)
2909494b 3950 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3951 esac
671aa708 3952 ;;
671aa708 3953 sparc-*-sunos4*)
6a789d5e 3954 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3955 use_gnu_ld=no
3956 fi
3957 ;;
b42f0d7e 3958 tic6x-*-*)
0d557ff8 3959 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3960 ;;
341c653c 3961 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3962 noconfigdirs="$noconfigdirs sim"
3963 ;;
671aa708 3964 v810-*-*)
0036370f 3965 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3966 ;;
3967 vax-*-*)
2909494b 3968 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3969 ;;
671aa708 3970esac
79c06341 3971
671aa708
NN
3972# If we aren't building newlib, then don't build libgloss, since libgloss
3973# depends upon some newlib header files.
3974case "${noconfigdirs}" in
3975 *target-libgloss*) ;;
3976 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3977esac
3978
671aa708 3979# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3980host_makefile_frag=/dev/null
3981if test -d ${srcdir}/config ; then
3982case "${host}" in
f2a0e225 3983 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3984 host_makefile_frag="config/mh-djgpp"
3985 ;;
3986 *-cygwin*)
2a79c47f 3987
5213506e
RW
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3989$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3990echo a >cygwin-cat-check
e25a8c82 3991if test `cat cygwin-cat-check` = a ; then
2a79c47f 3992 rm cygwin-cat-check
5213506e
RW
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3994$as_echo "yes" >&6; }
2a79c47f
NC
3995else
3996 rm cygwin-cat-check
5213506e
RW
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998$as_echo "no" >&6; }
3999 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
4000 Please either mount the build directory in binary mode or run the following
4001 commands before running any configure script:
4002set -o igncr
4003export SHELLOPTS
5213506e 4004 " "$LINENO" 5
2a79c47f
NC
4005fi
4006
671aa708
NN
4007 host_makefile_frag="config/mh-cygwin"
4008 ;;
c53a18d3 4009 *-mingw*)
1f5a6b84 4010 host_makefile_frag="config/mh-mingw"
95af8923 4011 ;;
cabb9d59 4012 alpha*-linux*)
13be44ed
UB
4013 host_makefile_frag="config/mh-alpha-linux"
4014 ;;
efd41714 4015 hppa*-hp-hpux10*)
efd41714 4016 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4017 ;;
111eeb6e 4018 hppa*-hp-hpux*)
efd41714
PB
4019 host_makefile_frag="config/mh-pa"
4020 ;;
4021 hppa*-*)
4022 host_makefile_frag="config/mh-pa"
4023 ;;
d8ed14ce
IS
4024 *-*-darwin*)
4025 host_makefile_frag="config/mh-darwin"
be8fff81 4026 ;;
d19bca38
PB
4027 powerpc-*-aix*)
4028 host_makefile_frag="config/mh-ppc-aix"
4029 ;;
4030 rs6000-*-aix*)
4031 host_makefile_frag="config/mh-ppc-aix"
4032 ;;
671aa708
NN
4033esac
4034fi
4035
55ffb5ed 4036if test "${build}" != "${host}" ; then
0999159b
PB
4037 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4038 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4039 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
4040 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4041 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4042 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4043 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
4044 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4045 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4046 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4047 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4048 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4049 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4050else
4051 AR_FOR_BUILD="\$(AR)"
4052 AS_FOR_BUILD="\$(AS)"
fb0103e5 4053 CC_FOR_BUILD="\$(CC)"
0999159b
PB
4054 CXX_FOR_BUILD="\$(CXX)"
4055 GCJ_FOR_BUILD="\$(GCJ)"
4056 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4057 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
4058 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4059 LD_FOR_BUILD="\$(LD)"
4060 NM_FOR_BUILD="\$(NM)"
4061 RANLIB_FOR_BUILD="\$(RANLIB)"
4062 WINDRES_FOR_BUILD="\$(WINDRES)"
4063 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4064fi
4065
4066ac_ext=c
1c710c3c
DJ
4067ac_cpp='$CPP $CPPFLAGS'
4068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4070ac_compiler_gnu=$ac_cv_c_compiler_gnu
4071if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4073set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075$as_echo_n "checking for $ac_word... " >&6; }
4076if test "${ac_cv_prog_CC+set}" = set; then :
4077 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4078else
4079 if test -n "$CC"; then
4080 ac_cv_prog_CC="$CC" # Let the user override the test.
4081else
4082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083for as_dir in $PATH
4084do
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
5213506e
RW
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4089 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4091 break 2
4092 fi
4093done
5213506e
RW
4094 done
4095IFS=$as_save_IFS
1c710c3c
DJ
4096
4097fi
4098fi
4099CC=$ac_cv_prog_CC
4100if test -n "$CC"; then
5213506e
RW
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4102$as_echo "$CC" >&6; }
1c710c3c 4103else
5213506e
RW
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4105$as_echo "no" >&6; }
1c710c3c
DJ
4106fi
4107
5213506e 4108
1c710c3c
DJ
4109fi
4110if test -z "$ac_cv_prog_CC"; then
4111 ac_ct_CC=$CC
fb0103e5
RG
4112 # Extract the first word of "gcc", so it can be a program name with args.
4113set dummy gcc; ac_word=$2
5213506e
RW
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115$as_echo_n "checking for $ac_word... " >&6; }
4116if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4117 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4118else
4119 if test -n "$ac_ct_CC"; then
4120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4121else
4122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123for as_dir in $PATH
4124do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
5213506e
RW
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4129 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4131 break 2
4132 fi
4133done
5213506e
RW
4134 done
4135IFS=$as_save_IFS
1c710c3c
DJ
4136
4137fi
4138fi
4139ac_ct_CC=$ac_cv_prog_ac_ct_CC
4140if test -n "$ac_ct_CC"; then
5213506e
RW
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4142$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4143else
5213506e
RW
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145$as_echo "no" >&6; }
1c710c3c
DJ
4146fi
4147
5213506e
RW
4148 if test "x$ac_ct_CC" = x; then
4149 CC=""
4150 else
4151 case $cross_compiling:$ac_tool_warned in
4152yes:)
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4154$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4155ac_tool_warned=yes ;;
4156esac
4157 CC=$ac_ct_CC
4158 fi
1c710c3c
DJ
4159else
4160 CC="$ac_cv_prog_CC"
4161fi
4162
4163if test -z "$CC"; then
5213506e
RW
4164 if test -n "$ac_tool_prefix"; then
4165 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4166set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168$as_echo_n "checking for $ac_word... " >&6; }
4169if test "${ac_cv_prog_CC+set}" = set; then :
4170 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4171else
4172 if test -n "$CC"; then
4173 ac_cv_prog_CC="$CC" # Let the user override the test.
4174else
1c710c3c
DJ
4175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176for as_dir in $PATH
4177do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
5213506e
RW
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4182 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4184 break 2
4185 fi
4186done
5213506e
RW
4187 done
4188IFS=$as_save_IFS
1c710c3c 4189
0b0dc272 4190fi
0b0dc272 4191fi
1c710c3c 4192CC=$ac_cv_prog_CC
af71363e 4193if test -n "$CC"; then
5213506e
RW
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4195$as_echo "$CC" >&6; }
2aeb72e9 4196else
5213506e
RW
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198$as_echo "no" >&6; }
2aeb72e9
DD
4199fi
4200
2aeb72e9 4201
5213506e 4202 fi
1c710c3c 4203fi
55ffb5ed
NN
4204if test -z "$CC"; then
4205 # Extract the first word of "cc", so it can be a program name with args.
4206set dummy cc; ac_word=$2
5213506e
RW
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208$as_echo_n "checking for $ac_word... " >&6; }
4209if test "${ac_cv_prog_CC+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4211else
4212 if test -n "$CC"; then
4213 ac_cv_prog_CC="$CC" # Let the user override the test.
4214else
0b0dc272 4215 ac_prog_rejected=no
1c710c3c
DJ
4216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217for as_dir in $PATH
4218do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
5213506e
RW
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4224 ac_prog_rejected=yes
4225 continue
4226 fi
4227 ac_cv_prog_CC="cc"
5213506e 4228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4229 break 2
4230 fi
4231done
5213506e
RW
4232 done
4233IFS=$as_save_IFS
1c710c3c 4234
55ffb5ed
NN
4235if test $ac_prog_rejected = yes; then
4236 # We found a bogon in the path, so make sure we never use it.
4237 set dummy $ac_cv_prog_CC
4238 shift
1c710c3c 4239 if test $# != 0; then
55ffb5ed
NN
4240 # We chose a different compiler from the bogus one.
4241 # However, it has the same basename, so the bogon will be chosen
4242 # first if we set CC to just the basename; use the full file name.
4243 shift
1c710c3c 4244 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4245 fi
4246fi
4247fi
4248fi
1c710c3c 4249CC=$ac_cv_prog_CC
55ffb5ed 4250if test -n "$CC"; then
5213506e
RW
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4252$as_echo "$CC" >&6; }
55ffb5ed 4253else
5213506e
RW
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255$as_echo "no" >&6; }
55ffb5ed
NN
4256fi
4257
5213506e 4258
1c710c3c
DJ
4259fi
4260if test -z "$CC"; then
4261 if test -n "$ac_tool_prefix"; then
5213506e 4262 for ac_prog in cl.exe
1c710c3c
DJ
4263 do
4264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4265set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267$as_echo_n "checking for $ac_word... " >&6; }
4268if test "${ac_cv_prog_CC+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4270else
4271 if test -n "$CC"; then
4272 ac_cv_prog_CC="$CC" # Let the user override the test.
4273else
1c710c3c
DJ
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
5213506e
RW
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4283 break 2
4284 fi
4285done
5213506e
RW
4286 done
4287IFS=$as_save_IFS
1c710c3c 4288
55ffb5ed
NN
4289fi
4290fi
1c710c3c 4291CC=$ac_cv_prog_CC
55ffb5ed 4292if test -n "$CC"; then
5213506e
RW
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4294$as_echo "$CC" >&6; }
a4b9e93e 4295else
5213506e
RW
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297$as_echo "no" >&6; }
fb0103e5 4298fi
af71363e 4299
5213506e 4300
1c710c3c
DJ
4301 test -n "$CC" && break
4302 done
af71363e 4303fi
1c710c3c
DJ
4304if test -z "$CC"; then
4305 ac_ct_CC=$CC
5213506e 4306 for ac_prog in cl.exe
1c710c3c
DJ
4307do
4308 # Extract the first word of "$ac_prog", so it can be a program name with args.
4309set dummy $ac_prog; ac_word=$2
5213506e
RW
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311$as_echo_n "checking for $ac_word... " >&6; }
4312if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
0b0dc272 4314else
1c710c3c
DJ
4315 if test -n "$ac_ct_CC"; then
4316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4317else
1c710c3c
DJ
4318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319for as_dir in $PATH
4320do
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
5213506e
RW
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4325 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4327 break 2
4328 fi
4329done
5213506e
RW
4330 done
4331IFS=$as_save_IFS
1c710c3c 4332
af71363e
AS
4333fi
4334fi
1c710c3c
DJ
4335ac_ct_CC=$ac_cv_prog_ac_ct_CC
4336if test -n "$ac_ct_CC"; then
5213506e
RW
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4338$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4339else
5213506e
RW
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341$as_echo "no" >&6; }
af71363e 4342fi
0b0dc272 4343
5213506e 4344
1c710c3c
DJ
4345 test -n "$ac_ct_CC" && break
4346done
4347
5213506e
RW
4348 if test "x$ac_ct_CC" = x; then
4349 CC=""
4350 else
4351 case $cross_compiling:$ac_tool_warned in
4352yes:)
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4355ac_tool_warned=yes ;;
4356esac
4357 CC=$ac_ct_CC
4358 fi
1c710c3c
DJ
4359fi
4360
4361fi
4362
4363
5213506e
RW
4364test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4366as_fn_error "no acceptable C compiler found in \$PATH
4367See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4368
4369# Provide some information about the compiler.
5213506e
RW
4370$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4371set X $ac_compile
4372ac_compiler=$2
4373for ac_option in --version -v -V -qversion; do
4374 { { ac_try="$ac_compiler $ac_option >&5"
4375case "(($ac_try" in
4376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377 *) ac_try_echo=$ac_try;;
4378esac
4379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4380$as_echo "$ac_try_echo"; } >&5
4381 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4382 ac_status=$?
5213506e
RW
4383 if test -s conftest.err; then
4384 sed '10a\
4385... rest of stderr output deleted ...
4386 10q' conftest.err >conftest.er1
4387 cat conftest.er1 >&5
4388 rm -f conftest.er1 conftest.err
4389 fi
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }
4392done
1c710c3c 4393
5213506e 4394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4395/* end confdefs.h. */
4396
4397int
4398main ()
4399{
4400
4401 ;
4402 return 0;
4403}
4404_ACEOF
4405ac_clean_files_save=$ac_clean_files
5213506e 4406ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4407# Try to create an executable without -o first, disregard a.out.
4408# It will help us diagnose broken compilers, and finding out an intuition
4409# of exeext.
5213506e
RW
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4411$as_echo_n "checking for C compiler default output file name... " >&6; }
4412ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4413
4414# The possible output files:
4415ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4416
4417ac_rmfiles=
4418for ac_file in $ac_files
4419do
4420 case $ac_file in
4421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4422 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4423 esac
4424done
4425rm -f $ac_rmfiles
4426
4427if { { ac_try="$ac_link_default"
4428case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431esac
4432eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4433$as_echo "$ac_try_echo"; } >&5
4434 (eval "$ac_link_default") 2>&5
1c710c3c 4435 ac_status=$?
5213506e
RW
4436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4437 test $ac_status = 0; }; then :
4438 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4439# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4440# in a Makefile. We should not override ac_cv_exeext if it was cached,
4441# so that the user can short-circuit this test for compilers unknown to
4442# Autoconf.
4443for ac_file in $ac_files ''
1c710c3c
DJ
4444do
4445 test -f "$ac_file" || continue
4446 case $ac_file in
5213506e 4447 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4448 ;;
4449 [ab].out )
4450 # We found the default executable, but exeext='' is most
4451 # certainly right.
4452 break;;
4453 *.* )
5213506e
RW
4454 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4455 then :; else
4456 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4457 fi
4458 # We set ac_cv_exeext here because the later test for it is not
4459 # safe: cross compilers may not add the suffix if given an `-o'
4460 # argument, so we may need to know it at that point already.
4461 # Even if this section looks crufty: it has the advantage of
4462 # actually working.
1c710c3c
DJ
4463 break;;
4464 * )
4465 break;;
4466 esac
4467done
5213506e
RW
4468test "$ac_cv_exeext" = no && ac_cv_exeext=
4469
1c710c3c 4470else
5213506e
RW
4471 ac_file=''
4472fi
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4474$as_echo "$ac_file" >&6; }
4475if test -z "$ac_file"; then :
4476 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4477sed 's/^/| /' conftest.$ac_ext >&5
4478
5213506e
RW
4479{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4480$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4481{ as_fn_set_status 77
4482as_fn_error "C compiler cannot create executables
4483See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4484fi
1c710c3c 4485ac_exeext=$ac_cv_exeext
1c710c3c 4486
5213506e 4487# Check that the compiler produces executables we can run. If not, either
1c710c3c 4488# the compiler is broken, or we cross compile.
5213506e
RW
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4490$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4491# If not cross compiling, check that we can run a simple program.
4492if test "$cross_compiling" != yes; then
4493 if { ac_try='./$ac_file'
5213506e
RW
4494 { { case "(($ac_try" in
4495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4496 *) ac_try_echo=$ac_try;;
4497esac
4498eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4499$as_echo "$ac_try_echo"; } >&5
4500 (eval "$ac_try") 2>&5
1c710c3c 4501 ac_status=$?
5213506e
RW
4502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4503 test $ac_status = 0; }; }; then
1c710c3c
DJ
4504 cross_compiling=no
4505 else
4506 if test "$cross_compiling" = maybe; then
4507 cross_compiling=yes
4508 else
5213506e
RW
4509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4510$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4511as_fn_error "cannot run C compiled programs.
1c710c3c 4512If you meant to cross compile, use \`--host'.
5213506e 4513See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4514 fi
4515 fi
4516fi
5213506e
RW
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4518$as_echo "yes" >&6; }
1c710c3c 4519
5213506e 4520rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4521ac_clean_files=$ac_clean_files_save
5213506e 4522# Check that the compiler produces executables we can run. If not, either
1c710c3c 4523# the compiler is broken, or we cross compile.
5213506e
RW
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4525$as_echo_n "checking whether we are cross compiling... " >&6; }
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4527$as_echo "$cross_compiling" >&6; }
4528
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4530$as_echo_n "checking for suffix of executables... " >&6; }
4531if { { ac_try="$ac_link"
4532case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535esac
4536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537$as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_link") 2>&5
1c710c3c 4539 ac_status=$?
5213506e
RW
4540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4541 test $ac_status = 0; }; then :
1c710c3c
DJ
4542 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4543# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4544# work properly (i.e., refer to `conftest.exe'), while it won't with
4545# `rm'.
4546for ac_file in conftest.exe conftest conftest.*; do
4547 test -f "$ac_file" || continue
4548 case $ac_file in
5213506e 4549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4550 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4551 break;;
4552 * ) break;;
4553 esac
4554done
af71363e 4555else
5213506e
RW
4556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4558as_fn_error "cannot compute suffix of executables: cannot compile and link
4559See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4560fi
1c710c3c 4561rm -f conftest$ac_cv_exeext
5213506e
RW
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4563$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4564
4565rm -f conftest.$ac_ext
4566EXEEXT=$ac_cv_exeext
4567ac_exeext=$EXEEXT
5213506e
RW
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4569$as_echo_n "checking for suffix of object files... " >&6; }
4570if test "${ac_cv_objext+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
1c710c3c 4572else
5213506e 4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4574/* end confdefs.h. */
4575
4576int
4577main ()
4578{
4579
4580 ;
4581 return 0;
4582}
4583_ACEOF
4584rm -f conftest.o conftest.obj
5213506e
RW
4585if { { ac_try="$ac_compile"
4586case "(($ac_try" in
4587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588 *) ac_try_echo=$ac_try;;
4589esac
4590eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4591$as_echo "$ac_try_echo"; } >&5
4592 (eval "$ac_compile") 2>&5
1c710c3c 4593 ac_status=$?
5213506e
RW
4594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4595 test $ac_status = 0; }; then :
4596 for ac_file in conftest.o conftest.obj conftest.*; do
4597 test -f "$ac_file" || continue;
1c710c3c 4598 case $ac_file in
5213506e 4599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4601 break;;
4602 esac
4603done
4604else
5213506e 4605 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4606sed 's/^/| /' conftest.$ac_ext >&5
4607
5213506e
RW
4608{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4610as_fn_error "cannot compute suffix of object files: cannot compile
4611See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4612fi
1c710c3c
DJ
4613rm -f conftest.$ac_cv_objext conftest.$ac_ext
4614fi
5213506e
RW
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4616$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4617OBJEXT=$ac_cv_objext
4618ac_objext=$OBJEXT
5213506e
RW
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4620$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4621if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4622 $as_echo_n "(cached) " >&6
1c710c3c 4623else
5213506e 4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4625/* end confdefs.h. */
4626
4627int
4628main ()
4629{
4630#ifndef __GNUC__
4631 choke me
4632#endif
4633
4634 ;
4635 return 0;
4636}
4637_ACEOF
5213506e 4638if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4639 ac_compiler_gnu=yes
4640else
5213506e 4641 ac_compiler_gnu=no
1c710c3c 4642fi
5213506e 4643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4644ac_cv_c_compiler_gnu=$ac_compiler_gnu
4645
4646fi
5213506e
RW
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4648$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4649if test $ac_compiler_gnu = yes; then
4650 GCC=yes
4651else
4652 GCC=
4653fi
1c710c3c
DJ
4654ac_test_CFLAGS=${CFLAGS+set}
4655ac_save_CFLAGS=$CFLAGS
5213506e
RW
4656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4657$as_echo_n "checking whether $CC accepts -g... " >&6; }
4658if test "${ac_cv_prog_cc_g+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4660else
4661 ac_save_c_werror_flag=$ac_c_werror_flag
4662 ac_c_werror_flag=yes
4663 ac_cv_prog_cc_g=no
4664 CFLAGS="-g"
4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4666/* end confdefs.h. */
4667
4668int
4669main ()
4670{
4671
4672 ;
4673 return 0;
4674}
4675_ACEOF
5213506e 4676if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4677 ac_cv_prog_cc_g=yes
4678else
5213506e
RW
4679 CFLAGS=""
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681/* end confdefs.h. */
4682
4683int
4684main ()
4685{
4686
4687 ;
4688 return 0;
4689}
4690_ACEOF
4691if ac_fn_c_try_compile "$LINENO"; then :
4692
4693else
4694 ac_c_werror_flag=$ac_save_c_werror_flag
4695 CFLAGS="-g"
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697/* end confdefs.h. */
af71363e 4698
5213506e
RW
4699int
4700main ()
4701{
4702
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707if ac_fn_c_try_compile "$LINENO"; then :
4708 ac_cv_prog_cc_g=yes
4709fi
4710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4711fi
5213506e 4712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4713fi
5213506e
RW
4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715 ac_c_werror_flag=$ac_save_c_werror_flag
4716fi
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4718$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4719if test "$ac_test_CFLAGS" = set; then
1c710c3c 4720 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4721elif test $ac_cv_prog_cc_g = yes; then
4722 if test "$GCC" = yes; then
4723 CFLAGS="-g -O2"
4724 else
4725 CFLAGS="-g"
4726 fi
4727else
4728 if test "$GCC" = yes; then
4729 CFLAGS="-O2"
4730 else
4731 CFLAGS=
4732 fi
4733fi
5213506e
RW
4734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4735$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4736if test "${ac_cv_prog_cc_c89+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
1c710c3c 4738else
5213506e 4739 ac_cv_prog_cc_c89=no
1c710c3c 4740ac_save_CC=$CC
5213506e 4741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4742/* end confdefs.h. */
4743#include <stdarg.h>
4744#include <stdio.h>
4745#include <sys/types.h>
4746#include <sys/stat.h>
4747/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4748struct buf { int x; };
4749FILE * (*rcsopen) (struct buf *, struct stat *, int);
4750static char *e (p, i)
4751 char **p;
4752 int i;
4753{
4754 return p[i];
4755}
4756static char *f (char * (*g) (char **, int), char **p, ...)
4757{
4758 char *s;
4759 va_list v;
4760 va_start (v,p);
4761 s = g (p, va_arg (v,int));
4762 va_end (v);
4763 return s;
4764}
4765
4766/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4767 function prototypes and stuff, but not '\xHH' hex character constants.
4768 These don't provoke an error unfortunately, instead are silently treated
5213506e 4769 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4770 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4771 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4772 that's true only with -std. */
1c710c3c
DJ
4773int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4774
5213506e
RW
4775/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4776 inside strings and character constants. */
4777#define FOO(x) 'x'
4778int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4779
1c710c3c
DJ
4780int test (int i, double x);
4781struct s1 {int (*f) (int a);};
4782struct s2 {int (*f) (double a);};
4783int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4784int argc;
4785char **argv;
4786int
4787main ()
4788{
4789return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4790 ;
4791 return 0;
4792}
4793_ACEOF
5213506e
RW
4794for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4795 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4796do
4797 CC="$ac_save_CC $ac_arg"
5213506e
RW
4798 if ac_fn_c_try_compile "$LINENO"; then :
4799 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4800fi
5213506e
RW
4801rm -f core conftest.err conftest.$ac_objext
4802 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4803done
5213506e 4804rm -f conftest.$ac_ext
1c710c3c
DJ
4805CC=$ac_save_CC
4806
4807fi
5213506e
RW
4808# AC_CACHE_VAL
4809case "x$ac_cv_prog_cc_c89" in
4810 x)
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4812$as_echo "none needed" >&6; } ;;
4813 xno)
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4815$as_echo "unsupported" >&6; } ;;
1c710c3c 4816 *)
5213506e
RW
4817 CC="$CC $ac_cv_prog_cc_c89"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4819$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4820esac
5213506e 4821if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4822
2aeb72e9
DD
4823fi
4824
2aeb72e9
DD
4825ac_ext=c
4826ac_cpp='$CPP $CPPFLAGS'
4827ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4828ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4829ac_compiler_gnu=$ac_cv_c_compiler_gnu
4830
5213506e 4831ac_ext=cpp
2aeb72e9
DD
4832ac_cpp='$CXXCPP $CPPFLAGS'
4833ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4834ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4835ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4836if test -z "$CXX"; then
4837 if test -n "$CCC"; then
4838 CXX=$CCC
4839 else
4840 if test -n "$ac_tool_prefix"; then
4841 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4842 do
4843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4844set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4846$as_echo_n "checking for $ac_word... " >&6; }
4847if test "${ac_cv_prog_CXX+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4849else
4850 if test -n "$CXX"; then
4851 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4852else
4853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
5213506e
RW
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4860 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4862 break 2
4863 fi
4864done
5213506e
RW
4865 done
4866IFS=$as_save_IFS
55ffb5ed 4867
c3a86da9
DJ
4868fi
4869fi
4870CXX=$ac_cv_prog_CXX
4871if test -n "$CXX"; then
5213506e
RW
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4873$as_echo "$CXX" >&6; }
c3a86da9 4874else
5213506e
RW
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4876$as_echo "no" >&6; }
c3a86da9
DJ
4877fi
4878
5213506e 4879
c3a86da9
DJ
4880 test -n "$CXX" && break
4881 done
4882fi
4883if test -z "$CXX"; then
4884 ac_ct_CXX=$CXX
5213506e 4885 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4886do
4887 # Extract the first word of "$ac_prog", so it can be a program name with args.
4888set dummy $ac_prog; ac_word=$2
5213506e
RW
4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4890$as_echo_n "checking for $ac_word... " >&6; }
4891if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4892 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4893else
4894 if test -n "$ac_ct_CXX"; then
4895 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4896else
4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898for as_dir in $PATH
4899do
4900 IFS=$as_save_IFS
4901 test -z "$as_dir" && as_dir=.
5213506e
RW
4902 for ac_exec_ext in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4904 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4906 break 2
4907 fi
4908done
5213506e
RW
4909 done
4910IFS=$as_save_IFS
c3a86da9
DJ
4911
4912fi
4913fi
4914ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4915if test -n "$ac_ct_CXX"; then
5213506e
RW
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4917$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4918else
5213506e
RW
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920$as_echo "no" >&6; }
c3a86da9
DJ
4921fi
4922
5213506e 4923
c3a86da9
DJ
4924 test -n "$ac_ct_CXX" && break
4925done
c3a86da9 4926
5213506e
RW
4927 if test "x$ac_ct_CXX" = x; then
4928 CXX="g++"
4929 else
4930 case $cross_compiling:$ac_tool_warned in
4931yes:)
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4934ac_tool_warned=yes ;;
4935esac
4936 CXX=$ac_ct_CXX
4937 fi
c3a86da9
DJ
4938fi
4939
5213506e
RW
4940 fi
4941fi
c3a86da9 4942# Provide some information about the compiler.
5213506e
RW
4943$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4944set X $ac_compile
4945ac_compiler=$2
4946for ac_option in --version -v -V -qversion; do
4947 { { ac_try="$ac_compiler $ac_option >&5"
4948case "(($ac_try" in
4949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4950 *) ac_try_echo=$ac_try;;
4951esac
4952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4953$as_echo "$ac_try_echo"; } >&5
4954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4955 ac_status=$?
5213506e
RW
4956 if test -s conftest.err; then
4957 sed '10a\
4958... rest of stderr output deleted ...
4959 10q' conftest.err >conftest.er1
4960 cat conftest.er1 >&5
4961 rm -f conftest.er1 conftest.err
4962 fi
4963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4964 test $ac_status = 0; }
4965done
c3a86da9 4966
5213506e
RW
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4968$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4969if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4970 $as_echo_n "(cached) " >&6
c3a86da9 4971else
5213506e 4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4973/* end confdefs.h. */
4974
4975int
4976main ()
4977{
4978#ifndef __GNUC__
4979 choke me
4980#endif
4981
4982 ;
4983 return 0;
4984}
4985_ACEOF
5213506e 4986if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4987 ac_compiler_gnu=yes
4988else
5213506e 4989 ac_compiler_gnu=no
c3a86da9 4990fi
5213506e 4991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4992ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4993
4994fi
5213506e
RW
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4996$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4997if test $ac_compiler_gnu = yes; then
4998 GXX=yes
4999else
5000 GXX=
5001fi
c3a86da9
DJ
5002ac_test_CXXFLAGS=${CXXFLAGS+set}
5003ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5005$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5006if test "${ac_cv_prog_cxx_g+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5008else
5009 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5010 ac_cxx_werror_flag=yes
5011 ac_cv_prog_cxx_g=no
5012 CXXFLAGS="-g"
5013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5014/* end confdefs.h. */
5015
5016int
5017main ()
5018{
5019
5020 ;
5021 return 0;
5022}
5023_ACEOF
5213506e 5024if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5025 ac_cv_prog_cxx_g=yes
5026else
5213506e
RW
5027 CXXFLAGS=""
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5029/* end confdefs.h. */
5213506e 5030
c3a86da9
DJ
5031int
5032main ()
5033{
5213506e 5034
c3a86da9
DJ
5035 ;
5036 return 0;
5037}
5038_ACEOF
5213506e 5039if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5040
5213506e
RW
5041else
5042 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5043 CXXFLAGS="-g"
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5045/* end confdefs.h. */
5213506e 5046
c3a86da9
DJ
5047int
5048main ()
5049{
5213506e 5050
c3a86da9
DJ
5051 ;
5052 return 0;
5053}
5054_ACEOF
5213506e
RW
5055if ac_fn_cxx_try_compile "$LINENO"; then :
5056 ac_cv_prog_cxx_g=yes
11a67599 5057fi
5213506e
RW
5058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059fi
5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5061fi
5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5064fi
5065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5066$as_echo "$ac_cv_prog_cxx_g" >&6; }
5067if test "$ac_test_CXXFLAGS" = set; then
5068 CXXFLAGS=$ac_save_CXXFLAGS
5069elif test $ac_cv_prog_cxx_g = yes; then
5070 if test "$GXX" = yes; then
5071 CXXFLAGS="-g -O2"
5072 else
5073 CXXFLAGS="-g"
5074 fi
5075else
5076 if test "$GXX" = yes; then
5077 CXXFLAGS="-O2"
5078 else
5079 CXXFLAGS=
5080 fi
c3a86da9 5081fi
c3a86da9
DJ
5082ac_ext=c
5083ac_cpp='$CPP $CPPFLAGS'
5084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5086ac_compiler_gnu=$ac_cv_c_compiler_gnu
5087
5088
5089# We must set the default linker to the linker used by gcc for the correct
5090# operation of libtool. If LD is not defined and we are using gcc, try to
5091# set the LD default to the ld used by gcc.
5092if test -z "$LD"; then
5093 if test "$GCC" = yes; then
5094 case $build in
5095 *-*-mingw*)
5096 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5097 *)
5098 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5099 esac
5100 case $gcc_prog_ld in
5101 # Accept absolute paths.
5102 [\\/]* | [A-Za-z]:[\\/]*)
5103 LD="$gcc_prog_ld" ;;
5104 esac
5105 fi
23f6b2f9
PB
5106fi
5107
0b21f5d3
EB
5108# Check whether -static-libstdc++ -static-libgcc is supported.
5109have_static_libs=no
5110if test "$GCC" = yes; then
5111 saved_LDFLAGS="$LDFLAGS"
5112
5113 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5115$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5116 ac_ext=cpp
5117ac_cpp='$CXXCPP $CPPFLAGS'
5118ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5119ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5120ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5121
5122
5123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124/* end confdefs.h. */
0d6414b2
EB
5125
5126#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5127#error -static-libstdc++ not implemented
5128#endif
0b21f5d3
EB
5129int main() {}
5130_ACEOF
5131if ac_fn_cxx_try_link "$LINENO"; then :
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5133$as_echo "yes" >&6; }; have_static_libs=yes
5134else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136$as_echo "no" >&6; }
5137fi
5138rm -f core conftest.err conftest.$ac_objext \
5139 conftest$ac_exeext conftest.$ac_ext
5140 ac_ext=c
5141ac_cpp='$CPP $CPPFLAGS'
5142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144ac_compiler_gnu=$ac_cv_c_compiler_gnu
5145
5146
5147 LDFLAGS="$saved_LDFLAGS"
5148fi
5149
23f6b2f9
PB
5150
5151
55ffb5ed 5152
1c710c3c
DJ
5153if test -n "$ac_tool_prefix"; then
5154 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5155set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157$as_echo_n "checking for $ac_word... " >&6; }
5158if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5159 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5160else
5161 if test -n "$GNATBIND"; then
5162 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5163else
1c710c3c
DJ
5164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165for as_dir in $PATH
5166do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5213506e
RW
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5171 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5173 break 2
5174 fi
5175done
5213506e
RW
5176 done
5177IFS=$as_save_IFS
1c710c3c 5178
55ffb5ed
NN
5179fi
5180fi
1c710c3c 5181GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5182if test -n "$GNATBIND"; then
5213506e
RW
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5184$as_echo "$GNATBIND" >&6; }
55ffb5ed 5185else
5213506e
RW
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187$as_echo "no" >&6; }
55ffb5ed
NN
5188fi
5189
5213506e 5190
1c710c3c 5191fi
55ffb5ed 5192if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5193 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5194 # Extract the first word of "gnatbind", so it can be a program name with args.
5195set dummy gnatbind; ac_word=$2
5213506e
RW
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197$as_echo_n "checking for $ac_word... " >&6; }
5198if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5199 $as_echo_n "(cached) " >&6
55ffb5ed 5200else
1c710c3c
DJ
5201 if test -n "$ac_ct_GNATBIND"; then
5202 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5203else
1c710c3c
DJ
5204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205for as_dir in $PATH
5206do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5213506e
RW
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5211 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5213 break 2
5214 fi
5215done
5213506e
RW
5216 done
5217IFS=$as_save_IFS
1c710c3c 5218
55ffb5ed
NN
5219fi
5220fi
1c710c3c
DJ
5221ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5222if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5224$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5225else
5213506e
RW
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227$as_echo "no" >&6; }
55ffb5ed
NN
5228fi
5229
5213506e
RW
5230 if test "x$ac_ct_GNATBIND" = x; then
5231 GNATBIND="no"
5232 else
5233 case $cross_compiling:$ac_tool_warned in
5234yes:)
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5236$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5237ac_tool_warned=yes ;;
5238esac
5239 GNATBIND=$ac_ct_GNATBIND
5240 fi
55ffb5ed 5241else
1c710c3c 5242 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5243fi
5244
1c710c3c
DJ
5245if test -n "$ac_tool_prefix"; then
5246 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5247set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249$as_echo_n "checking for $ac_word... " >&6; }
5250if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5305be7e
RG
5252else
5253 if test -n "$GNATMAKE"; then
5254 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5255else
1c710c3c
DJ
5256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257for as_dir in $PATH
5258do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5213506e
RW
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5263 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5265 break 2
5266 fi
5267done
5213506e
RW
5268 done
5269IFS=$as_save_IFS
1c710c3c 5270
5305be7e
RG
5271fi
5272fi
1c710c3c 5273GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5274if test -n "$GNATMAKE"; then
5213506e
RW
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5276$as_echo "$GNATMAKE" >&6; }
5305be7e 5277else
5213506e
RW
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279$as_echo "no" >&6; }
5305be7e
RG
5280fi
5281
5213506e 5282
1c710c3c 5283fi
5305be7e 5284if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5285 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5286 # Extract the first word of "gnatmake", so it can be a program name with args.
5287set dummy gnatmake; ac_word=$2
5213506e
RW
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289$as_echo_n "checking for $ac_word... " >&6; }
5290if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5291 $as_echo_n "(cached) " >&6
5305be7e 5292else
1c710c3c
DJ
5293 if test -n "$ac_ct_GNATMAKE"; then
5294 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5295else
1c710c3c
DJ
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5213506e
RW
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5303 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5305 break 2
5306 fi
5307done
5213506e
RW
5308 done
5309IFS=$as_save_IFS
1c710c3c 5310
5305be7e
RG
5311fi
5312fi
1c710c3c
DJ
5313ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5314if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5316$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5317else
5213506e
RW
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319$as_echo "no" >&6; }
5305be7e
RG
5320fi
5321
5213506e
RW
5322 if test "x$ac_ct_GNATMAKE" = x; then
5323 GNATMAKE="no"
5324 else
5325 case $cross_compiling:$ac_tool_warned in
5326yes:)
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5329ac_tool_warned=yes ;;
5330esac
5331 GNATMAKE=$ac_ct_GNATMAKE
5332 fi
5305be7e 5333else
1c710c3c 5334 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5335fi
5336
5213506e
RW
5337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5338$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5339if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5341else
5342 cat >conftest.adb <<EOF
5343procedure conftest is begin null; end conftest;
5344EOF
5345acx_cv_cc_gcc_supports_ada=no
5346# There is a bug in old released versions of GCC which causes the
5347# driver to exit successfully when the appropriate language module
5348# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5349# Therefore we must check for the error message as well as an
5350# unsuccessful exit.
1db673ca
RO
5351# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5352# given a .adb file, but produce no object file. So we must check
5353# if an object file was really produced to guard against this.
55ffb5ed 5354errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5355if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5356 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5357fi
5358rm -f conftest.*
5359fi
5213506e
RW
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5361$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5362
7cb62ef1 5363if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5364 have_gnat=yes
5365else
5366 have_gnat=no
5367fi
5368
5213506e
RW
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5370$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5371if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5372 $as_echo_n "(cached) " >&6
a76494aa
PB
5373else
5374 echo abfoo >t1
5375 echo cdfoo >t2
5376 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5377 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5378 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5379 :
5380 else
5381 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5382 fi
5383 fi
a76494aa
PB
5384 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5385 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5386 :
a76494aa
PB
5387 else
5388 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5389 fi
5390 fi
5391 rm t1 t2
5392
5393fi
5213506e
RW
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5395$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5396do_compare="$gcc_cv_prog_cmp_skip"
5397
5398
55ffb5ed 5399
ff3ac0f4
ILT
5400# Check whether --enable-bootstrap was given.
5401if test "${enable_bootstrap+set}" = set; then :
5402 enableval=$enable_bootstrap;
5403else
5404 enable_bootstrap=default
5405fi
5406
5407
5408# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5409if test -r $srcdir/gcc/configure; then
5410 have_compiler=yes
5411else
5412 have_compiler=no
5413fi
ff3ac0f4
ILT
5414
5415case "$have_compiler:$host:$target:$enable_bootstrap" in
5416 *:*:*:no) ;;
5417
5418 # Default behavior. Enable bootstrap if we have a compiler
5419 # and we are in a native configuration.
5420 yes:$build:$build:default)
5421 enable_bootstrap=yes ;;
5422
5423 *:*:*:default)
5424 enable_bootstrap=no ;;
5425
5426 # We have a compiler and we are in a native configuration, bootstrap is ok
5427 yes:$build:$build:yes)
5428 ;;
5429
5430 # Other configurations, but we have a compiler. Assume the user knows
5431 # what he's doing.
5432 yes:*:*:yes)
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5434$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5435 ;;
5436
5437 # No compiler: if they passed --enable-bootstrap explicitly, fail
5438 no:*:*:yes)
5439 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5440
5441 # Fail if wrong command line
5442 *)
5443 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5444 ;;
5445esac
5446
46070488
JM
5447# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5448# C++98 compiler can still start the bootstrap.
5449if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5450 CXX="$CXX -std=gnu++98"
46070488
JM
5451fi
5452
592c90ff
KG
5453# Used for setting $lt_cv_objdir
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5455$as_echo_n "checking for objdir... " >&6; }
5456if test "${lt_cv_objdir+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5458else
5459 rm -f .libs 2>/dev/null
5460mkdir .libs 2>/dev/null
5461if test -d .libs; then
5462 lt_cv_objdir=.libs
5463else
5464 # MS-DOS does not allow filenames that begin with a dot.
5465 lt_cv_objdir=_libs
5466fi
5467rmdir .libs 2>/dev/null
5468fi
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5470$as_echo "$lt_cv_objdir" >&6; }
5471objdir=$lt_cv_objdir
5472
5473
5474
5475
5476
5477cat >>confdefs.h <<_ACEOF
5478#define LT_OBJDIR "$lt_cv_objdir/"
5479_ACEOF
5480
5481
5482
acd26225 5483# Check for GMP, MPFR and MPC
3a5729ea 5484gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5485gmpinc=
e69bf64b 5486have_gmp=no
acd26225
KG
5487
5488# Specify a location for mpc
5489# check for this first so it ends up on the link line before mpfr.
5490
5213506e
RW
5491# Check whether --with-mpc was given.
5492if test "${with_mpc+set}" = set; then :
5493 withval=$with_mpc;
5494fi
acd26225 5495
acd26225 5496
9965e3cd 5497# Check whether --with-mpc-include was given.
5213506e
RW
5498if test "${with_mpc_include+set}" = set; then :
5499 withval=$with_mpc_include;
5500fi
acd26225 5501
acd26225 5502
9965e3cd 5503# Check whether --with-mpc-lib was given.
5213506e
RW
5504if test "${with_mpc_lib+set}" = set; then :
5505 withval=$with_mpc_lib;
5506fi
acd26225 5507
acd26225
KG
5508
5509if test "x$with_mpc" != x; then
3a5729ea
KG
5510 gmplibs="-L$with_mpc/lib $gmplibs"
5511 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5512fi
5513if test "x$with_mpc_include" != x; then
3a5729ea 5514 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5515fi
5516if test "x$with_mpc_lib" != x; then
3a5729ea 5517 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5518fi
5519if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5520 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5521 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5522 # Do not test the mpc version. Assume that it is sufficient, since
5523 # it is in the source tree, and the library has not been built yet
5524 # but it would be included on the link line in the version check below
5525 # hence making the test fail.
3a5729ea 5526 have_gmp=yes
acd26225 5527fi
e69bf64b 5528
bebf829d
PB
5529# Specify a location for mpfr
5530# check for this first so it ends up on the link line before gmp.
1c710c3c 5531
5213506e
RW
5532# Check whether --with-mpfr-dir was given.
5533if test "${with_mpfr_dir+set}" = set; then :
5534 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5535Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5536fi
5537
bebf829d
PB
5538
5539
5213506e
RW
5540# Check whether --with-mpfr was given.
5541if test "${with_mpfr+set}" = set; then :
5542 withval=$with_mpfr;
5543fi
1c710c3c 5544
bebf829d 5545
9965e3cd 5546# Check whether --with-mpfr-include was given.
5213506e
RW
5547if test "${with_mpfr_include+set}" = set; then :
5548 withval=$with_mpfr_include;
5549fi
1c710c3c 5550
8a877c9c 5551
9965e3cd 5552# Check whether --with-mpfr-lib was given.
5213506e
RW
5553if test "${with_mpfr_lib+set}" = set; then :
5554 withval=$with_mpfr_lib;
5555fi
8a877c9c 5556
bebf829d
PB
5557
5558if test "x$with_mpfr" != x; then
5559 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5560 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5561fi
8a877c9c 5562if test "x$with_mpfr_include" != x; then
3a5729ea 5563 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5564fi
5565if test "x$with_mpfr_lib" != x; then
5566 gmplibs="-L$with_mpfr_lib $gmplibs"
5567fi
e69bf64b 5568if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5569 # MPFR v3.1.0 moved the sources into a src sub-directory.
5570 if ! test -d ${srcdir}/mpfr/src; then
5571 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5572 fi
00f35794
BE
5573 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5574 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5575 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5576 # Do not test the mpfr version. Assume that it is sufficient, since
5577 # it is in the source tree, and the library has not been built yet
5578 # but it would be included on the link line in the version check below
5579 # hence making the test fail.
5580 have_gmp=yes
5581fi
bebf829d 5582
6de9cd9a 5583# Specify a location for gmp
1c710c3c 5584
5213506e
RW
5585# Check whether --with-gmp-dir was given.
5586if test "${with_gmp_dir+set}" = set; then :
5587 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5588Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5589fi
5590
6de9cd9a 5591
6de9cd9a 5592
5213506e
RW
5593# Check whether --with-gmp was given.
5594if test "${with_gmp+set}" = set; then :
5595 withval=$with_gmp;
5596fi
1c710c3c 5597
6de9cd9a 5598
9965e3cd 5599# Check whether --with-gmp-include was given.
5213506e
RW
5600if test "${with_gmp_include+set}" = set; then :
5601 withval=$with_gmp_include;
5602fi
1c710c3c 5603
8a877c9c 5604
9965e3cd 5605# Check whether --with-gmp-lib was given.
5213506e
RW
5606if test "${with_gmp_lib+set}" = set; then :
5607 withval=$with_gmp_lib;
5608fi
8a877c9c
KG
5609
5610
6de9cd9a 5611
bebf829d
PB
5612if test "x$with_gmp" != x; then
5613 gmplibs="-L$with_gmp/lib $gmplibs"
5614 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5615fi
8a877c9c
KG
5616if test "x$with_gmp_include" != x; then
5617 gmpinc="-I$with_gmp_include $gmpinc"
5618fi
5619if test "x$with_gmp_lib" != x; then
5620 gmplibs="-L$with_gmp_lib $gmplibs"
5621fi
e69bf64b 5622if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5623 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5624 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5625 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5626 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5627 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5628 # Do not test the gmp version. Assume that it is sufficient, since
5629 # it is in the source tree, and the library has not been built yet
5630 # but it would be included on the link line in the version check below
5631 # hence making the test fail.
5632 have_gmp=yes
5633fi
6de9cd9a 5634
d943d7c4 5635if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5636 have_gmp=yes
5637 saved_CFLAGS="$CFLAGS"
5638 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5639 # Check for the recommended and required versions of GMP.
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5641$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5642
5643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5644/* end confdefs.h. */
5645#include "gmp.h"
5646int
5647main ()
5648{
5649
5650 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5651 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5652 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5653 choke me
5654 #endif
5655
5656 ;
5657 return 0;
5658}
5659_ACEOF
5660if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5662/* end confdefs.h. */
362c6d2f 5663#include <gmp.h>
1c710c3c
DJ
5664int
5665main ()
5666{
6de9cd9a 5667
362c6d2f
KG
5668 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5669 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5670 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5671 choke me
5672 #endif
1c710c3c
DJ
5673
5674 ;
5675 return 0;
5676}
5677_ACEOF
5213506e
RW
5678if ac_fn_c_try_compile "$LINENO"; then :
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5680$as_echo "yes" >&6; }
362c6d2f
KG
5681else
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5683$as_echo "buggy but acceptable" >&6; }
5684fi
5685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5686else
5213506e
RW
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5689fi
5213506e 5690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5691
acd26225 5692 # If we have GMP, check the MPFR version.
e69bf64b 5693 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5694 # Check for the recommended and required versions of MPFR.
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5696$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5698/* end confdefs.h. */
70ec446f 5699#include <gmp.h>
e69bf64b 5700 #include <mpfr.h>
1c710c3c
DJ
5701int
5702main ()
5703{
e48d66a9 5704
f7d6bc01 5705 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5706 choke me
5707 #endif
1c710c3c
DJ
5708
5709 ;
5710 return 0;
5711}
5712_ACEOF
5213506e
RW
5713if ac_fn_c_try_compile "$LINENO"; then :
5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5715/* end confdefs.h. */
a3993f33 5716#include <gmp.h>
e69bf64b 5717 #include <mpfr.h>
1c710c3c
DJ
5718int
5719main ()
5720{
a3993f33 5721
362c6d2f 5722 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5723 choke me
5724 #endif
acd26225
KG
5725
5726 ;
5727 return 0;
5728}
5729_ACEOF
5213506e
RW
5730if ac_fn_c_try_compile "$LINENO"; then :
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5732$as_echo "yes" >&6; }
acd26225 5733else
5213506e
RW
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5735$as_echo "buggy but acceptable" >&6; }
acd26225 5736fi
5213506e 5737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5738else
5213506e
RW
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740$as_echo "no" >&6; }; have_gmp=no
acd26225 5741fi
5213506e 5742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5743 fi
5744
5745 # Check for the MPC header version.
3a5729ea 5746 if test x"$have_gmp" = xyes ; then
362c6d2f 5747 # Check for the recommended and required versions of MPC.
5213506e
RW
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5749$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5751/* end confdefs.h. */
5752#include <mpc.h>
5753int
5754main ()
5755{
5756
362c6d2f
KG
5757 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5758 choke me
5759 #endif
5760
5761 ;
5762 return 0;
5763}
5764_ACEOF
5765if ac_fn_c_try_compile "$LINENO"; then :
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h. */
5768#include <mpc.h>
5769int
5770main ()
5771{
5772
5773 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5774 choke me
5775 #endif
5776
5777 ;
5778 return 0;
5779}
5780_ACEOF
5213506e
RW
5781if ac_fn_c_try_compile "$LINENO"; then :
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5783$as_echo "yes" >&6; }
362c6d2f
KG
5784else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5786$as_echo "buggy but acceptable" >&6; }
5787fi
5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5789else
5213506e 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5791$as_echo "no" >&6; }; have_gmp=no
acd26225 5792fi
5213506e 5793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5794 fi
5795
5796 # Now check the MPFR library.
5797 if test x"$have_gmp" = xyes; then
5798 saved_LIBS="$LIBS"
5799 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5801$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5803/* end confdefs.h. */
3a5729ea 5804#include <mpc.h>
acd26225
KG
5805int
5806main ()
5807{
5808
5809 mpfr_t n;
5810 mpfr_t x;
3a5729ea 5811 mpc_t c;
acd26225
KG
5812 int t;
5813 mpfr_init (n);
5814 mpfr_init (x);
5815 mpfr_atan2 (n, n, x, GMP_RNDN);
5816 mpfr_erfc (n, x, GMP_RNDN);
5817 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5818 mpfr_clear(n);
5819 mpfr_clear(x);
5820 mpc_init2 (c, 53);
5821 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5822 mpc_cosh (c, c, MPC_RNDNN);
5823 mpc_pow (c, c, c, MPC_RNDNN);
5824 mpc_acosh (c, c, MPC_RNDNN);
5825 mpc_clear (c);
1c710c3c
DJ
5826
5827 ;
5828 return 0;
5829}
5830_ACEOF
5213506e
RW
5831if ac_fn_c_try_link "$LINENO"; then :
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5833$as_echo "yes" >&6; }
1c710c3c 5834else
5213506e
RW
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5837fi
5213506e
RW
5838rm -f core conftest.err conftest.$ac_objext \
5839 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5840 LIBS="$saved_LIBS"
5841 fi
5842
e69bf64b 5843 CFLAGS="$saved_CFLAGS"
6de9cd9a 5844
362c6d2f
KG
5845# The library versions listed in the error message below should match
5846# the HARD-minimums enforced above.
e69bf64b 5847 if test x$have_gmp != xyes; then
f7d6bc01 5848 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5849Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5850their locations. Source code for these libraries can be found at
5851their respective hosting sites as well as at
5852ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5853http://gcc.gnu.org/install/prerequisites.html for additional info. If
5854you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5855make sure that you have installed both the libraries and the header
5856files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5857 fi
70ec446f
KG
5858fi
5859
acd26225
KG
5860# Flags needed for both GMP, MPFR and/or MPC.
5861
5862
6de9cd9a
DN
5863
5864
5865
9e3eba15 5866
0ff2d841 5867
0b21f5d3 5868# Libraries to use for stage1 or when not bootstrapping.
00020c16 5869
0b21f5d3
EB
5870# Check whether --with-stage1-libs was given.
5871if test "${with_stage1_libs+set}" = set; then :
5872 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5873 stage1_libs=
00020c16 5874 else
0b21f5d3 5875 stage1_libs=$withval
00020c16
ILT
5876 fi
5877else
5dc85f7e 5878 stage1_libs=
5213506e
RW
5879fi
5880
00020c16
ILT
5881
5882
0b21f5d3 5883# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5884
0b21f5d3
EB
5885# Check whether --with-stage1-ldflags was given.
5886if test "${with_stage1_ldflags+set}" = set; then :
5887 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5888 stage1_ldflags=
00020c16 5889 else
0b21f5d3 5890 stage1_ldflags=$withval
00020c16
ILT
5891 fi
5892else
0b21f5d3
EB
5893 stage1_ldflags=
5894 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5895 # if supported. But if the user explicitly specified the libraries to use,
5896 # trust that they are doing what they want.
5897 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5898 stage1_ldflags="-static-libstdc++ -static-libgcc"
5899 fi
5213506e
RW
5900fi
5901
00020c16
ILT
5902
5903
5dc85f7e 5904# Libraries to use for stage2 and later builds.
00020c16 5905
5213506e
RW
5906# Check whether --with-boot-libs was given.
5907if test "${with_boot_libs+set}" = set; then :
5908 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5909 poststage1_libs=
5910 else
5911 poststage1_libs=$withval
5912 fi
5913else
5dc85f7e 5914 poststage1_libs=
5213506e
RW
5915fi
5916
00020c16
ILT
5917
5918
ed2eaa9f
ILT
5919# Linker flags to use for stage2 and later builds.
5920
5921# Check whether --with-boot-ldflags was given.
5922if test "${with_boot_ldflags+set}" = set; then :
5923 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5924 poststage1_ldflags=
5925 else
5926 poststage1_ldflags=$withval
5927 fi
5928else
5929 poststage1_ldflags=
bec93d73
ILT
5930 # In stages 2 and 3, default to linking libstdc++ and libgcc
5931 # statically. But if the user explicitly specified the libraries to
5932 # use, trust that they are doing what they want.
5933 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5934 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5935 fi
5936fi
5937
5938
5939
e357a5e0 5940# GCC GRAPHITE dependency isl.
4a9bb2aa 5941# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5942
5943
33ad93b9
RG
5944# Check whether --with-isl was given.
5945if test "${with_isl+set}" = set; then :
5946 withval=$with_isl;
5213506e 5947fi
f8bf9252 5948
f8bf9252 5949
eae1a5d4 5950# Treat --without-isl as a request to disable
625afa23 5951# GRAPHITE support and skip all following checks.
eae1a5d4 5952if test "x$with_isl" != "xno"; then
e357a5e0 5953 # Check for isl
625afa23
RG
5954
5955
33ad93b9
RG
5956# Check whether --with-isl-include was given.
5957if test "${with_isl_include+set}" = set; then :
5958 withval=$with_isl_include;
5213506e
RW
5959fi
5960
f8bf9252 5961
33ad93b9
RG
5962# Check whether --with-isl-lib was given.
5963if test "${with_isl_lib+set}" = set; then :
5964 withval=$with_isl_lib;
5213506e 5965fi
f8bf9252 5966
f8bf9252 5967
33ad93b9
RG
5968 # Check whether --enable-isl-version-check was given.
5969if test "${enable_isl_version_check+set}" = set; then :
5970 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5971else
5972 ENABLE_ISL_CHECK=yes
7d32a440
SP
5973fi
5974
5975
33ad93b9
RG
5976 # Initialize isllibs and islinc.
5977 case $with_isl in
5978 no)
5979 isllibs=
5980 islinc=
5981 ;;
5982 "" | yes)
5983 ;;
5984 *)
5985 isllibs="-L$with_isl/lib"
5986 islinc="-I$with_isl/include"
5987 ;;
5988 esac
5989 if test "x${with_isl_include}" != x ; then
5990 islinc="-I$with_isl_include"
5991 fi
5992 if test "x${with_isl_lib}" != x; then
5993 isllibs="-L$with_isl_lib"
5994 fi
5995 if test "x${islinc}" = x && test "x${isllibs}" = x \
5996 && test -d ${srcdir}/isl; then
5997 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5998 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5999 ENABLE_ISL_CHECK=no
560d18d3
AK
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6001$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 6002 fi
7d32a440 6003
eae1a5d4
RG
6004 isllibs="${isllibs} -lisl"
6005
7d32a440 6006
7d32a440 6007
9847828b
RB
6008 if test "${ENABLE_ISL_CHECK}" = yes ; then
6009 _isl_saved_CFLAGS=$CFLAGS
6010 _isl_saved_LDFLAGS=$LDFLAGS
6011 _isl_saved_LIBS=$LIBS
6012
6013 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
6014 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6015 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 6016
c661a43d
SP
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6018$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
e0c0c325 6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6020/* end confdefs.h. */
560d18d3 6021#include <isl/ctx.h>
622dbadf
BC
6022int
6023main ()
6024{
560d18d3 6025isl_ctx_get_max_operations (isl_ctx_alloc ());
622dbadf
BC
6026 ;
6027 return 0;
6028}
6029_ACEOF
6030if ac_fn_c_try_link "$LINENO"; then :
9847828b 6031 gcc_cv_isl=yes
622dbadf
BC
6032else
6033 gcc_cv_isl=no
6034fi
6035rm -f core conftest.err conftest.$ac_objext \
6036 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6038$as_echo "$gcc_cv_isl" >&6; }
6039
560d18d3 6040 if test "${gcc_cv_isl}" = no ; then
c661a43d
SP
6041 { $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
6042$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
560d18d3
AK
6043 fi
6044
c661a43d
SP
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6046$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
1e050c90
AK
6047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048/* end confdefs.h. */
6049#include <isl/schedule.h>
6050int
6051main ()
6052{
6053isl_options_set_schedule_serialize_sccs (NULL, 0);
6054 ;
6055 return 0;
6056}
6057_ACEOF
6058if ac_fn_c_try_link "$LINENO"; then :
6059 ac_has_isl_options_set_schedule_serialize_sccs=yes
6060else
6061 ac_has_isl_options_set_schedule_serialize_sccs=no
6062fi
6063rm -f core conftest.err conftest.$ac_objext \
6064 conftest$ac_exeext conftest.$ac_ext
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6066$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6067
6068 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6069 islver="0.15"
6070
6071 fi
6072
9847828b
RB
6073 CFLAGS=$_isl_saved_CFLAGS
6074 LDFLAGS=$_isl_saved_LDFLAGS
6075 LIBS=$_isl_saved_LIBS
6076 fi
6077
6078
f8bf9252 6079
f8bf9252 6080
33ad93b9
RG
6081
6082
33ad93b9
RG
6083 if test "x${with_isl}" = xno; then
6084 graphite_requested=no
6085 elif test "x${with_isl}" != x \
6086 || test "x${with_isl_include}" != x \
6087 || test "x${with_isl_lib}" != x ; then
6088 graphite_requested=yes
6089 else
6090 graphite_requested=no
7d32a440 6091 fi
d789184e 6092
d789184e
SP
6093
6094
33ad93b9
RG
6095 if test "${gcc_cv_isl}" = no ; then
6096 isllibs=
6097 islinc=
6098 fi
6099
6100 if test "${graphite_requested}" = yes \
6101 && test "x${isllibs}" = x \
6102 && test "x${islinc}" = x ; then
f8bf9252 6103
e357a5e0 6104 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6105 fi
f8bf9252 6106
d32ef397 6107
d32ef397
AS
6108fi
6109
e357a5e0 6110# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6111if test "x$with_isl" = xno ||
625afa23 6112 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6113 noconfigdirs="$noconfigdirs isl"
625afa23 6114 islinc=
32d024bf
RG
6115fi
6116
625afa23
RG
6117
6118
6119
d7f09764
DN
6120# Check for LTO support.
6121# Check whether --enable-lto was given.
6122if test "${enable_lto+set}" = set; then :
6123 enableval=$enable_lto; enable_lto=$enableval
6124else
6125 enable_lto=yes; default_enable_lto=yes
6126fi
6127
6128
7413962d 6129
9a02962b
DK
6130
6131
6132target_elf=no
6133case $target in
6134 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6135 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
3e326935 6136 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
8ae12d71 6137 nvptx-*-none)
9a02962b
DK
6138 target_elf=no
6139 ;;
6140 *)
6141 target_elf=yes
6142 ;;
6143esac
6144
6145if test $target_elf = yes; then :
48215350
DK
6146 # ELF platforms build the lto-plugin always.
6147 build_lto_plugin=yes
9a02962b 6148
9a02962b
DK
6149else
6150 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6151 case $target in
9e530bcd 6152 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6153 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6154 *) enable_lto=no ;;
6155 esac
9a02962b 6156 else
db50fe7d
IS
6157 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6158 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6159 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6160 # warn during gcc/ subconfigure; unless you're bootstrapping with
6161 # -flto it won't be needed until after installation anyway.
6162 case $target in
9e530bcd 6163 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b
DK
6164 *) if test x"$enable_lto" = x"yes"; then
6165 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6166 fi
6167 ;;
6168 esac
6169 fi
1cd0b716 6170 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6171 # Build it unless LTO was explicitly disabled.
1cd0b716 6172 case $target in
48215350 6173 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6174 *) ;;
6175 esac
48215350 6176
9a02962b
DK
6177fi
6178
d7f09764 6179
45b3824d
TS
6180# Check whether --enable-linker-plugin-configure-flags was given.
6181if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6182 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6183else
6184 extra_linker_plugin_configure_flags=
6185fi
6186
6187
6188# Check whether --enable-linker-plugin-flags was given.
6189if test "${enable_linker_plugin_flags+set}" = set; then :
6190 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6191else
6192 extra_linker_plugin_flags=
6193fi
6194
6195
6196
f8bf9252 6197
0823efed 6198# By default, C and C++ are the only stage 1 languages.
e1888513 6199stage1_languages=,c,
2805b53a 6200
00020c16 6201# Target libraries that we bootstrap.
ad1e5170 6202bootstrap_target_libs=,target-libgcc,
00020c16 6203
55ffb5ed
NN
6204# Figure out what language subdirectories are present.
6205# Look if the user specified --enable-languages="..."; if not, use
6206# the environment variable $LANGUAGES if defined. $LANGUAGES might
6207# go away some day.
6208# NB: embedded tabs in this IF block -- do not untabify
6209if test -d ${srcdir}/gcc; then
6210 if test x"${enable_languages+set}" != xset; then
6211 if test x"${LANGUAGES+set}" = xset; then
6212 enable_languages="${LANGUAGES}"
6b1786aa 6213 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed
NN
6214 else
6215 enable_languages=all
6216 fi
6217 else
6218 if test x"${enable_languages}" = x ||
6219 test x"${enable_languages}" = xyes;
6220 then
6b1786aa 6221 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6222 exit 1
6223 fi
6224 fi
6225 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6226
7f26dfa3
FXC
6227 # 'f95' is the old name for the 'fortran' language. We issue a warning
6228 # and make the substitution.
6229 case ,${enable_languages}, in
6230 *,f95,*)
6b1786aa 6231 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6232 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6233 ;;
6234 esac
6235
0823efed
DN
6236 # If bootstrapping, C++ must be enabled.
6237 case ",$enable_languages,:$enable_bootstrap" in
6238 *,c++,*:*) ;;
6239 *:yes)
ff3ac0f4
ILT
6240 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6241 enable_languages="${enable_languages},c++"
6242 else
0823efed 6243 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6244 fi
6245 ;;
6246 esac
6247
55ffb5ed
NN
6248 # First scan to see if an enabled language requires some other language.
6249 # We assume that a given config-lang.in will list all the language
6250 # front ends it requires, even if some are required indirectly.
6251 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6252 case ${lang_frag} in
6253 ..) ;;
6254 # The odd quoting in the next line works around
6255 # an apparent bug in bash 1.12 on linux.
6256 ${srcdir}/gcc/[*]/config-lang.in) ;;
6257 *)
69ecd18f
ILT
6258 # From the config-lang.in, get $language, $lang_requires, and
6259 # $lang_requires_boot_languages.
55ffb5ed
NN
6260 language=
6261 lang_requires=
69ecd18f 6262 lang_requires_boot_languages=
55ffb5ed 6263 . ${lang_frag}
69ecd18f 6264 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6265 case ,${enable_languages}, in
6266 *,$other,*) ;;
6267 *,all,*) ;;
6268 *,$language,*)
6269 echo " \`$other' language required by \`$language'; enabling" 1>&2
6270 enable_languages="${enable_languages},${other}"
6271 ;;
6272 esac
6273 done
69ecd18f
ILT
6274 for other in ${lang_requires_boot_languages} ; do
6275 if test "$other" != "c"; then
6276 case ,${enable_stage1_languages}, in
6277 *,$other,*) ;;
6278 *,all,*) ;;
6279 *)
6280 case ,${enable_languages}, in
6281 *,$language,*)
6282 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6283 enable_stage1_languages="$enable_stage1_languages,${other}"
6284 ;;
6285 esac
6286 ;;
6287 esac
6288 fi
6289 done
55ffb5ed
NN
6290 ;;
6291 esac
6292 done
6293
e1888513 6294 new_enable_languages=,c,
d7f09764
DN
6295
6296 # If LTO is enabled, add the LTO front end.
d7f09764 6297 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6298 case ,${enable_languages}, in
6299 *,lto,*) ;;
6300 *) enable_languages="${enable_languages},lto" ;;
6301 esac
1cd0b716 6302 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6303 configdirs="$configdirs lto-plugin"
d7f09764
DN
6304 fi
6305 fi
6306
426c1eb0
TS
6307 # If we're building an offloading compiler, add the LTO front end.
6308 if test x"$enable_as_accelerator_for" != x ; then
6309 case ,${enable_languages}, in
6310 *,lto,*) ;;
6311 *) enable_languages="${enable_languages},lto" ;;
6312 esac
6313 fi
6314
55ffb5ed 6315 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6316 potential_languages=,c,
55ffb5ed 6317
4da3b0f8
ILT
6318 enabled_target_libs=
6319 disabled_target_libs=
6320
55ffb5ed
NN
6321 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6322 case ${lang_frag} in
6323 ..) ;;
6324 # The odd quoting in the next line works around
6325 # an apparent bug in bash 1.12 on linux.
6326 ${srcdir}/gcc/[*]/config-lang.in) ;;
6327 *)
1c710c3c 6328 # From the config-lang.in, get $language, $target_libs,
2805b53a 6329 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6330 language=
6331 target_libs=
6332 lang_dirs=
1546bb64 6333 subdir_requires=
e1888513
PB
6334 boot_language=no
6335 build_by_default=yes
55ffb5ed 6336 . ${lang_frag}
e1888513
PB
6337 if test x${language} = x; then
6338 echo "${lang_frag} doesn't set \$language." 1>&2
6339 exit 1
6340 fi
6341
78767fd9 6342 if test "$language" = "c++"; then
0823efed 6343 boot_language=yes
00020c16
ILT
6344 fi
6345
178f875a 6346 add_this_lang=no
e1888513
PB
6347 case ,${enable_languages}, in
6348 *,${language},*)
d4a10d0a
SB
6349 # Language was explicitly selected; include it
6350 # unless it is C, which is enabled by default.
6351 if test "$language" != "c"; then
6352 add_this_lang=yes
6353 fi
55ffb5ed 6354 ;;
e1888513
PB
6355 *,all,*)
6356 # 'all' was selected, select it if it is a default language
178f875a
JM
6357 if test "$language" != "c"; then
6358 add_this_lang=${build_by_default}
6359 fi
55ffb5ed
NN
6360 ;;
6361 esac
6de9cd9a 6362
1546bb64 6363 # Disable languages that need other directories if these aren't available.
95695ad3 6364 for i in $subdir_requires; do
b6348cb3 6365 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6366 case ,${enable_languages}, in
6367 *,${language},*)
6368 # Specifically requested language; tell them.
5213506e 6369 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6370 ;;
6371 *)
6372 # Silently disable.
e1888513 6373 add_this_lang=unsupported
1546bb64
PB
6374 ;;
6375 esac
6376 done
6377
e1888513
PB
6378 # Disable Ada if no preexisting GNAT is available.
6379 case ,${enable_languages},:${language}:${have_gnat} in
6380 *,${language},*:ada:no)
6381 # Specifically requested language; tell them.
5213506e 6382 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6383 ;;
6384 *:ada:no)
6385 # Silently disable.
6386 add_this_lang=unsupported
6387 ;;
6388 esac
6389
4fab7234
HPN
6390 # Disable a language that is unsupported by the target.
6391 case " $unsupported_languages " in
6392 *" $language "*)
e1888513 6393 add_this_lang=unsupported
4fab7234
HPN
6394 ;;
6395 esac
6396
6de9cd9a 6397 case $add_this_lang in
e1888513 6398 unsupported)
55ffb5ed 6399 # Remove language-dependent dirs.
4da3b0f8
ILT
6400 disabled_target_libs="$disabled_target_libs $target_libs"
6401 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6402 ;;
e1888513
PB
6403 no)
6404 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6405 disabled_target_libs="$disabled_target_libs $target_libs"
6406 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6407 potential_languages="${potential_languages}${language},"
6408 ;;
6409 yes)
6410 new_enable_languages="${new_enable_languages}${language},"
6411 potential_languages="${potential_languages}${language},"
2805b53a 6412 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6413 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6414 case "${boot_language}:,$enable_stage1_languages," in
6415 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6416 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6417 case ",$stage1_languages," in
6418 *,$language,* | ,yes, | ,all,) ;;
6419 *) stage1_languages="${stage1_languages}${language}," ;;
6420 esac
00020c16
ILT
6421 # We need to bootstrap any supporting libraries.
6422 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6423 ;;
6424 esac
6425 ;;
55ffb5ed
NN
6426 esac
6427 ;;
6428 esac
6429 done
6430
4da3b0f8
ILT
6431 # Add target libraries which are only needed for disabled languages
6432 # to noconfigdirs.
6433 if test -n "$disabled_target_libs"; then
6434 for dir in $disabled_target_libs; do
6435 case " $enabled_target_libs " in
6436 *" ${dir} "*) ;;
6437 *) noconfigdirs="$noconfigdirs $dir" ;;
6438 esac
6439 done
6440 fi
6441
5213506e
RW
6442 # Check whether --enable-stage1-languages was given.
6443if test "${enable_stage1_languages+set}" = set; then :
6444 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6445 ,no,|,,)
6446 # Set it to something that will have no effect in the loop below
6447 enable_stage1_languages=c ;;
6448 ,yes,)
6449 enable_stage1_languages=`echo $new_enable_languages | \
6450 sed -e "s/^,//" -e "s/,$//" ` ;;
6451 *,all,*)
6452 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6453 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6454 esac
6455
6456 # Add "good" languages from enable_stage1_languages to stage1_languages,
6457 # while "bad" languages go in missing_languages. Leave no duplicates.
6458 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6459 case $potential_languages in
6460 *,$i,*)
6461 case $stage1_languages in
6462 *,$i,*) ;;
6463 *) stage1_languages="$stage1_languages$i," ;;
6464 esac ;;
6465 *)
6466 case $missing_languages in
6467 *,$i,*) ;;
6468 *) missing_languages="$missing_languages$i," ;;
6469 esac ;;
6470 esac
6471 done
5213506e
RW
6472fi
6473
e1888513
PB
6474
6475 # Remove leading/trailing commas that were added for simplicity
6476 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6477 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6478 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6479 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6480
55ffb5ed 6481 if test "x$missing_languages" != x; then
5213506e 6482 as_fn_error "
0cf085e4 6483The following requested languages could not be built: ${missing_languages}
5213506e 6484Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6485 fi
55ffb5ed
NN
6486 if test "x$new_enable_languages" != "x$enable_languages"; then
6487 echo The following languages will be built: ${new_enable_languages}
e1888513 6488 enable_languages="$new_enable_languages"
55ffb5ed 6489 fi
e1888513 6490
1c710c3c 6491
b2eaac4a 6492 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6493fi
6494
27079765
AH
6495# Handle --disable-<component> generically.
6496for dir in $configdirs $build_configdirs $target_configdirs ; do
6497 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6498 varname=`echo $dirname | sed -e s/+/_/g`
6499 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6500 noconfigdirs="$noconfigdirs $dir"
6501 fi
6502done
6503
7cd0cf9c 6504# Check for Boehm's garbage collector
5213506e
RW
6505# Check whether --enable-objc-gc was given.
6506if test "${enable_objc_gc+set}" = set; then :
6507 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6508 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6509 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6510 ;;
6511esac
5213506e
RW
6512fi
6513
7cd0cf9c
DA
6514
6515# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6516case ,${enable_languages},:${enable_objc_gc} in
6517 *,objc,*:yes)
7cd0cf9c
DA
6518 # Keep target-boehm-gc if requested for Objective-C.
6519 ;;
7cd0cf9c 6520 *)
2a79fd67
DA
6521 # Otherwise remove target-boehm-gc depending on target-libjava.
6522 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6523 noconfigdirs="$noconfigdirs target-boehm-gc"
6524 fi
7cd0cf9c
DA
6525 ;;
6526esac
6527
5f520819 6528# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6529case ,${enable_languages}, in
1007a55c
JW
6530 *,c++,*)
6531 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6532 case "${noconfigdirs}" in
6533 *target-libstdc++-v3*)
6534 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6535 ;;
6536 *) ;;
6537 esac
6538 ;;
99776ebd 6539 *)
5f520819 6540 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6541 ;;
6542esac
6543
ee6a22df
L
6544# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6545# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6546# If we have the source for $noconfigdirs entries, add them to $notsupp.
6547
6548notsupp=""
6549for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6550 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6551 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6552 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6553 if test -r $srcdir/$dirname/configure ; then
6554 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6555 true
6556 else
6557 notsupp="$notsupp $dir"
6558 fi
6559 fi
6560 fi
ee6a22df
L
6561 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6562 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6563 if test -r $srcdir/$dirname/configure ; then
6564 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6565 true
6566 else
6567 notsupp="$notsupp $dir"
6568 fi
6569 fi
6570 fi
55ffb5ed
NN
6571 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6572 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6573 if test -r $srcdir/$dirname/configure ; then
6574 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6575 true
6576 else
6577 notsupp="$notsupp $dir"
6578 fi
6579 fi
6580 fi
6581done
6582
55ffb5ed
NN
6583# Quietly strip out all directories which aren't configurable in this tree.
6584# This relies on all configurable subdirectories being autoconfiscated, which
6585# is now the case.
23f6b2f9
PB
6586build_configdirs_all="$build_configdirs"
6587build_configdirs=
6588for i in ${build_configdirs_all} ; do
1c710c3c 6589 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6590 if test -f ${srcdir}/$j/configure ; then
6591 build_configdirs="${build_configdirs} $i"
6592 fi
6593done
6594
55ffb5ed
NN
6595configdirs_all="$configdirs"
6596configdirs=
6597for i in ${configdirs_all} ; do
6598 if test -f ${srcdir}/$i/configure ; then
6599 configdirs="${configdirs} $i"
6600 fi
6601done
23f6b2f9 6602
55ffb5ed
NN
6603target_configdirs_all="$target_configdirs"
6604target_configdirs=
6605for i in ${target_configdirs_all} ; do
1c710c3c 6606 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6607 if test -f ${srcdir}/$j/configure ; then
6608 target_configdirs="${target_configdirs} $i"
6609 fi
6610done
6611
f1595603
L
6612# Exclude target-zlib if target-libjava isn't built.
6613case ${target_configdirs} in
6614*target-libjava*)
6615 ;;
6616*)
6617 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6618 ;;
6619esac
6620
45b3824d
TS
6621# libiberty-linker-plugin is special: it doesn't have its own source directory,
6622# so we have to add it after the preceding checks.
6623if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6624then
6625 case " $configdirs " in
6626 *" libiberty "*)
6627 # If we can build libiberty, we can also build libiberty-linker-plugin.
6628 configdirs="$configdirs libiberty-linker-plugin"
6629 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6630 --with-libiberty=../libiberty-linker-plugin";;
6631 *)
6632 as_fn_error "libiberty missing" "$LINENO" 5;;
6633 esac
6634fi
6635
fca38047
TS
6636# Sometimes we have special requirements for the host libiberty.
6637extra_host_libiberty_configure_flags=
1c01ebf6 6638extra_host_zlib_configure_flags=
fca38047
TS
6639case " $configdirs " in
6640 *" lto-plugin "* | *" libcc1 "*)
6641 # When these are to be built as shared libraries, the same applies to
6642 # libiberty.
6643 extra_host_libiberty_configure_flags=--enable-shared
6644 ;;
1c01ebf6
L
6645 *" bfd "*)
6646 # When bfd is to be built as a shared library, the same applies to
6647 # zlib.
6648 if test "$enable_shared" = "yes"; then
6649 extra_host_zlib_configure_flags=--enable-host-shared
6650 fi
6651 ;;
fca38047
TS
6652esac
6653
6654
1c01ebf6 6655
55ffb5ed
NN
6656# Produce a warning message for the subdirs we can't configure.
6657# This isn't especially interesting in the Cygnus tree, but in the individual
6658# FSF releases, it's important to let people know when their machine isn't
6659# supported by the one or two programs in a package.
6660
6661if test -n "${notsupp}" && test -z "${norecursion}" ; then
6662 # If $appdirs is non-empty, at least one of those directories must still
6663 # be configured, or we error out. (E.g., if the gas release supports a
6664 # specified target in some subdirs but not the gas subdir, we shouldn't
6665 # pretend that all is well.)
6666 if test -n "$appdirs" ; then
6667 for dir in $appdirs ; do
6668 if test -r $dir/Makefile.in ; then
6669 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6670 appdirs=""
6671 break
6672 fi
23f6b2f9 6673 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6674 appdirs=""
6675 break
6676 fi
6677 fi
6678 done
6679 if test -n "$appdirs" ; then
6680 echo "*** This configuration is not supported by this package." 1>&2
6681 exit 1
6682 fi
6683 fi
6684 # Okay, some application will build, or we don't care to check. Still
6685 # notify of subdirs not getting built.
6686 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6687 echo " ${notsupp}" 1>&2
6688 echo " (Any other directories should still work fine.)" 1>&2
6689fi
6690
6691case "$host" in
6692 *msdosdjgpp*)
6693 enable_gdbtk=no ;;
6694esac
6695
c3a86da9
DJ
6696# To find our prefix, in gcc_cv_tool_prefix.
6697
6698# The user is always right.
6699if test "${PATH_SEPARATOR+set}" != set; then
6700 echo "#! /bin/sh" >conf$$.sh
6701 echo "exit 0" >>conf$$.sh
6702 chmod +x conf$$.sh
6703 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6704 PATH_SEPARATOR=';'
6705 else
6706 PATH_SEPARATOR=:
6707 fi
6708 rm -f conf$$.sh
6709fi
6710
6711
6712
6713if test "x$exec_prefix" = xNONE; then
6714 if test "x$prefix" = xNONE; then
6715 gcc_cv_tool_prefix=$ac_default_prefix
6716 else
6717 gcc_cv_tool_prefix=$prefix
6718 fi
6719else
6720 gcc_cv_tool_prefix=$exec_prefix
6721fi
6722
6723# If there is no compiler in the tree, use the PATH only. In any
6724# case, if there is no compiler in the tree nobody should use
6725# AS_FOR_TARGET and LD_FOR_TARGET.
6726if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6727 gcc_version=`cat $srcdir/gcc/BASE-VER`
6728 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6729 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6730 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6731 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6732 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6733 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6734else
6735 gcc_cv_tool_dirs=
6736fi
6737
6738if test x$build = x$target && test -n "$md_exec_prefix"; then
6739 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6740fi
6741
6742
6743
55ffb5ed
NN
6744copy_dirs=
6745
1c710c3c 6746
5213506e
RW
6747# Check whether --with-build-sysroot was given.
6748if test "${with_build_sysroot+set}" = set; then :
6749 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6750 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6751 fi
6752else
6753 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6754fi
526635cb
MM
6755
6756
c8aea42c 6757
5213506e
RW
6758
6759# Check whether --with-debug-prefix-map was given.
6760if test "${with_debug_prefix_map+set}" = set; then :
6761 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6762 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6763 for debug_map in $withval; do
6764 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6765 done
6766 fi
6767else
6768 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6769fi
6770
c8aea42c
PB
6771
6772
1c8bd6a3
PB
6773# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6774# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6775# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6776# We want to ensure that TARGET libraries (which we know are built with
6777# gcc) are built with "-O2 -g", so include those options when setting
6778# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6779if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6780 if test "x${is_cross_compiler}" = xyes; then
6781 CFLAGS_FOR_TARGET="-g -O2"
6782 else
6783 CFLAGS_FOR_TARGET=$CFLAGS
6784 case " $CFLAGS " in
6785 *" -O2 "*) ;;
6786 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6787 esac
6788 case " $CFLAGS " in
6789 *" -g "* | *" -g3 "*) ;;
6790 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6791 esac
6792 fi
1c8bd6a3
PB
6793fi
6794
6795
6796if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6797 if test "x${is_cross_compiler}" = xyes; then
6798 CXXFLAGS_FOR_TARGET="-g -O2"
6799 else
6800 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6801 case " $CXXFLAGS " in
6802 *" -O2 "*) ;;
6803 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6804 esac
6805 case " $CXXFLAGS " in
6806 *" -g "* | *" -g3 "*) ;;
6807 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6808 esac
6809 fi
1c8bd6a3
PB
6810fi
6811
6812
6f57bdf6
DK
6813
6814
55ffb5ed
NN
6815# Handle --with-headers=XXX. If the value is not "yes", the contents of
6816# the named directory are copied to $(tooldir)/sys-include.
6817if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6818 if test x${is_cross_compiler} = xno ; then
6819 echo 1>&2 '***' --with-headers is only supported when cross compiling
6820 exit 1
6821 fi
6822 if test x"${with_headers}" != xyes ; then
c3a86da9 6823 x=${gcc_cv_tool_prefix}
1c710c3c 6824 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6825 fi
6826fi
6827
6828# Handle --with-libs=XXX. If the value is not "yes", the contents of
6829# the name directories are copied to $(tooldir)/lib. Multiple directories
6830# are permitted.
6831if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6832 if test x${is_cross_compiler} = xno ; then
6833 echo 1>&2 '***' --with-libs is only supported when cross compiling
6834 exit 1
6835 fi
6836 if test x"${with_libs}" != xyes ; then
6837 # Copy the libraries in reverse order, so that files in the first named
6838 # library override files in subsequent libraries.
c3a86da9 6839 x=${gcc_cv_tool_prefix}
55ffb5ed 6840 for l in ${with_libs}; do
1c710c3c 6841 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6842 done
6843 fi
6844fi
6845
d7f09764 6846# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6847#
6848# This is done by determining whether or not the appropriate directory
6849# is available, and by checking whether or not specific configurations
6850# have requested that this magic not happen.
1c710c3c
DJ
6851#
6852# The command line options always override the explicit settings in
6b1786aa 6853# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6854#
1c710c3c 6855# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6856# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6857# --without-gnu-ld options for the configure script. Similarly, if
6858# the default is to use the included zlib and you don't want to do that,
6859# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6860
6861if test x${use_gnu_as} = x &&
6862 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6863 with_gnu_as=yes
6864 extra_host_args="$extra_host_args --with-gnu-as"
6865fi
6866
6867if test x${use_gnu_ld} = x &&
5afab7ad 6868 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6869 with_gnu_ld=yes
6870 extra_host_args="$extra_host_args --with-gnu-ld"
6871fi
6872
d7f09764
DN
6873if test x${use_included_zlib} = x &&
6874 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6875 :
6876else
6877 with_system_zlib=yes
6878 extra_host_args="$extra_host_args --with-system-zlib"
6879fi
6880
e8b05380
PB
6881# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6882# can detect this case.
6883
6884if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6885 with_newlib=yes
6886 extra_host_args="$extra_host_args --with-newlib"
6887fi
6888
55ffb5ed
NN
6889# Handle ${copy_dirs}
6890set fnord ${copy_dirs}
6891shift
6892while test $# != 0 ; do
6893 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6894 :
6895 else
6896 echo Copying $1 to $2
6897
6898 # Use the install script to create the directory and all required
6899 # parent directories.
6900 if test -d $2 ; then
6901 :
6902 else
6903 echo >config.temp
6904 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6905 fi
6906
6907 # Copy the directory, assuming we have tar.
6908 # FIXME: Should we use B in the second tar? Not all systems support it.
6909 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6910
6911 # It is the responsibility of the user to correctly adjust all
6912 # symlinks. If somebody can figure out how to handle them correctly
6913 # here, feel free to add the code.
6914
6915 echo $1 > $2/COPIED
6916 fi
6917 shift; shift
6918done
6919
e8b05380
PB
6920# Determine a target-dependent exec_prefix that the installed
6921# gcc will search in. Keep this list sorted by triplet, with
6922# the *-*-osname triplets last.
6923md_exec_prefix=
6924case "${target}" in
30b74385 6925 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6926 md_exec_prefix=/dev/env/DJDIR/bin
6927 ;;
e8b05380 6928 *-*-hpux* | \
e8b05380 6929 *-*-nto-qnx* | \
6de66370 6930 *-*-solaris2*)
e8b05380
PB
6931 md_exec_prefix=/usr/ccs/bin
6932 ;;
6933esac
6934
671aa708
NN
6935extra_arflags_for_target=
6936extra_nmflags_for_target=
6937extra_ranlibflags_for_target=
6938target_makefile_frag=/dev/null
6939case "${target}" in
58e24147
AM
6940 spu-*-*)
6941 target_makefile_frag="config/mt-spu"
6942 ;;
d896cc4d 6943 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6944 target_makefile_frag="config/mt-sde"
6945 ;;
1ec3b87b
RS
6946 mipsisa*-*-elfoabi*)
6947 target_makefile_frag="config/mt-mips-elfoabi"
6948 ;;
08d0963a
RS
6949 mips*-*-*linux* | mips*-*-gnu*)
6950 target_makefile_frag="config/mt-mips-gnu"
6951 ;;
707f1839
SL
6952 nios2-*-elf*)
6953 target_makefile_frag="config/mt-nios2-elf"
6954 ;;
416ac4d4 6955 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6956 target_makefile_frag="config/mt-gnu"
671aa708
NN
6957 ;;
6958 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6959 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6960 # commands to handle both 32-bit and 64-bit objects. These flags are
6961 # harmless if we're using GNU nm or ar.
6962 extra_arflags_for_target=" -X32_64"
6963 extra_nmflags_for_target=" -B -X32_64"
6964 ;;
671aa708
NN
6965esac
6966
6967alphaieee_frag=/dev/null
6968case $target in
6969 alpha*-*-*)
6970 # This just makes sure to use the -mieee option to build target libs.
6971 # This should probably be set individually by each library.
6972 alphaieee_frag="config/mt-alphaieee"
6973 ;;
6974esac
6975
6976# If --enable-target-optspace always use -Os instead of -O2 to build
6977# the target libraries, similarly if it is not specified, use -Os
6978# on selected platforms.
6979ospace_frag=/dev/null
6980case "${enable_target_optspace}:${target}" in
6981 yes:*)
6982 ospace_frag="config/mt-ospace"
6983 ;;
6984 :d30v-*)
6985 ospace_frag="config/mt-d30v"
6986 ;;
d9063947 6987 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
6988 ospace_frag="config/mt-ospace"
6989 ;;
6990 no:* | :*)
6991 ;;
6992 *)
6993 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6994 ;;
6995esac
6996
671aa708
NN
6997# Some systems (e.g., one of the i386-aix systems the gas testers are
6998# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6999tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7000build_tooldir=${tooldir}
7001
671aa708
NN
7002# Create a .gdbinit file which runs the one in srcdir
7003# and tells GDB to look there for source files.
7004
7005if test -r ${srcdir}/.gdbinit ; then
7006 case ${srcdir} in
7007 .) ;;
7008 *) cat > ./.gdbinit <<EOF
7009# ${NO_EDIT}
7010dir ${srcdir}
7011dir .
7012source ${srcdir}/.gdbinit
7013EOF
7014 ;;
7015 esac
7016fi
7017
671aa708
NN
7018# Make sure that the compiler is able to generate an executable. If it
7019# can't, we are probably in trouble. We don't care whether we can run the
7020# executable--we might be using a cross compiler--we only care whether it
7021# can be created. At this point the main configure script has set CC.
7022we_are_ok=no
7023echo "int main () { return 0; }" > conftest.c
7024${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7025if test $? = 0 ; then
7026 if test -s conftest || test -s conftest.exe ; then
7027 we_are_ok=yes
7028 fi
1c710c3c 7029fi
671aa708
NN
7030case $we_are_ok in
7031 no)
7032 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7033 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7034 rm -f conftest*
7035 exit 1
7036 ;;
7037esac
7038rm -f conftest*
7039
d89f0ad6 7040# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7041case "${host}" in
7042 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7043 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7044 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7045 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7046esac
7047
d89f0ad6
AL
7048# On systems where the dynamic library environment variable is PATH,
7049# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7050# built executables to PATH.
7051if test "$RPATH_ENVVAR" = PATH; then
7052 GCC_SHLIB_SUBDIR=/shlib
7053else
7054 GCC_SHLIB_SUBDIR=
7055fi
7056
beeda1d9
JJ
7057# Adjust the toplevel makefile according to whether bootstrap was selected.
7058case $enable_bootstrap in
7059 yes)
7060 bootstrap_suffix=bootstrap
7061 BUILD_CONFIG=bootstrap-debug
7062 ;;
7063 no)
7064 bootstrap_suffix=no-bootstrap
7065 BUILD_CONFIG=
7066 ;;
7067esac
7068
7069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7070$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7071
7072
7073# Check whether --with-build-config was given.
7074if test "${with_build_config+set}" = set; then :
7075 withval=$with_build_config; case $with_build_config in
7076 yes) with_build_config= ;;
7077 no) with_build_config= BUILD_CONFIG= ;;
7078 esac
7079fi
7080
7081
7082if test "x${with_build_config}" != x; then
7083 BUILD_CONFIG=$with_build_config
7084else
7085 case $BUILD_CONFIG in
7086 bootstrap-debug)
7087 if echo "int f (void) { return 0; }" > conftest.c &&
7088 ${CC} -c conftest.c &&
7089 mv conftest.o conftest.o.g0 &&
7090 ${CC} -c -g conftest.c &&
7091 mv conftest.o conftest.o.g &&
7092 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7093 :
7094 else
7095 BUILD_CONFIG=
7096 fi
7097 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7098 ;;
7099 esac
7100fi
7101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7102$as_echo "$BUILD_CONFIG" >&6; }
7103
7104
7105# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7107$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7108# Check whether --enable-vtable-verify was given.
7109if test "${enable_vtable_verify+set}" = set; then :
7110 enableval=$enable_vtable_verify; case "$enableval" in
7111 yes) enable_vtable_verify=yes ;;
7112 no) enable_vtable_verify=no ;;
7113 *) enable_vtable_verify=no;;
7114 esac
7115else
7116 enable_vtable_verify=no
7117fi
7118
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7120$as_echo "$enable_vtable_verify" >&6; }
7121
671aa708
NN
7122# Record target_configdirs and the configure arguments for target and
7123# build configuration in Makefile.
7124target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7125build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7126bootstrap_fixincludes=no
671aa708 7127
ad1e5170
JR
7128# If we are building libgomp, bootstrap it.
7129if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7130 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7131fi
7132
beeda1d9
JJ
7133# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7134# or bootstrap-ubsan, bootstrap it.
7135if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7136 case "$BUILD_CONFIG" in
7137 *bootstrap-asan* | *bootstrap-ubsan* )
7138 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7139 bootstrap_fixincludes=yes
beeda1d9
JJ
7140 ;;
7141 esac
ac8701fe
L
7142fi
7143
beeda1d9
JJ
7144# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7145if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7146 test "$enable_vtable_verify" != no; then
2077db1b
CT
7147 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7148fi
7149
5373cd33
IE
7150# If we are building libmpx, bootstrap it.
7151if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7152 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7153fi
7154
671aa708
NN
7155# Determine whether gdb needs tk/tcl or not.
7156# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7157# and in that case we want gdb to be built without tk. Ugh!
7158# In fact I believe gdb is the *only* package directly dependent on tk,
7159# so we should be able to put the 'maybe's in unconditionally and
7160# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7161# 100% sure that that's safe though.
e914a571 7162
b4f96efe 7163gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7164case "$enable_gdbtk" in
7165 no)
7166 GDB_TK="" ;;
e914a571
AC
7167 yes)
7168 GDB_TK="${gdb_tk}" ;;
671aa708 7169 *)
e914a571
AC
7170 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7171 # distro. Eventually someone will fix this and move Insight, nee
7172 # gdbtk to a separate directory.
7173 if test -d ${srcdir}/gdb/gdbtk ; then
7174 GDB_TK="${gdb_tk}"
7175 else
7176 GDB_TK=""
7177 fi
7178 ;;
671aa708 7179esac
ef9db8d5
DJ
7180CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7181INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7182
60975492 7183# Strip out unwanted targets.
8b87bb96
NN
7184
7185# While at that, we remove Makefiles if we were started for recursive
7186# configuration, so that the top-level Makefile reconfigures them,
7187# like we used to do when configure itself was recursive.
8b87bb96 7188
3e54529c
RW
7189# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7190# but now we're fixing up the Makefile ourselves with the additional
7191# commands passed to AC_CONFIG_FILES. Use separate variables
7192# extrasub-{build,host,target} not because there is any reason to split
7193# the substitutions up that way, but only to remain below the limit of
7194# 99 commands in a script, for HP-UX sed.
7195# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7196
79cd2b23
RW
7197case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7198 yes:yes:*\ gold\ *:*,c++,*) ;;
7199 yes:yes:*\ gold\ *:*)
7200 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7201 ;;
7202esac
7203
3e54529c 7204extrasub_build=
23f6b2f9 7205for module in ${build_configdirs} ; do
5607edfd
PB
7206 if test -z "${no_recursion}" \
7207 && test -f ${build_subdir}/${module}/Makefile; then
7208 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7209 rm -f ${build_subdir}/${module}/Makefile
7210 fi
3e54529c 7211 extrasub_build="$extrasub_build
5607edfd
PB
7212/^@if build-$module\$/d
7213/^@endif build-$module\$/d
7214/^@if build-$module-$bootstrap_suffix\$/d
7215/^@endif build-$module-$bootstrap_suffix\$/d"
7216done
3e54529c 7217extrasub_host=
5607edfd 7218for module in ${configdirs} ; do
a6fbc1e2 7219 if test -z "${no_recursion}"; then
f063a9ed 7220 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7221 if test -f ${file}; then
7222 echo 1>&2 "*** removing ${file} to force reconfigure"
7223 rm -f ${file}
7224 fi
7225 done
5607edfd 7226 fi
9e1c8fc1
JJ
7227 case ${module},${bootstrap_fixincludes} in
7228 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7229 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7230 esac
3e54529c 7231 extrasub_host="$extrasub_host
5607edfd
PB
7232/^@if $module\$/d
7233/^@endif $module\$/d
9e1c8fc1
JJ
7234/^@if $module-$host_bootstrap_suffix\$/d
7235/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7236done
3e54529c 7237extrasub_target=
5607edfd
PB
7238for module in ${target_configdirs} ; do
7239 if test -z "${no_recursion}" \
7240 && test -f ${target_subdir}/${module}/Makefile; then
7241 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7242 rm -f ${target_subdir}/${module}/Makefile
7243 fi
00020c16
ILT
7244
7245 # We only bootstrap target libraries listed in bootstrap_target_libs.
7246 case $bootstrap_target_libs in
7247 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7248 *) target_bootstrap_suffix=no-bootstrap ;;
7249 esac
7250
3e54529c 7251 extrasub_target="$extrasub_target
5607edfd
PB
7252/^@if target-$module\$/d
7253/^@endif target-$module\$/d
00020c16
ILT
7254/^@if target-$module-$target_bootstrap_suffix\$/d
7255/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7256done
7257
3e54529c
RW
7258# Do the final fixup along with target modules.
7259extrasub_target="$extrasub_target
60975492 7260/^@if /,/^@endif /d"
671aa708
NN
7261
7262# Create the serialization dependencies. This uses a temporary file.
7263
5213506e
RW
7264# Check whether --enable-serial-configure was given.
7265if test "${enable_serial_configure+set}" = set; then :
7266 enableval=$enable_serial_configure;
7267fi
ade82b16
AO
7268
7269
bf1d3e81
NN
7270case ${enable_serial_configure} in
7271 yes)
7272 enable_serial_build_configure=yes
7273 enable_serial_host_configure=yes
7274 enable_serial_target_configure=yes
7275 ;;
7276esac
7277
671aa708
NN
7278# These force 'configure's to be done one at a time, to avoid problems
7279# with contention over a shared config.cache.
7280rm -f serdep.tmp
ade82b16 7281echo '# serdep.tmp' > serdep.tmp
671aa708 7282olditem=
bf1d3e81 7283test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7284for item in ${build_configdirs} ; do
7285 case ${olditem} in
7286 "") ;;
ade82b16 7287 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7288 esac
7289 olditem=${item}
7290done
7291olditem=
bf1d3e81 7292test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7293for item in ${configdirs} ; do
7294 case ${olditem} in
7295 "") ;;
ade82b16 7296 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7297 esac
7298 olditem=${item}
7299done
7300olditem=
bf1d3e81 7301test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7302for item in ${target_configdirs} ; do
7303 case ${olditem} in
7304 "") ;;
ade82b16 7305 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7306 esac
7307 olditem=${item}
7308done
7309serialization_dependencies=serdep.tmp
7310
7311
ade82b16 7312# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7313# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7314# might not want to pass down to subconfigures. The exception being
7315# --cache-file=/dev/null, which is used to turn off the use of cache
7316# files altogether, and which should be passed on to subconfigures.
7317# Also strip program-prefix, program-suffix, and program-transform-name,
7318# so that we can pass down a consistent program-transform-name.
1c710c3c 7319baseargs=
29a63921 7320tbaseargs=
1c710c3c
DJ
7321keep_next=no
7322skip_next=no
7323eval "set -- $ac_configure_args"
44bfc3ac
DJ
7324for ac_arg
7325do
1c710c3c
DJ
7326 if test X"$skip_next" = X"yes"; then
7327 skip_next=no
7328 continue
7329 fi
7330 if test X"$keep_next" = X"yes"; then
7331 case $ac_arg in
7332 *\'*)
7333 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7334 esac
7335 baseargs="$baseargs '$ac_arg'"
29a63921 7336 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7337 keep_next=no
7338 continue
7339 fi
7340
7341 # Handle separated arguments. Based on the logic generated by
7342 # autoconf 2.59.
7343 case $ac_arg in
7344 *=* | --config-cache | -C | -disable-* | --disable-* \
7345 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7346 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7347 | -with-* | --with-* | -without-* | --without-* | --x)
7348 separate_arg=no
7349 ;;
7350 -*)
7351 separate_arg=yes
7352 ;;
7353 *)
7354 separate_arg=no
7355 ;;
7356 esac
7357
29a63921
AO
7358 skip_targ=no
7359 case $ac_arg in
7360
7361 --with-* | --without-*)
7362 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7363
7364 case $libopt in
7365 *[-_]include)
7366 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7367 ;;
7368 *[-_]lib)
7369 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7370 ;;
7371 *)
7372 lib=$libopt
7373 ;;
7374 esac
7375
7376
7377 case $lib in
4a9bb2aa 7378 mpc | mpfr | gmp | isl)
29a63921
AO
7379 # If we're processing --with-$lib, --with-$lib-include or
7380 # --with-$lib-lib, for one of the libs above, and target is
7381 # different from host, don't pass the current argument to any
7382 # target library's configure.
7383 if test x$is_cross_compiler = xyes; then
7384 skip_targ=yes
7385 fi
7386 ;;
7387 esac
7388 ;;
7389 esac
7390
1c710c3c 7391 case "$ac_arg" in
f1a036e4
NC
7392 --cache-file=/dev/null | \
7393 -cache-file=/dev/null )
7394 # Handled here to avoid the test to skip args below.
7395 baseargs="$baseargs '$ac_arg'"
29a63921 7396 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7397 # Assert: $separate_arg should always be no.
7398 keep_next=$separate_arg
7399 ;;
1c710c3c
DJ
7400 --no*)
7401 continue
7402 ;;
7403 --c* | \
7404 --sr* | \
7405 --ho* | \
7406 --bu* | \
7407 --t* | \
7408 --program-* | \
7409 -cache_file* | \
7410 -srcdir* | \
7411 -host* | \
7412 -build* | \
7413 -target* | \
7414 -program-prefix* | \
7415 -program-suffix* | \
7416 -program-transform-name* )
7417 skip_next=$separate_arg
7418 continue
7419 ;;
7420 -*)
7421 # An option. Add it.
7422 case $ac_arg in
7423 *\'*)
7424 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7425 esac
7426 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7427 if test X"$skip_targ" = Xno; then
7428 tbaseargs="$tbaseargs '$ac_arg'"
7429 fi
1c710c3c
DJ
7430 keep_next=$separate_arg
7431 ;;
7432 *)
7433 # Either a variable assignment, or a nonopt (triplet). Don't
7434 # pass it down; let the Makefile handle this.
7435 continue
7436 ;;
7437 esac
7438done
7439# Remove the initial space we just introduced and, as these will be
7440# expanded by make, quote '$'.
7441baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7442
43bb47c2
DJ
7443# Add in --program-transform-name, after --program-prefix and
7444# --program-suffix have been applied to it. Autoconf has already
7445# doubled dollar signs and backslashes in program_transform_name; we want
7446# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7447# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7448# Also, because we want to override the logic in subdir configure scripts to
7449# choose program_transform_name, replace any s,x,x, with s,y,y,.
7450sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7451${program_transform_name}
7452EOF_SED
7453gcc_transform_name=`cat conftestsed.out`
7454rm -f conftestsed.out
7455baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7456tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7457if test "$silent" = yes; then
7458 baseargs="$baseargs --silent"
29a63921 7459 tbaseargs="$tbaseargs --silent"
d9acb717 7460fi
0115d4a3 7461baseargs="$baseargs --disable-option-checking"
29a63921 7462tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7463
ffedf511
RW
7464# Record and document user additions to sub configure arguments.
7465
7466
7467
7468
671aa708
NN
7469# For the build-side libraries, we just need to pretend we're native,
7470# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7471# desired. We can't even use the same cache file for all build-side
7472# libraries, as they're compiled differently; some with C, some with
7473# C++ or with different feature-enabling options.
7474build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7475
7476# For host modules, accept cache file option, or specification as blank.
7477case "${cache_file}" in
7478"") # empty
7479 cache_file_option="" ;;
7480/* | [A-Za-z]:[\\/]* ) # absolute path
7481 cache_file_option="--cache-file=${cache_file}" ;;
7482*) # relative path
7483 cache_file_option="--cache-file=../${cache_file}" ;;
7484esac
7485
09438bde
NN
7486# Host dirs don't like to share a cache file either, horribly enough.
7487# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7488host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7489
29a63921 7490target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7491
7492# Passing a --with-cross-host argument lets the target libraries know
7493# whether they are being built with a cross-compiler or being built
7494# native. However, it would be better to use other mechanisms to make the
7495# sorts of decisions they want to make on this basis. Please consider
7496# this option to be deprecated. FIXME.
7497if test x${is_cross_compiler} = xyes ; then
1c710c3c 7498 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7499fi
7500
79e0604d
FXC
7501# Special user-friendly check for native x86_64-linux build, if
7502# multilib is not explicitly enabled.
7503case "$target:$have_compiler:$host:$target:$enable_multilib" in
7504 x86_64-*linux*:yes:$build:$build:)
e640447c 7505 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7506 dev64=no
7507 echo "int main () { return 0; }" > conftest.c
7508 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7509 if test $? = 0 ; then
7510 if test -s conftest || test -s conftest.exe ; then
7511 dev64=yes
7512 fi
7513 fi
7514 rm -f conftest*
7515 if test x${dev64} != xyes ; then
e640447c 7516 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
79e0604d
FXC
7517 fi
7518 ;;
7519esac
7520
dc683a3f
RW
7521# Default to --enable-multilib.
7522if test x${enable_multilib} = x ; then
671aa708 7523 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7524fi
671aa708
NN
7525
7526# Pass --with-newlib if appropriate. Note that target_configdirs has
7527# changed from the earlier setting of with_newlib.
7528if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7529 target_configargs="--with-newlib ${target_configargs}"
7530fi
7531
6b9eb62c
NN
7532# Different target subdirs use different values of certain variables
7533# (notably CXX). Worse, multilibs use *lots* of different values.
7534# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7535# it doesn't automatically accept command-line overrides of them.
7536# This means it's not safe for target subdirs to share a cache file,
7537# which is disgusting, but there you have it. Hopefully this can be
7538# fixed in future. It's still worthwhile to use a cache file for each
7539# directory. I think.
7540
bebcd931
MS
7541# Pass the appropriate --build, --host, --target and --cache-file arguments.
7542# We need to pass --target, as newer autoconf's requires consistency
7543# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7544target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7545
671aa708
NN
7546FLAGS_FOR_TARGET=
7547case " $target_configdirs " in
7548 *" newlib "*)
7549 case " $target_configargs " in
7550 *" --with-newlib "*)
7551 case "$target" in
5d571eaa 7552 *-cygwin*)
443e6238 7553 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7554 ;;
671aa708
NN
7555 esac
7556
7557 # If we're not building GCC, don't discard standard headers.
7558 if test -d ${srcdir}/gcc; then
7559 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7560
7561 if test "${build}" != "${host}"; then
7562 # On Canadian crosses, CC_FOR_TARGET will have already been set
7563 # by `configure', so we won't have an opportunity to add -Bgcc/
7564 # to it. This is right: we don't want to search that directory
7565 # for binaries, but we want the header files in there, so add
7566 # them explicitly.
0463992b 7567 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7568
7569 # Someone might think of using the pre-installed headers on
7570 # Canadian crosses, in case the installed compiler is not fully
7571 # compatible with the compiler being built. In this case, it
7572 # would be better to flag an error than risking having
7573 # incompatible object files being constructed. We can't
7574 # guarantee that an error will be flagged, but let's hope the
7575 # compiler will do it, when presented with incompatible header
7576 # files.
7577 fi
7578 fi
7579
7580 case "${target}-${is_cross_compiler}" in
f2a0e225 7581 i[3456789]86-*-linux*-no)
671aa708
NN
7582 # Here host == target, so we don't need to build gcc,
7583 # so we don't want to discard standard headers.
7584 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7585 ;;
7586 *)
7587 # If we're building newlib, use its generic headers last, but search
7588 # for any libc-related directories first (so make it the last -B
7589 # switch).
7590 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7591
7592 # If we're building libgloss, find the startup file, simulator library
7593 # and linker script.
7594 case " $target_configdirs " in
7595 *" libgloss "*)
7596 # Look for startup file, simulator library and maybe linker script.
7597 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7598 # Look for libnosys.a in case the target needs it.
7599 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7600 # Most targets have the linker script in the source directory.
7601 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7602 ;;
7603 esac
671aa708
NN
7604 ;;
7605 esac
7606 ;;
7607 esac
7608 ;;
7609esac
5d571eaa 7610
b91f0a41 7611case "$target" in
5d571eaa
OS
7612 x86_64-*mingw* | *-w64-mingw*)
7613 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7614 # however, use a symlink named 'mingw' in ${prefix} .
7615 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7616 ;;
7617 *-mingw*)
7618 # MinGW can't be handled as Cygwin above since it does not use newlib.
7619 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'
7620 ;;
b91f0a41 7621esac
671aa708 7622
6691a79e
ME
7623# Allow the user to override the flags for
7624# our build compiler if desired.
f019adc1
MF
7625if test x"${build}" = x"${host}" ; then
7626 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7627 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7628 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7629fi
6691a79e 7630
671aa708
NN
7631# On Canadian crosses, we'll be searching the right directories for
7632# the previously-installed cross compiler, so don't bother to add
7633# flags for directories within the install tree of the compiler
7634# being built; programs in there won't even run.
7635if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7636 # Search for pre-installed headers if nothing else fits.
9124bc53 7637 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7638fi
7639
7640if test "x${use_gnu_ld}" = x &&
7641 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7642 # Arrange for us to find uninstalled linker scripts.
215c351a 7643 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7644fi
7645
e88a2c09
DD
7646# Search for other target-specific linker scripts and such.
7647case "${target}" in
3e19841a
PB
7648 mep*)
7649 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7650 ;;
e88a2c09
DD
7651esac
7652
671aa708 7653# Makefile fragments.
7b61653a
PE
7654for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7655do
7656 eval fragval=\$$frag
7657 if test $fragval != /dev/null; then
7658 eval $frag=${srcdir}/$fragval
7659 fi
7660done
671aa708
NN
7661
7662
7663
7664
7665
7666# Miscellanea: directories, flags, etc.
7667
7668
7669
7670
7671
7672
7673
d89f0ad6 7674
23f6b2f9 7675# Build module lists & subconfigure args.
671aa708
NN
7676
7677
7678
2abefe3d
PB
7679# Host module lists & subconfigure args.
7680
7681
7682
aae29963 7683
2abefe3d
PB
7684# Target module lists & subconfigure args.
7685
7686
7687
7688# Build tools.
7689
7690
7691
0999159b
PB
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
2abefe3d
PB
7706# Generate default definitions for YACC, M4, LEX and other programs that run
7707# on the build machine. These are used if the Makefile can't locate these
7708# programs in objdir.
7709MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7710
7711for ac_prog in 'bison -y' byacc yacc
7712do
1c710c3c 7713 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7714set dummy $ac_prog; ac_word=$2
5213506e
RW
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716$as_echo_n "checking for $ac_word... " >&6; }
7717if test "${ac_cv_prog_YACC+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
2abefe3d
PB
7719else
7720 if test -n "$YACC"; then
7721 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7722else
1c710c3c
DJ
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
5213506e
RW
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7730 ac_cv_prog_YACC="$ac_prog"
5213506e 7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7732 break 2
7733 fi
7734done
5213506e
RW
7735 done
7736IFS=$as_save_IFS
1c710c3c 7737
2abefe3d
PB
7738fi
7739fi
1c710c3c 7740YACC=$ac_cv_prog_YACC
2abefe3d 7741if test -n "$YACC"; then
5213506e
RW
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7743$as_echo "$YACC" >&6; }
2abefe3d 7744else
5213506e
RW
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746$as_echo "no" >&6; }
2abefe3d
PB
7747fi
7748
5213506e 7749
1c710c3c 7750 test -n "$YACC" && break
2abefe3d
PB
7751done
7752test -n "$YACC" || YACC="$MISSING bison -y"
7753
7754case " $build_configdirs " in
7755 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7756esac
7757
7758for ac_prog in bison
7759do
1c710c3c 7760 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7761set dummy $ac_prog; ac_word=$2
5213506e
RW
7762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763$as_echo_n "checking for $ac_word... " >&6; }
7764if test "${ac_cv_prog_BISON+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
2abefe3d
PB
7766else
7767 if test -n "$BISON"; then
7768 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7769else
1c710c3c
DJ
7770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771for as_dir in $PATH
7772do
7773 IFS=$as_save_IFS
7774 test -z "$as_dir" && as_dir=.
5213506e
RW
7775 for ac_exec_ext in '' $ac_executable_extensions; do
7776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7777 ac_cv_prog_BISON="$ac_prog"
5213506e 7778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7779 break 2
7780 fi
7781done
5213506e
RW
7782 done
7783IFS=$as_save_IFS
1c710c3c 7784
2abefe3d
PB
7785fi
7786fi
1c710c3c 7787BISON=$ac_cv_prog_BISON
2abefe3d 7788if test -n "$BISON"; then
5213506e
RW
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7790$as_echo "$BISON" >&6; }
2abefe3d 7791else
5213506e
RW
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793$as_echo "no" >&6; }
2abefe3d
PB
7794fi
7795
5213506e 7796
1c710c3c 7797 test -n "$BISON" && break
2abefe3d
PB
7798done
7799test -n "$BISON" || BISON="$MISSING bison"
7800
7801case " $build_configdirs " in
7802 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7803esac
7804
7805for ac_prog in gm4 gnum4 m4
7806do
1c710c3c 7807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7808set dummy $ac_prog; ac_word=$2
5213506e
RW
7809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810$as_echo_n "checking for $ac_word... " >&6; }
7811if test "${ac_cv_prog_M4+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
2abefe3d
PB
7813else
7814 if test -n "$M4"; then
7815 ac_cv_prog_M4="$M4" # Let the user override the test.
7816else
1c710c3c
DJ
7817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818for as_dir in $PATH
7819do
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
5213506e
RW
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7824 ac_cv_prog_M4="$ac_prog"
5213506e 7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7826 break 2
7827 fi
7828done
5213506e
RW
7829 done
7830IFS=$as_save_IFS
1c710c3c 7831
2abefe3d
PB
7832fi
7833fi
1c710c3c 7834M4=$ac_cv_prog_M4
2abefe3d 7835if test -n "$M4"; then
5213506e
RW
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7837$as_echo "$M4" >&6; }
2abefe3d 7838else
5213506e
RW
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840$as_echo "no" >&6; }
2abefe3d
PB
7841fi
7842
5213506e 7843
1c710c3c 7844 test -n "$M4" && break
2abefe3d
PB
7845done
7846test -n "$M4" || M4="$MISSING m4"
7847
7848case " $build_configdirs " in
7849 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7850esac
7851
7852for ac_prog in flex lex
7853do
1c710c3c 7854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7855set dummy $ac_prog; ac_word=$2
5213506e
RW
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857$as_echo_n "checking for $ac_word... " >&6; }
7858if test "${ac_cv_prog_LEX+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
2abefe3d
PB
7860else
7861 if test -n "$LEX"; then
7862 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7863else
1c710c3c
DJ
7864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865for as_dir in $PATH
7866do
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
5213506e
RW
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7871 ac_cv_prog_LEX="$ac_prog"
5213506e 7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7873 break 2
7874 fi
7875done
5213506e
RW
7876 done
7877IFS=$as_save_IFS
1c710c3c 7878
2abefe3d
PB
7879fi
7880fi
1c710c3c 7881LEX=$ac_cv_prog_LEX
2abefe3d 7882if test -n "$LEX"; then
5213506e
RW
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7884$as_echo "$LEX" >&6; }
2abefe3d 7885else
5213506e
RW
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887$as_echo "no" >&6; }
2abefe3d
PB
7888fi
7889
5213506e 7890
1c710c3c 7891 test -n "$LEX" && break
2abefe3d
PB
7892done
7893test -n "$LEX" || LEX="$MISSING flex"
7894
7895case " $build_configdirs " in
7896 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7897 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7898esac
7899
7900for ac_prog in flex
7901do
1c710c3c 7902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7903set dummy $ac_prog; ac_word=$2
5213506e
RW
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905$as_echo_n "checking for $ac_word... " >&6; }
7906if test "${ac_cv_prog_FLEX+set}" = set; then :
7907 $as_echo_n "(cached) " >&6
2abefe3d
PB
7908else
7909 if test -n "$FLEX"; then
7910 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7911else
1c710c3c
DJ
7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
5213506e
RW
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7919 ac_cv_prog_FLEX="$ac_prog"
5213506e 7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7921 break 2
7922 fi
7923done
5213506e
RW
7924 done
7925IFS=$as_save_IFS
1c710c3c 7926
2abefe3d
PB
7927fi
7928fi
1c710c3c 7929FLEX=$ac_cv_prog_FLEX
2abefe3d 7930if test -n "$FLEX"; then
5213506e
RW
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7932$as_echo "$FLEX" >&6; }
2abefe3d 7933else
5213506e
RW
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935$as_echo "no" >&6; }
2abefe3d
PB
7936fi
7937
5213506e 7938
1c710c3c 7939 test -n "$FLEX" && break
2abefe3d
PB
7940done
7941test -n "$FLEX" || FLEX="$MISSING flex"
7942
7943case " $build_configdirs " in
7944 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7945esac
7946
7947for ac_prog in makeinfo
7948do
1c710c3c 7949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7950set dummy $ac_prog; ac_word=$2
5213506e
RW
7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7952$as_echo_n "checking for $ac_word... " >&6; }
7953if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7954 $as_echo_n "(cached) " >&6
2abefe3d
PB
7955else
7956 if test -n "$MAKEINFO"; then
7957 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7958else
1c710c3c
DJ
7959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960for as_dir in $PATH
7961do
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
5213506e
RW
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7966 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7968 break 2
7969 fi
7970done
5213506e
RW
7971 done
7972IFS=$as_save_IFS
1c710c3c 7973
2abefe3d
PB
7974fi
7975fi
1c710c3c 7976MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7977if test -n "$MAKEINFO"; then
5213506e
RW
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7979$as_echo "$MAKEINFO" >&6; }
2abefe3d 7980else
5213506e
RW
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7982$as_echo "no" >&6; }
2abefe3d
PB
7983fi
7984
5213506e 7985
1c710c3c 7986 test -n "$MAKEINFO" && break
2abefe3d
PB
7987done
7988test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7989
7990case " $build_configdirs " in
7991 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7992 *)
7993
d18ff35a 7994 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7995 # higher, else we use the "missing" dummy.
7996 if ${MAKEINFO} --version \
d18ff35a 7997 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7998 :
7999 else
8000 MAKEINFO="$MISSING makeinfo"
8001 fi
8002 ;;
8003
8004esac
671aa708 8005
2abefe3d 8006# FIXME: expect and dejagnu may become build tools?
671aa708 8007
2abefe3d
PB
8008for ac_prog in expect
8009do
1c710c3c 8010 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8011set dummy $ac_prog; ac_word=$2
5213506e
RW
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8013$as_echo_n "checking for $ac_word... " >&6; }
8014if test "${ac_cv_prog_EXPECT+set}" = set; then :
8015 $as_echo_n "(cached) " >&6
2abefe3d
PB
8016else
8017 if test -n "$EXPECT"; then
8018 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8019else
1c710c3c
DJ
8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021for as_dir in $PATH
8022do
8023 IFS=$as_save_IFS
8024 test -z "$as_dir" && as_dir=.
5213506e
RW
8025 for ac_exec_ext in '' $ac_executable_extensions; do
8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8027 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8029 break 2
8030 fi
8031done
5213506e
RW
8032 done
8033IFS=$as_save_IFS
1c710c3c 8034
2abefe3d
PB
8035fi
8036fi
1c710c3c 8037EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8038if test -n "$EXPECT"; then
5213506e
RW
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8040$as_echo "$EXPECT" >&6; }
2abefe3d 8041else
5213506e
RW
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8043$as_echo "no" >&6; }
2abefe3d 8044fi
671aa708 8045
5213506e 8046
1c710c3c 8047 test -n "$EXPECT" && break
2abefe3d
PB
8048done
8049test -n "$EXPECT" || EXPECT="expect"
671aa708 8050
2abefe3d
PB
8051case " $configdirs " in
8052 *" expect "*)
8053 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8054 ;;
8055esac
671aa708 8056
2abefe3d
PB
8057for ac_prog in runtest
8058do
1c710c3c 8059 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8060set dummy $ac_prog; ac_word=$2
5213506e
RW
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062$as_echo_n "checking for $ac_word... " >&6; }
8063if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
2abefe3d
PB
8065else
8066 if test -n "$RUNTEST"; then
8067 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8068else
1c710c3c
DJ
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
5213506e
RW
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8076 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8078 break 2
8079 fi
8080done
5213506e
RW
8081 done
8082IFS=$as_save_IFS
1c710c3c 8083
2abefe3d
PB
8084fi
8085fi
1c710c3c 8086RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8087if test -n "$RUNTEST"; then
5213506e
RW
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8089$as_echo "$RUNTEST" >&6; }
2abefe3d 8090else
5213506e
RW
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092$as_echo "no" >&6; }
2abefe3d 8093fi
671aa708 8094
5213506e 8095
1c710c3c 8096 test -n "$RUNTEST" && break
2abefe3d
PB
8097done
8098test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8099
2abefe3d
PB
8100case " $configdirs " in
8101 *" dejagnu "*)
c394e891 8102 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8103 ;;
8104esac
671aa708
NN
8105
8106
671aa708 8107# Host tools.
ca9f4b81
AO
8108ncn_tool_prefix=
8109test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8110ncn_target_tool_prefix=
8111test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8112
278a7a38
AO
8113
8114
8115if test -n "$AR"; then
8116 ac_cv_prog_AR=$AR
8117elif test -n "$ac_cv_prog_AR"; then
8118 AR=$ac_cv_prog_AR
8119fi
8120
8121if test -n "$ac_cv_prog_AR"; then
8122 for ncn_progname in ar; do
8123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8124set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126$as_echo_n "checking for $ac_word... " >&6; }
8127if test "${ac_cv_prog_AR+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
278a7a38
AO
8129else
8130 if test -n "$AR"; then
8131 ac_cv_prog_AR="$AR" # Let the user override the test.
8132else
8133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $PATH
8135do
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
5213506e
RW
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8140 ac_cv_prog_AR="${ncn_progname}"
5213506e 8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8142 break 2
8143 fi
8144done
5213506e
RW
8145 done
8146IFS=$as_save_IFS
278a7a38
AO
8147
8148fi
8149fi
8150AR=$ac_cv_prog_AR
8151if test -n "$AR"; then
5213506e
RW
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8153$as_echo "$AR" >&6; }
278a7a38 8154else
5213506e
RW
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156$as_echo "no" >&6; }
278a7a38
AO
8157fi
8158
5213506e 8159
278a7a38
AO
8160 done
8161fi
8162
8163for ncn_progname in ar; do
2693c0b0
PB
8164 if test -n "$ncn_tool_prefix"; then
8165 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8166set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168$as_echo_n "checking for $ac_word... " >&6; }
8169if test "${ac_cv_prog_AR+set}" = set; then :
8170 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8171else
8172 if test -n "$AR"; then
8173 ac_cv_prog_AR="$AR" # Let the user override the test.
8174else
1c710c3c
DJ
8175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8176for as_dir in $PATH
8177do
8178 IFS=$as_save_IFS
8179 test -z "$as_dir" && as_dir=.
5213506e
RW
8180 for ac_exec_ext in '' $ac_executable_extensions; do
8181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8182 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8184 break 2
8185 fi
8186done
5213506e
RW
8187 done
8188IFS=$as_save_IFS
1c710c3c 8189
ca9f4b81
AO
8190fi
8191fi
1c710c3c 8192AR=$ac_cv_prog_AR
ca9f4b81 8193if test -n "$AR"; then
5213506e
RW
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8195$as_echo "$AR" >&6; }
ca9f4b81 8196else
5213506e
RW
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198$as_echo "no" >&6; }
ca9f4b81
AO
8199fi
8200
5213506e 8201
2693c0b0
PB
8202 fi
8203 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8205set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207$as_echo_n "checking for $ac_word... " >&6; }
8208if test "${ac_cv_prog_AR+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
ca9f4b81 8210else
2693c0b0 8211 if test -n "$AR"; then
af71363e
AS
8212 ac_cv_prog_AR="$AR" # Let the user override the test.
8213else
1c710c3c
DJ
8214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215for as_dir in $PATH
8216do
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
5213506e
RW
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8221 ac_cv_prog_AR="${ncn_progname}"
5213506e 8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8223 break 2
8224 fi
8225done
5213506e
RW
8226 done
8227IFS=$as_save_IFS
1c710c3c 8228
ca9f4b81
AO
8229fi
8230fi
1c710c3c 8231AR=$ac_cv_prog_AR
2693c0b0 8232if test -n "$AR"; then
5213506e
RW
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8234$as_echo "$AR" >&6; }
ca9f4b81 8235else
5213506e
RW
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237$as_echo "no" >&6; }
ca9f4b81 8238fi
1c710c3c 8239
5213506e 8240
2693c0b0
PB
8241 fi
8242 test -n "$ac_cv_prog_AR" && break
8243done
8244
8245if test -z "$ac_cv_prog_AR" ; then
8246 set dummy ar
8247 if test $build = $host ; then
8248 AR="$2"
ca9f4b81 8249 else
2693c0b0 8250 AR="${ncn_tool_prefix}$2"
ca9f4b81 8251 fi
ca9f4b81
AO
8252fi
8253
278a7a38
AO
8254
8255
8256if test -n "$AS"; then
8257 ac_cv_prog_AS=$AS
8258elif test -n "$ac_cv_prog_AS"; then
8259 AS=$ac_cv_prog_AS
8260fi
8261
8262if test -n "$ac_cv_prog_AS"; then
8263 for ncn_progname in as; do
8264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8265set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
8268if test "${ac_cv_prog_AS+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
278a7a38
AO
8270else
8271 if test -n "$AS"; then
8272 ac_cv_prog_AS="$AS" # Let the user override the test.
8273else
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
5213506e
RW
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8281 ac_cv_prog_AS="${ncn_progname}"
5213506e 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8283 break 2
8284 fi
8285done
5213506e
RW
8286 done
8287IFS=$as_save_IFS
278a7a38
AO
8288
8289fi
8290fi
8291AS=$ac_cv_prog_AS
8292if test -n "$AS"; then
5213506e
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8294$as_echo "$AS" >&6; }
278a7a38 8295else
5213506e
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
278a7a38
AO
8298fi
8299
5213506e 8300
278a7a38
AO
8301 done
8302fi
8303
8304for ncn_progname in as; do
2693c0b0
PB
8305 if test -n "$ncn_tool_prefix"; then
8306 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8307set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8309$as_echo_n "checking for $ac_word... " >&6; }
8310if test "${ac_cv_prog_AS+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8312else
8313 if test -n "$AS"; then
8314 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8315else
1c710c3c
DJ
8316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317for as_dir in $PATH
8318do
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
5213506e
RW
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8323 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8325 break 2
8326 fi
8327done
5213506e
RW
8328 done
8329IFS=$as_save_IFS
1c710c3c 8330
ca9f4b81
AO
8331fi
8332fi
1c710c3c 8333AS=$ac_cv_prog_AS
ca9f4b81 8334if test -n "$AS"; then
5213506e
RW
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8336$as_echo "$AS" >&6; }
ca9f4b81 8337else
5213506e
RW
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339$as_echo "no" >&6; }
ca9f4b81
AO
8340fi
8341
5213506e 8342
2693c0b0
PB
8343 fi
8344 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8346set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348$as_echo_n "checking for $ac_word... " >&6; }
8349if test "${ac_cv_prog_AS+set}" = set; then :
8350 $as_echo_n "(cached) " >&6
ca9f4b81 8351else
2693c0b0
PB
8352 if test -n "$AS"; then
8353 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8354else
1c710c3c
DJ
8355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356for as_dir in $PATH
8357do
8358 IFS=$as_save_IFS
8359 test -z "$as_dir" && as_dir=.
5213506e
RW
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8362 ac_cv_prog_AS="${ncn_progname}"
5213506e 8363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8364 break 2
8365 fi
8366done
5213506e
RW
8367 done
8368IFS=$as_save_IFS
1c710c3c 8369
ca9f4b81
AO
8370fi
8371fi
1c710c3c 8372AS=$ac_cv_prog_AS
2693c0b0 8373if test -n "$AS"; then
5213506e
RW
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8375$as_echo "$AS" >&6; }
ca9f4b81 8376else
5213506e
RW
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378$as_echo "no" >&6; }
ca9f4b81 8379fi
1c710c3c 8380
5213506e 8381
2693c0b0
PB
8382 fi
8383 test -n "$ac_cv_prog_AS" && break
8384done
8385
8386if test -z "$ac_cv_prog_AS" ; then
8387 set dummy as
8388 if test $build = $host ; then
8389 AS="$2"
ca9f4b81 8390 else
2693c0b0 8391 AS="${ncn_tool_prefix}$2"
ca9f4b81 8392 fi
ca9f4b81
AO
8393fi
8394
278a7a38
AO
8395
8396
8397if test -n "$DLLTOOL"; then
8398 ac_cv_prog_DLLTOOL=$DLLTOOL
8399elif test -n "$ac_cv_prog_DLLTOOL"; then
8400 DLLTOOL=$ac_cv_prog_DLLTOOL
8401fi
8402
8403if test -n "$ac_cv_prog_DLLTOOL"; then
8404 for ncn_progname in dlltool; do
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
8409if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
278a7a38
AO
8411else
8412 if test -n "$DLLTOOL"; then
8413 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8414else
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
5213506e
RW
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8422 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8424 break 2
8425 fi
8426done
5213506e
RW
8427 done
8428IFS=$as_save_IFS
278a7a38
AO
8429
8430fi
8431fi
8432DLLTOOL=$ac_cv_prog_DLLTOOL
8433if test -n "$DLLTOOL"; then
5213506e
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8435$as_echo "$DLLTOOL" >&6; }
278a7a38 8436else
5213506e
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
278a7a38
AO
8439fi
8440
5213506e 8441
278a7a38
AO
8442 done
8443fi
8444
8445for ncn_progname in dlltool; do
2693c0b0
PB
8446 if test -n "$ncn_tool_prefix"; then
8447 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8448set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450$as_echo_n "checking for $ac_word... " >&6; }
8451if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8453else
8454 if test -n "$DLLTOOL"; then
8455 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8456else
1c710c3c
DJ
8457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8458for as_dir in $PATH
8459do
8460 IFS=$as_save_IFS
8461 test -z "$as_dir" && as_dir=.
5213506e
RW
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8464 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8466 break 2
8467 fi
8468done
5213506e
RW
8469 done
8470IFS=$as_save_IFS
1c710c3c 8471
ca9f4b81
AO
8472fi
8473fi
1c710c3c 8474DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8475if test -n "$DLLTOOL"; then
5213506e
RW
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8477$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8478else
5213506e
RW
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480$as_echo "no" >&6; }
ca9f4b81
AO
8481fi
8482
5213506e 8483
2693c0b0
PB
8484 fi
8485 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8487set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8489$as_echo_n "checking for $ac_word... " >&6; }
8490if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8491 $as_echo_n "(cached) " >&6
ca9f4b81 8492else
2693c0b0
PB
8493 if test -n "$DLLTOOL"; then
8494 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8495else
1c710c3c
DJ
8496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497for as_dir in $PATH
8498do
8499 IFS=$as_save_IFS
8500 test -z "$as_dir" && as_dir=.
5213506e
RW
8501 for ac_exec_ext in '' $ac_executable_extensions; do
8502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8503 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8505 break 2
8506 fi
8507done
5213506e
RW
8508 done
8509IFS=$as_save_IFS
1c710c3c 8510
ca9f4b81
AO
8511fi
8512fi
1c710c3c 8513DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8514if test -n "$DLLTOOL"; then
5213506e
RW
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8516$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8517else
5213506e
RW
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519$as_echo "no" >&6; }
ca9f4b81 8520fi
1c710c3c 8521
5213506e 8522
2693c0b0
PB
8523 fi
8524 test -n "$ac_cv_prog_DLLTOOL" && break
8525done
8526
8527if test -z "$ac_cv_prog_DLLTOOL" ; then
8528 set dummy dlltool
8529 if test $build = $host ; then
8530 DLLTOOL="$2"
ca9f4b81 8531 else
2693c0b0 8532 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8533 fi
ca9f4b81
AO
8534fi
8535
278a7a38
AO
8536
8537
8538if test -n "$LD"; then
8539 ac_cv_prog_LD=$LD
8540elif test -n "$ac_cv_prog_LD"; then
8541 LD=$ac_cv_prog_LD
8542fi
8543
8544if test -n "$ac_cv_prog_LD"; then
8545 for ncn_progname in ld; do
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549$as_echo_n "checking for $ac_word... " >&6; }
8550if test "${ac_cv_prog_LD+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
278a7a38
AO
8552else
8553 if test -n "$LD"; then
8554 ac_cv_prog_LD="$LD" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
5213506e
RW
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8563 ac_cv_prog_LD="${ncn_progname}"
5213506e 8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8565 break 2
8566 fi
8567done
5213506e
RW
8568 done
8569IFS=$as_save_IFS
278a7a38
AO
8570
8571fi
8572fi
8573LD=$ac_cv_prog_LD
8574if test -n "$LD"; then
5213506e
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8576$as_echo "$LD" >&6; }
278a7a38 8577else
5213506e
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
278a7a38
AO
8580fi
8581
5213506e 8582
278a7a38
AO
8583 done
8584fi
8585
8586for ncn_progname in ld; do
2693c0b0
PB
8587 if test -n "$ncn_tool_prefix"; then
8588 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8589set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591$as_echo_n "checking for $ac_word... " >&6; }
8592if test "${ac_cv_prog_LD+set}" = set; then :
8593 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8594else
8595 if test -n "$LD"; then
8596 ac_cv_prog_LD="$LD" # Let the user override the test.
8597else
1c710c3c
DJ
8598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601 IFS=$as_save_IFS
8602 test -z "$as_dir" && as_dir=.
5213506e
RW
8603 for ac_exec_ext in '' $ac_executable_extensions; do
8604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8605 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8607 break 2
8608 fi
8609done
5213506e
RW
8610 done
8611IFS=$as_save_IFS
1c710c3c 8612
ca9f4b81
AO
8613fi
8614fi
1c710c3c 8615LD=$ac_cv_prog_LD
ca9f4b81 8616if test -n "$LD"; then
5213506e
RW
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8618$as_echo "$LD" >&6; }
ca9f4b81 8619else
5213506e
RW
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621$as_echo "no" >&6; }
ca9f4b81
AO
8622fi
8623
5213506e 8624
2693c0b0
PB
8625 fi
8626 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8628set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630$as_echo_n "checking for $ac_word... " >&6; }
8631if test "${ac_cv_prog_LD+set}" = set; then :
8632 $as_echo_n "(cached) " >&6
ca9f4b81 8633else
2693c0b0
PB
8634 if test -n "$LD"; then
8635 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8636else
1c710c3c
DJ
8637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8638for as_dir in $PATH
8639do
8640 IFS=$as_save_IFS
8641 test -z "$as_dir" && as_dir=.
5213506e
RW
8642 for ac_exec_ext in '' $ac_executable_extensions; do
8643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8644 ac_cv_prog_LD="${ncn_progname}"
5213506e 8645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8646 break 2
8647 fi
8648done
5213506e
RW
8649 done
8650IFS=$as_save_IFS
1c710c3c 8651
ca9f4b81
AO
8652fi
8653fi
1c710c3c 8654LD=$ac_cv_prog_LD
2693c0b0 8655if test -n "$LD"; then
5213506e
RW
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8657$as_echo "$LD" >&6; }
ca9f4b81 8658else
5213506e
RW
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660$as_echo "no" >&6; }
ca9f4b81 8661fi
1c710c3c 8662
5213506e 8663
2693c0b0
PB
8664 fi
8665 test -n "$ac_cv_prog_LD" && break
8666done
8667
8668if test -z "$ac_cv_prog_LD" ; then
8669 set dummy ld
8670 if test $build = $host ; then
8671 LD="$2"
ca9f4b81 8672 else
2693c0b0 8673 LD="${ncn_tool_prefix}$2"
ca9f4b81 8674 fi
ca9f4b81
AO
8675fi
8676
278a7a38
AO
8677
8678
8679if test -n "$LIPO"; then
8680 ac_cv_prog_LIPO=$LIPO
8681elif test -n "$ac_cv_prog_LIPO"; then
8682 LIPO=$ac_cv_prog_LIPO
8683fi
8684
8685if test -n "$ac_cv_prog_LIPO"; then
8686 for ncn_progname in lipo; do
8687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8688set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
8691if test "${ac_cv_prog_LIPO+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
278a7a38
AO
8693else
8694 if test -n "$LIPO"; then
8695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8696else
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
5213506e
RW
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8704 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8706 break 2
8707 fi
8708done
5213506e
RW
8709 done
8710IFS=$as_save_IFS
278a7a38
AO
8711
8712fi
8713fi
8714LIPO=$ac_cv_prog_LIPO
8715if test -n "$LIPO"; then
5213506e
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8717$as_echo "$LIPO" >&6; }
278a7a38 8718else
5213506e
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
278a7a38
AO
8721fi
8722
5213506e 8723
278a7a38
AO
8724 done
8725fi
8726
8727for ncn_progname in lipo; do
2abefe3d
PB
8728 if test -n "$ncn_tool_prefix"; then
8729 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8730set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732$as_echo_n "checking for $ac_word... " >&6; }
8733if test "${ac_cv_prog_LIPO+set}" = set; then :
8734 $as_echo_n "(cached) " >&6
2abefe3d
PB
8735else
8736 if test -n "$LIPO"; then
8737 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8738else
1c710c3c
DJ
8739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740for as_dir in $PATH
8741do
8742 IFS=$as_save_IFS
8743 test -z "$as_dir" && as_dir=.
5213506e
RW
8744 for ac_exec_ext in '' $ac_executable_extensions; do
8745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8746 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8748 break 2
8749 fi
8750done
5213506e
RW
8751 done
8752IFS=$as_save_IFS
1c710c3c 8753
2abefe3d
PB
8754fi
8755fi
1c710c3c 8756LIPO=$ac_cv_prog_LIPO
2abefe3d 8757if test -n "$LIPO"; then
5213506e
RW
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8759$as_echo "$LIPO" >&6; }
2abefe3d 8760else
5213506e
RW
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762$as_echo "no" >&6; }
2abefe3d
PB
8763fi
8764
5213506e 8765
2abefe3d
PB
8766 fi
8767 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8769set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771$as_echo_n "checking for $ac_word... " >&6; }
8772if test "${ac_cv_prog_LIPO+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
2abefe3d
PB
8774else
8775 if test -n "$LIPO"; then
8776 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8777else
1c710c3c
DJ
8778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8779for as_dir in $PATH
8780do
8781 IFS=$as_save_IFS
8782 test -z "$as_dir" && as_dir=.
5213506e
RW
8783 for ac_exec_ext in '' $ac_executable_extensions; do
8784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8785 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8787 break 2
8788 fi
8789done
5213506e
RW
8790 done
8791IFS=$as_save_IFS
1c710c3c 8792
2abefe3d
PB
8793fi
8794fi
1c710c3c 8795LIPO=$ac_cv_prog_LIPO
2abefe3d 8796if test -n "$LIPO"; then
5213506e
RW
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8798$as_echo "$LIPO" >&6; }
2abefe3d 8799else
5213506e
RW
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8801$as_echo "no" >&6; }
2abefe3d 8802fi
1c710c3c 8803
5213506e 8804
2abefe3d
PB
8805 fi
8806 test -n "$ac_cv_prog_LIPO" && break
8807done
8808
8809if test -z "$ac_cv_prog_LIPO" ; then
8810 set dummy lipo
8811 if test $build = $host ; then
8812 LIPO="$2"
8813 else
8814 LIPO="${ncn_tool_prefix}$2"
8815 fi
8816fi
8817
278a7a38
AO
8818
8819
8820if test -n "$NM"; then
8821 ac_cv_prog_NM=$NM
8822elif test -n "$ac_cv_prog_NM"; then
8823 NM=$ac_cv_prog_NM
8824fi
8825
8826if test -n "$ac_cv_prog_NM"; then
8827 for ncn_progname in nm; do
8828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8829set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831$as_echo_n "checking for $ac_word... " >&6; }
8832if test "${ac_cv_prog_NM+set}" = set; then :
8833 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8834else
8835 if test -n "$NM"; then
8836 ac_cv_prog_NM="$NM" # Let the user override the test.
8837else
1c710c3c
DJ
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
5213506e
RW
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8845 ac_cv_prog_NM="${ncn_progname}"
5213506e 8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8847 break 2
8848 fi
8849done
5213506e
RW
8850 done
8851IFS=$as_save_IFS
1c710c3c 8852
ca9f4b81
AO
8853fi
8854fi
1c710c3c 8855NM=$ac_cv_prog_NM
ca9f4b81 8856if test -n "$NM"; then
5213506e
RW
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8858$as_echo "$NM" >&6; }
ca9f4b81 8859else
5213506e
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
ca9f4b81
AO
8862fi
8863
5213506e 8864
278a7a38
AO
8865 done
8866fi
8867
8868for ncn_progname in nm; do
8869 if test -n "$ncn_tool_prefix"; then
8870 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8871set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873$as_echo_n "checking for $ac_word... " >&6; }
8874if test "${ac_cv_prog_NM+set}" = set; then :
8875 $as_echo_n "(cached) " >&6
ca9f4b81 8876else
2693c0b0
PB
8877 if test -n "$NM"; then
8878 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8879else
1c710c3c
DJ
8880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881for as_dir in $PATH
8882do
8883 IFS=$as_save_IFS
8884 test -z "$as_dir" && as_dir=.
5213506e
RW
8885 for ac_exec_ext in '' $ac_executable_extensions; do
8886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8887 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8889 break 2
8890 fi
8891done
5213506e
RW
8892 done
8893IFS=$as_save_IFS
1c710c3c 8894
ca9f4b81
AO
8895fi
8896fi
1c710c3c 8897NM=$ac_cv_prog_NM
2693c0b0 8898if test -n "$NM"; then
5213506e
RW
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8900$as_echo "$NM" >&6; }
ca9f4b81 8901else
5213506e
RW
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903$as_echo "no" >&6; }
ca9f4b81 8904fi
1c710c3c 8905
5213506e 8906
2693c0b0 8907 fi
278a7a38
AO
8908 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8910set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8912$as_echo_n "checking for $ac_word... " >&6; }
8913if test "${ac_cv_prog_NM+set}" = set; then :
8914 $as_echo_n "(cached) " >&6
278a7a38
AO
8915else
8916 if test -n "$NM"; then
8917 ac_cv_prog_NM="$NM" # Let the user override the test.
8918else
8919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920for as_dir in $PATH
8921do
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
5213506e
RW
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8926 ac_cv_prog_NM="${ncn_progname}"
5213506e 8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8928 break 2
8929 fi
8930done
5213506e
RW
8931 done
8932IFS=$as_save_IFS
278a7a38
AO
8933
8934fi
8935fi
8936NM=$ac_cv_prog_NM
8937if test -n "$NM"; then
5213506e
RW
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8939$as_echo "$NM" >&6; }
278a7a38 8940else
5213506e
RW
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942$as_echo "no" >&6; }
278a7a38
AO
8943fi
8944
5213506e 8945
278a7a38
AO
8946 fi
8947 test -n "$ac_cv_prog_NM" && break
8948done
8949
8950if test -z "$ac_cv_prog_NM" ; then
8951 set dummy nm
8952 if test $build = $host ; then
8953 NM="$2"
8954 else
8955 NM="${ncn_tool_prefix}$2"
8956 fi
8957fi
8958
8959
8960
8961if test -n "$RANLIB"; then
8962 ac_cv_prog_RANLIB=$RANLIB
8963elif test -n "$ac_cv_prog_RANLIB"; then
8964 RANLIB=$ac_cv_prog_RANLIB
8965fi
8966
8967if test -n "$ac_cv_prog_RANLIB"; then
8968 for ncn_progname in ranlib; do
8969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8970set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
8973if test "${ac_cv_prog_RANLIB+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
278a7a38
AO
8975else
8976 if test -n "$RANLIB"; then
8977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8978else
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
5213506e
RW
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8986 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8988 break 2
8989 fi
8990done
5213506e
RW
8991 done
8992IFS=$as_save_IFS
278a7a38
AO
8993
8994fi
8995fi
8996RANLIB=$ac_cv_prog_RANLIB
8997if test -n "$RANLIB"; then
5213506e
RW
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8999$as_echo "$RANLIB" >&6; }
278a7a38 9000else
5213506e
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
278a7a38
AO
9003fi
9004
5213506e 9005
278a7a38
AO
9006 done
9007fi
ca9f4b81 9008
278a7a38 9009for ncn_progname in ranlib; do
2693c0b0
PB
9010 if test -n "$ncn_tool_prefix"; then
9011 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9012set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9014$as_echo_n "checking for $ac_word... " >&6; }
9015if test "${ac_cv_prog_RANLIB+set}" = set; then :
9016 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9017else
9018 if test -n "$RANLIB"; then
9019 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9020else
1c710c3c
DJ
9021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022for as_dir in $PATH
9023do
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
5213506e
RW
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9028 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9030 break 2
9031 fi
9032done
5213506e
RW
9033 done
9034IFS=$as_save_IFS
1c710c3c 9035
ca9f4b81
AO
9036fi
9037fi
1c710c3c 9038RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9039if test -n "$RANLIB"; then
5213506e
RW
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9041$as_echo "$RANLIB" >&6; }
ca9f4b81 9042else
5213506e
RW
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044$as_echo "no" >&6; }
ca9f4b81
AO
9045fi
9046
5213506e 9047
2693c0b0
PB
9048 fi
9049 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9051set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9053$as_echo_n "checking for $ac_word... " >&6; }
9054if test "${ac_cv_prog_RANLIB+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
ca9f4b81 9056else
2693c0b0
PB
9057 if test -n "$RANLIB"; then
9058 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9059else
1c710c3c
DJ
9060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9061for as_dir in $PATH
9062do
9063 IFS=$as_save_IFS
9064 test -z "$as_dir" && as_dir=.
5213506e
RW
9065 for ac_exec_ext in '' $ac_executable_extensions; do
9066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9067 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9069 break 2
9070 fi
9071done
5213506e
RW
9072 done
9073IFS=$as_save_IFS
1c710c3c 9074
ca9f4b81
AO
9075fi
9076fi
1c710c3c 9077RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9078if test -n "$RANLIB"; then
5213506e
RW
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9080$as_echo "$RANLIB" >&6; }
ca9f4b81 9081else
5213506e
RW
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9083$as_echo "no" >&6; }
ca9f4b81 9084fi
1c710c3c 9085
5213506e 9086
ca9f4b81 9087 fi
2693c0b0
PB
9088 test -n "$ac_cv_prog_RANLIB" && break
9089done
9090
9091if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9092 RANLIB="true"
ca9f4b81
AO
9093fi
9094
278a7a38
AO
9095
9096
9097if test -n "$STRIP"; then
9098 ac_cv_prog_STRIP=$STRIP
9099elif test -n "$ac_cv_prog_STRIP"; then
9100 STRIP=$ac_cv_prog_STRIP
9101fi
9102
9103if test -n "$ac_cv_prog_STRIP"; then
9104 for ncn_progname in strip; do
9105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9106set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108$as_echo_n "checking for $ac_word... " >&6; }
9109if test "${ac_cv_prog_STRIP+set}" = set; then :
9110 $as_echo_n "(cached) " >&6
278a7a38
AO
9111else
9112 if test -n "$STRIP"; then
9113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9114else
9115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116for as_dir in $PATH
9117do
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
5213506e
RW
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9122 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9124 break 2
9125 fi
9126done
5213506e
RW
9127 done
9128IFS=$as_save_IFS
278a7a38
AO
9129
9130fi
9131fi
9132STRIP=$ac_cv_prog_STRIP
9133if test -n "$STRIP"; then
5213506e
RW
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9135$as_echo "$STRIP" >&6; }
278a7a38 9136else
5213506e
RW
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138$as_echo "no" >&6; }
278a7a38
AO
9139fi
9140
5213506e 9141
278a7a38
AO
9142 done
9143fi
9144
9145for ncn_progname in strip; do
2abefe3d
PB
9146 if test -n "$ncn_tool_prefix"; then
9147 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9148set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150$as_echo_n "checking for $ac_word... " >&6; }
9151if test "${ac_cv_prog_STRIP+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
2abefe3d
PB
9153else
9154 if test -n "$STRIP"; then
9155 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9156else
1c710c3c
DJ
9157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158for as_dir in $PATH
9159do
9160 IFS=$as_save_IFS
9161 test -z "$as_dir" && as_dir=.
5213506e
RW
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9164 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9166 break 2
9167 fi
9168done
5213506e
RW
9169 done
9170IFS=$as_save_IFS
1c710c3c 9171
2abefe3d
PB
9172fi
9173fi
1c710c3c 9174STRIP=$ac_cv_prog_STRIP
2abefe3d 9175if test -n "$STRIP"; then
5213506e
RW
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9177$as_echo "$STRIP" >&6; }
2abefe3d 9178else
5213506e
RW
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180$as_echo "no" >&6; }
2abefe3d
PB
9181fi
9182
5213506e 9183
2abefe3d
PB
9184 fi
9185 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9187set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189$as_echo_n "checking for $ac_word... " >&6; }
9190if test "${ac_cv_prog_STRIP+set}" = set; then :
9191 $as_echo_n "(cached) " >&6
2abefe3d
PB
9192else
9193 if test -n "$STRIP"; then
9194 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9195else
1c710c3c
DJ
9196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197for as_dir in $PATH
9198do
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
5213506e
RW
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9203 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9205 break 2
9206 fi
9207done
5213506e
RW
9208 done
9209IFS=$as_save_IFS
1c710c3c 9210
2abefe3d
PB
9211fi
9212fi
1c710c3c 9213STRIP=$ac_cv_prog_STRIP
2abefe3d 9214if test -n "$STRIP"; then
5213506e
RW
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9216$as_echo "$STRIP" >&6; }
2abefe3d 9217else
5213506e
RW
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219$as_echo "no" >&6; }
2abefe3d 9220fi
1c710c3c 9221
5213506e 9222
2abefe3d
PB
9223 fi
9224 test -n "$ac_cv_prog_STRIP" && break
9225done
9226
9227if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9228 STRIP="true"
2abefe3d
PB
9229fi
9230
278a7a38
AO
9231
9232
9233if test -n "$WINDRES"; then
9234 ac_cv_prog_WINDRES=$WINDRES
9235elif test -n "$ac_cv_prog_WINDRES"; then
9236 WINDRES=$ac_cv_prog_WINDRES
9237fi
9238
9239if test -n "$ac_cv_prog_WINDRES"; then
9240 for ncn_progname in windres; do
9241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9242set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244$as_echo_n "checking for $ac_word... " >&6; }
9245if test "${ac_cv_prog_WINDRES+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
278a7a38
AO
9247else
9248 if test -n "$WINDRES"; then
9249 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9250else
9251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252for as_dir in $PATH
9253do
9254 IFS=$as_save_IFS
9255 test -z "$as_dir" && as_dir=.
5213506e
RW
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9258 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9260 break 2
9261 fi
9262done
5213506e
RW
9263 done
9264IFS=$as_save_IFS
278a7a38
AO
9265
9266fi
9267fi
9268WINDRES=$ac_cv_prog_WINDRES
9269if test -n "$WINDRES"; then
5213506e
RW
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9271$as_echo "$WINDRES" >&6; }
278a7a38 9272else
5213506e
RW
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274$as_echo "no" >&6; }
278a7a38
AO
9275fi
9276
5213506e 9277
278a7a38
AO
9278 done
9279fi
9280
9281for ncn_progname in windres; do
2693c0b0
PB
9282 if test -n "$ncn_tool_prefix"; then
9283 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9284set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9286$as_echo_n "checking for $ac_word... " >&6; }
9287if test "${ac_cv_prog_WINDRES+set}" = set; then :
9288 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9289else
9290 if test -n "$WINDRES"; then
9291 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9292else
1c710c3c
DJ
9293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294for as_dir in $PATH
9295do
9296 IFS=$as_save_IFS
9297 test -z "$as_dir" && as_dir=.
5213506e
RW
9298 for ac_exec_ext in '' $ac_executable_extensions; do
9299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9300 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9302 break 2
9303 fi
9304done
5213506e
RW
9305 done
9306IFS=$as_save_IFS
1c710c3c 9307
ca9f4b81
AO
9308fi
9309fi
1c710c3c 9310WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9311if test -n "$WINDRES"; then
5213506e
RW
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9313$as_echo "$WINDRES" >&6; }
ca9f4b81 9314else
5213506e
RW
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316$as_echo "no" >&6; }
ca9f4b81
AO
9317fi
9318
5213506e 9319
2693c0b0
PB
9320 fi
9321 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9323set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9325$as_echo_n "checking for $ac_word... " >&6; }
9326if test "${ac_cv_prog_WINDRES+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
ca9f4b81 9328else
2693c0b0
PB
9329 if test -n "$WINDRES"; then
9330 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9331else
1c710c3c
DJ
9332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9333for as_dir in $PATH
9334do
9335 IFS=$as_save_IFS
9336 test -z "$as_dir" && as_dir=.
5213506e
RW
9337 for ac_exec_ext in '' $ac_executable_extensions; do
9338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9339 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9341 break 2
9342 fi
9343done
5213506e
RW
9344 done
9345IFS=$as_save_IFS
1c710c3c 9346
ca9f4b81
AO
9347fi
9348fi
1c710c3c 9349WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9350if test -n "$WINDRES"; then
5213506e
RW
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9352$as_echo "$WINDRES" >&6; }
ca9f4b81 9353else
5213506e
RW
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355$as_echo "no" >&6; }
ca9f4b81 9356fi
1c710c3c 9357
5213506e 9358
2693c0b0
PB
9359 fi
9360 test -n "$ac_cv_prog_WINDRES" && break
9361done
9362
9363if test -z "$ac_cv_prog_WINDRES" ; then
9364 set dummy windres
9365 if test $build = $host ; then
9366 WINDRES="$2"
ca9f4b81 9367 else
2693c0b0 9368 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9369 fi
ca9f4b81
AO
9370fi
9371
278a7a38
AO
9372
9373
901119ae
KT
9374if test -n "$WINDMC"; then
9375 ac_cv_prog_WINDMC=$WINDMC
9376elif test -n "$ac_cv_prog_WINDMC"; then
9377 WINDMC=$ac_cv_prog_WINDMC
9378fi
9379
9380if test -n "$ac_cv_prog_WINDMC"; then
9381 for ncn_progname in windmc; do
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385$as_echo_n "checking for $ac_word... " >&6; }
9386if test "${ac_cv_prog_WINDMC+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
901119ae
KT
9388else
9389 if test -n "$WINDMC"; then
9390 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9391else
9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
5213506e
RW
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9399 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9401 break 2
9402 fi
9403done
5213506e
RW
9404 done
9405IFS=$as_save_IFS
901119ae
KT
9406
9407fi
9408fi
9409WINDMC=$ac_cv_prog_WINDMC
9410if test -n "$WINDMC"; then
5213506e
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9412$as_echo "$WINDMC" >&6; }
901119ae 9413else
5213506e
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
901119ae
KT
9416fi
9417
5213506e 9418
901119ae
KT
9419 done
9420fi
9421
9422for ncn_progname in windmc; do
9423 if test -n "$ncn_tool_prefix"; then
9424 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9425set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9427$as_echo_n "checking for $ac_word... " >&6; }
9428if test "${ac_cv_prog_WINDMC+set}" = set; then :
9429 $as_echo_n "(cached) " >&6
901119ae
KT
9430else
9431 if test -n "$WINDMC"; then
9432 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9433else
9434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435for as_dir in $PATH
9436do
9437 IFS=$as_save_IFS
9438 test -z "$as_dir" && as_dir=.
5213506e
RW
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9441 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9443 break 2
9444 fi
9445done
5213506e
RW
9446 done
9447IFS=$as_save_IFS
901119ae
KT
9448
9449fi
9450fi
9451WINDMC=$ac_cv_prog_WINDMC
9452if test -n "$WINDMC"; then
5213506e
RW
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9454$as_echo "$WINDMC" >&6; }
901119ae 9455else
5213506e
RW
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9457$as_echo "no" >&6; }
901119ae
KT
9458fi
9459
5213506e 9460
901119ae
KT
9461 fi
9462 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9464set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9466$as_echo_n "checking for $ac_word... " >&6; }
9467if test "${ac_cv_prog_WINDMC+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
901119ae
KT
9469else
9470 if test -n "$WINDMC"; then
9471 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9472else
9473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9474for as_dir in $PATH
9475do
9476 IFS=$as_save_IFS
9477 test -z "$as_dir" && as_dir=.
5213506e
RW
9478 for ac_exec_ext in '' $ac_executable_extensions; do
9479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9480 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9482 break 2
9483 fi
9484done
5213506e
RW
9485 done
9486IFS=$as_save_IFS
901119ae
KT
9487
9488fi
9489fi
9490WINDMC=$ac_cv_prog_WINDMC
9491if test -n "$WINDMC"; then
5213506e
RW
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9493$as_echo "$WINDMC" >&6; }
901119ae 9494else
5213506e
RW
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9496$as_echo "no" >&6; }
901119ae
KT
9497fi
9498
5213506e 9499
901119ae
KT
9500 fi
9501 test -n "$ac_cv_prog_WINDMC" && break
9502done
9503
9504if test -z "$ac_cv_prog_WINDMC" ; then
9505 set dummy windmc
9506 if test $build = $host ; then
9507 WINDMC="$2"
9508 else
9509 WINDMC="${ncn_tool_prefix}$2"
9510 fi
9511fi
9512
9513
9514
278a7a38
AO
9515if test -n "$OBJCOPY"; then
9516 ac_cv_prog_OBJCOPY=$OBJCOPY
9517elif test -n "$ac_cv_prog_OBJCOPY"; then
9518 OBJCOPY=$ac_cv_prog_OBJCOPY
9519fi
9520
9521if test -n "$ac_cv_prog_OBJCOPY"; then
9522 for ncn_progname in objcopy; do
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526$as_echo_n "checking for $ac_word... " >&6; }
9527if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
278a7a38
AO
9529else
9530 if test -n "$OBJCOPY"; then
9531 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9532else
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
5213506e
RW
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9540 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9542 break 2
9543 fi
9544done
5213506e
RW
9545 done
9546IFS=$as_save_IFS
278a7a38
AO
9547
9548fi
9549fi
9550OBJCOPY=$ac_cv_prog_OBJCOPY
9551if test -n "$OBJCOPY"; then
5213506e
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9553$as_echo "$OBJCOPY" >&6; }
278a7a38 9554else
5213506e
RW
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556$as_echo "no" >&6; }
278a7a38
AO
9557fi
9558
5213506e 9559
278a7a38
AO
9560 done
9561fi
9562
9563for ncn_progname in objcopy; do
2693c0b0
PB
9564 if test -n "$ncn_tool_prefix"; then
9565 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9566set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9568$as_echo_n "checking for $ac_word... " >&6; }
9569if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9570 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9571else
9572 if test -n "$OBJCOPY"; then
9573 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9574else
1c710c3c
DJ
9575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576for as_dir in $PATH
9577do
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
5213506e
RW
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9582 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9584 break 2
9585 fi
9586done
5213506e
RW
9587 done
9588IFS=$as_save_IFS
1c710c3c 9589
ca9f4b81
AO
9590fi
9591fi
1c710c3c 9592OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9593if test -n "$OBJCOPY"; then
5213506e
RW
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9595$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9596else
5213506e
RW
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598$as_echo "no" >&6; }
ca9f4b81
AO
9599fi
9600
5213506e 9601
2693c0b0
PB
9602 fi
9603 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9604 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9605set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607$as_echo_n "checking for $ac_word... " >&6; }
9608if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9609 $as_echo_n "(cached) " >&6
ca9f4b81 9610else
2693c0b0
PB
9611 if test -n "$OBJCOPY"; then
9612 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9613else
1c710c3c
DJ
9614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9615for as_dir in $PATH
9616do
9617 IFS=$as_save_IFS
9618 test -z "$as_dir" && as_dir=.
5213506e
RW
9619 for ac_exec_ext in '' $ac_executable_extensions; do
9620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9621 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9623 break 2
9624 fi
9625done
5213506e
RW
9626 done
9627IFS=$as_save_IFS
1c710c3c 9628
ca9f4b81
AO
9629fi
9630fi
1c710c3c 9631OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9632if test -n "$OBJCOPY"; then
5213506e
RW
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9634$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9635else
5213506e
RW
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637$as_echo "no" >&6; }
ca9f4b81 9638fi
1c710c3c 9639
5213506e 9640
2693c0b0
PB
9641 fi
9642 test -n "$ac_cv_prog_OBJCOPY" && break
9643done
9644
9645if test -z "$ac_cv_prog_OBJCOPY" ; then
9646 set dummy objcopy
9647 if test $build = $host ; then
9648 OBJCOPY="$2"
ca9f4b81 9649 else
2693c0b0 9650 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9651 fi
ca9f4b81
AO
9652fi
9653
278a7a38
AO
9654
9655
9656if test -n "$OBJDUMP"; then
9657 ac_cv_prog_OBJDUMP=$OBJDUMP
9658elif test -n "$ac_cv_prog_OBJDUMP"; then
9659 OBJDUMP=$ac_cv_prog_OBJDUMP
9660fi
9661
9662if test -n "$ac_cv_prog_OBJDUMP"; then
9663 for ncn_progname in objdump; do
9664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9665set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667$as_echo_n "checking for $ac_word... " >&6; }
9668if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
278a7a38
AO
9670else
9671 if test -n "$OBJDUMP"; then
9672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9673else
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
5213506e
RW
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9681 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9683 break 2
9684 fi
9685done
5213506e
RW
9686 done
9687IFS=$as_save_IFS
278a7a38
AO
9688
9689fi
9690fi
9691OBJDUMP=$ac_cv_prog_OBJDUMP
9692if test -n "$OBJDUMP"; then
5213506e
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9694$as_echo "$OBJDUMP" >&6; }
278a7a38 9695else
5213506e
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
278a7a38
AO
9698fi
9699
5213506e 9700
278a7a38
AO
9701 done
9702fi
9703
9704for ncn_progname in objdump; do
2693c0b0
PB
9705 if test -n "$ncn_tool_prefix"; then
9706 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9707set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9709$as_echo_n "checking for $ac_word... " >&6; }
9710if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9711 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9712else
9713 if test -n "$OBJDUMP"; then
9714 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9715else
1c710c3c
DJ
9716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717for as_dir in $PATH
9718do
9719 IFS=$as_save_IFS
9720 test -z "$as_dir" && as_dir=.
5213506e
RW
9721 for ac_exec_ext in '' $ac_executable_extensions; do
9722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9723 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9725 break 2
9726 fi
9727done
5213506e
RW
9728 done
9729IFS=$as_save_IFS
1c710c3c 9730
ca9f4b81
AO
9731fi
9732fi
1c710c3c 9733OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9734if test -n "$OBJDUMP"; then
5213506e
RW
9735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9736$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9737else
5213506e
RW
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9739$as_echo "no" >&6; }
ca9f4b81
AO
9740fi
9741
5213506e 9742
2693c0b0
PB
9743 fi
9744 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9746set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9748$as_echo_n "checking for $ac_word... " >&6; }
9749if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9750 $as_echo_n "(cached) " >&6
ca9f4b81 9751else
2693c0b0
PB
9752 if test -n "$OBJDUMP"; then
9753 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9754else
1c710c3c
DJ
9755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9756for as_dir in $PATH
9757do
9758 IFS=$as_save_IFS
9759 test -z "$as_dir" && as_dir=.
5213506e
RW
9760 for ac_exec_ext in '' $ac_executable_extensions; do
9761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9762 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9764 break 2
9765 fi
9766done
5213506e
RW
9767 done
9768IFS=$as_save_IFS
1c710c3c 9769
ca9f4b81
AO
9770fi
9771fi
1c710c3c 9772OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9773if test -n "$OBJDUMP"; then
5213506e
RW
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9775$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9776else
5213506e
RW
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9778$as_echo "no" >&6; }
ca9f4b81 9779fi
1c710c3c 9780
5213506e 9781
2693c0b0
PB
9782 fi
9783 test -n "$ac_cv_prog_OBJDUMP" && break
9784done
9785
9786if test -z "$ac_cv_prog_OBJDUMP" ; then
9787 set dummy objdump
9788 if test $build = $host ; then
9789 OBJDUMP="$2"
ca9f4b81 9790 else
2693c0b0 9791 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9792 fi
ca9f4b81
AO
9793fi
9794
671aa708
NN
9795
9796
e7a82751
RM
9797if test -n "$READELF"; then
9798 ac_cv_prog_READELF=$READELF
9799elif test -n "$ac_cv_prog_READELF"; then
9800 READELF=$ac_cv_prog_READELF
9801fi
9802
9803if test -n "$ac_cv_prog_READELF"; then
9804 for ncn_progname in readelf; do
9805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9806set dummy ${ncn_progname}; ac_word=$2
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
9809if test "${ac_cv_prog_READELF+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
9811else
9812 if test -n "$READELF"; then
9813 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9814else
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9822 ac_cv_prog_READELF="${ncn_progname}"
9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9824 break 2
9825 fi
9826done
9827 done
9828IFS=$as_save_IFS
9829
9830fi
9831fi
9832READELF=$ac_cv_prog_READELF
9833if test -n "$READELF"; then
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9835$as_echo "$READELF" >&6; }
9836else
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
9839fi
9840
9841
9842 done
9843fi
9844
9845for ncn_progname in readelf; do
9846 if test -n "$ncn_tool_prefix"; then
9847 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9848set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9850$as_echo_n "checking for $ac_word... " >&6; }
9851if test "${ac_cv_prog_READELF+set}" = set; then :
9852 $as_echo_n "(cached) " >&6
9853else
9854 if test -n "$READELF"; then
9855 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9856else
9857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858for as_dir in $PATH
9859do
9860 IFS=$as_save_IFS
9861 test -z "$as_dir" && as_dir=.
9862 for ac_exec_ext in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9866 break 2
9867 fi
9868done
9869 done
9870IFS=$as_save_IFS
9871
9872fi
9873fi
9874READELF=$ac_cv_prog_READELF
9875if test -n "$READELF"; then
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9877$as_echo "$READELF" >&6; }
9878else
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880$as_echo "no" >&6; }
9881fi
9882
9883
9884 fi
9885 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9886 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9887set dummy ${ncn_progname}; ac_word=$2
9888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9889$as_echo_n "checking for $ac_word... " >&6; }
9890if test "${ac_cv_prog_READELF+set}" = set; then :
9891 $as_echo_n "(cached) " >&6
9892else
9893 if test -n "$READELF"; then
9894 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9895else
9896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897for as_dir in $PATH
9898do
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
9901 for ac_exec_ext in '' $ac_executable_extensions; do
9902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9903 ac_cv_prog_READELF="${ncn_progname}"
9904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9905 break 2
9906 fi
9907done
9908 done
9909IFS=$as_save_IFS
9910
9911fi
9912fi
9913READELF=$ac_cv_prog_READELF
9914if test -n "$READELF"; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9916$as_echo "$READELF" >&6; }
9917else
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9919$as_echo "no" >&6; }
9920fi
9921
9922
9923 fi
9924 test -n "$ac_cv_prog_READELF" && break
9925done
9926
9927if test -z "$ac_cv_prog_READELF" ; then
9928 set dummy readelf
9929 if test $build = $host ; then
9930 READELF="$2"
9931 else
9932 READELF="${ncn_tool_prefix}$2"
9933 fi
9934fi
9935
9936
9937
671aa708
NN
9938
9939
9940
2abefe3d 9941# Target tools.
1c710c3c 9942
5213506e
RW
9943# Check whether --with-build-time-tools was given.
9944if test "${with_build_time_tools+set}" = set; then :
9945 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9946 x/*) ;;
9947 *)
9948 with_build_time_tools=
5213506e
RW
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9950$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9951 ;;
9952 esac
ca9f4b81 9953else
e8b05380 9954 with_build_time_tools=
5213506e
RW
9955fi
9956
ca9f4b81 9957
278a7a38
AO
9958
9959
9960if test -n "$CC_FOR_TARGET"; then
9961 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9962elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9963 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9964fi
9965
9966if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9967 for ncn_progname in cc gcc; do
9968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9969set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971$as_echo_n "checking for $ac_word... " >&6; }
9972if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
278a7a38
AO
9974else
9975 if test -n "$CC_FOR_TARGET"; then
9976 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9977else
9978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979for as_dir in $PATH
9980do
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
5213506e
RW
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9985 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9987 break 2
9988 fi
9989done
5213506e
RW
9990 done
9991IFS=$as_save_IFS
278a7a38
AO
9992
9993fi
9994fi
9995CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9996if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9998$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9999else
5213506e
RW
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001$as_echo "no" >&6; }
278a7a38
AO
10002fi
10003
5213506e 10004
278a7a38
AO
10005 done
10006fi
10007
10008if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10009 for ncn_progname in cc gcc; do
5213506e
RW
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10011$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10012 if test -x $with_build_time_tools/${ncn_progname}; then
10013 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10015$as_echo "yes" >&6; }
72a7ab82 10016 break
e8b05380 10017 else
5213506e
RW
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019$as_echo "no" >&6; }
72a7ab82
AP
10020 fi
10021 done
4de997d1
PB
10022fi
10023
e8b05380
PB
10024if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10025 for ncn_progname in cc gcc; do
10026 if test -n "$ncn_target_tool_prefix"; then
10027 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10028set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030$as_echo_n "checking for $ac_word... " >&6; }
10031if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10032 $as_echo_n "(cached) " >&6
4de997d1
PB
10033else
10034 if test -n "$CC_FOR_TARGET"; then
10035 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10036else
1c710c3c
DJ
10037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10038for as_dir in $PATH
10039do
10040 IFS=$as_save_IFS
10041 test -z "$as_dir" && as_dir=.
5213506e
RW
10042 for ac_exec_ext in '' $ac_executable_extensions; do
10043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10044 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10046 break 2
10047 fi
10048done
5213506e
RW
10049 done
10050IFS=$as_save_IFS
1c710c3c 10051
4de997d1
PB
10052fi
10053fi
1c710c3c 10054CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10055if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10057$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10058else
5213506e
RW
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10060$as_echo "no" >&6; }
4de997d1
PB
10061fi
10062
5213506e 10063
e8b05380
PB
10064 fi
10065 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10066 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10067set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10069$as_echo_n "checking for $ac_word... " >&6; }
10070if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10071 $as_echo_n "(cached) " >&6
4de997d1 10072else
2693c0b0
PB
10073 if test -n "$CC_FOR_TARGET"; then
10074 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10075else
1c710c3c
DJ
10076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077for as_dir in $PATH
10078do
10079 IFS=$as_save_IFS
10080 test -z "$as_dir" && as_dir=.
5213506e
RW
10081 for ac_exec_ext in '' $ac_executable_extensions; do
10082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10083 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10085 break 2
10086 fi
10087done
5213506e
RW
10088 done
10089IFS=$as_save_IFS
1c710c3c 10090
4de997d1
PB
10091fi
10092fi
1c710c3c 10093CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10094if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10096$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10097else
5213506e
RW
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10099$as_echo "no" >&6; }
4de997d1 10100fi
1c710c3c 10101
5213506e 10102
e8b05380
PB
10103 fi
10104 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10105 done
10106fi
1c710c3c 10107
2693c0b0
PB
10108if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10109 set dummy cc gcc
10110 if test $build = $target ; then
10111 CC_FOR_TARGET="$2"
4de997d1 10112 else
2693c0b0 10113 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10114 fi
1c00b503
PB
10115else
10116 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10117fi
10118
278a7a38
AO
10119
10120
10121if test -n "$CXX_FOR_TARGET"; then
10122 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10123elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10124 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10125fi
10126
10127if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10128 for ncn_progname in c++ g++ cxx gxx; do
10129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10130set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132$as_echo_n "checking for $ac_word... " >&6; }
10133if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10134 $as_echo_n "(cached) " >&6
278a7a38
AO
10135else
10136 if test -n "$CXX_FOR_TARGET"; then
10137 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10138else
10139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140for as_dir in $PATH
10141do
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
5213506e
RW
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10146 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10148 break 2
10149 fi
10150done
5213506e
RW
10151 done
10152IFS=$as_save_IFS
278a7a38
AO
10153
10154fi
10155fi
10156CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10157if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10159$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10160else
5213506e
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162$as_echo "no" >&6; }
278a7a38
AO
10163fi
10164
5213506e 10165
278a7a38
AO
10166 done
10167fi
10168
10169if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10170 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10172$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10173 if test -x $with_build_time_tools/${ncn_progname}; then
10174 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10176$as_echo "yes" >&6; }
e8b05380
PB
10177 break
10178 else
5213506e
RW
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10180$as_echo "no" >&6; }
e8b05380
PB
10181 fi
10182 done
10183fi
10184
10185if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10186 for ncn_progname in c++ g++ cxx gxx; do
10187 if test -n "$ncn_target_tool_prefix"; then
10188 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10189set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10191$as_echo_n "checking for $ac_word... " >&6; }
10192if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
4de997d1
PB
10194else
10195 if test -n "$CXX_FOR_TARGET"; then
10196 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10197else
1c710c3c
DJ
10198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10199for as_dir in $PATH
10200do
10201 IFS=$as_save_IFS
10202 test -z "$as_dir" && as_dir=.
5213506e
RW
10203 for ac_exec_ext in '' $ac_executable_extensions; do
10204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10205 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10207 break 2
10208 fi
10209done
5213506e
RW
10210 done
10211IFS=$as_save_IFS
1c710c3c 10212
4de997d1
PB
10213fi
10214fi
1c710c3c 10215CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10216if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10218$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10219else
5213506e
RW
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221$as_echo "no" >&6; }
4de997d1
PB
10222fi
10223
5213506e 10224
e8b05380
PB
10225 fi
10226 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10228set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230$as_echo_n "checking for $ac_word... " >&6; }
10231if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
4de997d1 10233else
2693c0b0
PB
10234 if test -n "$CXX_FOR_TARGET"; then
10235 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10236else
1c710c3c
DJ
10237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238for as_dir in $PATH
10239do
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
5213506e
RW
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10244 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10246 break 2
10247 fi
10248done
5213506e
RW
10249 done
10250IFS=$as_save_IFS
1c710c3c 10251
4de997d1
PB
10252fi
10253fi
1c710c3c 10254CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10255if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10257$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10258else
5213506e
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260$as_echo "no" >&6; }
4de997d1 10261fi
1c710c3c 10262
5213506e 10263
e8b05380
PB
10264 fi
10265 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10266 done
10267fi
1c710c3c 10268
2693c0b0
PB
10269if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10270 set dummy c++ g++ cxx gxx
10271 if test $build = $target ; then
10272 CXX_FOR_TARGET="$2"
4de997d1 10273 else
2693c0b0 10274 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10275 fi
1c00b503
PB
10276else
10277 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10278fi
10279
278a7a38
AO
10280
10281
10282if test -n "$GCC_FOR_TARGET"; then
10283 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10284elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10285 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10286fi
10287
10288if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10289 for ncn_progname in gcc; do
10290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10291set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10293$as_echo_n "checking for $ac_word... " >&6; }
10294if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
278a7a38
AO
10296else
10297 if test -n "$GCC_FOR_TARGET"; then
10298 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10299else
10300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301for as_dir in $PATH
10302do
10303 IFS=$as_save_IFS
10304 test -z "$as_dir" && as_dir=.
5213506e
RW
10305 for ac_exec_ext in '' $ac_executable_extensions; do
10306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10307 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10309 break 2
10310 fi
10311done
5213506e
RW
10312 done
10313IFS=$as_save_IFS
278a7a38
AO
10314
10315fi
10316fi
10317GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10318if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10320$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10321else
5213506e
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323$as_echo "no" >&6; }
278a7a38
AO
10324fi
10325
5213506e 10326
278a7a38
AO
10327 done
10328fi
10329
10330if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10331 for ncn_progname in gcc; do
5213506e
RW
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10333$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10334 if test -x $with_build_time_tools/${ncn_progname}; then
10335 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10337$as_echo "yes" >&6; }
e8b05380
PB
10338 break
10339 else
5213506e
RW
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341$as_echo "no" >&6; }
e8b05380
PB
10342 fi
10343 done
10344fi
10345
10346if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10347 for ncn_progname in gcc; do
10348 if test -n "$ncn_target_tool_prefix"; then
10349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10350set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10352$as_echo_n "checking for $ac_word... " >&6; }
10353if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10354 $as_echo_n "(cached) " >&6
ca9f4b81 10355else
e8b05380
PB
10356 if test -n "$GCC_FOR_TARGET"; then
10357 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10358else
1c710c3c
DJ
10359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360for as_dir in $PATH
10361do
10362 IFS=$as_save_IFS
10363 test -z "$as_dir" && as_dir=.
5213506e
RW
10364 for ac_exec_ext in '' $ac_executable_extensions; do
10365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10366 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10368 break 2
10369 fi
10370done
5213506e
RW
10371 done
10372IFS=$as_save_IFS
1c710c3c 10373
ca9f4b81
AO
10374fi
10375fi
1c710c3c 10376GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10377if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10379$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10380else
5213506e
RW
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382$as_echo "no" >&6; }
ca9f4b81
AO
10383fi
10384
5213506e 10385
e8b05380
PB
10386 fi
10387 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10389set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391$as_echo_n "checking for $ac_word... " >&6; }
10392if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10393 $as_echo_n "(cached) " >&6
ca9f4b81 10394else
e8b05380
PB
10395 if test -n "$GCC_FOR_TARGET"; then
10396 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10397else
1c710c3c
DJ
10398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399for as_dir in $PATH
10400do
10401 IFS=$as_save_IFS
10402 test -z "$as_dir" && as_dir=.
5213506e
RW
10403 for ac_exec_ext in '' $ac_executable_extensions; do
10404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10405 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10407 break 2
10408 fi
10409done
5213506e
RW
10410 done
10411IFS=$as_save_IFS
1c710c3c 10412
ca9f4b81
AO
10413fi
10414fi
1c710c3c 10415GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10416if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10418$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10419else
5213506e
RW
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421$as_echo "no" >&6; }
ca9f4b81 10422fi
1c710c3c 10423
5213506e 10424
e8b05380
PB
10425 fi
10426 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10427 done
10428fi
1c710c3c 10429
e8b05380
PB
10430if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10431 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10432else
10433 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10434fi
10435
278a7a38
AO
10436
10437
10438if test -n "$GCJ_FOR_TARGET"; then
10439 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10440elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10441 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10442fi
10443
10444if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10445 for ncn_progname in gcj; do
10446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10447set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10449$as_echo_n "checking for $ac_word... " >&6; }
10450if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10451 $as_echo_n "(cached) " >&6
278a7a38
AO
10452else
10453 if test -n "$GCJ_FOR_TARGET"; then
10454 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10455else
10456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10457for as_dir in $PATH
10458do
10459 IFS=$as_save_IFS
10460 test -z "$as_dir" && as_dir=.
5213506e
RW
10461 for ac_exec_ext in '' $ac_executable_extensions; do
10462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10463 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10465 break 2
10466 fi
10467done
5213506e
RW
10468 done
10469IFS=$as_save_IFS
278a7a38
AO
10470
10471fi
10472fi
10473GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10474if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10476$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10477else
5213506e
RW
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10479$as_echo "no" >&6; }
278a7a38
AO
10480fi
10481
5213506e 10482
278a7a38
AO
10483 done
10484fi
10485
10486if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10487 for ncn_progname in gcj; do
5213506e
RW
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10489$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10490 if test -x $with_build_time_tools/${ncn_progname}; then
10491 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10493$as_echo "yes" >&6; }
e8b05380
PB
10494 break
10495 else
5213506e
RW
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497$as_echo "no" >&6; }
e8b05380
PB
10498 fi
10499 done
10500fi
10501
10502if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10503 for ncn_progname in gcj; do
10504 if test -n "$ncn_target_tool_prefix"; then
10505 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10506set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508$as_echo_n "checking for $ac_word... " >&6; }
10509if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10510 $as_echo_n "(cached) " >&6
e8b05380 10511else
fb0103e5
RG
10512 if test -n "$GCJ_FOR_TARGET"; then
10513 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10514else
1c710c3c
DJ
10515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516for as_dir in $PATH
10517do
10518 IFS=$as_save_IFS
10519 test -z "$as_dir" && as_dir=.
5213506e
RW
10520 for ac_exec_ext in '' $ac_executable_extensions; do
10521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10522 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10524 break 2
10525 fi
10526done
5213506e
RW
10527 done
10528IFS=$as_save_IFS
1c710c3c 10529
e8b05380
PB
10530fi
10531fi
278a7a38
AO
10532GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10533if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10535$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10536else
5213506e
RW
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538$as_echo "no" >&6; }
278a7a38
AO
10539fi
10540
5213506e 10541
278a7a38
AO
10542 fi
10543 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10545set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10547$as_echo_n "checking for $ac_word... " >&6; }
10548if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10549 $as_echo_n "(cached) " >&6
278a7a38
AO
10550else
10551 if test -n "$GCJ_FOR_TARGET"; then
10552 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10553else
10554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555for as_dir in $PATH
10556do
10557 IFS=$as_save_IFS
10558 test -z "$as_dir" && as_dir=.
5213506e
RW
10559 for ac_exec_ext in '' $ac_executable_extensions; do
10560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10561 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10563 break 2
10564 fi
10565done
5213506e
RW
10566 done
10567IFS=$as_save_IFS
278a7a38
AO
10568
10569fi
10570fi
10571GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10572if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10574$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10575else
5213506e
RW
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10577$as_echo "no" >&6; }
278a7a38
AO
10578fi
10579
5213506e 10580
278a7a38
AO
10581 fi
10582 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10583 done
10584fi
10585
10586if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10587 set dummy gcj
10588 if test $build = $target ; then
10589 GCJ_FOR_TARGET="$2"
10590 else
10591 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10592 fi
1c00b503
PB
10593else
10594 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10595fi
10596
10597
10598
10599if test -n "$GFORTRAN_FOR_TARGET"; then
10600 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10601elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10602 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10603fi
10604
278a7a38
AO
10605if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10606 for ncn_progname in gfortran; do
10607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10608set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10610$as_echo_n "checking for $ac_word... " >&6; }
10611if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10612 $as_echo_n "(cached) " >&6
e8b05380 10613else
278a7a38
AO
10614 if test -n "$GFORTRAN_FOR_TARGET"; then
10615 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10616else
1c710c3c
DJ
10617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618for as_dir in $PATH
10619do
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
5213506e
RW
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10624 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10626 break 2
10627 fi
10628done
5213506e
RW
10629 done
10630IFS=$as_save_IFS
1c710c3c 10631
e8b05380
PB
10632fi
10633fi
278a7a38
AO
10634GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10635if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10637$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10638else
5213506e
RW
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10640$as_echo "no" >&6; }
e8b05380 10641fi
1c710c3c 10642
5213506e 10643
e8b05380
PB
10644 done
10645fi
1c710c3c 10646
278a7a38 10647if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10648 for ncn_progname in gfortran; do
5213506e
RW
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10650$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10651 if test -x $with_build_time_tools/${ncn_progname}; then
10652 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10654$as_echo "yes" >&6; }
e8b05380
PB
10655 break
10656 else
5213506e
RW
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10658$as_echo "no" >&6; }
e8b05380
PB
10659 fi
10660 done
10661fi
10662
10663if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10664 for ncn_progname in gfortran; do
10665 if test -n "$ncn_target_tool_prefix"; then
10666 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10667set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10669$as_echo_n "checking for $ac_word... " >&6; }
10670if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10671 $as_echo_n "(cached) " >&6
e8b05380
PB
10672else
10673 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10674 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10675else
10676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10677for as_dir in $PATH
10678do
10679 IFS=$as_save_IFS
10680 test -z "$as_dir" && as_dir=.
5213506e
RW
10681 for ac_exec_ext in '' $ac_executable_extensions; do
10682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10683 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10685 break 2
10686 fi
10687done
5213506e
RW
10688 done
10689IFS=$as_save_IFS
1c710c3c 10690
e8b05380
PB
10691fi
10692fi
1c710c3c 10693GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10694if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10696$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10697else
5213506e
RW
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10699$as_echo "no" >&6; }
e8b05380
PB
10700fi
10701
5213506e 10702
e8b05380
PB
10703 fi
10704 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10706set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708$as_echo_n "checking for $ac_word... " >&6; }
10709if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
e8b05380
PB
10711else
10712 if test -n "$GFORTRAN_FOR_TARGET"; then
10713 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10714else
1c710c3c
DJ
10715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716for as_dir in $PATH
10717do
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
5213506e
RW
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10722 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10724 break 2
10725 fi
10726done
5213506e
RW
10727 done
10728IFS=$as_save_IFS
1c710c3c 10729
e8b05380
PB
10730fi
10731fi
1c710c3c 10732GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10733if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10735$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10736else
5213506e
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738$as_echo "no" >&6; }
e8b05380 10739fi
1c710c3c 10740
5213506e 10741
e8b05380
PB
10742 fi
10743 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10744 done
10745fi
1c710c3c 10746
e8b05380
PB
10747if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10748 set dummy gfortran
2693c0b0 10749 if test $build = $target ; then
e8b05380 10750 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10751 else
e8b05380
PB
10752 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10753 fi
1c00b503
PB
10754else
10755 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10756fi
10757
10758
10759
632e2a07
ILT
10760if test -n "$GOC_FOR_TARGET"; then
10761 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10762elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10763 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10764fi
10765
10766if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10767 for ncn_progname in gccgo; do
10768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10769set dummy ${ncn_progname}; ac_word=$2
10770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771$as_echo_n "checking for $ac_word... " >&6; }
10772if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10774else
10775 if test -n "$GOC_FOR_TARGET"; then
10776 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10777else
10778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779for as_dir in $PATH
10780do
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10785 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10788 fi
10789done
10790 done
10791IFS=$as_save_IFS
10792
10793fi
10794fi
10795GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10796if test -n "$GOC_FOR_TARGET"; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10798$as_echo "$GOC_FOR_TARGET" >&6; }
10799else
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801$as_echo "no" >&6; }
10802fi
10803
10804
10805 done
10806fi
10807
10808if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10809 for ncn_progname in gccgo; do
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10811$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10812 if test -x $with_build_time_tools/${ncn_progname}; then
10813 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10815$as_echo "yes" >&6; }
10816 break
10817 else
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10819$as_echo "no" >&6; }
10820 fi
10821 done
10822fi
10823
10824if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10825 for ncn_progname in gccgo; do
10826 if test -n "$ncn_target_tool_prefix"; then
10827 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10828set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10830$as_echo_n "checking for $ac_word... " >&6; }
10831if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10832 $as_echo_n "(cached) " >&6
10833else
10834 if test -n "$GOC_FOR_TARGET"; then
10835 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10836else
10837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838for as_dir in $PATH
10839do
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10844 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10847 fi
10848done
10849 done
10850IFS=$as_save_IFS
10851
10852fi
10853fi
10854GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10855if test -n "$GOC_FOR_TARGET"; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10857$as_echo "$GOC_FOR_TARGET" >&6; }
10858else
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860$as_echo "no" >&6; }
10861fi
10862
10863
10864 fi
10865 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10867set dummy ${ncn_progname}; ac_word=$2
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10869$as_echo_n "checking for $ac_word... " >&6; }
10870if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10871 $as_echo_n "(cached) " >&6
10872else
10873 if test -n "$GOC_FOR_TARGET"; then
10874 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10875else
10876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10877for as_dir in $PATH
10878do
10879 IFS=$as_save_IFS
10880 test -z "$as_dir" && as_dir=.
10881 for ac_exec_ext in '' $ac_executable_extensions; do
10882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10883 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10885 break 2
10886 fi
10887done
10888 done
10889IFS=$as_save_IFS
10890
10891fi
10892fi
10893GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10894if test -n "$GOC_FOR_TARGET"; then
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10896$as_echo "$GOC_FOR_TARGET" >&6; }
10897else
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899$as_echo "no" >&6; }
10900fi
10901
10902
10903 fi
10904 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10905 done
10906fi
10907
10908if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10909 set dummy gccgo
10910 if test $build = $target ; then
10911 GOC_FOR_TARGET="$2"
10912 else
10913 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10914 fi
10915else
10916 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10917fi
10918
10919
10920
e8b05380
PB
10921cat > conftest.c << \EOF
10922#ifdef __GNUC__
10923 gcc_yay;
10924#endif
10925EOF
10926if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10927 have_gcc_for_target=yes
10928else
10929 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10930 have_gcc_for_target=no
10931fi
10932rm conftest.c
10933
10934
10935
10936
10937if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10938 if test -n "$with_build_time_tools"; then
5213506e
RW
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10940$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10941 if test -x $with_build_time_tools/ar; then
10942 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10943 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10945$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10946 else
5213506e
RW
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948$as_echo "no" >&6; }
d1f8db0c 10949 fi
e8b05380
PB
10950 elif test $build != $host && test $have_gcc_for_target = yes; then
10951 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10952 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10953 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10954 fi
10955fi
3e19841a 10956if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10957 # Extract the first word of "ar", so it can be a program name with args.
10958set dummy ar; ac_word=$2
5213506e
RW
10959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10960$as_echo_n "checking for $ac_word... " >&6; }
10961if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10962 $as_echo_n "(cached) " >&6
e8b05380 10963else
1c710c3c
DJ
10964 case $AR_FOR_TARGET in
10965 [\\/]* | ?:[\\/]*)
e8b05380
PB
10966 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10967 ;;
e8b05380 10968 *)
1c710c3c
DJ
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970for as_dir in $gcc_cv_tool_dirs
10971do
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
5213506e
RW
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10976 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10978 break 2
10979 fi
10980done
5213506e
RW
10981 done
10982IFS=$as_save_IFS
1c710c3c 10983
e8b05380
PB
10984 ;;
10985esac
10986fi
1c710c3c 10987AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10988if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10990$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10991else
5213506e
RW
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10993$as_echo "no" >&6; }
4de997d1
PB
10994fi
10995
5213506e 10996
e8b05380
PB
10997fi
10998if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10999
11000
11001if test -n "$AR_FOR_TARGET"; then
11002 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11003elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11004 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11005fi
11006
11007if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11008 for ncn_progname in ar; do
11009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11010set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012$as_echo_n "checking for $ac_word... " >&6; }
11013if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11014 $as_echo_n "(cached) " >&6
278a7a38
AO
11015else
11016 if test -n "$AR_FOR_TARGET"; then
11017 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11018else
11019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020for as_dir in $PATH
11021do
11022 IFS=$as_save_IFS
11023 test -z "$as_dir" && as_dir=.
5213506e
RW
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11026 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11028 break 2
11029 fi
11030done
5213506e
RW
11031 done
11032IFS=$as_save_IFS
278a7a38
AO
11033
11034fi
11035fi
11036AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11037if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11039$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11040else
5213506e
RW
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11042$as_echo "no" >&6; }
278a7a38
AO
11043fi
11044
5213506e 11045
278a7a38
AO
11046 done
11047fi
11048
11049if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11050 for ncn_progname in ar; do
5213506e
RW
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11052$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11053 if test -x $with_build_time_tools/${ncn_progname}; then
11054 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11056$as_echo "yes" >&6; }
e8b05380
PB
11057 break
11058 else
5213506e
RW
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11060$as_echo "no" >&6; }
e8b05380
PB
11061 fi
11062 done
11063fi
11064
11065if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11066 for ncn_progname in ar; do
11067 if test -n "$ncn_target_tool_prefix"; then
11068 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11069set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071$as_echo_n "checking for $ac_word... " >&6; }
11072if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
4de997d1 11074else
e8b05380
PB
11075 if test -n "$AR_FOR_TARGET"; then
11076 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11077else
1c710c3c
DJ
11078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11079for as_dir in $PATH
11080do
11081 IFS=$as_save_IFS
11082 test -z "$as_dir" && as_dir=.
5213506e
RW
11083 for ac_exec_ext in '' $ac_executable_extensions; do
11084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11085 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11087 break 2
11088 fi
11089done
5213506e
RW
11090 done
11091IFS=$as_save_IFS
1c710c3c 11092
4de997d1
PB
11093fi
11094fi
1c710c3c 11095AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11096if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11098$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11099else
5213506e
RW
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11101$as_echo "no" >&6; }
4de997d1
PB
11102fi
11103
5213506e 11104
e8b05380
PB
11105 fi
11106 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11107 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11108set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11110$as_echo_n "checking for $ac_word... " >&6; }
11111if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11112 $as_echo_n "(cached) " >&6
e8b05380
PB
11113else
11114 if test -n "$AR_FOR_TARGET"; then
11115 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11116else
1c710c3c
DJ
11117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118for as_dir in $PATH
11119do
11120 IFS=$as_save_IFS
11121 test -z "$as_dir" && as_dir=.
5213506e
RW
11122 for ac_exec_ext in '' $ac_executable_extensions; do
11123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11124 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11126 break 2
11127 fi
11128done
5213506e
RW
11129 done
11130IFS=$as_save_IFS
1c710c3c 11131
e8b05380
PB
11132fi
11133fi
1c710c3c 11134AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11135if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11137$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11138else
5213506e
RW
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140$as_echo "no" >&6; }
e8b05380 11141fi
1c710c3c 11142
5213506e 11143
e8b05380
PB
11144 fi
11145 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11146 done
11147fi
1c710c3c 11148
e8b05380
PB
11149if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11150 set dummy ar
11151 if test $build = $target ; then
11152 AR_FOR_TARGET="$2"
11153 else
11154 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11155 fi
1c00b503
PB
11156else
11157 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11158fi
11159
d1f8db0c
PB
11160else
11161 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11162fi
11163
11164
11165
11166
11167if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11168 if test -n "$with_build_time_tools"; then
5213506e
RW
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11170$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11171 if test -x $with_build_time_tools/as; then
11172 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11173 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11175$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11176 else
5213506e
RW
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11178$as_echo "no" >&6; }
d1f8db0c 11179 fi
e8b05380
PB
11180 elif test $build != $host && test $have_gcc_for_target = yes; then
11181 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11182 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11183 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11184 fi
11185fi
3e19841a 11186if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11187 # Extract the first word of "as", so it can be a program name with args.
11188set dummy as; ac_word=$2
5213506e
RW
11189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11190$as_echo_n "checking for $ac_word... " >&6; }
11191if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
e8b05380 11193else
1c710c3c
DJ
11194 case $AS_FOR_TARGET in
11195 [\\/]* | ?:[\\/]*)
e8b05380
PB
11196 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11197 ;;
e8b05380 11198 *)
1c710c3c
DJ
11199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200for as_dir in $gcc_cv_tool_dirs
11201do
11202 IFS=$as_save_IFS
11203 test -z "$as_dir" && as_dir=.
5213506e
RW
11204 for ac_exec_ext in '' $ac_executable_extensions; do
11205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11206 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11208 break 2
11209 fi
11210done
5213506e
RW
11211 done
11212IFS=$as_save_IFS
1c710c3c 11213
e8b05380
PB
11214 ;;
11215esac
11216fi
1c710c3c 11217AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11218if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11220$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11221else
5213506e
RW
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223$as_echo "no" >&6; }
e8b05380
PB
11224fi
11225
5213506e 11226
e8b05380
PB
11227fi
11228if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11229
11230
11231if test -n "$AS_FOR_TARGET"; then
11232 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11233elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11234 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11235fi
11236
11237if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11238 for ncn_progname in as; do
11239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11240set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11242$as_echo_n "checking for $ac_word... " >&6; }
11243if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11244 $as_echo_n "(cached) " >&6
278a7a38
AO
11245else
11246 if test -n "$AS_FOR_TARGET"; then
11247 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11248else
11249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11250for as_dir in $PATH
11251do
11252 IFS=$as_save_IFS
11253 test -z "$as_dir" && as_dir=.
5213506e
RW
11254 for ac_exec_ext in '' $ac_executable_extensions; do
11255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11256 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11258 break 2
11259 fi
11260done
5213506e
RW
11261 done
11262IFS=$as_save_IFS
278a7a38
AO
11263
11264fi
11265fi
11266AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11267if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11269$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11270else
5213506e
RW
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272$as_echo "no" >&6; }
278a7a38
AO
11273fi
11274
5213506e 11275
278a7a38
AO
11276 done
11277fi
11278
11279if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11280 for ncn_progname in as; do
5213506e
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11282$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11283 if test -x $with_build_time_tools/${ncn_progname}; then
11284 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11286$as_echo "yes" >&6; }
e8b05380
PB
11287 break
11288 else
5213506e
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290$as_echo "no" >&6; }
e8b05380
PB
11291 fi
11292 done
11293fi
11294
11295if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11296 for ncn_progname in as; do
11297 if test -n "$ncn_target_tool_prefix"; then
11298 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11299set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301$as_echo_n "checking for $ac_word... " >&6; }
11302if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
e8b05380
PB
11304else
11305 if test -n "$AS_FOR_TARGET"; then
11306 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11307else
1c710c3c
DJ
11308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309for as_dir in $PATH
11310do
11311 IFS=$as_save_IFS
11312 test -z "$as_dir" && as_dir=.
5213506e
RW
11313 for ac_exec_ext in '' $ac_executable_extensions; do
11314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11315 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11317 break 2
11318 fi
11319done
5213506e
RW
11320 done
11321IFS=$as_save_IFS
1c710c3c 11322
e8b05380
PB
11323fi
11324fi
1c710c3c 11325AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11326if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11328$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11329else
5213506e
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331$as_echo "no" >&6; }
e8b05380
PB
11332fi
11333
5213506e 11334
e8b05380
PB
11335 fi
11336 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11338set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340$as_echo_n "checking for $ac_word... " >&6; }
11341if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11342 $as_echo_n "(cached) " >&6
4de997d1 11343else
e8b05380
PB
11344 if test -n "$AS_FOR_TARGET"; then
11345 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11346else
1c710c3c
DJ
11347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348for as_dir in $PATH
11349do
11350 IFS=$as_save_IFS
11351 test -z "$as_dir" && as_dir=.
5213506e
RW
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11354 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11356 break 2
11357 fi
11358done
5213506e
RW
11359 done
11360IFS=$as_save_IFS
1c710c3c 11361
4de997d1
PB
11362fi
11363fi
1c710c3c 11364AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11365if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11367$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11368else
5213506e
RW
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370$as_echo "no" >&6; }
4de997d1 11371fi
1c710c3c 11372
5213506e 11373
e8b05380
PB
11374 fi
11375 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11376 done
11377fi
1c710c3c 11378
e8b05380
PB
11379if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11380 set dummy as
11381 if test $build = $target ; then
11382 AS_FOR_TARGET="$2"
11383 else
11384 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11385 fi
1c00b503
PB
11386else
11387 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11388fi
2693c0b0 11389
d1f8db0c
PB
11390else
11391 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11392fi
11393
e8b05380
PB
11394
11395
11396
11397if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11398 if test -n "$with_build_time_tools"; then
5213506e
RW
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11400$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11401 if test -x $with_build_time_tools/dlltool; then
11402 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11403 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11405$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11406 else
5213506e
RW
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408$as_echo "no" >&6; }
d1f8db0c 11409 fi
e8b05380
PB
11410 elif test $build != $host && test $have_gcc_for_target = yes; then
11411 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11412 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11413 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11414 fi
11415fi
3e19841a 11416if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11417 # Extract the first word of "dlltool", so it can be a program name with args.
11418set dummy dlltool; ac_word=$2
5213506e
RW
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420$as_echo_n "checking for $ac_word... " >&6; }
11421if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11422 $as_echo_n "(cached) " >&6
4de997d1 11423else
1c710c3c
DJ
11424 case $DLLTOOL_FOR_TARGET in
11425 [\\/]* | ?:[\\/]*)
e8b05380
PB
11426 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11427 ;;
e8b05380 11428 *)
1c710c3c
DJ
11429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11430for as_dir in $gcc_cv_tool_dirs
11431do
11432 IFS=$as_save_IFS
11433 test -z "$as_dir" && as_dir=.
5213506e
RW
11434 for ac_exec_ext in '' $ac_executable_extensions; do
11435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11436 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11438 break 2
11439 fi
11440done
5213506e
RW
11441 done
11442IFS=$as_save_IFS
1c710c3c 11443
e8b05380
PB
11444 ;;
11445esac
4de997d1 11446fi
1c710c3c 11447DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11448if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11450$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11451else
5213506e
RW
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11453$as_echo "no" >&6; }
4de997d1
PB
11454fi
11455
5213506e 11456
e8b05380
PB
11457fi
11458if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11459
11460
11461if test -n "$DLLTOOL_FOR_TARGET"; then
11462 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11463elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11464 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11465fi
11466
11467if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11468 for ncn_progname in dlltool; do
11469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11470set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472$as_echo_n "checking for $ac_word... " >&6; }
11473if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
278a7a38
AO
11475else
11476 if test -n "$DLLTOOL_FOR_TARGET"; then
11477 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11478else
11479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480for as_dir in $PATH
11481do
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
5213506e
RW
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11486 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11488 break 2
11489 fi
11490done
5213506e
RW
11491 done
11492IFS=$as_save_IFS
278a7a38
AO
11493
11494fi
11495fi
11496DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11497if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11499$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11500else
5213506e
RW
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502$as_echo "no" >&6; }
278a7a38
AO
11503fi
11504
5213506e 11505
278a7a38
AO
11506 done
11507fi
11508
11509if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11510 for ncn_progname in dlltool; do
5213506e
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11512$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11513 if test -x $with_build_time_tools/${ncn_progname}; then
11514 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11516$as_echo "yes" >&6; }
e8b05380
PB
11517 break
11518 else
5213506e
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520$as_echo "no" >&6; }
e8b05380
PB
11521 fi
11522 done
11523fi
11524
11525if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11526 for ncn_progname in dlltool; do
11527 if test -n "$ncn_target_tool_prefix"; then
11528 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11529set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531$as_echo_n "checking for $ac_word... " >&6; }
11532if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11533 $as_echo_n "(cached) " >&6
4de997d1 11534else
e8b05380
PB
11535 if test -n "$DLLTOOL_FOR_TARGET"; then
11536 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11537else
1c710c3c
DJ
11538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539for as_dir in $PATH
11540do
11541 IFS=$as_save_IFS
11542 test -z "$as_dir" && as_dir=.
5213506e
RW
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11545 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11547 break 2
11548 fi
11549done
5213506e
RW
11550 done
11551IFS=$as_save_IFS
1c710c3c 11552
4de997d1
PB
11553fi
11554fi
1c710c3c 11555DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11556if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11558$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11559else
5213506e
RW
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561$as_echo "no" >&6; }
4de997d1 11562fi
4de997d1 11563
5213506e 11564
e8b05380
PB
11565 fi
11566 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11568set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11570$as_echo_n "checking for $ac_word... " >&6; }
11571if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11572 $as_echo_n "(cached) " >&6
4de997d1 11573else
e8b05380
PB
11574 if test -n "$DLLTOOL_FOR_TARGET"; then
11575 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11576else
1c710c3c
DJ
11577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578for as_dir in $PATH
11579do
11580 IFS=$as_save_IFS
11581 test -z "$as_dir" && as_dir=.
5213506e
RW
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11584 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11586 break 2
11587 fi
11588done
5213506e
RW
11589 done
11590IFS=$as_save_IFS
1c710c3c 11591
4de997d1
PB
11592fi
11593fi
1c710c3c 11594DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11595if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11597$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11598else
5213506e
RW
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600$as_echo "no" >&6; }
4de997d1 11601fi
1c710c3c 11602
5213506e 11603
e8b05380
PB
11604 fi
11605 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11606 done
11607fi
1c710c3c 11608
e8b05380
PB
11609if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11610 set dummy dlltool
11611 if test $build = $target ; then
11612 DLLTOOL_FOR_TARGET="$2"
11613 else
11614 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11615 fi
1c00b503
PB
11616else
11617 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11618fi
11619
d1f8db0c
PB
11620else
11621 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11622fi
11623
4de997d1 11624
e8b05380
PB
11625
11626
11627if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11628 if test -n "$with_build_time_tools"; then
5213506e
RW
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11630$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11631 if test -x $with_build_time_tools/ld; then
11632 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11633 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11635$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11636 else
5213506e
RW
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11638$as_echo "no" >&6; }
d1f8db0c 11639 fi
e8b05380
PB
11640 elif test $build != $host && test $have_gcc_for_target = yes; then
11641 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11642 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11643 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11644 fi
e8b05380 11645fi
3e19841a 11646if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11647 # Extract the first word of "ld", so it can be a program name with args.
11648set dummy ld; ac_word=$2
5213506e
RW
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650$as_echo_n "checking for $ac_word... " >&6; }
11651if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11652 $as_echo_n "(cached) " >&6
4de997d1 11653else
1c710c3c
DJ
11654 case $LD_FOR_TARGET in
11655 [\\/]* | ?:[\\/]*)
e8b05380
PB
11656 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11657 ;;
e8b05380 11658 *)
1c710c3c
DJ
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $gcc_cv_tool_dirs
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
5213506e
RW
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11666 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11668 break 2
11669 fi
11670done
5213506e
RW
11671 done
11672IFS=$as_save_IFS
1c710c3c 11673
e8b05380
PB
11674 ;;
11675esac
4de997d1 11676fi
1c710c3c 11677LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11678if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11680$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11681else
5213506e
RW
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683$as_echo "no" >&6; }
4de997d1 11684fi
2693c0b0 11685
5213506e 11686
e8b05380
PB
11687fi
11688if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11689
11690
11691if test -n "$LD_FOR_TARGET"; then
11692 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11693elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11694 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11695fi
11696
11697if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11698 for ncn_progname in ld; do
11699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11700set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11702$as_echo_n "checking for $ac_word... " >&6; }
11703if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11704 $as_echo_n "(cached) " >&6
278a7a38
AO
11705else
11706 if test -n "$LD_FOR_TARGET"; then
11707 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11708else
11709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710for as_dir in $PATH
11711do
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
5213506e
RW
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11716 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11718 break 2
11719 fi
11720done
5213506e
RW
11721 done
11722IFS=$as_save_IFS
278a7a38
AO
11723
11724fi
11725fi
11726LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11727if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11729$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11730else
5213506e
RW
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732$as_echo "no" >&6; }
278a7a38
AO
11733fi
11734
5213506e 11735
278a7a38
AO
11736 done
11737fi
11738
11739if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11740 for ncn_progname in ld; do
5213506e
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11742$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11743 if test -x $with_build_time_tools/${ncn_progname}; then
11744 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11746$as_echo "yes" >&6; }
e8b05380
PB
11747 break
11748 else
5213506e
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750$as_echo "no" >&6; }
e8b05380
PB
11751 fi
11752 done
ca9f4b81
AO
11753fi
11754
e8b05380
PB
11755if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11756 for ncn_progname in ld; do
11757 if test -n "$ncn_target_tool_prefix"; then
11758 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11759set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761$as_echo_n "checking for $ac_word... " >&6; }
11762if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
ca9f4b81 11764else
4de997d1
PB
11765 if test -n "$LD_FOR_TARGET"; then
11766 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11767else
1c710c3c
DJ
11768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769for as_dir in $PATH
11770do
11771 IFS=$as_save_IFS
11772 test -z "$as_dir" && as_dir=.
5213506e
RW
11773 for ac_exec_ext in '' $ac_executable_extensions; do
11774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11775 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11777 break 2
11778 fi
11779done
5213506e
RW
11780 done
11781IFS=$as_save_IFS
1c710c3c 11782
ca9f4b81
AO
11783fi
11784fi
1c710c3c 11785LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11786if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11788$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11789else
5213506e
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11791$as_echo "no" >&6; }
ca9f4b81
AO
11792fi
11793
5213506e 11794
e8b05380
PB
11795 fi
11796 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11798set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800$as_echo_n "checking for $ac_word... " >&6; }
11801if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11802 $as_echo_n "(cached) " >&6
ca9f4b81 11803else
2693c0b0
PB
11804 if test -n "$LD_FOR_TARGET"; then
11805 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11806else
1c710c3c
DJ
11807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11808for as_dir in $PATH
11809do
11810 IFS=$as_save_IFS
11811 test -z "$as_dir" && as_dir=.
5213506e
RW
11812 for ac_exec_ext in '' $ac_executable_extensions; do
11813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11814 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11816 break 2
11817 fi
11818done
5213506e
RW
11819 done
11820IFS=$as_save_IFS
1c710c3c 11821
ca9f4b81
AO
11822fi
11823fi
1c710c3c 11824LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11825if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11827$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11828else
5213506e
RW
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830$as_echo "no" >&6; }
ca9f4b81 11831fi
1c710c3c 11832
5213506e 11833
e8b05380
PB
11834 fi
11835 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11836 done
11837fi
1c710c3c 11838
2693c0b0
PB
11839if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11840 set dummy ld
11841 if test $build = $target ; then
11842 LD_FOR_TARGET="$2"
ca9f4b81 11843 else
2693c0b0 11844 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11845 fi
1c00b503
PB
11846else
11847 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11848fi
11849
d1f8db0c
PB
11850else
11851 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11852fi
11853
11854
11855
11856
11857if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11858 if test -n "$with_build_time_tools"; then
5213506e
RW
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11860$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11861 if test -x $with_build_time_tools/lipo; then
11862 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11863 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11865$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11866 else
5213506e
RW
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868$as_echo "no" >&6; }
d1f8db0c 11869 fi
e8b05380
PB
11870 elif test $build != $host && test $have_gcc_for_target = yes; then
11871 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11872 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11873 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11874 fi
11875fi
278a7a38
AO
11876if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11877 # Extract the first word of "lipo", so it can be a program name with args.
11878set dummy lipo; ac_word=$2
5213506e
RW
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880$as_echo_n "checking for $ac_word... " >&6; }
11881if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
278a7a38
AO
11883else
11884 case $LIPO_FOR_TARGET in
11885 [\\/]* | ?:[\\/]*)
11886 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11887 ;;
11888 *)
11889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11890for as_dir in $gcc_cv_tool_dirs
11891do
11892 IFS=$as_save_IFS
11893 test -z "$as_dir" && as_dir=.
5213506e
RW
11894 for ac_exec_ext in '' $ac_executable_extensions; do
11895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11896 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11898 break 2
11899 fi
11900done
5213506e
RW
11901 done
11902IFS=$as_save_IFS
278a7a38
AO
11903
11904 ;;
11905esac
11906fi
11907LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11908if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11910$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11911else
5213506e
RW
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11913$as_echo "no" >&6; }
278a7a38
AO
11914fi
11915
5213506e 11916
278a7a38
AO
11917fi
11918if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11919
11920
11921if test -n "$LIPO_FOR_TARGET"; then
11922 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11923elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11924 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11925fi
11926
11927if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11928 for ncn_progname in lipo; do
11929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11930set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11932$as_echo_n "checking for $ac_word... " >&6; }
11933if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11934 $as_echo_n "(cached) " >&6
e8b05380 11935else
278a7a38
AO
11936 if test -n "$LIPO_FOR_TARGET"; then
11937 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11938else
11939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940for as_dir in $PATH
1c710c3c
DJ
11941do
11942 IFS=$as_save_IFS
11943 test -z "$as_dir" && as_dir=.
5213506e
RW
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11946 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11948 break 2
11949 fi
11950done
5213506e
RW
11951 done
11952IFS=$as_save_IFS
1c710c3c 11953
e8b05380 11954fi
278a7a38
AO
11955fi
11956LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11957if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11959$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11960else
5213506e
RW
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962$as_echo "no" >&6; }
e8b05380
PB
11963fi
11964
5213506e 11965
278a7a38 11966 done
e8b05380 11967fi
278a7a38
AO
11968
11969if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11970 for ncn_progname in lipo; do
5213506e
RW
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11972$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11973 if test -x $with_build_time_tools/${ncn_progname}; then
11974 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976$as_echo "yes" >&6; }
e8b05380
PB
11977 break
11978 else
5213506e
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980$as_echo "no" >&6; }
e8b05380
PB
11981 fi
11982 done
11983fi
11984
11985if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11986 for ncn_progname in lipo; do
11987 if test -n "$ncn_target_tool_prefix"; then
11988 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11989set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991$as_echo_n "checking for $ac_word... " >&6; }
11992if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
040b1c5a
GK
11994else
11995 if test -n "$LIPO_FOR_TARGET"; then
11996 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11997else
1c710c3c
DJ
11998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999for as_dir in $PATH
12000do
12001 IFS=$as_save_IFS
12002 test -z "$as_dir" && as_dir=.
5213506e
RW
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12005 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12007 break 2
12008 fi
12009done
5213506e
RW
12010 done
12011IFS=$as_save_IFS
1c710c3c 12012
040b1c5a
GK
12013fi
12014fi
1c710c3c 12015LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12016if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12018$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12019else
5213506e
RW
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021$as_echo "no" >&6; }
040b1c5a
GK
12022fi
12023
5213506e 12024
e8b05380
PB
12025 fi
12026 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12028set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12030$as_echo_n "checking for $ac_word... " >&6; }
12031if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12032 $as_echo_n "(cached) " >&6
040b1c5a
GK
12033else
12034 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12035 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12036else
1c710c3c
DJ
12037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12038for as_dir in $PATH
12039do
12040 IFS=$as_save_IFS
12041 test -z "$as_dir" && as_dir=.
5213506e
RW
12042 for ac_exec_ext in '' $ac_executable_extensions; do
12043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12044 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12046 break 2
12047 fi
12048done
5213506e
RW
12049 done
12050IFS=$as_save_IFS
1c710c3c 12051
040b1c5a
GK
12052fi
12053fi
1c710c3c 12054LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12055if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12057$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12058else
5213506e
RW
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060$as_echo "no" >&6; }
040b1c5a 12061fi
1c710c3c 12062
5213506e 12063
e8b05380
PB
12064 fi
12065 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12066 done
12067fi
1c710c3c 12068
040b1c5a
GK
12069if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12070 set dummy lipo
12071 if test $build = $target ; then
12072 LIPO_FOR_TARGET="$2"
12073 else
12074 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12075 fi
1c00b503
PB
12076else
12077 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12078fi
12079
d1f8db0c
PB
12080else
12081 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12082fi
12083
12084
12085
12086
12087if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12088 if test -n "$with_build_time_tools"; then
5213506e
RW
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12090$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12091 if test -x $with_build_time_tools/nm; then
12092 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12093 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12095$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12096 else
5213506e
RW
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098$as_echo "no" >&6; }
d1f8db0c 12099 fi
e8b05380
PB
12100 elif test $build != $host && test $have_gcc_for_target = yes; then
12101 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12102 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12103 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12104 fi
12105fi
3e19841a 12106if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12107 # Extract the first word of "nm", so it can be a program name with args.
12108set dummy nm; ac_word=$2
5213506e
RW
12109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12110$as_echo_n "checking for $ac_word... " >&6; }
12111if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12112 $as_echo_n "(cached) " >&6
e8b05380 12113else
1c710c3c
DJ
12114 case $NM_FOR_TARGET in
12115 [\\/]* | ?:[\\/]*)
e8b05380
PB
12116 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12117 ;;
e8b05380 12118 *)
1c710c3c
DJ
12119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120for as_dir in $gcc_cv_tool_dirs
12121do
12122 IFS=$as_save_IFS
12123 test -z "$as_dir" && as_dir=.
5213506e
RW
12124 for ac_exec_ext in '' $ac_executable_extensions; do
12125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12126 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12128 break 2
12129 fi
12130done
5213506e
RW
12131 done
12132IFS=$as_save_IFS
1c710c3c 12133
e8b05380
PB
12134 ;;
12135esac
12136fi
1c710c3c 12137NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12138if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12140$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12141else
5213506e
RW
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143$as_echo "no" >&6; }
e8b05380
PB
12144fi
12145
5213506e 12146
e8b05380
PB
12147fi
12148if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12149
12150
12151if test -n "$NM_FOR_TARGET"; then
12152 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12153elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12154 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12155fi
12156
12157if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12158 for ncn_progname in nm; do
12159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12160set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12162$as_echo_n "checking for $ac_word... " >&6; }
12163if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12164 $as_echo_n "(cached) " >&6
278a7a38
AO
12165else
12166 if test -n "$NM_FOR_TARGET"; then
12167 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12168else
12169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12170for as_dir in $PATH
12171do
12172 IFS=$as_save_IFS
12173 test -z "$as_dir" && as_dir=.
5213506e
RW
12174 for ac_exec_ext in '' $ac_executable_extensions; do
12175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12176 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12178 break 2
12179 fi
12180done
5213506e
RW
12181 done
12182IFS=$as_save_IFS
278a7a38
AO
12183
12184fi
12185fi
12186NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12187if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12189$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12190else
5213506e
RW
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12192$as_echo "no" >&6; }
278a7a38
AO
12193fi
12194
5213506e 12195
278a7a38
AO
12196 done
12197fi
12198
12199if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12200 for ncn_progname in nm; do
5213506e
RW
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12202$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12203 if test -x $with_build_time_tools/${ncn_progname}; then
12204 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12206$as_echo "yes" >&6; }
e8b05380
PB
12207 break
12208 else
5213506e
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
e8b05380
PB
12211 fi
12212 done
12213fi
12214
12215if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12216 for ncn_progname in nm; do
12217 if test -n "$ncn_target_tool_prefix"; then
12218 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12219set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221$as_echo_n "checking for $ac_word... " >&6; }
12222if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12223 $as_echo_n "(cached) " >&6
ca9f4b81 12224else
4de997d1
PB
12225 if test -n "$NM_FOR_TARGET"; then
12226 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12227else
1c710c3c
DJ
12228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229for as_dir in $PATH
12230do
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
5213506e
RW
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12235 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12237 break 2
12238 fi
12239done
5213506e
RW
12240 done
12241IFS=$as_save_IFS
1c710c3c 12242
ca9f4b81
AO
12243fi
12244fi
1c710c3c 12245NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12246if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12248$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12249else
5213506e
RW
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12251$as_echo "no" >&6; }
ca9f4b81
AO
12252fi
12253
5213506e 12254
e8b05380
PB
12255 fi
12256 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12258set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12260$as_echo_n "checking for $ac_word... " >&6; }
12261if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12262 $as_echo_n "(cached) " >&6
ca9f4b81 12263else
2693c0b0
PB
12264 if test -n "$NM_FOR_TARGET"; then
12265 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12266else
1c710c3c
DJ
12267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12268for as_dir in $PATH
12269do
12270 IFS=$as_save_IFS
12271 test -z "$as_dir" && as_dir=.
5213506e
RW
12272 for ac_exec_ext in '' $ac_executable_extensions; do
12273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12274 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12276 break 2
12277 fi
12278done
5213506e
RW
12279 done
12280IFS=$as_save_IFS
1c710c3c 12281
ca9f4b81
AO
12282fi
12283fi
1c710c3c 12284NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12285if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12287$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12288else
5213506e
RW
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290$as_echo "no" >&6; }
ca9f4b81 12291fi
1c710c3c 12292
5213506e 12293
e8b05380
PB
12294 fi
12295 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12296 done
12297fi
1c710c3c 12298
2693c0b0
PB
12299if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12300 set dummy nm
12301 if test $build = $target ; then
12302 NM_FOR_TARGET="$2"
ca9f4b81 12303 else
2693c0b0 12304 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12305 fi
1c00b503
PB
12306else
12307 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12308fi
12309
d1f8db0c
PB
12310else
12311 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12312fi
12313
12314
12315
12316
9bccfdf5
AP
12317if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12318 if test -n "$with_build_time_tools"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12320$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12321 if test -x $with_build_time_tools/objcopy; then
12322 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12323 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12325$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12326 else
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12328$as_echo "no" >&6; }
12329 fi
12330 elif test $build != $host && test $have_gcc_for_target = yes; then
12331 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12332 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12333 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12334 fi
12335fi
12336if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12337 # Extract the first word of "objcopy", so it can be a program name with args.
12338set dummy objcopy; ac_word=$2
12339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12340$as_echo_n "checking for $ac_word... " >&6; }
12341if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12342 $as_echo_n "(cached) " >&6
12343else
12344 case $OBJCOPY_FOR_TARGET in
12345 [\\/]* | ?:[\\/]*)
12346 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12347 ;;
12348 *)
12349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12350for as_dir in $gcc_cv_tool_dirs
12351do
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
12354 for ac_exec_ext in '' $ac_executable_extensions; do
12355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12356 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12358 break 2
12359 fi
12360done
12361 done
12362IFS=$as_save_IFS
12363
12364 ;;
12365esac
12366fi
12367OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12368if test -n "$OBJCOPY_FOR_TARGET"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12370$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12371else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
12374fi
12375
12376
12377fi
12378if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12379
12380
12381if test -n "$OBJCOPY_FOR_TARGET"; then
12382 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12383elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12384 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12385fi
12386
12387if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12388 for ncn_progname in objcopy; do
12389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12390set dummy ${ncn_progname}; ac_word=$2
12391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12392$as_echo_n "checking for $ac_word... " >&6; }
12393if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12394 $as_echo_n "(cached) " >&6
12395else
12396 if test -n "$OBJCOPY_FOR_TARGET"; then
12397 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12398else
12399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12400for as_dir in $PATH
12401do
12402 IFS=$as_save_IFS
12403 test -z "$as_dir" && as_dir=.
12404 for ac_exec_ext in '' $ac_executable_extensions; do
12405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12406 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12408 break 2
12409 fi
12410done
12411 done
12412IFS=$as_save_IFS
12413
12414fi
12415fi
12416OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12417if test -n "$OBJCOPY_FOR_TARGET"; then
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12419$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12420else
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12422$as_echo "no" >&6; }
12423fi
12424
12425
12426 done
12427fi
12428
12429if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12430 for ncn_progname in objcopy; do
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12432$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12433 if test -x $with_build_time_tools/${ncn_progname}; then
12434 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12436$as_echo "yes" >&6; }
12437 break
12438 else
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12440$as_echo "no" >&6; }
12441 fi
12442 done
12443fi
12444
12445if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12446 for ncn_progname in objcopy; do
12447 if test -n "$ncn_target_tool_prefix"; then
12448 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12449set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451$as_echo_n "checking for $ac_word... " >&6; }
12452if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
12454else
12455 if test -n "$OBJCOPY_FOR_TARGET"; then
12456 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12457else
12458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12459for as_dir in $PATH
12460do
12461 IFS=$as_save_IFS
12462 test -z "$as_dir" && as_dir=.
12463 for ac_exec_ext in '' $ac_executable_extensions; do
12464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12465 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 break 2
12468 fi
12469done
12470 done
12471IFS=$as_save_IFS
12472
12473fi
12474fi
12475OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12476if test -n "$OBJCOPY_FOR_TARGET"; then
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12478$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12479else
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12481$as_echo "no" >&6; }
12482fi
12483
12484
12485 fi
12486 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12488set dummy ${ncn_progname}; ac_word=$2
12489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12490$as_echo_n "checking for $ac_word... " >&6; }
12491if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12492 $as_echo_n "(cached) " >&6
12493else
12494 if test -n "$OBJCOPY_FOR_TARGET"; then
12495 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12496else
12497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12498for as_dir in $PATH
12499do
12500 IFS=$as_save_IFS
12501 test -z "$as_dir" && as_dir=.
12502 for ac_exec_ext in '' $ac_executable_extensions; do
12503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12504 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12506 break 2
12507 fi
12508done
12509 done
12510IFS=$as_save_IFS
12511
12512fi
12513fi
12514OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12515if test -n "$OBJCOPY_FOR_TARGET"; then
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12517$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12518else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520$as_echo "no" >&6; }
12521fi
12522
12523
12524 fi
12525 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12526 done
12527fi
12528
12529if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12530 set dummy objcopy
12531 if test $build = $target ; then
12532 OBJCOPY_FOR_TARGET="$2"
12533 else
12534 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12535 fi
12536else
12537 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12538fi
12539
12540else
12541 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12542fi
12543
12544
12545
12546
e8b05380
PB
12547if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12548 if test -n "$with_build_time_tools"; then
5213506e
RW
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12550$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12551 if test -x $with_build_time_tools/objdump; then
12552 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12553 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12555$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12556 else
5213506e
RW
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558$as_echo "no" >&6; }
d1f8db0c 12559 fi
e8b05380
PB
12560 elif test $build != $host && test $have_gcc_for_target = yes; then
12561 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12562 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12563 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12564 fi
12565fi
3e19841a 12566if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12567 # Extract the first word of "objdump", so it can be a program name with args.
12568set dummy objdump; ac_word=$2
5213506e
RW
12569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570$as_echo_n "checking for $ac_word... " >&6; }
12571if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12572 $as_echo_n "(cached) " >&6
e8b05380 12573else
1c710c3c
DJ
12574 case $OBJDUMP_FOR_TARGET in
12575 [\\/]* | ?:[\\/]*)
e8b05380
PB
12576 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12577 ;;
e8b05380 12578 *)
1c710c3c
DJ
12579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12580for as_dir in $gcc_cv_tool_dirs
12581do
12582 IFS=$as_save_IFS
12583 test -z "$as_dir" && as_dir=.
5213506e
RW
12584 for ac_exec_ext in '' $ac_executable_extensions; do
12585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12586 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12588 break 2
12589 fi
12590done
5213506e
RW
12591 done
12592IFS=$as_save_IFS
1c710c3c 12593
e8b05380
PB
12594 ;;
12595esac
12596fi
1c710c3c 12597OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12598if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12600$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12601else
5213506e
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12603$as_echo "no" >&6; }
e8b05380
PB
12604fi
12605
5213506e 12606
e8b05380
PB
12607fi
12608if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12609
12610
12611if test -n "$OBJDUMP_FOR_TARGET"; then
12612 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12613elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12614 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12615fi
12616
12617if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12618 for ncn_progname in objdump; do
12619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12620set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12622$as_echo_n "checking for $ac_word... " >&6; }
12623if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12624 $as_echo_n "(cached) " >&6
278a7a38
AO
12625else
12626 if test -n "$OBJDUMP_FOR_TARGET"; then
12627 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12628else
12629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12630for as_dir in $PATH
12631do
12632 IFS=$as_save_IFS
12633 test -z "$as_dir" && as_dir=.
5213506e
RW
12634 for ac_exec_ext in '' $ac_executable_extensions; do
12635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12636 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12638 break 2
12639 fi
12640done
5213506e
RW
12641 done
12642IFS=$as_save_IFS
278a7a38
AO
12643
12644fi
12645fi
12646OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12647if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12649$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12650else
5213506e
RW
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12652$as_echo "no" >&6; }
278a7a38
AO
12653fi
12654
5213506e 12655
278a7a38
AO
12656 done
12657fi
12658
12659if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12660 for ncn_progname in objdump; do
5213506e
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12662$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12663 if test -x $with_build_time_tools/${ncn_progname}; then
12664 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12666$as_echo "yes" >&6; }
e8b05380
PB
12667 break
12668 else
5213506e
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670$as_echo "no" >&6; }
e8b05380
PB
12671 fi
12672 done
12673fi
12674
12675if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12676 for ncn_progname in objdump; do
12677 if test -n "$ncn_target_tool_prefix"; then
12678 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12679set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12681$as_echo_n "checking for $ac_word... " >&6; }
12682if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
d739199a
DJ
12684else
12685 if test -n "$OBJDUMP_FOR_TARGET"; then
12686 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12687else
1c710c3c
DJ
12688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12689for as_dir in $PATH
12690do
12691 IFS=$as_save_IFS
12692 test -z "$as_dir" && as_dir=.
5213506e
RW
12693 for ac_exec_ext in '' $ac_executable_extensions; do
12694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12695 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12697 break 2
12698 fi
12699done
5213506e
RW
12700 done
12701IFS=$as_save_IFS
1c710c3c 12702
d739199a
DJ
12703fi
12704fi
1c710c3c 12705OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12706if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12708$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12709else
5213506e
RW
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711$as_echo "no" >&6; }
d739199a
DJ
12712fi
12713
5213506e 12714
e8b05380
PB
12715 fi
12716 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12718set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12720$as_echo_n "checking for $ac_word... " >&6; }
12721if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12722 $as_echo_n "(cached) " >&6
d739199a
DJ
12723else
12724 if test -n "$OBJDUMP_FOR_TARGET"; then
12725 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12726else
1c710c3c
DJ
12727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728for as_dir in $PATH
12729do
12730 IFS=$as_save_IFS
12731 test -z "$as_dir" && as_dir=.
5213506e
RW
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12734 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12736 break 2
12737 fi
12738done
5213506e
RW
12739 done
12740IFS=$as_save_IFS
1c710c3c 12741
d739199a
DJ
12742fi
12743fi
1c710c3c 12744OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12745if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12747$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12748else
5213506e
RW
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750$as_echo "no" >&6; }
d739199a 12751fi
1c710c3c 12752
5213506e 12753
e8b05380
PB
12754 fi
12755 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12756 done
12757fi
1c710c3c 12758
d739199a
DJ
12759if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12760 set dummy objdump
12761 if test $build = $target ; then
12762 OBJDUMP_FOR_TARGET="$2"
12763 else
12764 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12765 fi
1c00b503
PB
12766else
12767 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12768fi
12769
d1f8db0c
PB
12770else
12771 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12772fi
12773
12774
12775
12776
12777if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12778 if test -n "$with_build_time_tools"; then
5213506e
RW
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12780$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12781 if test -x $with_build_time_tools/ranlib; then
12782 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12783 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12785$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12786 else
5213506e
RW
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12788$as_echo "no" >&6; }
d1f8db0c 12789 fi
e8b05380
PB
12790 elif test $build != $host && test $have_gcc_for_target = yes; then
12791 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12792 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12793 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12794 fi
12795fi
3e19841a 12796if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12797 # Extract the first word of "ranlib", so it can be a program name with args.
12798set dummy ranlib; ac_word=$2
5213506e
RW
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800$as_echo_n "checking for $ac_word... " >&6; }
12801if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12802 $as_echo_n "(cached) " >&6
e8b05380 12803else
1c710c3c
DJ
12804 case $RANLIB_FOR_TARGET in
12805 [\\/]* | ?:[\\/]*)
e8b05380
PB
12806 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12807 ;;
e8b05380 12808 *)
1c710c3c
DJ
12809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12810for as_dir in $gcc_cv_tool_dirs
12811do
12812 IFS=$as_save_IFS
12813 test -z "$as_dir" && as_dir=.
5213506e
RW
12814 for ac_exec_ext in '' $ac_executable_extensions; do
12815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12816 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12818 break 2
12819 fi
12820done
5213506e
RW
12821 done
12822IFS=$as_save_IFS
1c710c3c 12823
e8b05380
PB
12824 ;;
12825esac
12826fi
1c710c3c 12827RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12828if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12830$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12831else
5213506e
RW
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12833$as_echo "no" >&6; }
e8b05380
PB
12834fi
12835
5213506e 12836
e8b05380
PB
12837fi
12838if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12839
12840
12841if test -n "$RANLIB_FOR_TARGET"; then
12842 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12843elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12844 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12845fi
12846
12847if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12848 for ncn_progname in ranlib; do
12849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12850set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12852$as_echo_n "checking for $ac_word... " >&6; }
12853if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
278a7a38
AO
12855else
12856 if test -n "$RANLIB_FOR_TARGET"; then
12857 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12858else
12859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12860for as_dir in $PATH
12861do
12862 IFS=$as_save_IFS
12863 test -z "$as_dir" && as_dir=.
5213506e
RW
12864 for ac_exec_ext in '' $ac_executable_extensions; do
12865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12866 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12868 break 2
12869 fi
12870done
5213506e
RW
12871 done
12872IFS=$as_save_IFS
278a7a38
AO
12873
12874fi
12875fi
12876RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12877if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12879$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12880else
5213506e
RW
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882$as_echo "no" >&6; }
278a7a38
AO
12883fi
12884
5213506e 12885
278a7a38
AO
12886 done
12887fi
12888
12889if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12890 for ncn_progname in ranlib; do
5213506e
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12892$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12893 if test -x $with_build_time_tools/${ncn_progname}; then
12894 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12896$as_echo "yes" >&6; }
e8b05380
PB
12897 break
12898 else
5213506e
RW
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12900$as_echo "no" >&6; }
e8b05380
PB
12901 fi
12902 done
12903fi
12904
12905if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12906 for ncn_progname in ranlib; do
12907 if test -n "$ncn_target_tool_prefix"; then
12908 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12909set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12911$as_echo_n "checking for $ac_word... " >&6; }
12912if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12913 $as_echo_n "(cached) " >&6
ca9f4b81 12914else
4de997d1
PB
12915 if test -n "$RANLIB_FOR_TARGET"; then
12916 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12917else
1c710c3c
DJ
12918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919for as_dir in $PATH
12920do
12921 IFS=$as_save_IFS
12922 test -z "$as_dir" && as_dir=.
5213506e
RW
12923 for ac_exec_ext in '' $ac_executable_extensions; do
12924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12925 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12927 break 2
12928 fi
12929done
5213506e
RW
12930 done
12931IFS=$as_save_IFS
1c710c3c 12932
ca9f4b81
AO
12933fi
12934fi
1c710c3c 12935RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12936if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12938$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12939else
5213506e
RW
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12941$as_echo "no" >&6; }
ca9f4b81
AO
12942fi
12943
5213506e 12944
e8b05380
PB
12945 fi
12946 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12948set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12950$as_echo_n "checking for $ac_word... " >&6; }
12951if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12952 $as_echo_n "(cached) " >&6
ca9f4b81 12953else
2693c0b0
PB
12954 if test -n "$RANLIB_FOR_TARGET"; then
12955 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12956else
1c710c3c
DJ
12957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958for as_dir in $PATH
12959do
12960 IFS=$as_save_IFS
12961 test -z "$as_dir" && as_dir=.
5213506e
RW
12962 for ac_exec_ext in '' $ac_executable_extensions; do
12963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12964 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12966 break 2
12967 fi
12968done
5213506e
RW
12969 done
12970IFS=$as_save_IFS
1c710c3c 12971
ca9f4b81
AO
12972fi
12973fi
1c710c3c 12974RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12975if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12977$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12978else
5213506e
RW
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980$as_echo "no" >&6; }
ca9f4b81 12981fi
1c710c3c 12982
5213506e 12983
e8b05380
PB
12984 fi
12985 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12986 done
12987fi
1c710c3c 12988
e8b05380
PB
12989if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12990 set dummy ranlib
12991 if test $build = $target ; then
12992 RANLIB_FOR_TARGET="$2"
12993 else
12994 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12995 fi
1c00b503
PB
12996else
12997 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12998fi
2693c0b0 12999
d1f8db0c
PB
13000else
13001 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13002fi
13003
e8b05380
PB
13004
13005
13006
e7a82751
RM
13007if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13008 if test -n "$with_build_time_tools"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13010$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13011 if test -x $with_build_time_tools/readelf; then
13012 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13013 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13015$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13016 else
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13018$as_echo "no" >&6; }
13019 fi
13020 elif test $build != $host && test $have_gcc_for_target = yes; then
13021 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13022 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13023 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13024 fi
13025fi
13026if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13027 # Extract the first word of "readelf", so it can be a program name with args.
13028set dummy readelf; ac_word=$2
13029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13030$as_echo_n "checking for $ac_word... " >&6; }
13031if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13032 $as_echo_n "(cached) " >&6
13033else
13034 case $READELF_FOR_TARGET in
13035 [\\/]* | ?:[\\/]*)
13036 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13037 ;;
13038 *)
13039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13040for as_dir in $gcc_cv_tool_dirs
13041do
13042 IFS=$as_save_IFS
13043 test -z "$as_dir" && as_dir=.
13044 for ac_exec_ext in '' $ac_executable_extensions; do
13045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13046 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13048 break 2
13049 fi
13050done
13051 done
13052IFS=$as_save_IFS
13053
13054 ;;
13055esac
13056fi
13057READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13058if test -n "$READELF_FOR_TARGET"; then
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13060$as_echo "$READELF_FOR_TARGET" >&6; }
13061else
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13063$as_echo "no" >&6; }
13064fi
13065
13066
13067fi
13068if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13069
13070
13071if test -n "$READELF_FOR_TARGET"; then
13072 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13073elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13074 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13075fi
13076
13077if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13078 for ncn_progname in readelf; do
13079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13080set dummy ${ncn_progname}; ac_word=$2
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13082$as_echo_n "checking for $ac_word... " >&6; }
13083if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13084 $as_echo_n "(cached) " >&6
13085else
13086 if test -n "$READELF_FOR_TARGET"; then
13087 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13088else
13089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090for as_dir in $PATH
13091do
13092 IFS=$as_save_IFS
13093 test -z "$as_dir" && as_dir=.
13094 for ac_exec_ext in '' $ac_executable_extensions; do
13095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13096 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098 break 2
13099 fi
13100done
13101 done
13102IFS=$as_save_IFS
13103
13104fi
13105fi
13106READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13107if test -n "$READELF_FOR_TARGET"; then
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13109$as_echo "$READELF_FOR_TARGET" >&6; }
13110else
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13112$as_echo "no" >&6; }
13113fi
13114
13115
13116 done
13117fi
13118
13119if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13120 for ncn_progname in readelf; do
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13122$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13123 if test -x $with_build_time_tools/${ncn_progname}; then
13124 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13126$as_echo "yes" >&6; }
13127 break
13128 else
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130$as_echo "no" >&6; }
13131 fi
13132 done
13133fi
13134
13135if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13136 for ncn_progname in readelf; do
13137 if test -n "$ncn_target_tool_prefix"; then
13138 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13139set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13141$as_echo_n "checking for $ac_word... " >&6; }
13142if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13143 $as_echo_n "(cached) " >&6
13144else
13145 if test -n "$READELF_FOR_TARGET"; then
13146 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13147else
13148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13149for as_dir in $PATH
13150do
13151 IFS=$as_save_IFS
13152 test -z "$as_dir" && as_dir=.
13153 for ac_exec_ext in '' $ac_executable_extensions; do
13154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13155 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13157 break 2
13158 fi
13159done
13160 done
13161IFS=$as_save_IFS
13162
13163fi
13164fi
13165READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13166if test -n "$READELF_FOR_TARGET"; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13168$as_echo "$READELF_FOR_TARGET" >&6; }
13169else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171$as_echo "no" >&6; }
13172fi
13173
13174
13175 fi
13176 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13178set dummy ${ncn_progname}; ac_word=$2
13179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13180$as_echo_n "checking for $ac_word... " >&6; }
13181if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13182 $as_echo_n "(cached) " >&6
13183else
13184 if test -n "$READELF_FOR_TARGET"; then
13185 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13186else
13187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13188for as_dir in $PATH
13189do
13190 IFS=$as_save_IFS
13191 test -z "$as_dir" && as_dir=.
13192 for ac_exec_ext in '' $ac_executable_extensions; do
13193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13194 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13196 break 2
13197 fi
13198done
13199 done
13200IFS=$as_save_IFS
13201
13202fi
13203fi
13204READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13205if test -n "$READELF_FOR_TARGET"; then
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13207$as_echo "$READELF_FOR_TARGET" >&6; }
13208else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210$as_echo "no" >&6; }
13211fi
13212
13213
13214 fi
13215 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13216 done
13217fi
13218
13219if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13220 set dummy readelf
13221 if test $build = $target ; then
13222 READELF_FOR_TARGET="$2"
13223 else
13224 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13225 fi
13226else
13227 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13228fi
13229
13230else
13231 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13232fi
13233
13234
13235
13236
e8b05380
PB
13237if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13238 if test -n "$with_build_time_tools"; then
5213506e
RW
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13240$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13241 if test -x $with_build_time_tools/strip; then
13242 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13243 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13245$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13246 else
5213506e
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13248$as_echo "no" >&6; }
d1f8db0c 13249 fi
e8b05380
PB
13250 elif test $build != $host && test $have_gcc_for_target = yes; then
13251 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13252 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13253 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13254 fi
13255fi
3e19841a 13256if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13257 # Extract the first word of "strip", so it can be a program name with args.
13258set dummy strip; ac_word=$2
5213506e
RW
13259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260$as_echo_n "checking for $ac_word... " >&6; }
13261if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13262 $as_echo_n "(cached) " >&6
e8b05380 13263else
1c710c3c
DJ
13264 case $STRIP_FOR_TARGET in
13265 [\\/]* | ?:[\\/]*)
e8b05380
PB
13266 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13267 ;;
e8b05380 13268 *)
1c710c3c
DJ
13269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13270for as_dir in $gcc_cv_tool_dirs
13271do
13272 IFS=$as_save_IFS
13273 test -z "$as_dir" && as_dir=.
5213506e
RW
13274 for ac_exec_ext in '' $ac_executable_extensions; do
13275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13276 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13278 break 2
13279 fi
13280done
5213506e
RW
13281 done
13282IFS=$as_save_IFS
1c710c3c 13283
e8b05380
PB
13284 ;;
13285esac
13286fi
1c710c3c 13287STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13288if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13290$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13291else
5213506e
RW
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13293$as_echo "no" >&6; }
e8b05380
PB
13294fi
13295
5213506e 13296
e8b05380
PB
13297fi
13298if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13299
13300
13301if test -n "$STRIP_FOR_TARGET"; then
13302 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13303elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13304 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13305fi
13306
13307if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13308 for ncn_progname in strip; do
13309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13310set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13312$as_echo_n "checking for $ac_word... " >&6; }
13313if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13314 $as_echo_n "(cached) " >&6
278a7a38
AO
13315else
13316 if test -n "$STRIP_FOR_TARGET"; then
13317 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13318else
13319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320for as_dir in $PATH
13321do
13322 IFS=$as_save_IFS
13323 test -z "$as_dir" && as_dir=.
5213506e
RW
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13326 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13328 break 2
13329 fi
13330done
5213506e
RW
13331 done
13332IFS=$as_save_IFS
278a7a38
AO
13333
13334fi
13335fi
13336STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13337if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13339$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13340else
5213506e
RW
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13342$as_echo "no" >&6; }
278a7a38
AO
13343fi
13344
5213506e 13345
278a7a38
AO
13346 done
13347fi
13348
13349if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13350 for ncn_progname in strip; do
5213506e
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13352$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13353 if test -x $with_build_time_tools/${ncn_progname}; then
13354 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13356$as_echo "yes" >&6; }
e8b05380
PB
13357 break
13358 else
5213506e
RW
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13360$as_echo "no" >&6; }
e8b05380
PB
13361 fi
13362 done
13363fi
13364
13365if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13366 for ncn_progname in strip; do
13367 if test -n "$ncn_target_tool_prefix"; then
13368 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13369set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371$as_echo_n "checking for $ac_word... " >&6; }
13372if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
af71363e
AS
13374else
13375 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13376 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13377else
13378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13379for as_dir in $PATH
13380do
13381 IFS=$as_save_IFS
13382 test -z "$as_dir" && as_dir=.
5213506e
RW
13383 for ac_exec_ext in '' $ac_executable_extensions; do
13384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13385 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13387 break 2
13388 fi
13389done
5213506e
RW
13390 done
13391IFS=$as_save_IFS
1c710c3c 13392
040b1c5a
GK
13393fi
13394fi
1c710c3c 13395STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13396if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13398$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13399else
5213506e
RW
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13401$as_echo "no" >&6; }
040b1c5a
GK
13402fi
13403
5213506e 13404
e8b05380
PB
13405 fi
13406 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13407 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13408set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13410$as_echo_n "checking for $ac_word... " >&6; }
13411if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13412 $as_echo_n "(cached) " >&6
040b1c5a
GK
13413else
13414 if test -n "$STRIP_FOR_TARGET"; then
13415 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13416else
1c710c3c
DJ
13417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13418for as_dir in $PATH
13419do
13420 IFS=$as_save_IFS
13421 test -z "$as_dir" && as_dir=.
5213506e
RW
13422 for ac_exec_ext in '' $ac_executable_extensions; do
13423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13424 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13426 break 2
13427 fi
13428done
5213506e
RW
13429 done
13430IFS=$as_save_IFS
1c710c3c 13431
040b1c5a
GK
13432fi
13433fi
1c710c3c 13434STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13435if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13437$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13438else
5213506e
RW
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440$as_echo "no" >&6; }
040b1c5a 13441fi
1c710c3c 13442
5213506e 13443
e8b05380
PB
13444 fi
13445 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13446 done
13447fi
1c710c3c 13448
040b1c5a
GK
13449if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13450 set dummy strip
13451 if test $build = $target ; then
13452 STRIP_FOR_TARGET="$2"
13453 else
13454 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13455 fi
1c00b503
PB
13456else
13457 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13458fi
13459
d1f8db0c
PB
13460else
13461 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13462fi
13463
13464
13465
13466
13467if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13468 if test -n "$with_build_time_tools"; then
5213506e
RW
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13470$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13471 if test -x $with_build_time_tools/windres; then
13472 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13473 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13475$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13476 else
5213506e
RW
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13478$as_echo "no" >&6; }
d1f8db0c 13479 fi
e8b05380
PB
13480 elif test $build != $host && test $have_gcc_for_target = yes; then
13481 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13482 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13483 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13484 fi
13485fi
3e19841a 13486if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13487 # Extract the first word of "windres", so it can be a program name with args.
13488set dummy windres; ac_word=$2
5213506e
RW
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13490$as_echo_n "checking for $ac_word... " >&6; }
13491if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13492 $as_echo_n "(cached) " >&6
e8b05380 13493else
1c710c3c
DJ
13494 case $WINDRES_FOR_TARGET in
13495 [\\/]* | ?:[\\/]*)
e8b05380
PB
13496 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13497 ;;
e8b05380 13498 *)
1c710c3c
DJ
13499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500for as_dir in $gcc_cv_tool_dirs
13501do
13502 IFS=$as_save_IFS
13503 test -z "$as_dir" && as_dir=.
5213506e
RW
13504 for ac_exec_ext in '' $ac_executable_extensions; do
13505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13506 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13508 break 2
13509 fi
13510done
5213506e
RW
13511 done
13512IFS=$as_save_IFS
1c710c3c 13513
e8b05380
PB
13514 ;;
13515esac
13516fi
1c710c3c 13517WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13518if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13520$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13521else
5213506e
RW
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13523$as_echo "no" >&6; }
e8b05380
PB
13524fi
13525
5213506e 13526
e8b05380
PB
13527fi
13528if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13529
13530
13531if test -n "$WINDRES_FOR_TARGET"; then
13532 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13533elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13534 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13535fi
13536
13537if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13538 for ncn_progname in windres; do
13539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13540set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13542$as_echo_n "checking for $ac_word... " >&6; }
13543if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13544 $as_echo_n "(cached) " >&6
278a7a38
AO
13545else
13546 if test -n "$WINDRES_FOR_TARGET"; then
13547 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13548else
13549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550for as_dir in $PATH
13551do
13552 IFS=$as_save_IFS
13553 test -z "$as_dir" && as_dir=.
5213506e
RW
13554 for ac_exec_ext in '' $ac_executable_extensions; do
13555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13556 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13558 break 2
13559 fi
13560done
5213506e
RW
13561 done
13562IFS=$as_save_IFS
278a7a38
AO
13563
13564fi
13565fi
13566WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13567if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13569$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13570else
5213506e
RW
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572$as_echo "no" >&6; }
278a7a38
AO
13573fi
13574
5213506e 13575
278a7a38
AO
13576 done
13577fi
13578
13579if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13580 for ncn_progname in windres; do
5213506e
RW
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13582$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13583 if test -x $with_build_time_tools/${ncn_progname}; then
13584 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13586$as_echo "yes" >&6; }
e8b05380
PB
13587 break
13588 else
5213506e
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13590$as_echo "no" >&6; }
e8b05380
PB
13591 fi
13592 done
13593fi
13594
13595if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13596 for ncn_progname in windres; do
13597 if test -n "$ncn_target_tool_prefix"; then
13598 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13599set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13601$as_echo_n "checking for $ac_word... " >&6; }
13602if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13603 $as_echo_n "(cached) " >&6
ca9f4b81 13604else
4de997d1
PB
13605 if test -n "$WINDRES_FOR_TARGET"; then
13606 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13607else
1c710c3c
DJ
13608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609for as_dir in $PATH
13610do
13611 IFS=$as_save_IFS
13612 test -z "$as_dir" && as_dir=.
5213506e
RW
13613 for ac_exec_ext in '' $ac_executable_extensions; do
13614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13615 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13617 break 2
13618 fi
13619done
5213506e
RW
13620 done
13621IFS=$as_save_IFS
1c710c3c 13622
ca9f4b81
AO
13623fi
13624fi
1c710c3c 13625WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13626if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13628$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13629else
5213506e
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13631$as_echo "no" >&6; }
ca9f4b81
AO
13632fi
13633
5213506e 13634
e8b05380
PB
13635 fi
13636 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13638set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640$as_echo_n "checking for $ac_word... " >&6; }
13641if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13642 $as_echo_n "(cached) " >&6
ca9f4b81 13643else
2693c0b0
PB
13644 if test -n "$WINDRES_FOR_TARGET"; then
13645 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13646else
1c710c3c
DJ
13647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648for as_dir in $PATH
13649do
13650 IFS=$as_save_IFS
13651 test -z "$as_dir" && as_dir=.
5213506e
RW
13652 for ac_exec_ext in '' $ac_executable_extensions; do
13653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13654 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13656 break 2
13657 fi
13658done
5213506e
RW
13659 done
13660IFS=$as_save_IFS
1c710c3c 13661
ca9f4b81
AO
13662fi
13663fi
1c710c3c 13664WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13665if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13667$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13668else
5213506e
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670$as_echo "no" >&6; }
ca9f4b81 13671fi
1c710c3c 13672
5213506e 13673
e8b05380
PB
13674 fi
13675 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13676 done
13677fi
1c710c3c 13678
2693c0b0
PB
13679if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13680 set dummy windres
13681 if test $build = $target ; then
13682 WINDRES_FOR_TARGET="$2"
ca9f4b81 13683 else
2693c0b0 13684 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13685 fi
1c00b503
PB
13686else
13687 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13688fi
13689
d1f8db0c
PB
13690else
13691 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13692fi
13693
4977bab6 13694
901119ae
KT
13695
13696
13697if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13698 if test -n "$with_build_time_tools"; then
5213506e
RW
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13700$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13701 if test -x $with_build_time_tools/windmc; then
13702 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13703 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13705$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13706 else
5213506e
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13708$as_echo "no" >&6; }
901119ae
KT
13709 fi
13710 elif test $build != $host && test $have_gcc_for_target = yes; then
13711 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13712 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13713 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13714 fi
13715fi
13716if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13717 # Extract the first word of "windmc", so it can be a program name with args.
13718set dummy windmc; ac_word=$2
5213506e
RW
13719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13720$as_echo_n "checking for $ac_word... " >&6; }
13721if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13722 $as_echo_n "(cached) " >&6
901119ae
KT
13723else
13724 case $WINDMC_FOR_TARGET in
13725 [\\/]* | ?:[\\/]*)
13726 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13727 ;;
13728 *)
13729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730for as_dir in $gcc_cv_tool_dirs
13731do
13732 IFS=$as_save_IFS
13733 test -z "$as_dir" && as_dir=.
5213506e
RW
13734 for ac_exec_ext in '' $ac_executable_extensions; do
13735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13736 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13738 break 2
13739 fi
13740done
5213506e
RW
13741 done
13742IFS=$as_save_IFS
901119ae
KT
13743
13744 ;;
13745esac
13746fi
13747WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13748if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13750$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13751else
5213506e
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753$as_echo "no" >&6; }
901119ae
KT
13754fi
13755
5213506e 13756
901119ae
KT
13757fi
13758if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13759
13760
13761if test -n "$WINDMC_FOR_TARGET"; then
13762 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13763elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13764 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13765fi
13766
13767if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13768 for ncn_progname in windmc; do
13769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13770set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13772$as_echo_n "checking for $ac_word... " >&6; }
13773if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13774 $as_echo_n "(cached) " >&6
901119ae
KT
13775else
13776 if test -n "$WINDMC_FOR_TARGET"; then
13777 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13778else
13779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13780for as_dir in $PATH
13781do
13782 IFS=$as_save_IFS
13783 test -z "$as_dir" && as_dir=.
5213506e
RW
13784 for ac_exec_ext in '' $ac_executable_extensions; do
13785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13786 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13788 break 2
13789 fi
13790done
5213506e
RW
13791 done
13792IFS=$as_save_IFS
901119ae
KT
13793
13794fi
13795fi
13796WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13797if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13799$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13800else
5213506e
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13802$as_echo "no" >&6; }
901119ae
KT
13803fi
13804
5213506e 13805
901119ae
KT
13806 done
13807fi
13808
13809if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13810 for ncn_progname in windmc; do
5213506e
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13812$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13813 if test -x $with_build_time_tools/${ncn_progname}; then
13814 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13816$as_echo "yes" >&6; }
901119ae
KT
13817 break
13818 else
5213506e
RW
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820$as_echo "no" >&6; }
901119ae
KT
13821 fi
13822 done
13823fi
13824
13825if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13826 for ncn_progname in windmc; do
13827 if test -n "$ncn_target_tool_prefix"; then
13828 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13829set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13831$as_echo_n "checking for $ac_word... " >&6; }
13832if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13833 $as_echo_n "(cached) " >&6
901119ae
KT
13834else
13835 if test -n "$WINDMC_FOR_TARGET"; then
13836 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13837else
13838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13839for as_dir in $PATH
13840do
13841 IFS=$as_save_IFS
13842 test -z "$as_dir" && as_dir=.
5213506e
RW
13843 for ac_exec_ext in '' $ac_executable_extensions; do
13844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13845 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13847 break 2
13848 fi
13849done
5213506e
RW
13850 done
13851IFS=$as_save_IFS
901119ae
KT
13852
13853fi
13854fi
13855WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13856if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13858$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13859else
5213506e
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13861$as_echo "no" >&6; }
901119ae
KT
13862fi
13863
5213506e 13864
901119ae
KT
13865 fi
13866 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13867 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13868set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13870$as_echo_n "checking for $ac_word... " >&6; }
13871if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13872 $as_echo_n "(cached) " >&6
901119ae
KT
13873else
13874 if test -n "$WINDMC_FOR_TARGET"; then
13875 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13876else
13877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13878for as_dir in $PATH
13879do
13880 IFS=$as_save_IFS
13881 test -z "$as_dir" && as_dir=.
5213506e
RW
13882 for ac_exec_ext in '' $ac_executable_extensions; do
13883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13884 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13886 break 2
13887 fi
13888done
5213506e
RW
13889 done
13890IFS=$as_save_IFS
901119ae
KT
13891
13892fi
13893fi
13894WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13895if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13897$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13898else
5213506e
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900$as_echo "no" >&6; }
901119ae
KT
13901fi
13902
5213506e 13903
901119ae
KT
13904 fi
13905 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13906 done
13907fi
13908
13909if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13910 set dummy windmc
13911 if test $build = $target ; then
13912 WINDMC_FOR_TARGET="$2"
13913 else
13914 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13915 fi
1c00b503
PB
13916else
13917 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13918fi
13919
13920else
13921 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13922fi
13923
13924
2abefe3d
PB
13925RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13926
5213506e
RW
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13928$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13929if test "x${build}" != "x${host}" ; then
e8b05380
PB
13930 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13931 # We already found the complete path
172e41aa 13932 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13934$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13935 else
13936 # Canadian cross, just use what we found
5213506e
RW
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13938$as_echo "pre-installed" >&6; }
e8b05380 13939 fi
2abefe3d
PB
13940else
13941 ok=yes
13942 case " ${configdirs} " in
13943 *" binutils "*) ;;
13944 *) ok=no ;;
13945 esac
1c710c3c 13946
2abefe3d
PB
13947 if test $ok = yes; then
13948 # An in-tree tool is available and we can use it
13949 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13951$as_echo "just compiled" >&6; }
e8b05380
PB
13952 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13953 # We already found the complete path
172e41aa 13954 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13956$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13957 elif test "x$target" = "x$host"; then
13958 # We can use an host tool
13959 AR_FOR_TARGET='$(AR)'
5213506e
RW
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13961$as_echo "host tool" >&6; }
2abefe3d
PB
13962 else
13963 # We need a cross tool
5213506e
RW
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13965$as_echo "pre-installed" >&6; }
2abefe3d
PB
13966 fi
13967fi
0b0dc272 13968
5213506e
RW
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13970$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13971if test "x${build}" != "x${host}" ; then
e8b05380
PB
13972 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13973 # We already found the complete path
172e41aa 13974 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13976$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13977 else
13978 # Canadian cross, just use what we found
5213506e
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13980$as_echo "pre-installed" >&6; }
e8b05380 13981 fi
2abefe3d
PB
13982else
13983 ok=yes
13984 case " ${configdirs} " in
13985 *" gas "*) ;;
13986 *) ok=no ;;
13987 esac
1c710c3c 13988
2abefe3d
PB
13989 if test $ok = yes; then
13990 # An in-tree tool is available and we can use it
13991 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13993$as_echo "just compiled" >&6; }
e8b05380
PB
13994 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13995 # We already found the complete path
172e41aa 13996 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13998$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13999 elif test "x$target" = "x$host"; then
14000 # We can use an host tool
14001 AS_FOR_TARGET='$(AS)'
5213506e
RW
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14003$as_echo "host tool" >&6; }
2abefe3d
PB
14004 else
14005 # We need a cross tool
5213506e
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14007$as_echo "pre-installed" >&6; }
2abefe3d
PB
14008 fi
14009fi
0b0dc272 14010
5213506e
RW
14011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14012$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14013if test "x${build}" != "x${host}" ; then
e8b05380
PB
14014 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14015 # We already found the complete path
172e41aa 14016 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14018$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14019 else
14020 # Canadian cross, just use what we found
5213506e
RW
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14022$as_echo "pre-installed" >&6; }
e8b05380 14023 fi
2abefe3d
PB
14024else
14025 ok=yes
14026 case " ${configdirs} " in
14027 *" gcc "*) ;;
14028 *) ok=no ;;
14029 esac
1c710c3c 14030
2abefe3d
PB
14031 if test $ok = yes; then
14032 # An in-tree tool is available and we can use it
14033 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14035$as_echo "just compiled" >&6; }
e8b05380
PB
14036 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14037 # We already found the complete path
172e41aa 14038 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14040$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14041 elif test "x$target" = "x$host"; then
14042 # We can use an host tool
14043 CC_FOR_TARGET='$(CC)'
5213506e
RW
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14045$as_echo "host tool" >&6; }
2abefe3d
PB
14046 else
14047 # We need a cross tool
5213506e
RW
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14049$as_echo "pre-installed" >&6; }
2abefe3d
PB
14050 fi
14051fi
0b0dc272 14052
5213506e
RW
14053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14054$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14055if test "x${build}" != "x${host}" ; then
e8b05380
PB
14056 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14057 # We already found the complete path
172e41aa 14058 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14060$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14061 else
14062 # Canadian cross, just use what we found
5213506e
RW
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14064$as_echo "pre-installed" >&6; }
e8b05380 14065 fi
2abefe3d
PB
14066else
14067 ok=yes
14068 case " ${configdirs} " in
14069 *" gcc "*) ;;
14070 *) ok=no ;;
14071 esac
14072 case ,${enable_languages}, in
14073 *,c++,*) ;;
14074 *) ok=no ;;
14075 esac
14076 if test $ok = yes; then
14077 # An in-tree tool is available and we can use it
2077db1b 14078 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14080$as_echo "just compiled" >&6; }
e8b05380
PB
14081 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14082 # We already found the complete path
172e41aa 14083 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14085$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14086 elif test "x$target" = "x$host"; then
14087 # We can use an host tool
14088 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14090$as_echo "host tool" >&6; }
2abefe3d
PB
14091 else
14092 # We need a cross tool
5213506e
RW
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14094$as_echo "pre-installed" >&6; }
2abefe3d
PB
14095 fi
14096fi
0b0dc272 14097
5213506e
RW
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14099$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14100if test "x${build}" != "x${host}" ; then
e8b05380
PB
14101 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14102 # We already found the complete path
172e41aa 14103 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14105$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14106 else
14107 # Canadian cross, just use what we found
5213506e
RW
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14109$as_echo "pre-installed" >&6; }
e8b05380 14110 fi
2abefe3d
PB
14111else
14112 ok=yes
14113 case " ${configdirs} " in
14114 *" gcc "*) ;;
14115 *) ok=no ;;
14116 esac
14117 case ,${enable_languages}, in
14118 *,c++,*) ;;
14119 *) ok=no ;;
14120 esac
14121 if test $ok = yes; then
14122 # An in-tree tool is available and we can use it
2077db1b 14123 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
5213506e
RW
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14125$as_echo "just compiled" >&6; }
e8b05380
PB
14126 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14127 # We already found the complete path
172e41aa 14128 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
14131 elif test "x$target" = "x$host"; then
14132 # We can use an host tool
14133 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14135$as_echo "host tool" >&6; }
2abefe3d
PB
14136 else
14137 # We need a cross tool
5213506e
RW
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14139$as_echo "pre-installed" >&6; }
2abefe3d
PB
14140 fi
14141fi
0b0dc272 14142
5213506e
RW
14143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14144$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14145if test "x${build}" != "x${host}" ; then
e8b05380
PB
14146 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14147 # We already found the complete path
172e41aa 14148 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
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; }
e8b05380
PB
14151 else
14152 # Canadian cross, just use what we found
5213506e
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14154$as_echo "pre-installed" >&6; }
e8b05380 14155 fi
2abefe3d
PB
14156else
14157 ok=yes
14158 case " ${configdirs} " in
14159 *" binutils "*) ;;
14160 *) ok=no ;;
14161 esac
1c710c3c 14162
2abefe3d
PB
14163 if test $ok = yes; then
14164 # An in-tree tool is available and we can use it
14165 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14167$as_echo "just compiled" >&6; }
e8b05380
PB
14168 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14169 # We already found the complete path
172e41aa 14170 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
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; }
2abefe3d
PB
14173 elif test "x$target" = "x$host"; then
14174 # We can use an host tool
14175 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14177$as_echo "host tool" >&6; }
2abefe3d
PB
14178 else
14179 # We need a cross tool
5213506e
RW
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14181$as_echo "pre-installed" >&6; }
2abefe3d
PB
14182 fi
14183fi
0b0dc272 14184
5213506e
RW
14185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14186$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14187if test "x${build}" != "x${host}" ; then
e8b05380
PB
14188 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14189 # We already found the complete path
172e41aa 14190 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14192$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14193 else
14194 # Canadian cross, just use what we found
5213506e
RW
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14196$as_echo "pre-installed" >&6; }
e8b05380 14197 fi
2abefe3d
PB
14198else
14199 ok=yes
14200 case " ${configdirs} " in
14201 *" gcc "*) ;;
14202 *) ok=no ;;
14203 esac
1c710c3c 14204
2abefe3d
PB
14205 if test $ok = yes; then
14206 # An in-tree tool is available and we can use it
14207 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14209$as_echo "just compiled" >&6; }
e8b05380
PB
14210 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
172e41aa 14212 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14215 elif test "x$target" = "x$host"; then
14216 # We can use an host tool
14217 GCC_FOR_TARGET='$()'
5213506e
RW
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14219$as_echo "host tool" >&6; }
2abefe3d
PB
14220 else
14221 # We need a cross tool
5213506e
RW
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14223$as_echo "pre-installed" >&6; }
2abefe3d
PB
14224 fi
14225fi
0b0dc272 14226
5213506e
RW
14227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14228$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 14229if test "x${build}" != "x${host}" ; then
e8b05380
PB
14230 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14231 # We already found the complete path
172e41aa 14232 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
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; }
e8b05380
PB
14235 else
14236 # Canadian cross, just use what we found
5213506e
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14238$as_echo "pre-installed" >&6; }
e8b05380 14239 fi
2abefe3d
PB
14240else
14241 ok=yes
14242 case " ${configdirs} " in
14243 *" gcc "*) ;;
14244 *) ok=no ;;
14245 esac
14246 case ,${enable_languages}, in
14247 *,java,*) ;;
14248 *) ok=no ;;
14249 esac
14250 if test $ok = yes; then
14251 # An in-tree tool is available and we can use it
14252 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14254$as_echo "just compiled" >&6; }
e8b05380
PB
14255 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14256 # We already found the complete path
172e41aa 14257 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14259$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14260 elif test "x$target" = "x$host"; then
14261 # We can use an host tool
14262 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14264$as_echo "host tool" >&6; }
2abefe3d
PB
14265 else
14266 # We need a cross tool
5213506e
RW
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14268$as_echo "pre-installed" >&6; }
2abefe3d
PB
14269 fi
14270fi
0b0dc272 14271
5213506e
RW
14272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14273$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14274if test "x${build}" != "x${host}" ; then
e8b05380
PB
14275 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14276 # We already found the complete path
172e41aa 14277 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14279$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14280 else
14281 # Canadian cross, just use what we found
5213506e
RW
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14283$as_echo "pre-installed" >&6; }
e8b05380 14284 fi
2abefe3d
PB
14285else
14286 ok=yes
14287 case " ${configdirs} " in
14288 *" gcc "*) ;;
14289 *) ok=no ;;
14290 esac
14291 case ,${enable_languages}, in
14292 *,fortran,*) ;;
14293 *) ok=no ;;
14294 esac
14295 if test $ok = yes; then
14296 # An in-tree tool is available and we can use it
14297 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14299$as_echo "just compiled" >&6; }
e8b05380
PB
14300 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14301 # We already found the complete path
172e41aa 14302 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14304$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14305 elif test "x$target" = "x$host"; then
14306 # We can use an host tool
14307 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14309$as_echo "host tool" >&6; }
2abefe3d
PB
14310 else
14311 # We need a cross tool
5213506e
RW
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14313$as_echo "pre-installed" >&6; }
2abefe3d
PB
14314 fi
14315fi
0b0dc272 14316
632e2a07
ILT
14317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14318$as_echo_n "checking where to find the target gccgo... " >&6; }
14319if test "x${build}" != "x${host}" ; then
14320 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14321 # We already found the complete path
14322 ac_dir=`dirname $GOC_FOR_TARGET`
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14324$as_echo "pre-installed in $ac_dir" >&6; }
14325 else
14326 # Canadian cross, just use what we found
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14328$as_echo "pre-installed" >&6; }
14329 fi
14330else
14331 ok=yes
14332 case " ${configdirs} " in
14333 *" gcc "*) ;;
14334 *) ok=no ;;
14335 esac
14336 case ,${enable_languages}, in
14337 *,go,*) ;;
14338 *) ok=no ;;
14339 esac
14340 if test $ok = yes; then
14341 # An in-tree tool is available and we can use it
14342 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14344$as_echo "just compiled" >&6; }
14345 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14346 # We already found the complete path
14347 ac_dir=`dirname $GOC_FOR_TARGET`
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14349$as_echo "pre-installed in $ac_dir" >&6; }
14350 elif test "x$target" = "x$host"; then
14351 # We can use an host tool
14352 GOC_FOR_TARGET='$(GOC)'
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14354$as_echo "host tool" >&6; }
14355 else
14356 # We need a cross tool
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14358$as_echo "pre-installed" >&6; }
14359 fi
14360fi
14361
5213506e
RW
14362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14363$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14364if test "x${build}" != "x${host}" ; then
e8b05380
PB
14365 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14366 # We already found the complete path
172e41aa 14367 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14369$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14370 else
14371 # Canadian cross, just use what we found
5213506e
RW
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373$as_echo "pre-installed" >&6; }
e8b05380 14374 fi
2abefe3d
PB
14375else
14376 ok=yes
14377 case " ${configdirs} " in
14378 *" ld "*) ;;
14379 *) ok=no ;;
14380 esac
1c710c3c 14381
2abefe3d
PB
14382 if test $ok = yes; then
14383 # An in-tree tool is available and we can use it
14384 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14386$as_echo "just compiled" >&6; }
e8b05380
PB
14387 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14388 # We already found the complete path
172e41aa 14389 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14391$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14392 elif test "x$target" = "x$host"; then
14393 # We can use an host tool
14394 LD_FOR_TARGET='$(LD)'
5213506e
RW
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14396$as_echo "host tool" >&6; }
2abefe3d
PB
14397 else
14398 # We need a cross tool
5213506e
RW
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14400$as_echo "pre-installed" >&6; }
2abefe3d
PB
14401 fi
14402fi
0b0dc272 14403
5213506e
RW
14404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14405$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14406if test "x${build}" != "x${host}" ; then
e8b05380
PB
14407 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14408 # We already found the complete path
172e41aa 14409 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14411$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14412 else
14413 # Canadian cross, just use what we found
5213506e
RW
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415$as_echo "pre-installed" >&6; }
e8b05380 14416 fi
2abefe3d 14417else
e8b05380
PB
14418 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14419 # We already found the complete path
172e41aa 14420 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14422$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14423 elif test "x$target" = "x$host"; then
2abefe3d
PB
14424 # We can use an host tool
14425 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14427$as_echo "host tool" >&6; }
2abefe3d
PB
14428 else
14429 # We need a cross tool
5213506e
RW
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14431$as_echo "pre-installed" >&6; }
2abefe3d
PB
14432 fi
14433fi
0b0dc272 14434
5213506e
RW
14435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14436$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14437if test "x${build}" != "x${host}" ; then
e8b05380
PB
14438 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14439 # We already found the complete path
172e41aa 14440 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14442$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14443 else
14444 # Canadian cross, just use what we found
5213506e
RW
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14446$as_echo "pre-installed" >&6; }
e8b05380 14447 fi
2abefe3d
PB
14448else
14449 ok=yes
14450 case " ${configdirs} " in
14451 *" binutils "*) ;;
14452 *) ok=no ;;
14453 esac
1c710c3c 14454
2abefe3d
PB
14455 if test $ok = yes; then
14456 # An in-tree tool is available and we can use it
14457 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14459$as_echo "just compiled" >&6; }
e8b05380
PB
14460 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14461 # We already found the complete path
172e41aa 14462 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14464$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14465 elif test "x$target" = "x$host"; then
14466 # We can use an host tool
14467 NM_FOR_TARGET='$(NM)'
5213506e
RW
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14469$as_echo "host tool" >&6; }
2abefe3d
PB
14470 else
14471 # We need a cross tool
5213506e
RW
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14473$as_echo "pre-installed" >&6; }
2abefe3d
PB
14474 fi
14475fi
0b0dc272 14476
9bccfdf5
AP
14477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14478$as_echo_n "checking where to find the target objcopy... " >&6; }
14479if test "x${build}" != "x${host}" ; then
14480 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14481 # We already found the complete path
14482 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14484$as_echo "pre-installed in $ac_dir" >&6; }
14485 else
14486 # Canadian cross, just use what we found
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14488$as_echo "pre-installed" >&6; }
14489 fi
14490else
14491 ok=yes
14492 case " ${configdirs} " in
14493 *" binutils "*) ;;
14494 *) ok=no ;;
14495 esac
14496
14497 if test $ok = yes; then
14498 # An in-tree tool is available and we can use it
14499 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14501$as_echo "just compiled" >&6; }
14502 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14503 # We already found the complete path
14504 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14506$as_echo "pre-installed in $ac_dir" >&6; }
14507 elif test "x$target" = "x$host"; then
14508 # We can use an host tool
ec8fd1c0 14509 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14511$as_echo "host tool" >&6; }
14512 else
14513 # We need a cross tool
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14515$as_echo "pre-installed" >&6; }
14516 fi
14517fi
14518
5213506e
RW
14519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14520$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14521if test "x${build}" != "x${host}" ; then
e8b05380
PB
14522 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14523 # We already found the complete path
172e41aa 14524 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14526$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14527 else
14528 # Canadian cross, just use what we found
5213506e
RW
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14530$as_echo "pre-installed" >&6; }
e8b05380 14531 fi
2abefe3d
PB
14532else
14533 ok=yes
14534 case " ${configdirs} " in
14535 *" binutils "*) ;;
14536 *) ok=no ;;
14537 esac
1c710c3c 14538
2abefe3d
PB
14539 if test $ok = yes; then
14540 # An in-tree tool is available and we can use it
14541 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14543$as_echo "just compiled" >&6; }
e8b05380
PB
14544 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14545 # We already found the complete path
172e41aa 14546 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14548$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14549 elif test "x$target" = "x$host"; then
14550 # We can use an host tool
14551 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14553$as_echo "host tool" >&6; }
2abefe3d
PB
14554 else
14555 # We need a cross tool
5213506e
RW
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14557$as_echo "pre-installed" >&6; }
2abefe3d
PB
14558 fi
14559fi
0b0dc272 14560
5213506e
RW
14561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14562$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14563if test "x${build}" != "x${host}" ; then
e8b05380
PB
14564 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14565 # We already found the complete path
172e41aa 14566 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14568$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14569 else
14570 # Canadian cross, just use what we found
5213506e
RW
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14572$as_echo "pre-installed" >&6; }
e8b05380 14573 fi
2abefe3d
PB
14574else
14575 ok=yes
14576 case " ${configdirs} " in
14577 *" binutils "*) ;;
14578 *) ok=no ;;
14579 esac
1c710c3c 14580
2abefe3d
PB
14581 if test $ok = yes; then
14582 # An in-tree tool is available and we can use it
14583 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14585$as_echo "just compiled" >&6; }
e8b05380
PB
14586 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14587 # We already found the complete path
172e41aa 14588 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14590$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14591 elif test "x$target" = "x$host"; then
14592 # We can use an host tool
14593 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14595$as_echo "host tool" >&6; }
2abefe3d
PB
14596 else
14597 # We need a cross tool
5213506e
RW
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14599$as_echo "pre-installed" >&6; }
2abefe3d
PB
14600 fi
14601fi
0b0dc272 14602
e7a82751
RM
14603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14604$as_echo_n "checking where to find the target readelf... " >&6; }
14605if test "x${build}" != "x${host}" ; then
14606 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14607 # We already found the complete path
14608 ac_dir=`dirname $READELF_FOR_TARGET`
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14610$as_echo "pre-installed in $ac_dir" >&6; }
14611 else
14612 # Canadian cross, just use what we found
14613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14614$as_echo "pre-installed" >&6; }
14615 fi
14616else
14617 ok=yes
14618 case " ${configdirs} " in
14619 *" binutils "*) ;;
14620 *) ok=no ;;
14621 esac
14622
14623 if test $ok = yes; then
14624 # An in-tree tool is available and we can use it
14625 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14627$as_echo "just compiled" >&6; }
14628 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14629 # We already found the complete path
14630 ac_dir=`dirname $READELF_FOR_TARGET`
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14632$as_echo "pre-installed in $ac_dir" >&6; }
14633 elif test "x$target" = "x$host"; then
14634 # We can use an host tool
14635 READELF_FOR_TARGET='$(READELF)'
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14637$as_echo "host tool" >&6; }
14638 else
14639 # We need a cross tool
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14641$as_echo "pre-installed" >&6; }
14642 fi
14643fi
14644
5213506e
RW
14645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14646$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14647if test "x${build}" != "x${host}" ; then
e8b05380
PB
14648 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14649 # We already found the complete path
172e41aa 14650 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14652$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14653 else
14654 # Canadian cross, just use what we found
5213506e
RW
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14656$as_echo "pre-installed" >&6; }
e8b05380 14657 fi
2abefe3d
PB
14658else
14659 ok=yes
14660 case " ${configdirs} " in
14661 *" binutils "*) ;;
14662 *) ok=no ;;
14663 esac
1c710c3c 14664
2abefe3d
PB
14665 if test $ok = yes; then
14666 # An in-tree tool is available and we can use it
455c8f48 14667 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14669$as_echo "just compiled" >&6; }
e8b05380
PB
14670 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14671 # We already found the complete path
172e41aa 14672 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14674$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14675 elif test "x$target" = "x$host"; then
14676 # We can use an host tool
14677 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14679$as_echo "host tool" >&6; }
2abefe3d
PB
14680 else
14681 # We need a cross tool
5213506e
RW
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14683$as_echo "pre-installed" >&6; }
2abefe3d
PB
14684 fi
14685fi
0b0dc272 14686
5213506e
RW
14687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14688$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14689if test "x${build}" != "x${host}" ; then
e8b05380
PB
14690 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14691 # We already found the complete path
172e41aa 14692 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14694$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14695 else
14696 # Canadian cross, just use what we found
5213506e
RW
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14698$as_echo "pre-installed" >&6; }
e8b05380 14699 fi
2abefe3d
PB
14700else
14701 ok=yes
14702 case " ${configdirs} " in
14703 *" binutils "*) ;;
14704 *) ok=no ;;
14705 esac
1c710c3c 14706
2abefe3d
PB
14707 if test $ok = yes; then
14708 # An in-tree tool is available and we can use it
14709 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14711$as_echo "just compiled" >&6; }
e8b05380
PB
14712 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14713 # We already found the complete path
172e41aa 14714 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14716$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14717 elif test "x$target" = "x$host"; then
14718 # We can use an host tool
14719 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14721$as_echo "host tool" >&6; }
2abefe3d
PB
14722 else
14723 # We need a cross tool
5213506e
RW
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14725$as_echo "pre-installed" >&6; }
2abefe3d 14726 fi
671aa708 14727fi
be912515 14728
5213506e
RW
14729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14730$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14731if test "x${build}" != "x${host}" ; then
14732 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14733 # We already found the complete path
14734 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14736$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14737 else
14738 # Canadian cross, just use what we found
5213506e
RW
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14740$as_echo "pre-installed" >&6; }
901119ae
KT
14741 fi
14742else
14743 ok=yes
14744 case " ${configdirs} " in
14745 *" binutils "*) ;;
14746 *) ok=no ;;
14747 esac
14748
14749 if test $ok = yes; then
14750 # An in-tree tool is available and we can use it
14751 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14753$as_echo "just compiled" >&6; }
901119ae
KT
14754 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14755 # We already found the complete path
14756 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14758$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14759 elif test "x$target" = "x$host"; then
14760 # We can use an host tool
14761 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14763$as_echo "host tool" >&6; }
901119ae
KT
14764 else
14765 # We need a cross tool
5213506e
RW
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14767$as_echo "pre-installed" >&6; }
901119ae
KT
14768 fi
14769fi
14770
be912515
NN
14771
14772
2abefe3d 14773
0b0dc272 14774
671aa708
NN
14775# Certain tools may need extra flags.
14776AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14777RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14778NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14779
2abefe3d
PB
14780# When building target libraries, except in a Canadian cross, we use
14781# the same toolchain as the compiler we just built.
14782COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14783COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14784COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14785if test $host = $build; then
14786 case " $configdirs " in
14787 *" gcc "*)
14788 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14789 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14790 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14791 ;;
14792 esac
14793fi
14794
14795
14796
14797
14798
5213506e
RW
14799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14800$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14801# Check whether --enable-maintainer-mode was given.
14802if test "${enable_maintainer_mode+set}" = set; then :
14803 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14804else
14805 USE_MAINTAINER_MODE=no
5213506e
RW
14806fi
14807
14808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14809$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14810
14811
14812if test "$USE_MAINTAINER_MODE" = yes; then
14813 MAINTAINER_MODE_TRUE=
14814 MAINTAINER_MODE_FALSE='#'
14815else
14816 MAINTAINER_MODE_TRUE='#'
14817 MAINTAINER_MODE_FALSE=
1c710c3c 14818fi
ee03dc5e
AO
14819MAINT=$MAINTAINER_MODE_TRUE
14820
2805b53a
NN
14821# ---------------------
14822# GCC bootstrap support
14823# ---------------------
14824
14825# Stage specific cflags for build.
14826stage1_cflags="-g"
14827case $build in
14828 vax-*-*)
14829 case ${GCC} in
14830 yes) stage1_cflags="-g -Wa,-J" ;;
14831 *) stage1_cflags="-g -J" ;;
14832 esac ;;
2805b53a
NN
14833esac
14834
0b50988a 14835
2805b53a 14836
8efea775 14837# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14838# Check whether --enable-stage1-checking was given.
14839if test "${enable_stage1_checking+set}" = set; then :
14840 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14841else
e643dc23 14842 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14843 # For --disable-checking or implicit --enable-checking=release, avoid
14844 # setting --enable-checking=gc in the default stage1 checking for LTO
14845 # bootstraps. See PR62077.
c10b5ea0
JJ
14846 case $BUILD_CONFIG in
14847 *lto*)
7db11a5a
JJ
14848 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14849 *)
14850 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 14851 esac
7db11a5a
JJ
14852 if test "x$enable_checking" = x && \
14853 test -d ${srcdir}/gcc && \
14854 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 14855 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 14856 fi
8efea775 14857else
e643dc23 14858 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14859fi
5213506e 14860fi
8efea775
PB
14861
14862
2aeb72e9 14863
5213506e
RW
14864# Enable -Werror in bootstrap stage2 and later.
14865# Check whether --enable-werror was given.
14866if test "${enable_werror+set}" = set; then :
14867 enableval=$enable_werror;
2805b53a 14868else
416cfb5e 14869 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14870 enable_werror=yes
88fceb68
PB
14871else
14872 enable_werror=no
14873fi
5213506e
RW
14874fi
14875
09a9c095
NN
14876case ${enable_werror} in
14877 yes) stage2_werror_flag="--enable-werror-always" ;;
14878 *) stage2_werror_flag="" ;;
2805b53a
NN
14879esac
14880
14881
459260ec
DM
14882# Enable --enable-host-shared.
14883# Check whether --enable-host-shared was given.
14884if test "${enable_host_shared+set}" = set; then :
14885 enableval=$enable_host_shared; host_shared=$enableval
14886else
14887 host_shared=no
14888fi
14889
14890
14891
231d020b
DM
14892# PR jit/64780: Require the user to explicitly specify
14893# --enable-host-shared if the jit is enabled, hinting
14894# that they might want to do a separate configure/build of
14895# the jit, to avoid users from slowing down the rest of the
14896# compiler by enabling the jit.
14897if test ${host_shared} = "no" ; then
14898 case "${enable_languages}" in
14899 *jit*)
14900 as_fn_error "
14901Enabling language \"jit\" requires --enable-host-shared.
14902
14903--enable-host-shared typically slows the rest of the compiler down by
14904a few %, so you must explicitly enable it.
14905
14906If you want to build both the jit and the regular compiler, it is often
14907best to do this via two separate configure/builds, in separate
14908directories, to avoid imposing the performance cost of
14909--enable-host-shared on the regular compiler." "$LINENO" 5
14910 ;;
14911 *)
14912 ;;
14913 esac
14914fi
14915
f2689b09
SE
14916# Specify what files to not compare during bootstrap.
14917
14918compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14919case "$target" in
14920 hppa*64*-*-hpux*) ;;
14921 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14922 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14923esac
14924
14925
5213506e
RW
14926ac_config_files="$ac_config_files Makefile"
14927
1c710c3c 14928cat >confcache <<\_ACEOF
671aa708
NN
14929# This file is a shell script that caches the results of configure
14930# tests run on this system so they can be shared between configure
1c710c3c
DJ
14931# scripts and configure runs, see configure's option --config-cache.
14932# It is not useful on other systems. If it contains results you don't
14933# want to keep, you may remove or edit it.
671aa708 14934#
1c710c3c
DJ
14935# config.status only pays attention to the cache file if you give it
14936# the --recheck option to rerun configure.
671aa708 14937#
1c710c3c
DJ
14938# `ac_cv_env_foo' variables (set or unset) will be overridden when
14939# loading this file, other *unset* `ac_cv_foo' will be assigned the
14940# following values.
14941
14942_ACEOF
14943
671aa708
NN
14944# The following way of writing the cache mishandles newlines in values,
14945# but we know of no workaround that is simple, portable, and efficient.
5213506e 14946# So, we kill variables containing newlines.
671aa708
NN
14947# Ultrix sh set writes to stderr and can't be redirected directly,
14948# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14949(
14950 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14951 eval ac_val=\$$ac_var
14952 case $ac_val in #(
14953 *${as_nl}*)
14954 case $ac_var in #(
14955 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14956$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14957 esac
14958 case $ac_var in #(
14959 _ | IFS | as_nl) ;; #(
14960 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14961 *) { eval $ac_var=; unset $ac_var;} ;;
14962 esac ;;
14963 esac
14964 done
14965
1c710c3c 14966 (set) 2>&1 |
5213506e
RW
14967 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14968 *${as_nl}ac_space=\ *)
14969 # `set' does not quote correctly, so add quotes: double-quote
14970 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14971 sed -n \
14972 "s/'/'\\\\''/g;
14973 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14974 ;; #(
1c710c3c
DJ
14975 *)
14976 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14978 ;;
5213506e
RW
14979 esac |
14980 sort
14981) |
1c710c3c 14982 sed '
5213506e 14983 /^ac_cv_env_/b end
1c710c3c 14984 t clear
5213506e 14985 :clear
1c710c3c
DJ
14986 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14987 t end
5213506e
RW
14988 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14989 :end' >>confcache
14990if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14991 if test -w "$cache_file"; then
14992 test "x$cache_file" != "x/dev/null" &&
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14994$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14995 cat confcache >$cache_file
671aa708 14996 else
5213506e
RW
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14998$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14999 fi
4977bab6 15000fi
671aa708 15001rm -f confcache
79c06341 15002
671aa708
NN
15003test "x$prefix" = xNONE && prefix=$ac_default_prefix
15004# Let make expand exec_prefix.
15005test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15006
671aa708
NN
15007# Transform confdefs.h into DEFS.
15008# Protect against shell expansion while executing Makefile rules.
15009# Protect against Makefile macro expansion.
1c710c3c
DJ
15010#
15011# If the first sed substitution is executed (which looks for macros that
5213506e 15012# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15013# look for a macro that doesn't take arguments.
5213506e
RW
15014ac_script='
15015:mline
15016/\\$/{
15017 N
15018 s,\\\n,,
15019 b mline
15020}
1c710c3c 15021t clear
5213506e
RW
15022:clear
15023s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15024t quote
5213506e 15025s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15026t quote
5213506e
RW
15027b any
15028:quote
15029s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15030s/\[/\\&/g
15031s/\]/\\&/g
15032s/\$/$$/g
15033H
15034:any
15035${
15036 g
15037 s/^\n//
15038 s/\n/ /g
15039 p
15040}
15041'
15042DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
15043
15044
15045ac_libobjs=
15046ac_ltlibobjs=
15047for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15048 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15049 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15050 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15051 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15052 # will be set to the directory where LIBOBJS objects are built.
15053 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15054 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
15055done
15056LIBOBJS=$ac_libobjs
fb0103e5 15057
1c710c3c 15058LTLIBOBJS=$ac_ltlibobjs
0b0dc272 15059
af71363e 15060
1c710c3c
DJ
15061
15062: ${CONFIG_STATUS=./config.status}
5213506e 15063ac_write_fail=0
1c710c3c
DJ
15064ac_clean_files_save=$ac_clean_files
15065ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15066{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15067$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15068as_write_fail=0
15069cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15070#! $SHELL
15071# Generated by $as_me.
671aa708 15072# Run this file to recreate the current configuration.
671aa708 15073# Compiler output produced by configure, useful for debugging
1c710c3c 15074# configure, is in config.log if it exists.
0b0dc272 15075
1c710c3c
DJ
15076debug=false
15077ac_cs_recheck=false
15078ac_cs_silent=false
1c710c3c 15079
5213506e
RW
15080SHELL=\${CONFIG_SHELL-$SHELL}
15081export SHELL
15082_ASEOF
15083cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15084## -------------------- ##
15085## M4sh Initialization. ##
15086## -------------------- ##
15087
15088# Be more Bourne compatible
15089DUALCASE=1; export DUALCASE # for MKS sh
15090if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15091 emulate sh
15092 NULLCMD=:
5213506e 15093 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15094 # is contrary to our usage. Disable this feature.
15095 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15096 setopt NO_GLOB_SUBST
15097else
15098 case `(set -o) 2>/dev/null` in #(
15099 *posix*) :
15100 set -o posix ;; #(
15101 *) :
15102 ;;
15103esac
1c710c3c 15104fi
1c710c3c 15105
5213506e
RW
15106
15107as_nl='
15108'
15109export as_nl
15110# Printing a long string crashes Solaris 7 /usr/bin/printf.
15111as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15112as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15113as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15114# Prefer a ksh shell builtin over an external printf program on Solaris,
15115# but without wasting forks for bash or zsh.
15116if test -z "$BASH_VERSION$ZSH_VERSION" \
15117 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15118 as_echo='print -r --'
15119 as_echo_n='print -rn --'
15120elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15121 as_echo='printf %s\n'
15122 as_echo_n='printf %s'
15123else
15124 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15125 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15126 as_echo_n='/usr/ucb/echo -n'
15127 else
15128 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15129 as_echo_n_body='eval
15130 arg=$1;
15131 case $arg in #(
15132 *"$as_nl"*)
15133 expr "X$arg" : "X\\(.*\\)$as_nl";
15134 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15135 esac;
15136 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15137 '
15138 export as_echo_n_body
15139 as_echo_n='sh -c $as_echo_n_body as_echo'
15140 fi
15141 export as_echo_body
15142 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15143fi
15144
5213506e
RW
15145# The user is always right.
15146if test "${PATH_SEPARATOR+set}" != set; then
15147 PATH_SEPARATOR=:
15148 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15149 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15150 PATH_SEPARATOR=';'
15151 }
15152fi
15153
15154
15155# IFS
15156# We need space, tab and new line, in precisely that order. Quoting is
15157# there to prevent editors from complaining about space-tab.
15158# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15159# splitting by setting IFS to empty value.)
15160IFS=" "" $as_nl"
15161
15162# Find who we are. Look in the path if we contain no directory separator.
15163case $0 in #((
15164 *[\\/]* ) as_myself=$0 ;;
15165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15166for as_dir in $PATH
15167do
15168 IFS=$as_save_IFS
15169 test -z "$as_dir" && as_dir=.
15170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15171 done
15172IFS=$as_save_IFS
15173
15174 ;;
15175esac
15176# We did not find ourselves, most probably we were run as `sh COMMAND'
15177# in which case we are not to be found in the path.
15178if test "x$as_myself" = x; then
15179 as_myself=$0
15180fi
15181if test ! -f "$as_myself"; then
15182 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15183 exit 1
15184fi
1c710c3c 15185
5213506e
RW
15186# Unset variables that we do not need and which cause bugs (e.g. in
15187# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15188# suppresses any "Segmentation fault" message there. '((' could
15189# trigger a bug in pdksh 5.2.14.
15190for as_var in BASH_ENV ENV MAIL MAILPATH
15191do eval test x\${$as_var+set} = xset \
15192 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15193done
1c710c3c
DJ
15194PS1='$ '
15195PS2='> '
15196PS4='+ '
15197
15198# NLS nuisances.
5213506e
RW
15199LC_ALL=C
15200export LC_ALL
15201LANGUAGE=C
15202export LANGUAGE
15203
15204# CDPATH.
15205(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15206
15207
15208# as_fn_error ERROR [LINENO LOG_FD]
15209# ---------------------------------
15210# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15211# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15212# script with status $?, using 1 if that was 0.
15213as_fn_error ()
15214{
15215 as_status=$?; test $as_status -eq 0 && as_status=1
15216 if test "$3"; then
15217 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15218 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 15219 fi
5213506e
RW
15220 $as_echo "$as_me: error: $1" >&2
15221 as_fn_exit $as_status
15222} # as_fn_error
15223
15224
15225# as_fn_set_status STATUS
15226# -----------------------
15227# Set $? to STATUS, without forking.
15228as_fn_set_status ()
15229{
15230 return $1
15231} # as_fn_set_status
15232
15233# as_fn_exit STATUS
15234# -----------------
15235# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15236as_fn_exit ()
15237{
15238 set +e
15239 as_fn_set_status $1
15240 exit $1
15241} # as_fn_exit
15242
15243# as_fn_unset VAR
15244# ---------------
15245# Portably unset VAR.
15246as_fn_unset ()
15247{
15248 { eval $1=; unset $1;}
15249}
15250as_unset=as_fn_unset
15251# as_fn_append VAR VALUE
15252# ----------------------
15253# Append the text in VALUE to the end of the definition contained in VAR. Take
15254# advantage of any shell optimizations that allow amortized linear growth over
15255# repeated appends, instead of the typical quadratic growth present in naive
15256# implementations.
15257if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15258 eval 'as_fn_append ()
15259 {
15260 eval $1+=\$2
15261 }'
15262else
15263 as_fn_append ()
15264 {
15265 eval $1=\$$1\$2
15266 }
15267fi # as_fn_append
15268
15269# as_fn_arith ARG...
15270# ------------------
15271# Perform arithmetic evaluation on the ARGs, and store the result in the
15272# global $as_val. Take advantage of shells that can avoid forks. The arguments
15273# must be portable across $(()) and expr.
15274if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15275 eval 'as_fn_arith ()
15276 {
15277 as_val=$(( $* ))
15278 }'
15279else
15280 as_fn_arith ()
15281 {
15282 as_val=`expr "$@" || test $? -eq 1`
15283 }
15284fi # as_fn_arith
15285
1c710c3c 15286
5213506e
RW
15287if expr a : '\(a\)' >/dev/null 2>&1 &&
15288 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15289 as_expr=expr
15290else
15291 as_expr=false
15292fi
15293
5213506e 15294if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15295 as_basename=basename
15296else
15297 as_basename=false
15298fi
15299
5213506e
RW
15300if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15301 as_dirname=dirname
15302else
15303 as_dirname=false
15304fi
1c710c3c 15305
5213506e 15306as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15307$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15308 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15309 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15310$as_echo X/"$0" |
15311 sed '/^.*\/\([^/][^/]*\)\/*$/{
15312 s//\1/
15313 q
15314 }
15315 /^X\/\(\/\/\)$/{
15316 s//\1/
15317 q
15318 }
15319 /^X\/\(\/\).*/{
15320 s//\1/
15321 q
15322 }
15323 s/.*/./; q'`
2aeb72e9 15324
2aeb72e9
DD
15325# Avoid depending upon Character Ranges.
15326as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15327as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15328as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15329as_cr_digits='0123456789'
15330as_cr_alnum=$as_cr_Letters$as_cr_digits
15331
5213506e
RW
15332ECHO_C= ECHO_N= ECHO_T=
15333case `echo -n x` in #(((((
15334-n*)
15335 case `echo 'xy\c'` in
15336 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15337 xy) ECHO_C='\c';;
15338 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15339 ECHO_T=' ';;
15340 esac;;
15341*)
15342 ECHO_N='-n';;
1c710c3c
DJ
15343esac
15344
5213506e
RW
15345rm -f conf$$ conf$$.exe conf$$.file
15346if test -d conf$$.dir; then
15347 rm -f conf$$.dir/conf$$.file
1c710c3c 15348else
5213506e
RW
15349 rm -f conf$$.dir
15350 mkdir conf$$.dir 2>/dev/null
1c710c3c 15351fi
5213506e
RW
15352if (echo >conf$$.file) 2>/dev/null; then
15353 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15354 as_ln_s='ln -s'
5213506e
RW
15355 # ... but there are two gotchas:
15356 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15357 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15358 # In both cases, we have to default to `cp -p'.
15359 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15360 as_ln_s='cp -p'
15361 elif ln conf$$.file conf$$ 2>/dev/null; then
15362 as_ln_s=ln
15363 else
15364 as_ln_s='cp -p'
2aeb72e9 15365 fi
1c710c3c
DJ
15366else
15367 as_ln_s='cp -p'
15368fi
5213506e
RW
15369rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15370rmdir conf$$.dir 2>/dev/null
15371
15372
15373# as_fn_mkdir_p
15374# -------------
15375# Create "$as_dir" as a directory, including parents if necessary.
15376as_fn_mkdir_p ()
15377{
15378
15379 case $as_dir in #(
15380 -*) as_dir=./$as_dir;;
15381 esac
15382 test -d "$as_dir" || eval $as_mkdir_p || {
15383 as_dirs=
15384 while :; do
15385 case $as_dir in #(
15386 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15387 *) as_qdir=$as_dir;;
15388 esac
15389 as_dirs="'$as_qdir' $as_dirs"
15390 as_dir=`$as_dirname -- "$as_dir" ||
15391$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15392 X"$as_dir" : 'X\(//\)[^/]' \| \
15393 X"$as_dir" : 'X\(//\)$' \| \
15394 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15395$as_echo X"$as_dir" |
15396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15397 s//\1/
15398 q
15399 }
15400 /^X\(\/\/\)[^/].*/{
15401 s//\1/
15402 q
15403 }
15404 /^X\(\/\/\)$/{
15405 s//\1/
15406 q
15407 }
15408 /^X\(\/\).*/{
15409 s//\1/
15410 q
15411 }
15412 s/.*/./; q'`
15413 test -d "$as_dir" && break
15414 done
15415 test -z "$as_dirs" || eval "mkdir $as_dirs"
15416 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15417
1c710c3c 15418
5213506e 15419} # as_fn_mkdir_p
1c710c3c 15420if mkdir -p . 2>/dev/null; then
5213506e 15421 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15422else
15423 test -d ./-p && rmdir ./-p
15424 as_mkdir_p=false
15425fi
15426
5213506e
RW
15427if test -x / >/dev/null 2>&1; then
15428 as_test_x='test -x'
15429else
15430 if ls -dL / >/dev/null 2>&1; then
15431 as_ls_L_option=L
15432 else
15433 as_ls_L_option=
15434 fi
15435 as_test_x='
15436 eval sh -c '\''
15437 if test -d "$1"; then
15438 test -d "$1/.";
15439 else
15440 case $1 in #(
15441 -*)set "./$1";;
15442 esac;
15443 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15444 ???[sx]*):;;*)false;;esac;fi
15445 '\'' sh
15446 '
15447fi
15448as_executable_p=$as_test_x
1c710c3c
DJ
15449
15450# Sed expression to map a string onto a valid CPP name.
15451as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15452
15453# Sed expression to map a string onto a valid variable name.
15454as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15455
15456
1c710c3c 15457exec 6>&1
5213506e
RW
15458## ----------------------------------- ##
15459## Main body of $CONFIG_STATUS script. ##
15460## ----------------------------------- ##
15461_ASEOF
15462test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15463
15464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15465# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15466# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15467# values after options handling.
15468ac_log="
1c710c3c 15469This file was extended by $as_me, which was
5213506e 15470generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15471
15472 CONFIG_FILES = $CONFIG_FILES
15473 CONFIG_HEADERS = $CONFIG_HEADERS
15474 CONFIG_LINKS = $CONFIG_LINKS
15475 CONFIG_COMMANDS = $CONFIG_COMMANDS
15476 $ $0 $@
15477
5213506e
RW
15478on `(hostname || uname -n) 2>/dev/null | sed 1q`
15479"
15480
1c710c3c
DJ
15481_ACEOF
15482
5213506e
RW
15483case $ac_config_files in *"
15484"*) set x $ac_config_files; shift; ac_config_files=$*;;
15485esac
1c710c3c 15486
2aeb72e9 15487
2aeb72e9 15488
5213506e
RW
15489cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15490# Files that config.status was made for.
15491config_files="$ac_config_files"
1c710c3c 15492
5213506e 15493_ACEOF
2aeb72e9 15494
5213506e 15495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15496ac_cs_usage="\
5213506e
RW
15497\`$as_me' instantiates files and other configuration actions
15498from templates according to the current configuration. Unless the files
15499and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15500
5213506e 15501Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15502
15503 -h, --help print this help, then exit
5213506e
RW
15504 -V, --version print version number and configuration settings, then exit
15505 -q, --quiet, --silent
15506 do not print progress messages
1c710c3c
DJ
15507 -d, --debug don't remove temporary files
15508 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15509 --file=FILE[:TEMPLATE]
15510 instantiate the configuration file FILE
1c710c3c
DJ
15511
15512Configuration files:
15513$config_files
15514
5213506e 15515Report bugs to the package provider."
2aeb72e9 15516
5213506e
RW
15517_ACEOF
15518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15519ac_cs_version="\\
15520config.status
5213506e
RW
15521configured by $0, generated by GNU Autoconf 2.64,
15522 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15523
5213506e 15524Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15525This config.status script is free software; the Free Software Foundation
15526gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15527
15528ac_pwd='$ac_pwd'
15529srcdir='$srcdir'
15530INSTALL='$INSTALL'
87264276 15531AWK='$AWK'
5213506e 15532test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15533_ACEOF
15534
5213506e
RW
15535cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15536# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15537ac_need_defaults=:
15538while test $# != 0
a4b9e93e 15539do
1c710c3c
DJ
15540 case $1 in
15541 --*=*)
5213506e
RW
15542 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15543 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15544 ac_shift=:
15545 ;;
5213506e 15546 *)
1c710c3c
DJ
15547 ac_option=$1
15548 ac_optarg=$2
15549 ac_shift=shift
15550 ;;
1c710c3c
DJ
15551 esac
15552
15553 case $ac_option in
15554 # Handling of the options.
671aa708 15555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15556 ac_cs_recheck=: ;;
5213506e
RW
15557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15558 $as_echo "$ac_cs_version"; exit ;;
15559 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15560 debug=: ;;
15561 --file | --fil | --fi | --f )
15562 $ac_shift
5213506e
RW
15563 case $ac_optarg in
15564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15565 esac
15566 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15567 ac_need_defaults=false;;
5213506e
RW
15568 --he | --h | --help | --hel | -h )
15569 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15570 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15571 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15572 ac_cs_silent=: ;;
15573
15574 # This is an error.
5213506e
RW
15575 -*) as_fn_error "unrecognized option: \`$1'
15576Try \`$0 --help' for more information." ;;
1c710c3c 15577
5213506e
RW
15578 *) as_fn_append ac_config_targets " $1"
15579 ac_need_defaults=false ;;
1c710c3c 15580
0b0dc272 15581 esac
1c710c3c 15582 shift
0b0dc272
AM
15583done
15584
1c710c3c 15585ac_configure_extra_args=
0b0dc272 15586
1c710c3c
DJ
15587if $ac_cs_silent; then
15588 exec 6>/dev/null
15589 ac_configure_extra_args="$ac_configure_extra_args --silent"
15590fi
0b0dc272 15591
1c710c3c 15592_ACEOF
5213506e 15593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15594if \$ac_cs_recheck; then
5213506e
RW
15595 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15596 shift
15597 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15598 CONFIG_SHELL='$SHELL'
15599 export CONFIG_SHELL
15600 exec "\$@"
1c710c3c
DJ
15601fi
15602
15603_ACEOF
5213506e
RW
15604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15605exec 5>>config.log
15606{
15607 echo
15608 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15609## Running $as_me. ##
15610_ASBOX
15611 $as_echo "$ac_log"
15612} >&5
1c710c3c 15613
5213506e
RW
15614_ACEOF
15615cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15616#
15617# INIT-COMMANDS
15618#
15619extrasub_build="$extrasub_build"
15620 extrasub_host="$extrasub_host"
15621 extrasub_target="$extrasub_target"
15622
5213506e 15623_ACEOF
1c710c3c 15624
5213506e 15625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15626
5213506e 15627# Handling of arguments.
1c710c3c
DJ
15628for ac_config_target in $ac_config_targets
15629do
5213506e
RW
15630 case $ac_config_target in
15631 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15632
15633 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15634 esac
15635done
15636
5213506e 15637
1c710c3c
DJ
15638# If the user did not use the arguments to specify the items to instantiate,
15639# then the envvar interface is used. Set only those that are not.
15640# We use the long form for the default assignment because of an extremely
15641# bizarre bug on SunOS 4.1.3.
15642if $ac_need_defaults; then
15643 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15644fi
15645
15646# Have a temporary directory for convenience. Make it in the build tree
5213506e 15647# simply because there is no reason against having it here, and in addition,
1c710c3c 15648# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15649# Hook for its removal unless debugging.
15650# Note that there is a small window in which the directory will not be cleaned:
15651# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15652$debug ||
15653{
5213506e
RW
15654 tmp=
15655 trap 'exit_status=$?
15656 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15657' 0
15658 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15659}
1c710c3c
DJ
15660# Create a (secure) tmp directory for tmp files.
15661
15662{
5213506e 15663 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15664 test -n "$tmp" && test -d "$tmp"
15665} ||
15666{
5213506e
RW
15667 tmp=./conf$$-$RANDOM
15668 (umask 077 && mkdir "$tmp")
15669} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15670
15671# Set up the scripts for CONFIG_FILES section.
15672# No need to generate them if there are no CONFIG_FILES.
15673# This happens for instance with `./config.status config.h'.
15674if test -n "$CONFIG_FILES"; then
15675
15676if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15677 ac_cs_awk_getline=:
15678 ac_cs_awk_pipe_init=
15679 ac_cs_awk_read_file='
15680 while ((getline aline < (F[key])) > 0)
15681 print(aline)
15682 close(F[key])'
15683 ac_cs_awk_pipe_fini=
15684else
15685 ac_cs_awk_getline=false
15686 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15687 ac_cs_awk_read_file='
15688 print "|#_!!_#|"
15689 print "cat " F[key] " &&"
15690 '$ac_cs_awk_pipe_init
15691 # The final `:' finishes the AND list.
15692 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15693fi
15694ac_cr=`echo X | tr X '\015'`
15695# On cygwin, bash can eat \r inside `` if the user requested igncr.
15696# But we know of no other shell where ac_cr would be empty at this
15697# point, so we can use a bashism as a fallback.
15698if test "x$ac_cr" = x; then
15699 eval ac_cr=\$\'\\r\'
15700fi
15701ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15702if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15703 ac_cs_awk_cr='\r'
15704else
15705 ac_cs_awk_cr=$ac_cr
15706fi
15707
15708echo 'BEGIN {' >"$tmp/subs1.awk" &&
15709_ACEOF
15710
15711# Create commands to substitute file output variables.
1c710c3c 15712{
5213506e
RW
15713 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15714 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15715 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15716 echo "_ACAWK" &&
15717 echo "_ACEOF"
15718} >conf$$files.sh &&
15719. ./conf$$files.sh ||
15720 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15721rm -f conf$$files.sh
1c710c3c 15722
5213506e
RW
15723{
15724 echo "cat >conf$$subs.awk <<_ACEOF" &&
15725 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15726 echo "_ACEOF"
15727} >conf$$subs.sh ||
15728 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15729ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15730ac_delim='%!_!# '
15731for ac_last_try in false false false false false :; do
15732 . ./conf$$subs.sh ||
15733 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15734
15735 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15736 if test $ac_delim_n = $ac_delim_num; then
15737 break
15738 elif $ac_last_try; then
15739 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15740 else
15741 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15742 fi
15743done
15744rm -f conf$$subs.sh
15745
15746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15747cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15748_ACEOF
5213506e
RW
15749sed -n '
15750h
15751s/^/S["/; s/!.*/"]=/
15752p
15753g
15754s/^[^!]*!//
15755:repl
15756t repl
15757s/'"$ac_delim"'$//
15758t delim
15759:nl
15760h
15761s/\(.\{148\}\).*/\1/
15762t more1
15763s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15764p
15765n
15766b repl
15767:more1
15768s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15769p
15770g
15771s/.\{148\}//
15772t nl
15773:delim
15774h
15775s/\(.\{148\}\).*/\1/
15776t more2
15777s/["\\]/\\&/g; s/^/"/; s/$/"/
15778p
15779b
15780:more2
15781s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15782p
15783g
15784s/.\{148\}//
15785t delim
15786' <conf$$subs.awk | sed '
15787/^[^""]/{
15788 N
15789 s/\n//
15790}
15791' >>$CONFIG_STATUS || ac_write_fail=1
15792rm -f conf$$subs.awk
15793cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15794_ACAWK
15795cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15796 for (key in S) S_is_set[key] = 1
15797 FS = "\a"
15798 \$ac_cs_awk_pipe_init
15799}
15800{
15801 line = $ 0
15802 nfields = split(line, field, "@")
15803 substed = 0
15804 len = length(field[1])
15805 for (i = 2; i < nfields; i++) {
15806 key = field[i]
15807 keylen = length(key)
15808 if (S_is_set[key]) {
15809 value = S[key]
15810 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15811 len += length(value) + length(field[++i])
15812 substed = 1
15813 } else
15814 len += 1 + keylen
15815 }
15816 if (nfields == 3 && !substed) {
15817 key = field[2]
15818 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15819 \$ac_cs_awk_read_file
15820 next
15821 }
15822 }
15823 print line
15824}
15825\$ac_cs_awk_pipe_fini
15826_ACAWK
15827_ACEOF
15828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15829if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15830 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15831else
15832 cat
15833fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15834 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15835_ACEOF
15836
15837# VPATH may cause trouble with some makes, so we remove $(srcdir),
15838# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15839# trailing colons and then remove the whole line if VPATH becomes empty
15840# (actually we leave an empty line to preserve line numbers).
15841if test "x$srcdir" = x.; then
15842 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15843s/:*\$(srcdir):*/:/
15844s/:*\${srcdir}:*/:/
15845s/:*@srcdir@:*/:/
15846s/^\([^=]*=[ ]*\):*/\1/
15847s/:*$//
15848s/^[^=]*=[ ]*$//
15849}'
15850fi
2aeb72e9 15851
5213506e
RW
15852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15853fi # test -n "$CONFIG_FILES"
2aeb72e9 15854
1c710c3c 15855
5213506e
RW
15856eval set X " :F $CONFIG_FILES "
15857shift
15858for ac_tag
15859do
15860 case $ac_tag in
15861 :[FHLC]) ac_mode=$ac_tag; continue;;
15862 esac
15863 case $ac_mode$ac_tag in
15864 :[FHL]*:*);;
15865 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15866 :[FH]-) ac_tag=-:-;;
15867 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15868 esac
15869 ac_save_IFS=$IFS
15870 IFS=:
15871 set x $ac_tag
15872 IFS=$ac_save_IFS
15873 shift
15874 ac_file=$1
15875 shift
79c06341 15876
5213506e
RW
15877 case $ac_mode in
15878 :L) ac_source=$1;;
15879 :[FH])
15880 ac_file_inputs=
15881 for ac_f
15882 do
15883 case $ac_f in
15884 -) ac_f="$tmp/stdin";;
15885 *) # Look for the file first in the build tree, then in the source tree
15886 # (if the path is not absolute). The absolute path cannot be DOS-style,
15887 # because $ac_f cannot contain `:'.
15888 test -f "$ac_f" ||
15889 case $ac_f in
15890 [\\/$]*) false;;
15891 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15892 esac ||
15893 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15894 esac
15895 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15896 as_fn_append ac_file_inputs " '$ac_f'"
15897 done
1c710c3c 15898
5213506e
RW
15899 # Let's still pretend it is `configure' which instantiates (i.e., don't
15900 # use $as_me), people would be surprised to read:
15901 # /* config.h. Generated by config.status. */
15902 configure_input='Generated from '`
15903 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15904 `' by configure.'
15905 if test x"$ac_file" != x-; then
15906 configure_input="$ac_file. $configure_input"
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15908$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15909 fi
5213506e
RW
15910 # Neutralize special characters interpreted by sed in replacement strings.
15911 case $configure_input in #(
15912 *\&* | *\|* | *\\* )
15913 ac_sed_conf_input=`$as_echo "$configure_input" |
15914 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15915 *) ac_sed_conf_input=$configure_input;;
15916 esac
11a67599 15917
5213506e
RW
15918 case $ac_tag in
15919 *:-:* | *:-) cat >"$tmp/stdin" \
15920 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15921 esac
15922 ;;
11a67599
ZW
15923 esac
15924
5213506e 15925 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15926$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15927 X"$ac_file" : 'X\(//\)[^/]' \| \
15928 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15929 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15930$as_echo X"$ac_file" |
15931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15932 s//\1/
15933 q
15934 }
15935 /^X\(\/\/\)[^/].*/{
15936 s//\1/
15937 q
15938 }
15939 /^X\(\/\/\)$/{
15940 s//\1/
15941 q
15942 }
15943 /^X\(\/\).*/{
15944 s//\1/
15945 q
15946 }
15947 s/.*/./; q'`
15948 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15949 ac_builddir=.
0b0dc272 15950
5213506e
RW
15951case "$ac_dir" in
15952.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15953*)
15954 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15955 # A ".." for each directory in $ac_dir_suffix.
15956 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15957 case $ac_top_builddir_sub in
15958 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15959 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15960 esac ;;
15961esac
15962ac_abs_top_builddir=$ac_pwd
15963ac_abs_builddir=$ac_pwd$ac_dir_suffix
15964# for backward compatibility:
15965ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15966
15967case $srcdir in
5213506e 15968 .) # We are building in place.
1c710c3c 15969 ac_srcdir=.
5213506e
RW
15970 ac_top_srcdir=$ac_top_builddir_sub
15971 ac_abs_top_srcdir=$ac_pwd ;;
15972 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15973 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15974 ac_top_srcdir=$srcdir
15975 ac_abs_top_srcdir=$srcdir ;;
15976 *) # Relative name.
15977 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15978 ac_top_srcdir=$ac_top_build_prefix$srcdir
15979 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15980esac
5213506e 15981ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15982
0b0dc272 15983
5213506e
RW
15984 case $ac_mode in
15985 :F)
15986 #
15987 # CONFIG_FILE
15988 #
1c710c3c
DJ
15989
15990 case $INSTALL in
15991 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15992 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15993 esac
5213506e 15994_ACEOF
11a67599 15995
5213506e
RW
15996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15997# If the template does not know about datarootdir, expand it.
15998# FIXME: This hack should be removed a few years after 2.60.
15999ac_datarootdir_hack=; ac_datarootdir_seen=
16000ac_sed_dataroot='
16001/datarootdir/ {
16002 p
16003 q
16004}
16005/@datadir@/p
16006/@docdir@/p
16007/@infodir@/p
16008/@localedir@/p
16009/@mandir@/p'
16010case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16011*datarootdir*) ac_datarootdir_seen=yes;;
16012*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16014$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 16015_ACEOF
5213506e
RW
16016cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16017 ac_datarootdir_hack='
16018 s&@datadir@&$datadir&g
16019 s&@docdir@&$docdir&g
16020 s&@infodir@&$infodir&g
16021 s&@localedir@&$localedir&g
16022 s&@mandir@&$mandir&g
16023 s&\\\${datarootdir}&$datarootdir&g' ;;
16024esac
16025_ACEOF
16026
16027# Neutralize VPATH when `$srcdir' = `.'.
16028# Shell code in configure.ac might set extrasub.
16029# FIXME: do we really want to maintain this feature?
16030cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16031ac_sed_extra="$ac_vpsub
1c710c3c
DJ
16032$extrasub
16033_ACEOF
5213506e 16034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
16035:t
16036/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
16037s|@configure_input@|$ac_sed_conf_input|;t t
16038s&@top_builddir@&$ac_top_builddir_sub&;t t
16039s&@top_build_prefix@&$ac_top_build_prefix&;t t
16040s&@srcdir@&$ac_srcdir&;t t
16041s&@abs_srcdir@&$ac_abs_srcdir&;t t
16042s&@top_srcdir@&$ac_top_srcdir&;t t
16043s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16044s&@builddir@&$ac_builddir&;t t
16045s&@abs_builddir@&$ac_abs_builddir&;t t
16046s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16047s&@INSTALL@&$ac_INSTALL&;t t
16048$ac_datarootdir_hack
16049"
16050eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16051if $ac_cs_awk_getline; then
16052 $AWK -f "$tmp/subs.awk"
16053else
16054 $AWK -f "$tmp/subs.awk" | $SHELL
16055fi >$tmp/out \
16056 || as_fn_error "could not create $ac_file" "$LINENO" 5
16057
16058test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16059 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16060 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16062which seems to be undefined. Please make sure it is defined." >&5
16063$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16064which seems to be undefined. Please make sure it is defined." >&2;}
16065
16066 rm -f "$tmp/stdin"
16067 case $ac_file in
16068 -) cat "$tmp/out" && rm -f "$tmp/out";;
16069 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16070 esac \
16071 || as_fn_error "could not create $ac_file" "$LINENO" 5
16072 ;;
11a67599 16073
11a67599 16074
79c06341 16075
5213506e
RW
16076 esac
16077
3e54529c
RW
16078
16079 case $ac_file$ac_mode in
16080 "Makefile":F) sed "$extrasub_build" Makefile |
16081 sed "$extrasub_host" |
16082 sed "$extrasub_target" > mf$$
16083 mv -f mf$$ Makefile ;;
16084
16085 esac
5213506e
RW
16086done # for ac_tag
16087
16088
16089as_fn_exit 0
1c710c3c 16090_ACEOF
1c710c3c
DJ
16091ac_clean_files=$ac_clean_files_save
16092
5213506e
RW
16093test $ac_write_fail = 0 ||
16094 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16095
1c710c3c
DJ
16096
16097# configure is writing to config.log, and then calls config.status.
16098# config.status does its own redirection, appending to config.log.
16099# Unfortunately, on DOS this fails, as config.log is still kept open
16100# by configure, so config.status won't be able to write to it; its
16101# output is simply discarded. So we exec the FD to /dev/null,
16102# effectively closing config.log, so it can be properly (re)opened and
16103# appended to by config.status. When coming back to configure, we
16104# need to make the FD available again.
16105if test "$no_create" != yes; then
16106 ac_cs_success=:
16107 ac_config_status_args=
16108 test "$silent" = yes &&
16109 ac_config_status_args="$ac_config_status_args --quiet"
16110 exec 5>/dev/null
16111 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16112 exec 5>>config.log
16113 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16114 # would make configure fail if this is the last instruction.
5213506e
RW
16115 $ac_cs_success || as_fn_exit $?
16116fi
16117if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16119$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16120fi
79c06341 16121