]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
configure.ac: Disable "sim" directory for arc*-*-*.
[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 ;;
2fd88f4f
AK
3765 arc*-*-*)
3766 noconfigdirs="$noconfigdirs sim"
3767 ;;
671aa708 3768 arm-*-pe*)
2909494b 3769 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3770 ;;
671aa708 3771 arm-*-riscix*)
0036370f 3772 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3773 ;;
b588ae30
GJL
3774 avr-*-*)
3775 if test x${with_avrlibc} != xno; then
3776 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3777 fi
3778 ;;
671aa708 3779 c4x-*-* | tic4x-*-*)
0036370f 3780 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3781 ;;
0036370f
JM
3782 tic54x-*-*)
3783 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3784 ;;
671aa708 3785 d10v-*-*)
0036370f 3786 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3787 ;;
3788 d30v-*-*)
0036370f 3789 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3790 ;;
3791 fr30-*-elf*)
2909494b 3792 noconfigdirs="$noconfigdirs gdb"
671aa708 3793 ;;
a05c2c75
L
3794 ft32-*-*)
3795 noconfigdirs="$noconfigdirs target-rda gprof"
3796 ;;
55f2d967 3797 moxie-*-*)
a05c2c75 3798 noconfigdirs="$noconfigdirs"
55f2d967 3799 ;;
671aa708 3800 h8300*-*-*)
2909494b 3801 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3802 ;;
3803 h8500-*-*)
0036370f 3804 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3805 ;;
ee6a22df 3806 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3807 ;;
a05c2c75
L
3808 hppa*64*-*-hpux*)
3809 noconfigdirs="$noconfigdirs gdb"
3810 ;;
3811 hppa*-*-hpux11*)
3812 noconfigdirs="$noconfigdirs gdb ld"
3813 ;;
4569f85e 3814 hppa*64*-*-linux*)
671aa708 3815 ;;
56f8587a 3816 hppa*-*-linux*)
3e732ba0 3817 ;;
671aa708 3818 hppa*-*-*elf* | \
671aa708
NN
3819 hppa*-*-lites* | \
3820 hppa*-*-openbsd* | \
3821 hppa*64*-*-*)
671aa708 3822 ;;
c03353e2 3823 hppa*-*-pro*)
c03353e2 3824 ;;
671aa708 3825 hppa*-*-*)
2909494b 3826 noconfigdirs="$noconfigdirs ld"
671aa708 3827 ;;
fb87ad5d 3828 i960-*-*)
0036370f 3829 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3830 ;;
671aa708
NN
3831 ia64*-*-elf*)
3832 # No gdb support yet.
1bcce263 3833 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3834 ;;
3835 ia64*-**-hpux*)
5a2931d1 3836 # No ld support yet.
a05c2c75 3837 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3838 ;;
52535a64 3839 ia64*-*-*vms*)
091fe9ca
TG
3840 # No ld support yet.
3841 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3842 ;;
ef4c4300 3843 i[3456789]86-w64-mingw*)
ef4c4300
KT
3844 ;;
3845 i[3456789]86-*-mingw*)
b91f0a41 3846 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3847 ;;
671aa708
NN
3848 *-*-cygwin*)
3849 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3850 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3851 # always build newlib if winsup directory is present.
b91f0a41 3852 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3853 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3854 elif test -d "$srcdir/newlib"; then
b91f0a41 3855 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3856 fi
1c710c3c 3857 ;;
f2a0e225 3858 i[3456789]86-*-pe)
ebb9f8b0 3859 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3860 ;;
f2a0e225 3861 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3862 # The linker does not yet know about weak symbols in COFF,
3863 # and is not configured to handle mixed ELF and COFF.
0036370f 3864 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3865 ;;
f2a0e225 3866 i[3456789]86-*-sco*)
0036370f 3867 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3868 ;;
fbdd5d87 3869 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3870 noconfigdirs="$noconfigdirs target-libgloss"
3871 ;;
f2a0e225 3872 i[3456789]86-*-sysv4*)
0036370f 3873 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3874 ;;
f2a0e225 3875 i[3456789]86-*-beos*)
6a789d5e 3876 noconfigdirs="$noconfigdirs gdb"
3aa83176 3877 ;;
d1f8db0c 3878 i[3456789]86-*-rdos*)
6a789d5e 3879 noconfigdirs="$noconfigdirs gdb"
c03353e2 3880 ;;
671aa708 3881 mmix-*-*)
2909494b 3882 noconfigdirs="$noconfigdirs gdb"
671aa708 3883 ;;
ab34901f 3884 mt-*-*)
79dd769c
AH
3885 noconfigdirs="$noconfigdirs sim"
3886 ;;
671aa708
NN
3887 powerpc-*-aix*)
3888 # copied from rs6000-*-* entry
6a789d5e 3889 noconfigdirs="$noconfigdirs gprof"
671aa708 3890 ;;
4569f85e 3891 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3892 target_configdirs="$target_configdirs target-winsup"
0036370f 3893 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3894 # always build newlib.
3895 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3896 ;;
3897 # This is temporary until we can link against shared libraries
3898 powerpcle-*-solaris*)
0036370f 3899 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3900 ;;
3901 powerpc-*-beos*)
6a789d5e 3902 noconfigdirs="$noconfigdirs gdb"
671aa708 3903 ;;
671aa708 3904 rs6000-*-lynxos*)
6a789d5e 3905 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3906 ;;
3907 rs6000-*-aix*)
6a789d5e 3908 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3909 ;;
3910 rs6000-*-*)
2909494b 3911 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3912 ;;
3913 m68k-apollo-*)
0036370f 3914 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3915 ;;
ca9fe997 3916 microblaze*)
2909494b 3917 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3918 ;;
d896cc4d 3919 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3920 if test x$with_newlib = xyes; then
3921 noconfigdirs="$noconfigdirs gprof"
3922 fi
d9dced13 3923 ;;
671aa708 3924 mips*-*-irix5*)
0036370f 3925 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3926 ;;
3927 mips*-*-irix6*)
2909494b 3928 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3929 ;;
671aa708 3930 mips*-*-bsd*)
bc98bcc4 3931 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3932 ;;
671aa708 3933 mips*-*-linux*)
671aa708 3934 ;;
bc98bcc4
JBG
3935 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3936 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3937 noconfigdirs="$noconfigdirs ld gas gprof"
3938 ;;
671aa708 3939 mips*-*-*)
2909494b 3940 noconfigdirs="$noconfigdirs gprof"
671aa708 3941 ;;
738f2522 3942 nvptx*-*-*)
738f2522
BS
3943 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3944 ;;
d896cc4d
JBG
3945 or1k*-*-*)
3946 noconfigdirs="$noconfigdirs gdb"
3947 ;;
bc6d9014 3948 sh-*-*)
ea2002ba
CB
3949 case "${target}" in
3950 sh*-*-elf)
2909494b 3951 ;;
ea2002ba 3952 *)
2909494b 3953 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3954 esac
671aa708 3955 ;;
671aa708 3956 sparc-*-sunos4*)
6a789d5e 3957 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3958 use_gnu_ld=no
3959 fi
3960 ;;
b42f0d7e 3961 tic6x-*-*)
0d557ff8 3962 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3963 ;;
341c653c 3964 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3965 noconfigdirs="$noconfigdirs sim"
3966 ;;
671aa708 3967 v810-*-*)
0036370f 3968 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3969 ;;
3970 vax-*-*)
2909494b 3971 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3972 ;;
671aa708 3973esac
79c06341 3974
671aa708
NN
3975# If we aren't building newlib, then don't build libgloss, since libgloss
3976# depends upon some newlib header files.
3977case "${noconfigdirs}" in
3978 *target-libgloss*) ;;
3979 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3980esac
3981
671aa708 3982# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3983host_makefile_frag=/dev/null
3984if test -d ${srcdir}/config ; then
3985case "${host}" in
f2a0e225 3986 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3987 host_makefile_frag="config/mh-djgpp"
3988 ;;
3989 *-cygwin*)
2a79c47f 3990
5213506e
RW
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3992$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3993echo a >cygwin-cat-check
e25a8c82 3994if test `cat cygwin-cat-check` = a ; then
2a79c47f 3995 rm cygwin-cat-check
5213506e
RW
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3997$as_echo "yes" >&6; }
2a79c47f
NC
3998else
3999 rm cygwin-cat-check
5213506e
RW
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001$as_echo "no" >&6; }
4002 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
4003 Please either mount the build directory in binary mode or run the following
4004 commands before running any configure script:
4005set -o igncr
4006export SHELLOPTS
5213506e 4007 " "$LINENO" 5
2a79c47f
NC
4008fi
4009
671aa708
NN
4010 host_makefile_frag="config/mh-cygwin"
4011 ;;
c53a18d3 4012 *-mingw*)
1f5a6b84 4013 host_makefile_frag="config/mh-mingw"
95af8923 4014 ;;
cabb9d59 4015 alpha*-linux*)
13be44ed
UB
4016 host_makefile_frag="config/mh-alpha-linux"
4017 ;;
efd41714 4018 hppa*-hp-hpux10*)
efd41714 4019 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4020 ;;
111eeb6e 4021 hppa*-hp-hpux*)
efd41714
PB
4022 host_makefile_frag="config/mh-pa"
4023 ;;
4024 hppa*-*)
4025 host_makefile_frag="config/mh-pa"
4026 ;;
d8ed14ce
IS
4027 *-*-darwin*)
4028 host_makefile_frag="config/mh-darwin"
be8fff81 4029 ;;
d19bca38
PB
4030 powerpc-*-aix*)
4031 host_makefile_frag="config/mh-ppc-aix"
4032 ;;
4033 rs6000-*-aix*)
4034 host_makefile_frag="config/mh-ppc-aix"
4035 ;;
671aa708
NN
4036esac
4037fi
4038
55ffb5ed 4039if test "${build}" != "${host}" ; then
0999159b
PB
4040 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4041 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4042 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
4043 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4044 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4045 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4046 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
4047 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4048 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4049 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4050 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4051 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4052 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4053else
4054 AR_FOR_BUILD="\$(AR)"
4055 AS_FOR_BUILD="\$(AS)"
fb0103e5 4056 CC_FOR_BUILD="\$(CC)"
0999159b
PB
4057 CXX_FOR_BUILD="\$(CXX)"
4058 GCJ_FOR_BUILD="\$(GCJ)"
4059 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4060 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
4061 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4062 LD_FOR_BUILD="\$(LD)"
4063 NM_FOR_BUILD="\$(NM)"
4064 RANLIB_FOR_BUILD="\$(RANLIB)"
4065 WINDRES_FOR_BUILD="\$(WINDRES)"
4066 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4067fi
4068
4069ac_ext=c
1c710c3c
DJ
4070ac_cpp='$CPP $CPPFLAGS'
4071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074if test -n "$ac_tool_prefix"; then
4075 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4076set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078$as_echo_n "checking for $ac_word... " >&6; }
4079if test "${ac_cv_prog_CC+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4081else
4082 if test -n "$CC"; then
4083 ac_cv_prog_CC="$CC" # Let the user override the test.
4084else
4085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086for as_dir in $PATH
4087do
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
5213506e
RW
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4092 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4094 break 2
4095 fi
4096done
5213506e
RW
4097 done
4098IFS=$as_save_IFS
1c710c3c
DJ
4099
4100fi
4101fi
4102CC=$ac_cv_prog_CC
4103if test -n "$CC"; then
5213506e
RW
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4105$as_echo "$CC" >&6; }
1c710c3c 4106else
5213506e
RW
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108$as_echo "no" >&6; }
1c710c3c
DJ
4109fi
4110
5213506e 4111
1c710c3c
DJ
4112fi
4113if test -z "$ac_cv_prog_CC"; then
4114 ac_ct_CC=$CC
fb0103e5
RG
4115 # Extract the first word of "gcc", so it can be a program name with args.
4116set dummy gcc; ac_word=$2
5213506e
RW
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118$as_echo_n "checking for $ac_word... " >&6; }
4119if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4121else
4122 if test -n "$ac_ct_CC"; then
4123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4124else
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
5213506e
RW
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4132 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4134 break 2
4135 fi
4136done
5213506e
RW
4137 done
4138IFS=$as_save_IFS
1c710c3c
DJ
4139
4140fi
4141fi
4142ac_ct_CC=$ac_cv_prog_ac_ct_CC
4143if test -n "$ac_ct_CC"; then
5213506e
RW
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4145$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4146else
5213506e
RW
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148$as_echo "no" >&6; }
1c710c3c
DJ
4149fi
4150
5213506e
RW
4151 if test "x$ac_ct_CC" = x; then
4152 CC=""
4153 else
4154 case $cross_compiling:$ac_tool_warned in
4155yes:)
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4157$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4158ac_tool_warned=yes ;;
4159esac
4160 CC=$ac_ct_CC
4161 fi
1c710c3c
DJ
4162else
4163 CC="$ac_cv_prog_CC"
4164fi
4165
4166if test -z "$CC"; then
5213506e
RW
4167 if test -n "$ac_tool_prefix"; then
4168 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4169set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171$as_echo_n "checking for $ac_word... " >&6; }
4172if test "${ac_cv_prog_CC+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4174else
4175 if test -n "$CC"; then
4176 ac_cv_prog_CC="$CC" # Let the user override the test.
4177else
1c710c3c
DJ
4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
5213506e
RW
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4185 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4187 break 2
4188 fi
4189done
5213506e
RW
4190 done
4191IFS=$as_save_IFS
1c710c3c 4192
0b0dc272 4193fi
0b0dc272 4194fi
1c710c3c 4195CC=$ac_cv_prog_CC
af71363e 4196if test -n "$CC"; then
5213506e
RW
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4198$as_echo "$CC" >&6; }
2aeb72e9 4199else
5213506e
RW
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201$as_echo "no" >&6; }
2aeb72e9
DD
4202fi
4203
2aeb72e9 4204
5213506e 4205 fi
1c710c3c 4206fi
55ffb5ed
NN
4207if test -z "$CC"; then
4208 # Extract the first word of "cc", so it can be a program name with args.
4209set dummy cc; ac_word=$2
5213506e
RW
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if test "${ac_cv_prog_CC+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4214else
4215 if test -n "$CC"; then
4216 ac_cv_prog_CC="$CC" # Let the user override the test.
4217else
0b0dc272 4218 ac_prog_rejected=no
1c710c3c
DJ
4219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4220for as_dir in $PATH
4221do
4222 IFS=$as_save_IFS
4223 test -z "$as_dir" && as_dir=.
5213506e
RW
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4226 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4227 ac_prog_rejected=yes
4228 continue
4229 fi
4230 ac_cv_prog_CC="cc"
5213506e 4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4232 break 2
4233 fi
4234done
5213506e
RW
4235 done
4236IFS=$as_save_IFS
1c710c3c 4237
55ffb5ed
NN
4238if test $ac_prog_rejected = yes; then
4239 # We found a bogon in the path, so make sure we never use it.
4240 set dummy $ac_cv_prog_CC
4241 shift
1c710c3c 4242 if test $# != 0; then
55ffb5ed
NN
4243 # We chose a different compiler from the bogus one.
4244 # However, it has the same basename, so the bogon will be chosen
4245 # first if we set CC to just the basename; use the full file name.
4246 shift
1c710c3c 4247 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4248 fi
4249fi
4250fi
4251fi
1c710c3c 4252CC=$ac_cv_prog_CC
55ffb5ed 4253if test -n "$CC"; then
5213506e
RW
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4255$as_echo "$CC" >&6; }
55ffb5ed 4256else
5213506e
RW
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
55ffb5ed
NN
4259fi
4260
5213506e 4261
1c710c3c
DJ
4262fi
4263if test -z "$CC"; then
4264 if test -n "$ac_tool_prefix"; then
5213506e 4265 for ac_prog in cl.exe
1c710c3c
DJ
4266 do
4267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4268set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270$as_echo_n "checking for $ac_word... " >&6; }
4271if test "${ac_cv_prog_CC+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4273else
4274 if test -n "$CC"; then
4275 ac_cv_prog_CC="$CC" # Let the user override the test.
4276else
1c710c3c
DJ
4277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4278for as_dir in $PATH
4279do
4280 IFS=$as_save_IFS
4281 test -z "$as_dir" && as_dir=.
5213506e
RW
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4284 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4286 break 2
4287 fi
4288done
5213506e
RW
4289 done
4290IFS=$as_save_IFS
1c710c3c 4291
55ffb5ed
NN
4292fi
4293fi
1c710c3c 4294CC=$ac_cv_prog_CC
55ffb5ed 4295if test -n "$CC"; then
5213506e
RW
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4297$as_echo "$CC" >&6; }
a4b9e93e 4298else
5213506e
RW
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4300$as_echo "no" >&6; }
fb0103e5 4301fi
af71363e 4302
5213506e 4303
1c710c3c
DJ
4304 test -n "$CC" && break
4305 done
af71363e 4306fi
1c710c3c
DJ
4307if test -z "$CC"; then
4308 ac_ct_CC=$CC
5213506e 4309 for ac_prog in cl.exe
1c710c3c
DJ
4310do
4311 # Extract the first word of "$ac_prog", so it can be a program name with args.
4312set dummy $ac_prog; ac_word=$2
5213506e
RW
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314$as_echo_n "checking for $ac_word... " >&6; }
4315if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
0b0dc272 4317else
1c710c3c
DJ
4318 if test -n "$ac_ct_CC"; then
4319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4320else
1c710c3c
DJ
4321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322for as_dir in $PATH
4323do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
5213506e
RW
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4328 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4330 break 2
4331 fi
4332done
5213506e
RW
4333 done
4334IFS=$as_save_IFS
1c710c3c 4335
af71363e
AS
4336fi
4337fi
1c710c3c
DJ
4338ac_ct_CC=$ac_cv_prog_ac_ct_CC
4339if test -n "$ac_ct_CC"; then
5213506e
RW
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4341$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4342else
5213506e
RW
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4344$as_echo "no" >&6; }
af71363e 4345fi
0b0dc272 4346
5213506e 4347
1c710c3c
DJ
4348 test -n "$ac_ct_CC" && break
4349done
4350
5213506e
RW
4351 if test "x$ac_ct_CC" = x; then
4352 CC=""
4353 else
4354 case $cross_compiling:$ac_tool_warned in
4355yes:)
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4358ac_tool_warned=yes ;;
4359esac
4360 CC=$ac_ct_CC
4361 fi
1c710c3c
DJ
4362fi
4363
4364fi
4365
4366
5213506e
RW
4367test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4369as_fn_error "no acceptable C compiler found in \$PATH
4370See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4371
4372# Provide some information about the compiler.
5213506e
RW
4373$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4374set X $ac_compile
4375ac_compiler=$2
4376for ac_option in --version -v -V -qversion; do
4377 { { ac_try="$ac_compiler $ac_option >&5"
4378case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381esac
4382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383$as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4385 ac_status=$?
5213506e
RW
4386 if test -s conftest.err; then
4387 sed '10a\
4388... rest of stderr output deleted ...
4389 10q' conftest.err >conftest.er1
4390 cat conftest.er1 >&5
4391 rm -f conftest.er1 conftest.err
4392 fi
4393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394 test $ac_status = 0; }
4395done
1c710c3c 4396
5213506e 4397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4398/* end confdefs.h. */
4399
4400int
4401main ()
4402{
4403
4404 ;
4405 return 0;
4406}
4407_ACEOF
4408ac_clean_files_save=$ac_clean_files
5213506e 4409ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4410# Try to create an executable without -o first, disregard a.out.
4411# It will help us diagnose broken compilers, and finding out an intuition
4412# of exeext.
5213506e
RW
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4414$as_echo_n "checking for C compiler default output file name... " >&6; }
4415ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4416
4417# The possible output files:
4418ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4419
4420ac_rmfiles=
4421for ac_file in $ac_files
4422do
4423 case $ac_file in
4424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4425 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4426 esac
4427done
4428rm -f $ac_rmfiles
4429
4430if { { ac_try="$ac_link_default"
4431case "(($ac_try" in
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4434esac
4435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436$as_echo "$ac_try_echo"; } >&5
4437 (eval "$ac_link_default") 2>&5
1c710c3c 4438 ac_status=$?
5213506e
RW
4439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440 test $ac_status = 0; }; then :
4441 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4442# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4443# in a Makefile. We should not override ac_cv_exeext if it was cached,
4444# so that the user can short-circuit this test for compilers unknown to
4445# Autoconf.
4446for ac_file in $ac_files ''
1c710c3c
DJ
4447do
4448 test -f "$ac_file" || continue
4449 case $ac_file in
5213506e 4450 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4451 ;;
4452 [ab].out )
4453 # We found the default executable, but exeext='' is most
4454 # certainly right.
4455 break;;
4456 *.* )
5213506e
RW
4457 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4458 then :; else
4459 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4460 fi
4461 # We set ac_cv_exeext here because the later test for it is not
4462 # safe: cross compilers may not add the suffix if given an `-o'
4463 # argument, so we may need to know it at that point already.
4464 # Even if this section looks crufty: it has the advantage of
4465 # actually working.
1c710c3c
DJ
4466 break;;
4467 * )
4468 break;;
4469 esac
4470done
5213506e
RW
4471test "$ac_cv_exeext" = no && ac_cv_exeext=
4472
1c710c3c 4473else
5213506e
RW
4474 ac_file=''
4475fi
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4477$as_echo "$ac_file" >&6; }
4478if test -z "$ac_file"; then :
4479 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
5213506e
RW
4482{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4484{ as_fn_set_status 77
4485as_fn_error "C compiler cannot create executables
4486See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4487fi
1c710c3c 4488ac_exeext=$ac_cv_exeext
1c710c3c 4489
5213506e 4490# Check that the compiler produces executables we can run. If not, either
1c710c3c 4491# the compiler is broken, or we cross compile.
5213506e
RW
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4493$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4494# If not cross compiling, check that we can run a simple program.
4495if test "$cross_compiling" != yes; then
4496 if { ac_try='./$ac_file'
5213506e
RW
4497 { { case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4500esac
4501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502$as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_try") 2>&5
1c710c3c 4504 ac_status=$?
5213506e
RW
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; }; then
1c710c3c
DJ
4507 cross_compiling=no
4508 else
4509 if test "$cross_compiling" = maybe; then
4510 cross_compiling=yes
4511 else
5213506e
RW
4512 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514as_fn_error "cannot run C compiled programs.
1c710c3c 4515If you meant to cross compile, use \`--host'.
5213506e 4516See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4517 fi
4518 fi
4519fi
5213506e
RW
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4521$as_echo "yes" >&6; }
1c710c3c 4522
5213506e 4523rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4524ac_clean_files=$ac_clean_files_save
5213506e 4525# Check that the compiler produces executables we can run. If not, either
1c710c3c 4526# the compiler is broken, or we cross compile.
5213506e
RW
4527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4528$as_echo_n "checking whether we are cross compiling... " >&6; }
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4530$as_echo "$cross_compiling" >&6; }
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4533$as_echo_n "checking for suffix of executables... " >&6; }
4534if { { ac_try="$ac_link"
4535case "(($ac_try" in
4536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4537 *) ac_try_echo=$ac_try;;
4538esac
4539eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4540$as_echo "$ac_try_echo"; } >&5
4541 (eval "$ac_link") 2>&5
1c710c3c 4542 ac_status=$?
5213506e
RW
4543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4544 test $ac_status = 0; }; then :
1c710c3c
DJ
4545 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4546# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4547# work properly (i.e., refer to `conftest.exe'), while it won't with
4548# `rm'.
4549for ac_file in conftest.exe conftest conftest.*; do
4550 test -f "$ac_file" || continue
4551 case $ac_file in
5213506e 4552 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4553 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4554 break;;
4555 * ) break;;
4556 esac
4557done
af71363e 4558else
5213506e
RW
4559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4561as_fn_error "cannot compute suffix of executables: cannot compile and link
4562See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4563fi
1c710c3c 4564rm -f conftest$ac_cv_exeext
5213506e
RW
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4566$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4567
4568rm -f conftest.$ac_ext
4569EXEEXT=$ac_cv_exeext
4570ac_exeext=$EXEEXT
5213506e
RW
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4572$as_echo_n "checking for suffix of object files... " >&6; }
4573if test "${ac_cv_objext+set}" = set; then :
4574 $as_echo_n "(cached) " >&6
1c710c3c 4575else
5213506e 4576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4577/* end confdefs.h. */
4578
4579int
4580main ()
4581{
4582
4583 ;
4584 return 0;
4585}
4586_ACEOF
4587rm -f conftest.o conftest.obj
5213506e
RW
4588if { { ac_try="$ac_compile"
4589case "(($ac_try" in
4590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591 *) ac_try_echo=$ac_try;;
4592esac
4593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4594$as_echo "$ac_try_echo"; } >&5
4595 (eval "$ac_compile") 2>&5
1c710c3c 4596 ac_status=$?
5213506e
RW
4597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4598 test $ac_status = 0; }; then :
4599 for ac_file in conftest.o conftest.obj conftest.*; do
4600 test -f "$ac_file" || continue;
1c710c3c 4601 case $ac_file in
5213506e 4602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4604 break;;
4605 esac
4606done
4607else
5213506e 4608 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4609sed 's/^/| /' conftest.$ac_ext >&5
4610
5213506e
RW
4611{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4613as_fn_error "cannot compute suffix of object files: cannot compile
4614See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4615fi
1c710c3c
DJ
4616rm -f conftest.$ac_cv_objext conftest.$ac_ext
4617fi
5213506e
RW
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4619$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4620OBJEXT=$ac_cv_objext
4621ac_objext=$OBJEXT
5213506e
RW
4622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4623$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4624if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4625 $as_echo_n "(cached) " >&6
1c710c3c 4626else
5213506e 4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4628/* end confdefs.h. */
4629
4630int
4631main ()
4632{
4633#ifndef __GNUC__
4634 choke me
4635#endif
4636
4637 ;
4638 return 0;
4639}
4640_ACEOF
5213506e 4641if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4642 ac_compiler_gnu=yes
4643else
5213506e 4644 ac_compiler_gnu=no
1c710c3c 4645fi
5213506e 4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4647ac_cv_c_compiler_gnu=$ac_compiler_gnu
4648
4649fi
5213506e
RW
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4651$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4652if test $ac_compiler_gnu = yes; then
4653 GCC=yes
4654else
4655 GCC=
4656fi
1c710c3c
DJ
4657ac_test_CFLAGS=${CFLAGS+set}
4658ac_save_CFLAGS=$CFLAGS
5213506e
RW
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4660$as_echo_n "checking whether $CC accepts -g... " >&6; }
4661if test "${ac_cv_prog_cc_g+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663else
4664 ac_save_c_werror_flag=$ac_c_werror_flag
4665 ac_c_werror_flag=yes
4666 ac_cv_prog_cc_g=no
4667 CFLAGS="-g"
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4669/* end confdefs.h. */
4670
4671int
4672main ()
4673{
4674
4675 ;
4676 return 0;
4677}
4678_ACEOF
5213506e 4679if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4680 ac_cv_prog_cc_g=yes
4681else
5213506e
RW
4682 CFLAGS=""
4683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4684/* end confdefs.h. */
4685
4686int
4687main ()
4688{
4689
4690 ;
4691 return 0;
4692}
4693_ACEOF
4694if ac_fn_c_try_compile "$LINENO"; then :
4695
4696else
4697 ac_c_werror_flag=$ac_save_c_werror_flag
4698 CFLAGS="-g"
4699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700/* end confdefs.h. */
af71363e 4701
5213506e
RW
4702int
4703main ()
4704{
4705
4706 ;
4707 return 0;
4708}
4709_ACEOF
4710if ac_fn_c_try_compile "$LINENO"; then :
4711 ac_cv_prog_cc_g=yes
4712fi
4713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4714fi
5213506e 4715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4716fi
5213506e
RW
4717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 ac_c_werror_flag=$ac_save_c_werror_flag
4719fi
4720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4721$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4722if test "$ac_test_CFLAGS" = set; then
1c710c3c 4723 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4724elif test $ac_cv_prog_cc_g = yes; then
4725 if test "$GCC" = yes; then
4726 CFLAGS="-g -O2"
4727 else
4728 CFLAGS="-g"
4729 fi
4730else
4731 if test "$GCC" = yes; then
4732 CFLAGS="-O2"
4733 else
4734 CFLAGS=
4735 fi
4736fi
5213506e
RW
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4738$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4739if test "${ac_cv_prog_cc_c89+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
1c710c3c 4741else
5213506e 4742 ac_cv_prog_cc_c89=no
1c710c3c 4743ac_save_CC=$CC
5213506e 4744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4745/* end confdefs.h. */
4746#include <stdarg.h>
4747#include <stdio.h>
4748#include <sys/types.h>
4749#include <sys/stat.h>
4750/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4751struct buf { int x; };
4752FILE * (*rcsopen) (struct buf *, struct stat *, int);
4753static char *e (p, i)
4754 char **p;
4755 int i;
4756{
4757 return p[i];
4758}
4759static char *f (char * (*g) (char **, int), char **p, ...)
4760{
4761 char *s;
4762 va_list v;
4763 va_start (v,p);
4764 s = g (p, va_arg (v,int));
4765 va_end (v);
4766 return s;
4767}
4768
4769/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4770 function prototypes and stuff, but not '\xHH' hex character constants.
4771 These don't provoke an error unfortunately, instead are silently treated
5213506e 4772 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4773 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4774 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4775 that's true only with -std. */
1c710c3c
DJ
4776int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4777
5213506e
RW
4778/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4779 inside strings and character constants. */
4780#define FOO(x) 'x'
4781int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4782
1c710c3c
DJ
4783int test (int i, double x);
4784struct s1 {int (*f) (int a);};
4785struct s2 {int (*f) (double a);};
4786int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4787int argc;
4788char **argv;
4789int
4790main ()
4791{
4792return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4793 ;
4794 return 0;
4795}
4796_ACEOF
5213506e
RW
4797for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4798 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4799do
4800 CC="$ac_save_CC $ac_arg"
5213506e
RW
4801 if ac_fn_c_try_compile "$LINENO"; then :
4802 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4803fi
5213506e
RW
4804rm -f core conftest.err conftest.$ac_objext
4805 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4806done
5213506e 4807rm -f conftest.$ac_ext
1c710c3c
DJ
4808CC=$ac_save_CC
4809
4810fi
5213506e
RW
4811# AC_CACHE_VAL
4812case "x$ac_cv_prog_cc_c89" in
4813 x)
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4815$as_echo "none needed" >&6; } ;;
4816 xno)
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4818$as_echo "unsupported" >&6; } ;;
1c710c3c 4819 *)
5213506e
RW
4820 CC="$CC $ac_cv_prog_cc_c89"
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4822$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4823esac
5213506e 4824if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4825
2aeb72e9
DD
4826fi
4827
2aeb72e9
DD
4828ac_ext=c
4829ac_cpp='$CPP $CPPFLAGS'
4830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4832ac_compiler_gnu=$ac_cv_c_compiler_gnu
4833
5213506e 4834ac_ext=cpp
2aeb72e9
DD
4835ac_cpp='$CXXCPP $CPPFLAGS'
4836ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4837ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4839if test -z "$CXX"; then
4840 if test -n "$CCC"; then
4841 CXX=$CCC
4842 else
4843 if test -n "$ac_tool_prefix"; then
4844 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4845 do
4846 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4847set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849$as_echo_n "checking for $ac_word... " >&6; }
4850if test "${ac_cv_prog_CXX+set}" = set; then :
4851 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4852else
4853 if test -n "$CXX"; then
4854 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4855else
4856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
5213506e
RW
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4863 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4865 break 2
4866 fi
4867done
5213506e
RW
4868 done
4869IFS=$as_save_IFS
55ffb5ed 4870
c3a86da9
DJ
4871fi
4872fi
4873CXX=$ac_cv_prog_CXX
4874if test -n "$CXX"; then
5213506e
RW
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4876$as_echo "$CXX" >&6; }
c3a86da9 4877else
5213506e
RW
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879$as_echo "no" >&6; }
c3a86da9
DJ
4880fi
4881
5213506e 4882
c3a86da9
DJ
4883 test -n "$CXX" && break
4884 done
4885fi
4886if test -z "$CXX"; then
4887 ac_ct_CXX=$CXX
5213506e 4888 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4889do
4890 # Extract the first word of "$ac_prog", so it can be a program name with args.
4891set dummy $ac_prog; ac_word=$2
5213506e
RW
4892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893$as_echo_n "checking for $ac_word... " >&6; }
4894if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4896else
4897 if test -n "$ac_ct_CXX"; then
4898 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4899else
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
5213506e
RW
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4907 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4909 break 2
4910 fi
4911done
5213506e
RW
4912 done
4913IFS=$as_save_IFS
c3a86da9
DJ
4914
4915fi
4916fi
4917ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4918if test -n "$ac_ct_CXX"; then
5213506e
RW
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4920$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4921else
5213506e
RW
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923$as_echo "no" >&6; }
c3a86da9
DJ
4924fi
4925
5213506e 4926
c3a86da9
DJ
4927 test -n "$ac_ct_CXX" && break
4928done
c3a86da9 4929
5213506e
RW
4930 if test "x$ac_ct_CXX" = x; then
4931 CXX="g++"
4932 else
4933 case $cross_compiling:$ac_tool_warned in
4934yes:)
4935{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4936$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4937ac_tool_warned=yes ;;
4938esac
4939 CXX=$ac_ct_CXX
4940 fi
c3a86da9
DJ
4941fi
4942
5213506e
RW
4943 fi
4944fi
c3a86da9 4945# Provide some information about the compiler.
5213506e
RW
4946$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4947set X $ac_compile
4948ac_compiler=$2
4949for ac_option in --version -v -V -qversion; do
4950 { { ac_try="$ac_compiler $ac_option >&5"
4951case "(($ac_try" in
4952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953 *) ac_try_echo=$ac_try;;
4954esac
4955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4956$as_echo "$ac_try_echo"; } >&5
4957 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4958 ac_status=$?
5213506e
RW
4959 if test -s conftest.err; then
4960 sed '10a\
4961... rest of stderr output deleted ...
4962 10q' conftest.err >conftest.er1
4963 cat conftest.er1 >&5
4964 rm -f conftest.er1 conftest.err
4965 fi
4966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4967 test $ac_status = 0; }
4968done
c3a86da9 4969
5213506e
RW
4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4971$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4972if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4973 $as_echo_n "(cached) " >&6
c3a86da9 4974else
5213506e 4975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4976/* end confdefs.h. */
4977
4978int
4979main ()
4980{
4981#ifndef __GNUC__
4982 choke me
4983#endif
4984
4985 ;
4986 return 0;
4987}
4988_ACEOF
5213506e 4989if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4990 ac_compiler_gnu=yes
4991else
5213506e 4992 ac_compiler_gnu=no
c3a86da9 4993fi
5213506e 4994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4995ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4996
4997fi
5213506e
RW
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4999$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5000if test $ac_compiler_gnu = yes; then
5001 GXX=yes
5002else
5003 GXX=
5004fi
c3a86da9
DJ
5005ac_test_CXXFLAGS=${CXXFLAGS+set}
5006ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5008$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5009if test "${ac_cv_prog_cxx_g+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5011else
5012 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5013 ac_cxx_werror_flag=yes
5014 ac_cv_prog_cxx_g=no
5015 CXXFLAGS="-g"
5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5017/* end confdefs.h. */
5018
5019int
5020main ()
5021{
5022
5023 ;
5024 return 0;
5025}
5026_ACEOF
5213506e 5027if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5028 ac_cv_prog_cxx_g=yes
5029else
5213506e
RW
5030 CXXFLAGS=""
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5032/* end confdefs.h. */
5213506e 5033
c3a86da9
DJ
5034int
5035main ()
5036{
5213506e 5037
c3a86da9
DJ
5038 ;
5039 return 0;
5040}
5041_ACEOF
5213506e 5042if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5043
5213506e
RW
5044else
5045 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5046 CXXFLAGS="-g"
5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5048/* end confdefs.h. */
5213506e 5049
c3a86da9
DJ
5050int
5051main ()
5052{
5213506e 5053
c3a86da9
DJ
5054 ;
5055 return 0;
5056}
5057_ACEOF
5213506e
RW
5058if ac_fn_cxx_try_compile "$LINENO"; then :
5059 ac_cv_prog_cxx_g=yes
11a67599 5060fi
5213506e
RW
5061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5062fi
5063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5064fi
5065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5066 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5067fi
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5069$as_echo "$ac_cv_prog_cxx_g" >&6; }
5070if test "$ac_test_CXXFLAGS" = set; then
5071 CXXFLAGS=$ac_save_CXXFLAGS
5072elif test $ac_cv_prog_cxx_g = yes; then
5073 if test "$GXX" = yes; then
5074 CXXFLAGS="-g -O2"
5075 else
5076 CXXFLAGS="-g"
5077 fi
5078else
5079 if test "$GXX" = yes; then
5080 CXXFLAGS="-O2"
5081 else
5082 CXXFLAGS=
5083 fi
c3a86da9 5084fi
c3a86da9
DJ
5085ac_ext=c
5086ac_cpp='$CPP $CPPFLAGS'
5087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5089ac_compiler_gnu=$ac_cv_c_compiler_gnu
5090
5091
5092# We must set the default linker to the linker used by gcc for the correct
5093# operation of libtool. If LD is not defined and we are using gcc, try to
5094# set the LD default to the ld used by gcc.
5095if test -z "$LD"; then
5096 if test "$GCC" = yes; then
5097 case $build in
5098 *-*-mingw*)
5099 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5100 *)
5101 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5102 esac
5103 case $gcc_prog_ld in
5104 # Accept absolute paths.
5105 [\\/]* | [A-Za-z]:[\\/]*)
5106 LD="$gcc_prog_ld" ;;
5107 esac
5108 fi
23f6b2f9
PB
5109fi
5110
0b21f5d3
EB
5111# Check whether -static-libstdc++ -static-libgcc is supported.
5112have_static_libs=no
5113if test "$GCC" = yes; then
5114 saved_LDFLAGS="$LDFLAGS"
5115
5116 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5118$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5119 ac_ext=cpp
5120ac_cpp='$CXXCPP $CPPFLAGS'
5121ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5122ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5124
5125
5126cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127/* end confdefs.h. */
0d6414b2
EB
5128
5129#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5130#error -static-libstdc++ not implemented
5131#endif
0b21f5d3
EB
5132int main() {}
5133_ACEOF
5134if ac_fn_cxx_try_link "$LINENO"; then :
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5136$as_echo "yes" >&6; }; have_static_libs=yes
5137else
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139$as_echo "no" >&6; }
5140fi
5141rm -f core conftest.err conftest.$ac_objext \
5142 conftest$ac_exeext conftest.$ac_ext
5143 ac_ext=c
5144ac_cpp='$CPP $CPPFLAGS'
5145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5147ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148
5149
5150 LDFLAGS="$saved_LDFLAGS"
5151fi
5152
23f6b2f9
PB
5153
5154
55ffb5ed 5155
1c710c3c
DJ
5156if test -n "$ac_tool_prefix"; then
5157 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5158set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160$as_echo_n "checking for $ac_word... " >&6; }
5161if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5162 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5163else
5164 if test -n "$GNATBIND"; then
5165 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5166else
1c710c3c
DJ
5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168for as_dir in $PATH
5169do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5213506e
RW
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5174 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5176 break 2
5177 fi
5178done
5213506e
RW
5179 done
5180IFS=$as_save_IFS
1c710c3c 5181
55ffb5ed
NN
5182fi
5183fi
1c710c3c 5184GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5185if test -n "$GNATBIND"; then
5213506e
RW
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5187$as_echo "$GNATBIND" >&6; }
55ffb5ed 5188else
5213506e
RW
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190$as_echo "no" >&6; }
55ffb5ed
NN
5191fi
5192
5213506e 5193
1c710c3c 5194fi
55ffb5ed 5195if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5196 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5197 # Extract the first word of "gnatbind", so it can be a program name with args.
5198set dummy gnatbind; ac_word=$2
5213506e
RW
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5200$as_echo_n "checking for $ac_word... " >&6; }
5201if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5202 $as_echo_n "(cached) " >&6
55ffb5ed 5203else
1c710c3c
DJ
5204 if test -n "$ac_ct_GNATBIND"; then
5205 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5206else
1c710c3c
DJ
5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5208for as_dir in $PATH
5209do
5210 IFS=$as_save_IFS
5211 test -z "$as_dir" && as_dir=.
5213506e
RW
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5214 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5216 break 2
5217 fi
5218done
5213506e
RW
5219 done
5220IFS=$as_save_IFS
1c710c3c 5221
55ffb5ed
NN
5222fi
5223fi
1c710c3c
DJ
5224ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5225if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5227$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5228else
5213506e
RW
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230$as_echo "no" >&6; }
55ffb5ed
NN
5231fi
5232
5213506e
RW
5233 if test "x$ac_ct_GNATBIND" = x; then
5234 GNATBIND="no"
5235 else
5236 case $cross_compiling:$ac_tool_warned in
5237yes:)
5238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5240ac_tool_warned=yes ;;
5241esac
5242 GNATBIND=$ac_ct_GNATBIND
5243 fi
55ffb5ed 5244else
1c710c3c 5245 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5246fi
5247
1c710c3c
DJ
5248if test -n "$ac_tool_prefix"; then
5249 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5250set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
5253if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5305be7e
RG
5255else
5256 if test -n "$GNATMAKE"; then
5257 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5258else
1c710c3c
DJ
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5213506e
RW
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5266 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5268 break 2
5269 fi
5270done
5213506e
RW
5271 done
5272IFS=$as_save_IFS
1c710c3c 5273
5305be7e
RG
5274fi
5275fi
1c710c3c 5276GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5277if test -n "$GNATMAKE"; then
5213506e
RW
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5279$as_echo "$GNATMAKE" >&6; }
5305be7e 5280else
5213506e
RW
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5305be7e
RG
5283fi
5284
5213506e 5285
1c710c3c 5286fi
5305be7e 5287if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5288 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5289 # Extract the first word of "gnatmake", so it can be a program name with args.
5290set dummy gnatmake; ac_word=$2
5213506e
RW
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5292$as_echo_n "checking for $ac_word... " >&6; }
5293if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5294 $as_echo_n "(cached) " >&6
5305be7e 5295else
1c710c3c
DJ
5296 if test -n "$ac_ct_GNATMAKE"; then
5297 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5298else
1c710c3c
DJ
5299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300for as_dir in $PATH
5301do
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5213506e
RW
5304 for ac_exec_ext in '' $ac_executable_extensions; do
5305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5306 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5308 break 2
5309 fi
5310done
5213506e
RW
5311 done
5312IFS=$as_save_IFS
1c710c3c 5313
5305be7e
RG
5314fi
5315fi
1c710c3c
DJ
5316ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5317if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5319$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5320else
5213506e
RW
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5322$as_echo "no" >&6; }
5305be7e
RG
5323fi
5324
5213506e
RW
5325 if test "x$ac_ct_GNATMAKE" = x; then
5326 GNATMAKE="no"
5327 else
5328 case $cross_compiling:$ac_tool_warned in
5329yes:)
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5332ac_tool_warned=yes ;;
5333esac
5334 GNATMAKE=$ac_ct_GNATMAKE
5335 fi
5305be7e 5336else
1c710c3c 5337 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5338fi
5339
5213506e
RW
5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5341$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5342if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5344else
5345 cat >conftest.adb <<EOF
5346procedure conftest is begin null; end conftest;
5347EOF
5348acx_cv_cc_gcc_supports_ada=no
5349# There is a bug in old released versions of GCC which causes the
5350# driver to exit successfully when the appropriate language module
5351# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5352# Therefore we must check for the error message as well as an
5353# unsuccessful exit.
1db673ca
RO
5354# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5355# given a .adb file, but produce no object file. So we must check
5356# if an object file was really produced to guard against this.
55ffb5ed 5357errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5358if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5359 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5360fi
5361rm -f conftest.*
5362fi
5213506e
RW
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5364$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5365
7cb62ef1 5366if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5367 have_gnat=yes
5368else
5369 have_gnat=no
5370fi
5371
5213506e
RW
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5373$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5374if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
a76494aa
PB
5376else
5377 echo abfoo >t1
5378 echo cdfoo >t2
5379 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5380 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5381 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5382 :
5383 else
5384 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5385 fi
5386 fi
a76494aa
PB
5387 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5388 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5389 :
a76494aa
PB
5390 else
5391 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5392 fi
5393 fi
5394 rm t1 t2
5395
5396fi
5213506e
RW
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5398$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5399do_compare="$gcc_cv_prog_cmp_skip"
5400
5401
55ffb5ed 5402
ff3ac0f4
ILT
5403# Check whether --enable-bootstrap was given.
5404if test "${enable_bootstrap+set}" = set; then :
5405 enableval=$enable_bootstrap;
5406else
5407 enable_bootstrap=default
5408fi
5409
5410
5411# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5412if test -r $srcdir/gcc/configure; then
5413 have_compiler=yes
5414else
5415 have_compiler=no
5416fi
ff3ac0f4
ILT
5417
5418case "$have_compiler:$host:$target:$enable_bootstrap" in
5419 *:*:*:no) ;;
5420
5421 # Default behavior. Enable bootstrap if we have a compiler
5422 # and we are in a native configuration.
5423 yes:$build:$build:default)
5424 enable_bootstrap=yes ;;
5425
5426 *:*:*:default)
5427 enable_bootstrap=no ;;
5428
5429 # We have a compiler and we are in a native configuration, bootstrap is ok
5430 yes:$build:$build:yes)
5431 ;;
5432
5433 # Other configurations, but we have a compiler. Assume the user knows
5434 # what he's doing.
5435 yes:*:*:yes)
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5437$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5438 ;;
5439
5440 # No compiler: if they passed --enable-bootstrap explicitly, fail
5441 no:*:*:yes)
5442 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5443
5444 # Fail if wrong command line
5445 *)
5446 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5447 ;;
5448esac
5449
46070488
JM
5450# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5451# C++98 compiler can still start the bootstrap.
5452if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5453 CXX="$CXX -std=gnu++98"
46070488
JM
5454fi
5455
592c90ff
KG
5456# Used for setting $lt_cv_objdir
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5458$as_echo_n "checking for objdir... " >&6; }
5459if test "${lt_cv_objdir+set}" = set; then :
5460 $as_echo_n "(cached) " >&6
5461else
5462 rm -f .libs 2>/dev/null
5463mkdir .libs 2>/dev/null
5464if test -d .libs; then
5465 lt_cv_objdir=.libs
5466else
5467 # MS-DOS does not allow filenames that begin with a dot.
5468 lt_cv_objdir=_libs
5469fi
5470rmdir .libs 2>/dev/null
5471fi
5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5473$as_echo "$lt_cv_objdir" >&6; }
5474objdir=$lt_cv_objdir
5475
5476
5477
5478
5479
5480cat >>confdefs.h <<_ACEOF
5481#define LT_OBJDIR "$lt_cv_objdir/"
5482_ACEOF
5483
5484
5485
acd26225 5486# Check for GMP, MPFR and MPC
3a5729ea 5487gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5488gmpinc=
e69bf64b 5489have_gmp=no
acd26225
KG
5490
5491# Specify a location for mpc
5492# check for this first so it ends up on the link line before mpfr.
5493
5213506e
RW
5494# Check whether --with-mpc was given.
5495if test "${with_mpc+set}" = set; then :
5496 withval=$with_mpc;
5497fi
acd26225 5498
acd26225 5499
9965e3cd 5500# Check whether --with-mpc-include was given.
5213506e
RW
5501if test "${with_mpc_include+set}" = set; then :
5502 withval=$with_mpc_include;
5503fi
acd26225 5504
acd26225 5505
9965e3cd 5506# Check whether --with-mpc-lib was given.
5213506e
RW
5507if test "${with_mpc_lib+set}" = set; then :
5508 withval=$with_mpc_lib;
5509fi
acd26225 5510
acd26225
KG
5511
5512if test "x$with_mpc" != x; then
3a5729ea
KG
5513 gmplibs="-L$with_mpc/lib $gmplibs"
5514 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5515fi
5516if test "x$with_mpc_include" != x; then
3a5729ea 5517 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5518fi
5519if test "x$with_mpc_lib" != x; then
3a5729ea 5520 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5521fi
5522if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5523 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5524 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5525 # Do not test the mpc version. Assume that it is sufficient, since
5526 # it is in the source tree, and the library has not been built yet
5527 # but it would be included on the link line in the version check below
5528 # hence making the test fail.
3a5729ea 5529 have_gmp=yes
acd26225 5530fi
e69bf64b 5531
bebf829d
PB
5532# Specify a location for mpfr
5533# check for this first so it ends up on the link line before gmp.
1c710c3c 5534
5213506e
RW
5535# Check whether --with-mpfr-dir was given.
5536if test "${with_mpfr_dir+set}" = set; then :
5537 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5538Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5539fi
5540
bebf829d
PB
5541
5542
5213506e
RW
5543# Check whether --with-mpfr was given.
5544if test "${with_mpfr+set}" = set; then :
5545 withval=$with_mpfr;
5546fi
1c710c3c 5547
bebf829d 5548
9965e3cd 5549# Check whether --with-mpfr-include was given.
5213506e
RW
5550if test "${with_mpfr_include+set}" = set; then :
5551 withval=$with_mpfr_include;
5552fi
1c710c3c 5553
8a877c9c 5554
9965e3cd 5555# Check whether --with-mpfr-lib was given.
5213506e
RW
5556if test "${with_mpfr_lib+set}" = set; then :
5557 withval=$with_mpfr_lib;
5558fi
8a877c9c 5559
bebf829d
PB
5560
5561if test "x$with_mpfr" != x; then
5562 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5563 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5564fi
8a877c9c 5565if test "x$with_mpfr_include" != x; then
3a5729ea 5566 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5567fi
5568if test "x$with_mpfr_lib" != x; then
5569 gmplibs="-L$with_mpfr_lib $gmplibs"
5570fi
e69bf64b 5571if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5572 # MPFR v3.1.0 moved the sources into a src sub-directory.
5573 if ! test -d ${srcdir}/mpfr/src; then
5574 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5575 fi
00f35794
BE
5576 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5577 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5578 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5579 # Do not test the mpfr version. Assume that it is sufficient, since
5580 # it is in the source tree, and the library has not been built yet
5581 # but it would be included on the link line in the version check below
5582 # hence making the test fail.
5583 have_gmp=yes
5584fi
bebf829d 5585
6de9cd9a 5586# Specify a location for gmp
1c710c3c 5587
5213506e
RW
5588# Check whether --with-gmp-dir was given.
5589if test "${with_gmp_dir+set}" = set; then :
5590 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5591Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5592fi
5593
6de9cd9a 5594
6de9cd9a 5595
5213506e
RW
5596# Check whether --with-gmp was given.
5597if test "${with_gmp+set}" = set; then :
5598 withval=$with_gmp;
5599fi
1c710c3c 5600
6de9cd9a 5601
9965e3cd 5602# Check whether --with-gmp-include was given.
5213506e
RW
5603if test "${with_gmp_include+set}" = set; then :
5604 withval=$with_gmp_include;
5605fi
1c710c3c 5606
8a877c9c 5607
9965e3cd 5608# Check whether --with-gmp-lib was given.
5213506e
RW
5609if test "${with_gmp_lib+set}" = set; then :
5610 withval=$with_gmp_lib;
5611fi
8a877c9c
KG
5612
5613
6de9cd9a 5614
bebf829d
PB
5615if test "x$with_gmp" != x; then
5616 gmplibs="-L$with_gmp/lib $gmplibs"
5617 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5618fi
8a877c9c
KG
5619if test "x$with_gmp_include" != x; then
5620 gmpinc="-I$with_gmp_include $gmpinc"
5621fi
5622if test "x$with_gmp_lib" != x; then
5623 gmplibs="-L$with_gmp_lib $gmplibs"
5624fi
e69bf64b 5625if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5626 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5627 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5628 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5629 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5630 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5631 # Do not test the gmp version. Assume that it is sufficient, since
5632 # it is in the source tree, and the library has not been built yet
5633 # but it would be included on the link line in the version check below
5634 # hence making the test fail.
5635 have_gmp=yes
5636fi
6de9cd9a 5637
d943d7c4 5638if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5639 have_gmp=yes
5640 saved_CFLAGS="$CFLAGS"
5641 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5642 # Check for the recommended and required versions of GMP.
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5644$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5645
5646cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5647/* end confdefs.h. */
5648#include "gmp.h"
5649int
5650main ()
5651{
5652
5653 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5654 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5655 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5656 choke me
5657 #endif
5658
5659 ;
5660 return 0;
5661}
5662_ACEOF
5663if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5665/* end confdefs.h. */
362c6d2f 5666#include <gmp.h>
1c710c3c
DJ
5667int
5668main ()
5669{
6de9cd9a 5670
362c6d2f
KG
5671 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5672 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5673 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5674 choke me
5675 #endif
1c710c3c
DJ
5676
5677 ;
5678 return 0;
5679}
5680_ACEOF
5213506e
RW
5681if ac_fn_c_try_compile "$LINENO"; then :
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5683$as_echo "yes" >&6; }
362c6d2f
KG
5684else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5686$as_echo "buggy but acceptable" >&6; }
5687fi
5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5689else
5213506e
RW
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5692fi
5213506e 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5694
acd26225 5695 # If we have GMP, check the MPFR version.
e69bf64b 5696 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5697 # Check for the recommended and required versions of MPFR.
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5699$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5701/* end confdefs.h. */
70ec446f 5702#include <gmp.h>
e69bf64b 5703 #include <mpfr.h>
1c710c3c
DJ
5704int
5705main ()
5706{
e48d66a9 5707
f7d6bc01 5708 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5709 choke me
5710 #endif
1c710c3c
DJ
5711
5712 ;
5713 return 0;
5714}
5715_ACEOF
5213506e
RW
5716if ac_fn_c_try_compile "$LINENO"; then :
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5718/* end confdefs.h. */
a3993f33 5719#include <gmp.h>
e69bf64b 5720 #include <mpfr.h>
1c710c3c
DJ
5721int
5722main ()
5723{
a3993f33 5724
362c6d2f 5725 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5726 choke me
5727 #endif
acd26225
KG
5728
5729 ;
5730 return 0;
5731}
5732_ACEOF
5213506e
RW
5733if ac_fn_c_try_compile "$LINENO"; then :
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5735$as_echo "yes" >&6; }
acd26225 5736else
5213506e
RW
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5738$as_echo "buggy but acceptable" >&6; }
acd26225 5739fi
5213506e 5740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5741else
5213506e
RW
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743$as_echo "no" >&6; }; have_gmp=no
acd26225 5744fi
5213506e 5745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5746 fi
5747
5748 # Check for the MPC header version.
3a5729ea 5749 if test x"$have_gmp" = xyes ; then
362c6d2f 5750 # Check for the recommended and required versions of MPC.
5213506e
RW
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5752$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5754/* end confdefs.h. */
5755#include <mpc.h>
5756int
5757main ()
5758{
5759
362c6d2f
KG
5760 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5761 choke me
5762 #endif
5763
5764 ;
5765 return 0;
5766}
5767_ACEOF
5768if ac_fn_c_try_compile "$LINENO"; then :
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770/* end confdefs.h. */
5771#include <mpc.h>
5772int
5773main ()
5774{
5775
5776 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5777 choke me
5778 #endif
5779
5780 ;
5781 return 0;
5782}
5783_ACEOF
5213506e
RW
5784if ac_fn_c_try_compile "$LINENO"; then :
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5786$as_echo "yes" >&6; }
362c6d2f
KG
5787else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5789$as_echo "buggy but acceptable" >&6; }
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5792else
5213506e 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5794$as_echo "no" >&6; }; have_gmp=no
acd26225 5795fi
5213506e 5796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5797 fi
5798
5799 # Now check the MPFR library.
5800 if test x"$have_gmp" = xyes; then
5801 saved_LIBS="$LIBS"
5802 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5804$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5806/* end confdefs.h. */
3a5729ea 5807#include <mpc.h>
acd26225
KG
5808int
5809main ()
5810{
5811
5812 mpfr_t n;
5813 mpfr_t x;
3a5729ea 5814 mpc_t c;
acd26225
KG
5815 int t;
5816 mpfr_init (n);
5817 mpfr_init (x);
5818 mpfr_atan2 (n, n, x, GMP_RNDN);
5819 mpfr_erfc (n, x, GMP_RNDN);
5820 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5821 mpfr_clear(n);
5822 mpfr_clear(x);
5823 mpc_init2 (c, 53);
5824 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5825 mpc_cosh (c, c, MPC_RNDNN);
5826 mpc_pow (c, c, c, MPC_RNDNN);
5827 mpc_acosh (c, c, MPC_RNDNN);
5828 mpc_clear (c);
1c710c3c
DJ
5829
5830 ;
5831 return 0;
5832}
5833_ACEOF
5213506e
RW
5834if ac_fn_c_try_link "$LINENO"; then :
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5836$as_echo "yes" >&6; }
1c710c3c 5837else
5213506e
RW
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5840fi
5213506e
RW
5841rm -f core conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5843 LIBS="$saved_LIBS"
5844 fi
5845
e69bf64b 5846 CFLAGS="$saved_CFLAGS"
6de9cd9a 5847
362c6d2f
KG
5848# The library versions listed in the error message below should match
5849# the HARD-minimums enforced above.
e69bf64b 5850 if test x$have_gmp != xyes; then
f7d6bc01 5851 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5852Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5853their locations. Source code for these libraries can be found at
5854their respective hosting sites as well as at
5855ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5856http://gcc.gnu.org/install/prerequisites.html for additional info. If
5857you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5858make sure that you have installed both the libraries and the header
5859files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5860 fi
70ec446f
KG
5861fi
5862
acd26225
KG
5863# Flags needed for both GMP, MPFR and/or MPC.
5864
5865
6de9cd9a
DN
5866
5867
5868
9e3eba15 5869
0ff2d841 5870
0b21f5d3 5871# Libraries to use for stage1 or when not bootstrapping.
00020c16 5872
0b21f5d3
EB
5873# Check whether --with-stage1-libs was given.
5874if test "${with_stage1_libs+set}" = set; then :
5875 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5876 stage1_libs=
00020c16 5877 else
0b21f5d3 5878 stage1_libs=$withval
00020c16
ILT
5879 fi
5880else
5dc85f7e 5881 stage1_libs=
5213506e
RW
5882fi
5883
00020c16
ILT
5884
5885
0b21f5d3 5886# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5887
0b21f5d3
EB
5888# Check whether --with-stage1-ldflags was given.
5889if test "${with_stage1_ldflags+set}" = set; then :
5890 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5891 stage1_ldflags=
00020c16 5892 else
0b21f5d3 5893 stage1_ldflags=$withval
00020c16
ILT
5894 fi
5895else
0b21f5d3
EB
5896 stage1_ldflags=
5897 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5898 # if supported. But if the user explicitly specified the libraries to use,
5899 # trust that they are doing what they want.
5900 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5901 stage1_ldflags="-static-libstdc++ -static-libgcc"
5902 fi
5213506e
RW
5903fi
5904
00020c16
ILT
5905
5906
5dc85f7e 5907# Libraries to use for stage2 and later builds.
00020c16 5908
5213506e
RW
5909# Check whether --with-boot-libs was given.
5910if test "${with_boot_libs+set}" = set; then :
5911 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5912 poststage1_libs=
5913 else
5914 poststage1_libs=$withval
5915 fi
5916else
5dc85f7e 5917 poststage1_libs=
5213506e
RW
5918fi
5919
00020c16
ILT
5920
5921
ed2eaa9f
ILT
5922# Linker flags to use for stage2 and later builds.
5923
5924# Check whether --with-boot-ldflags was given.
5925if test "${with_boot_ldflags+set}" = set; then :
5926 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5927 poststage1_ldflags=
5928 else
5929 poststage1_ldflags=$withval
5930 fi
5931else
5932 poststage1_ldflags=
bec93d73
ILT
5933 # In stages 2 and 3, default to linking libstdc++ and libgcc
5934 # statically. But if the user explicitly specified the libraries to
5935 # use, trust that they are doing what they want.
5936 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5937 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5938 fi
5939fi
5940
5941
5942
e357a5e0 5943# GCC GRAPHITE dependency isl.
4a9bb2aa 5944# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5945
5946
33ad93b9
RG
5947# Check whether --with-isl was given.
5948if test "${with_isl+set}" = set; then :
5949 withval=$with_isl;
5213506e 5950fi
f8bf9252 5951
f8bf9252 5952
eae1a5d4 5953# Treat --without-isl as a request to disable
625afa23 5954# GRAPHITE support and skip all following checks.
eae1a5d4 5955if test "x$with_isl" != "xno"; then
e357a5e0 5956 # Check for isl
625afa23
RG
5957
5958
33ad93b9
RG
5959# Check whether --with-isl-include was given.
5960if test "${with_isl_include+set}" = set; then :
5961 withval=$with_isl_include;
5213506e
RW
5962fi
5963
f8bf9252 5964
33ad93b9
RG
5965# Check whether --with-isl-lib was given.
5966if test "${with_isl_lib+set}" = set; then :
5967 withval=$with_isl_lib;
5213506e 5968fi
f8bf9252 5969
f8bf9252 5970
33ad93b9
RG
5971 # Check whether --enable-isl-version-check was given.
5972if test "${enable_isl_version_check+set}" = set; then :
5973 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5974else
5975 ENABLE_ISL_CHECK=yes
7d32a440
SP
5976fi
5977
5978
33ad93b9
RG
5979 # Initialize isllibs and islinc.
5980 case $with_isl in
5981 no)
5982 isllibs=
5983 islinc=
5984 ;;
5985 "" | yes)
5986 ;;
5987 *)
5988 isllibs="-L$with_isl/lib"
5989 islinc="-I$with_isl/include"
5990 ;;
5991 esac
5992 if test "x${with_isl_include}" != x ; then
5993 islinc="-I$with_isl_include"
5994 fi
5995 if test "x${with_isl_lib}" != x; then
5996 isllibs="-L$with_isl_lib"
5997 fi
5998 if test "x${islinc}" = x && test "x${isllibs}" = x \
5999 && test -d ${srcdir}/isl; then
6000 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6001 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6002 ENABLE_ISL_CHECK=no
560d18d3
AK
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6004$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 6005 fi
7d32a440 6006
eae1a5d4
RG
6007 isllibs="${isllibs} -lisl"
6008
7d32a440 6009
7d32a440 6010
9847828b
RB
6011 if test "${ENABLE_ISL_CHECK}" = yes ; then
6012 _isl_saved_CFLAGS=$CFLAGS
6013 _isl_saved_LDFLAGS=$LDFLAGS
6014 _isl_saved_LIBS=$LIBS
6015
6016 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
6017 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6018 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 6019
c661a43d
SP
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6021$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
e0c0c325 6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6023/* end confdefs.h. */
560d18d3 6024#include <isl/ctx.h>
622dbadf
BC
6025int
6026main ()
6027{
560d18d3 6028isl_ctx_get_max_operations (isl_ctx_alloc ());
622dbadf
BC
6029 ;
6030 return 0;
6031}
6032_ACEOF
6033if ac_fn_c_try_link "$LINENO"; then :
9847828b 6034 gcc_cv_isl=yes
622dbadf
BC
6035else
6036 gcc_cv_isl=no
6037fi
6038rm -f core conftest.err conftest.$ac_objext \
6039 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6041$as_echo "$gcc_cv_isl" >&6; }
6042
560d18d3 6043 if test "${gcc_cv_isl}" = no ; then
c661a43d
SP
6044 { $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
6045$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
560d18d3
AK
6046 fi
6047
c661a43d
SP
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6049$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
1e050c90
AK
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h. */
6052#include <isl/schedule.h>
6053int
6054main ()
6055{
6056isl_options_set_schedule_serialize_sccs (NULL, 0);
6057 ;
6058 return 0;
6059}
6060_ACEOF
6061if ac_fn_c_try_link "$LINENO"; then :
6062 ac_has_isl_options_set_schedule_serialize_sccs=yes
6063else
6064 ac_has_isl_options_set_schedule_serialize_sccs=no
6065fi
6066rm -f core conftest.err conftest.$ac_objext \
6067 conftest$ac_exeext conftest.$ac_ext
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6069$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6070
6071 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6072 islver="0.15"
6073
6074 fi
6075
9847828b
RB
6076 CFLAGS=$_isl_saved_CFLAGS
6077 LDFLAGS=$_isl_saved_LDFLAGS
6078 LIBS=$_isl_saved_LIBS
6079 fi
6080
6081
f8bf9252 6082
f8bf9252 6083
33ad93b9
RG
6084
6085
33ad93b9
RG
6086 if test "x${with_isl}" = xno; then
6087 graphite_requested=no
6088 elif test "x${with_isl}" != x \
6089 || test "x${with_isl_include}" != x \
6090 || test "x${with_isl_lib}" != x ; then
6091 graphite_requested=yes
6092 else
6093 graphite_requested=no
7d32a440 6094 fi
d789184e 6095
d789184e
SP
6096
6097
33ad93b9
RG
6098 if test "${gcc_cv_isl}" = no ; then
6099 isllibs=
6100 islinc=
6101 fi
6102
6103 if test "${graphite_requested}" = yes \
6104 && test "x${isllibs}" = x \
6105 && test "x${islinc}" = x ; then
f8bf9252 6106
e357a5e0 6107 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6108 fi
f8bf9252 6109
d32ef397 6110
d32ef397
AS
6111fi
6112
e357a5e0 6113# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6114if test "x$with_isl" = xno ||
625afa23 6115 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6116 noconfigdirs="$noconfigdirs isl"
625afa23 6117 islinc=
32d024bf
RG
6118fi
6119
625afa23
RG
6120
6121
6122
d7f09764
DN
6123# Check for LTO support.
6124# Check whether --enable-lto was given.
6125if test "${enable_lto+set}" = set; then :
6126 enableval=$enable_lto; enable_lto=$enableval
6127else
6128 enable_lto=yes; default_enable_lto=yes
6129fi
6130
6131
7413962d 6132
9a02962b
DK
6133
6134
6135target_elf=no
6136case $target in
6137 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6138 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
3e326935 6139 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
8ae12d71 6140 nvptx-*-none)
9a02962b
DK
6141 target_elf=no
6142 ;;
6143 *)
6144 target_elf=yes
6145 ;;
6146esac
6147
6148if test $target_elf = yes; then :
48215350
DK
6149 # ELF platforms build the lto-plugin always.
6150 build_lto_plugin=yes
9a02962b 6151
9a02962b
DK
6152else
6153 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6154 case $target in
9e530bcd 6155 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6156 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6157 *) enable_lto=no ;;
6158 esac
9a02962b 6159 else
db50fe7d
IS
6160 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6161 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6162 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6163 # warn during gcc/ subconfigure; unless you're bootstrapping with
6164 # -flto it won't be needed until after installation anyway.
6165 case $target in
9e530bcd 6166 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b
DK
6167 *) if test x"$enable_lto" = x"yes"; then
6168 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6169 fi
6170 ;;
6171 esac
6172 fi
1cd0b716 6173 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6174 # Build it unless LTO was explicitly disabled.
1cd0b716 6175 case $target in
48215350 6176 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6177 *) ;;
6178 esac
48215350 6179
9a02962b
DK
6180fi
6181
d7f09764 6182
45b3824d
TS
6183# Check whether --enable-linker-plugin-configure-flags was given.
6184if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6185 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6186else
6187 extra_linker_plugin_configure_flags=
6188fi
6189
6190
6191# Check whether --enable-linker-plugin-flags was given.
6192if test "${enable_linker_plugin_flags+set}" = set; then :
6193 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6194else
6195 extra_linker_plugin_flags=
6196fi
6197
6198
6199
f8bf9252 6200
0823efed 6201# By default, C and C++ are the only stage 1 languages.
e1888513 6202stage1_languages=,c,
2805b53a 6203
00020c16 6204# Target libraries that we bootstrap.
ad1e5170 6205bootstrap_target_libs=,target-libgcc,
00020c16 6206
55ffb5ed
NN
6207# Figure out what language subdirectories are present.
6208# Look if the user specified --enable-languages="..."; if not, use
6209# the environment variable $LANGUAGES if defined. $LANGUAGES might
6210# go away some day.
6211# NB: embedded tabs in this IF block -- do not untabify
6212if test -d ${srcdir}/gcc; then
6213 if test x"${enable_languages+set}" != xset; then
6214 if test x"${LANGUAGES+set}" = xset; then
6215 enable_languages="${LANGUAGES}"
6b1786aa 6216 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed
NN
6217 else
6218 enable_languages=all
6219 fi
6220 else
6221 if test x"${enable_languages}" = x ||
6222 test x"${enable_languages}" = xyes;
6223 then
6b1786aa 6224 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6225 exit 1
6226 fi
6227 fi
6228 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6229
7f26dfa3
FXC
6230 # 'f95' is the old name for the 'fortran' language. We issue a warning
6231 # and make the substitution.
6232 case ,${enable_languages}, in
6233 *,f95,*)
6b1786aa 6234 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6235 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6236 ;;
6237 esac
6238
0823efed
DN
6239 # If bootstrapping, C++ must be enabled.
6240 case ",$enable_languages,:$enable_bootstrap" in
6241 *,c++,*:*) ;;
6242 *:yes)
ff3ac0f4
ILT
6243 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6244 enable_languages="${enable_languages},c++"
6245 else
0823efed 6246 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6247 fi
6248 ;;
6249 esac
6250
55ffb5ed
NN
6251 # First scan to see if an enabled language requires some other language.
6252 # We assume that a given config-lang.in will list all the language
6253 # front ends it requires, even if some are required indirectly.
6254 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6255 case ${lang_frag} in
6256 ..) ;;
6257 # The odd quoting in the next line works around
6258 # an apparent bug in bash 1.12 on linux.
6259 ${srcdir}/gcc/[*]/config-lang.in) ;;
6260 *)
69ecd18f
ILT
6261 # From the config-lang.in, get $language, $lang_requires, and
6262 # $lang_requires_boot_languages.
55ffb5ed
NN
6263 language=
6264 lang_requires=
69ecd18f 6265 lang_requires_boot_languages=
55ffb5ed 6266 . ${lang_frag}
69ecd18f 6267 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6268 case ,${enable_languages}, in
6269 *,$other,*) ;;
6270 *,all,*) ;;
6271 *,$language,*)
6272 echo " \`$other' language required by \`$language'; enabling" 1>&2
6273 enable_languages="${enable_languages},${other}"
6274 ;;
6275 esac
6276 done
69ecd18f
ILT
6277 for other in ${lang_requires_boot_languages} ; do
6278 if test "$other" != "c"; then
6279 case ,${enable_stage1_languages}, in
6280 *,$other,*) ;;
6281 *,all,*) ;;
6282 *)
6283 case ,${enable_languages}, in
6284 *,$language,*)
6285 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6286 enable_stage1_languages="$enable_stage1_languages,${other}"
6287 ;;
6288 esac
6289 ;;
6290 esac
6291 fi
6292 done
55ffb5ed
NN
6293 ;;
6294 esac
6295 done
6296
e1888513 6297 new_enable_languages=,c,
d7f09764
DN
6298
6299 # If LTO is enabled, add the LTO front end.
d7f09764 6300 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6301 case ,${enable_languages}, in
6302 *,lto,*) ;;
6303 *) enable_languages="${enable_languages},lto" ;;
6304 esac
1cd0b716 6305 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6306 configdirs="$configdirs lto-plugin"
d7f09764
DN
6307 fi
6308 fi
6309
426c1eb0
TS
6310 # If we're building an offloading compiler, add the LTO front end.
6311 if test x"$enable_as_accelerator_for" != x ; then
6312 case ,${enable_languages}, in
6313 *,lto,*) ;;
6314 *) enable_languages="${enable_languages},lto" ;;
6315 esac
6316 fi
6317
55ffb5ed 6318 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6319 potential_languages=,c,
55ffb5ed 6320
4da3b0f8
ILT
6321 enabled_target_libs=
6322 disabled_target_libs=
6323
55ffb5ed
NN
6324 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6325 case ${lang_frag} in
6326 ..) ;;
6327 # The odd quoting in the next line works around
6328 # an apparent bug in bash 1.12 on linux.
6329 ${srcdir}/gcc/[*]/config-lang.in) ;;
6330 *)
1c710c3c 6331 # From the config-lang.in, get $language, $target_libs,
2805b53a 6332 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6333 language=
6334 target_libs=
6335 lang_dirs=
1546bb64 6336 subdir_requires=
e1888513
PB
6337 boot_language=no
6338 build_by_default=yes
55ffb5ed 6339 . ${lang_frag}
e1888513
PB
6340 if test x${language} = x; then
6341 echo "${lang_frag} doesn't set \$language." 1>&2
6342 exit 1
6343 fi
6344
78767fd9 6345 if test "$language" = "c++"; then
0823efed 6346 boot_language=yes
00020c16
ILT
6347 fi
6348
178f875a 6349 add_this_lang=no
e1888513
PB
6350 case ,${enable_languages}, in
6351 *,${language},*)
d4a10d0a
SB
6352 # Language was explicitly selected; include it
6353 # unless it is C, which is enabled by default.
6354 if test "$language" != "c"; then
6355 add_this_lang=yes
6356 fi
55ffb5ed 6357 ;;
e1888513
PB
6358 *,all,*)
6359 # 'all' was selected, select it if it is a default language
178f875a
JM
6360 if test "$language" != "c"; then
6361 add_this_lang=${build_by_default}
6362 fi
55ffb5ed
NN
6363 ;;
6364 esac
6de9cd9a 6365
1546bb64 6366 # Disable languages that need other directories if these aren't available.
95695ad3 6367 for i in $subdir_requires; do
b6348cb3 6368 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6369 case ,${enable_languages}, in
6370 *,${language},*)
6371 # Specifically requested language; tell them.
5213506e 6372 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6373 ;;
6374 *)
6375 # Silently disable.
e1888513 6376 add_this_lang=unsupported
1546bb64
PB
6377 ;;
6378 esac
6379 done
6380
e1888513
PB
6381 # Disable Ada if no preexisting GNAT is available.
6382 case ,${enable_languages},:${language}:${have_gnat} in
6383 *,${language},*:ada:no)
6384 # Specifically requested language; tell them.
5213506e 6385 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6386 ;;
6387 *:ada:no)
6388 # Silently disable.
6389 add_this_lang=unsupported
6390 ;;
6391 esac
6392
4fab7234
HPN
6393 # Disable a language that is unsupported by the target.
6394 case " $unsupported_languages " in
6395 *" $language "*)
e1888513 6396 add_this_lang=unsupported
4fab7234
HPN
6397 ;;
6398 esac
6399
6de9cd9a 6400 case $add_this_lang in
e1888513 6401 unsupported)
55ffb5ed 6402 # Remove language-dependent dirs.
4da3b0f8
ILT
6403 disabled_target_libs="$disabled_target_libs $target_libs"
6404 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6405 ;;
e1888513
PB
6406 no)
6407 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6408 disabled_target_libs="$disabled_target_libs $target_libs"
6409 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6410 potential_languages="${potential_languages}${language},"
6411 ;;
6412 yes)
6413 new_enable_languages="${new_enable_languages}${language},"
6414 potential_languages="${potential_languages}${language},"
2805b53a 6415 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6416 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6417 case "${boot_language}:,$enable_stage1_languages," in
6418 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6419 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6420 case ",$stage1_languages," in
6421 *,$language,* | ,yes, | ,all,) ;;
6422 *) stage1_languages="${stage1_languages}${language}," ;;
6423 esac
00020c16
ILT
6424 # We need to bootstrap any supporting libraries.
6425 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6426 ;;
6427 esac
6428 ;;
55ffb5ed
NN
6429 esac
6430 ;;
6431 esac
6432 done
6433
4da3b0f8
ILT
6434 # Add target libraries which are only needed for disabled languages
6435 # to noconfigdirs.
6436 if test -n "$disabled_target_libs"; then
6437 for dir in $disabled_target_libs; do
6438 case " $enabled_target_libs " in
6439 *" ${dir} "*) ;;
6440 *) noconfigdirs="$noconfigdirs $dir" ;;
6441 esac
6442 done
6443 fi
6444
5213506e
RW
6445 # Check whether --enable-stage1-languages was given.
6446if test "${enable_stage1_languages+set}" = set; then :
6447 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6448 ,no,|,,)
6449 # Set it to something that will have no effect in the loop below
6450 enable_stage1_languages=c ;;
6451 ,yes,)
6452 enable_stage1_languages=`echo $new_enable_languages | \
6453 sed -e "s/^,//" -e "s/,$//" ` ;;
6454 *,all,*)
6455 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6456 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6457 esac
6458
6459 # Add "good" languages from enable_stage1_languages to stage1_languages,
6460 # while "bad" languages go in missing_languages. Leave no duplicates.
6461 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6462 case $potential_languages in
6463 *,$i,*)
6464 case $stage1_languages in
6465 *,$i,*) ;;
6466 *) stage1_languages="$stage1_languages$i," ;;
6467 esac ;;
6468 *)
6469 case $missing_languages in
6470 *,$i,*) ;;
6471 *) missing_languages="$missing_languages$i," ;;
6472 esac ;;
6473 esac
6474 done
5213506e
RW
6475fi
6476
e1888513
PB
6477
6478 # Remove leading/trailing commas that were added for simplicity
6479 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6480 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6481 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6482 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6483
55ffb5ed 6484 if test "x$missing_languages" != x; then
5213506e 6485 as_fn_error "
0cf085e4 6486The following requested languages could not be built: ${missing_languages}
5213506e 6487Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6488 fi
55ffb5ed
NN
6489 if test "x$new_enable_languages" != "x$enable_languages"; then
6490 echo The following languages will be built: ${new_enable_languages}
e1888513 6491 enable_languages="$new_enable_languages"
55ffb5ed 6492 fi
e1888513 6493
1c710c3c 6494
b2eaac4a 6495 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6496fi
6497
27079765
AH
6498# Handle --disable-<component> generically.
6499for dir in $configdirs $build_configdirs $target_configdirs ; do
6500 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6501 varname=`echo $dirname | sed -e s/+/_/g`
6502 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6503 noconfigdirs="$noconfigdirs $dir"
6504 fi
6505done
6506
7cd0cf9c 6507# Check for Boehm's garbage collector
5213506e
RW
6508# Check whether --enable-objc-gc was given.
6509if test "${enable_objc_gc+set}" = set; then :
6510 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6511 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6512 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6513 ;;
6514esac
5213506e
RW
6515fi
6516
7cd0cf9c
DA
6517
6518# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6519case ,${enable_languages},:${enable_objc_gc} in
6520 *,objc,*:yes)
7cd0cf9c
DA
6521 # Keep target-boehm-gc if requested for Objective-C.
6522 ;;
7cd0cf9c 6523 *)
2a79fd67
DA
6524 # Otherwise remove target-boehm-gc depending on target-libjava.
6525 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6526 noconfigdirs="$noconfigdirs target-boehm-gc"
6527 fi
7cd0cf9c
DA
6528 ;;
6529esac
6530
5f520819 6531# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6532case ,${enable_languages}, in
1007a55c
JW
6533 *,c++,*)
6534 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6535 case "${noconfigdirs}" in
6536 *target-libstdc++-v3*)
6537 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6538 ;;
6539 *) ;;
6540 esac
6541 ;;
99776ebd 6542 *)
5f520819 6543 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6544 ;;
6545esac
6546
ee6a22df
L
6547# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6548# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6549# If we have the source for $noconfigdirs entries, add them to $notsupp.
6550
6551notsupp=""
6552for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6553 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6554 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6555 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6556 if test -r $srcdir/$dirname/configure ; then
6557 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6558 true
6559 else
6560 notsupp="$notsupp $dir"
6561 fi
6562 fi
6563 fi
ee6a22df
L
6564 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6565 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6566 if test -r $srcdir/$dirname/configure ; then
6567 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6568 true
6569 else
6570 notsupp="$notsupp $dir"
6571 fi
6572 fi
6573 fi
55ffb5ed
NN
6574 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6575 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6576 if test -r $srcdir/$dirname/configure ; then
6577 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6578 true
6579 else
6580 notsupp="$notsupp $dir"
6581 fi
6582 fi
6583 fi
6584done
6585
55ffb5ed
NN
6586# Quietly strip out all directories which aren't configurable in this tree.
6587# This relies on all configurable subdirectories being autoconfiscated, which
6588# is now the case.
23f6b2f9
PB
6589build_configdirs_all="$build_configdirs"
6590build_configdirs=
6591for i in ${build_configdirs_all} ; do
1c710c3c 6592 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6593 if test -f ${srcdir}/$j/configure ; then
6594 build_configdirs="${build_configdirs} $i"
6595 fi
6596done
6597
55ffb5ed
NN
6598configdirs_all="$configdirs"
6599configdirs=
6600for i in ${configdirs_all} ; do
6601 if test -f ${srcdir}/$i/configure ; then
6602 configdirs="${configdirs} $i"
6603 fi
6604done
23f6b2f9 6605
55ffb5ed
NN
6606target_configdirs_all="$target_configdirs"
6607target_configdirs=
6608for i in ${target_configdirs_all} ; do
1c710c3c 6609 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6610 if test -f ${srcdir}/$j/configure ; then
6611 target_configdirs="${target_configdirs} $i"
6612 fi
6613done
6614
f1595603
L
6615# Exclude target-zlib if target-libjava isn't built.
6616case ${target_configdirs} in
6617*target-libjava*)
6618 ;;
6619*)
6620 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6621 ;;
6622esac
6623
45b3824d
TS
6624# libiberty-linker-plugin is special: it doesn't have its own source directory,
6625# so we have to add it after the preceding checks.
6626if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6627then
6628 case " $configdirs " in
6629 *" libiberty "*)
6630 # If we can build libiberty, we can also build libiberty-linker-plugin.
6631 configdirs="$configdirs libiberty-linker-plugin"
6632 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6633 --with-libiberty=../libiberty-linker-plugin";;
6634 *)
6635 as_fn_error "libiberty missing" "$LINENO" 5;;
6636 esac
6637fi
6638
fca38047
TS
6639# Sometimes we have special requirements for the host libiberty.
6640extra_host_libiberty_configure_flags=
1c01ebf6 6641extra_host_zlib_configure_flags=
fca38047
TS
6642case " $configdirs " in
6643 *" lto-plugin "* | *" libcc1 "*)
6644 # When these are to be built as shared libraries, the same applies to
6645 # libiberty.
6646 extra_host_libiberty_configure_flags=--enable-shared
6647 ;;
1c01ebf6
L
6648 *" bfd "*)
6649 # When bfd is to be built as a shared library, the same applies to
6650 # zlib.
6651 if test "$enable_shared" = "yes"; then
6652 extra_host_zlib_configure_flags=--enable-host-shared
6653 fi
6654 ;;
fca38047
TS
6655esac
6656
6657
1c01ebf6 6658
55ffb5ed
NN
6659# Produce a warning message for the subdirs we can't configure.
6660# This isn't especially interesting in the Cygnus tree, but in the individual
6661# FSF releases, it's important to let people know when their machine isn't
6662# supported by the one or two programs in a package.
6663
6664if test -n "${notsupp}" && test -z "${norecursion}" ; then
6665 # If $appdirs is non-empty, at least one of those directories must still
6666 # be configured, or we error out. (E.g., if the gas release supports a
6667 # specified target in some subdirs but not the gas subdir, we shouldn't
6668 # pretend that all is well.)
6669 if test -n "$appdirs" ; then
6670 for dir in $appdirs ; do
6671 if test -r $dir/Makefile.in ; then
6672 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6673 appdirs=""
6674 break
6675 fi
23f6b2f9 6676 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6677 appdirs=""
6678 break
6679 fi
6680 fi
6681 done
6682 if test -n "$appdirs" ; then
6683 echo "*** This configuration is not supported by this package." 1>&2
6684 exit 1
6685 fi
6686 fi
6687 # Okay, some application will build, or we don't care to check. Still
6688 # notify of subdirs not getting built.
6689 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6690 echo " ${notsupp}" 1>&2
6691 echo " (Any other directories should still work fine.)" 1>&2
6692fi
6693
6694case "$host" in
6695 *msdosdjgpp*)
6696 enable_gdbtk=no ;;
6697esac
6698
c3a86da9
DJ
6699# To find our prefix, in gcc_cv_tool_prefix.
6700
6701# The user is always right.
6702if test "${PATH_SEPARATOR+set}" != set; then
6703 echo "#! /bin/sh" >conf$$.sh
6704 echo "exit 0" >>conf$$.sh
6705 chmod +x conf$$.sh
6706 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6707 PATH_SEPARATOR=';'
6708 else
6709 PATH_SEPARATOR=:
6710 fi
6711 rm -f conf$$.sh
6712fi
6713
6714
6715
6716if test "x$exec_prefix" = xNONE; then
6717 if test "x$prefix" = xNONE; then
6718 gcc_cv_tool_prefix=$ac_default_prefix
6719 else
6720 gcc_cv_tool_prefix=$prefix
6721 fi
6722else
6723 gcc_cv_tool_prefix=$exec_prefix
6724fi
6725
6726# If there is no compiler in the tree, use the PATH only. In any
6727# case, if there is no compiler in the tree nobody should use
6728# AS_FOR_TARGET and LD_FOR_TARGET.
6729if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6730 gcc_version=`cat $srcdir/gcc/BASE-VER`
6731 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6732 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6733 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6734 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6735 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6736 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6737else
6738 gcc_cv_tool_dirs=
6739fi
6740
6741if test x$build = x$target && test -n "$md_exec_prefix"; then
6742 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6743fi
6744
6745
6746
55ffb5ed
NN
6747copy_dirs=
6748
1c710c3c 6749
5213506e
RW
6750# Check whether --with-build-sysroot was given.
6751if test "${with_build_sysroot+set}" = set; then :
6752 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6753 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6754 fi
6755else
6756 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6757fi
526635cb
MM
6758
6759
c8aea42c 6760
5213506e
RW
6761
6762# Check whether --with-debug-prefix-map was given.
6763if test "${with_debug_prefix_map+set}" = set; then :
6764 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6765 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6766 for debug_map in $withval; do
6767 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6768 done
6769 fi
6770else
6771 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6772fi
6773
c8aea42c
PB
6774
6775
1c8bd6a3
PB
6776# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6777# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6778# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6779# We want to ensure that TARGET libraries (which we know are built with
6780# gcc) are built with "-O2 -g", so include those options when setting
6781# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6782if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6783 if test "x${is_cross_compiler}" = xyes; then
6784 CFLAGS_FOR_TARGET="-g -O2"
6785 else
6786 CFLAGS_FOR_TARGET=$CFLAGS
6787 case " $CFLAGS " in
6788 *" -O2 "*) ;;
6789 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6790 esac
6791 case " $CFLAGS " in
6792 *" -g "* | *" -g3 "*) ;;
6793 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6794 esac
6795 fi
1c8bd6a3
PB
6796fi
6797
6798
6799if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6800 if test "x${is_cross_compiler}" = xyes; then
6801 CXXFLAGS_FOR_TARGET="-g -O2"
6802 else
6803 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6804 case " $CXXFLAGS " in
6805 *" -O2 "*) ;;
6806 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6807 esac
6808 case " $CXXFLAGS " in
6809 *" -g "* | *" -g3 "*) ;;
6810 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6811 esac
6812 fi
1c8bd6a3
PB
6813fi
6814
6815
6f57bdf6
DK
6816
6817
55ffb5ed
NN
6818# Handle --with-headers=XXX. If the value is not "yes", the contents of
6819# the named directory are copied to $(tooldir)/sys-include.
6820if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6821 if test x${is_cross_compiler} = xno ; then
6822 echo 1>&2 '***' --with-headers is only supported when cross compiling
6823 exit 1
6824 fi
6825 if test x"${with_headers}" != xyes ; then
c3a86da9 6826 x=${gcc_cv_tool_prefix}
1c710c3c 6827 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6828 fi
6829fi
6830
6831# Handle --with-libs=XXX. If the value is not "yes", the contents of
6832# the name directories are copied to $(tooldir)/lib. Multiple directories
6833# are permitted.
6834if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6835 if test x${is_cross_compiler} = xno ; then
6836 echo 1>&2 '***' --with-libs is only supported when cross compiling
6837 exit 1
6838 fi
6839 if test x"${with_libs}" != xyes ; then
6840 # Copy the libraries in reverse order, so that files in the first named
6841 # library override files in subsequent libraries.
c3a86da9 6842 x=${gcc_cv_tool_prefix}
55ffb5ed 6843 for l in ${with_libs}; do
1c710c3c 6844 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6845 done
6846 fi
6847fi
6848
d7f09764 6849# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6850#
6851# This is done by determining whether or not the appropriate directory
6852# is available, and by checking whether or not specific configurations
6853# have requested that this magic not happen.
1c710c3c
DJ
6854#
6855# The command line options always override the explicit settings in
6b1786aa 6856# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6857#
1c710c3c 6858# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6859# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6860# --without-gnu-ld options for the configure script. Similarly, if
6861# the default is to use the included zlib and you don't want to do that,
6862# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6863
6864if test x${use_gnu_as} = x &&
6865 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6866 with_gnu_as=yes
6867 extra_host_args="$extra_host_args --with-gnu-as"
6868fi
6869
6870if test x${use_gnu_ld} = x &&
5afab7ad 6871 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6872 with_gnu_ld=yes
6873 extra_host_args="$extra_host_args --with-gnu-ld"
6874fi
6875
d7f09764
DN
6876if test x${use_included_zlib} = x &&
6877 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6878 :
6879else
6880 with_system_zlib=yes
6881 extra_host_args="$extra_host_args --with-system-zlib"
6882fi
6883
e8b05380
PB
6884# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6885# can detect this case.
6886
6887if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6888 with_newlib=yes
6889 extra_host_args="$extra_host_args --with-newlib"
6890fi
6891
55ffb5ed
NN
6892# Handle ${copy_dirs}
6893set fnord ${copy_dirs}
6894shift
6895while test $# != 0 ; do
6896 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6897 :
6898 else
6899 echo Copying $1 to $2
6900
6901 # Use the install script to create the directory and all required
6902 # parent directories.
6903 if test -d $2 ; then
6904 :
6905 else
6906 echo >config.temp
6907 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6908 fi
6909
6910 # Copy the directory, assuming we have tar.
6911 # FIXME: Should we use B in the second tar? Not all systems support it.
6912 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6913
6914 # It is the responsibility of the user to correctly adjust all
6915 # symlinks. If somebody can figure out how to handle them correctly
6916 # here, feel free to add the code.
6917
6918 echo $1 > $2/COPIED
6919 fi
6920 shift; shift
6921done
6922
e8b05380
PB
6923# Determine a target-dependent exec_prefix that the installed
6924# gcc will search in. Keep this list sorted by triplet, with
6925# the *-*-osname triplets last.
6926md_exec_prefix=
6927case "${target}" in
30b74385 6928 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6929 md_exec_prefix=/dev/env/DJDIR/bin
6930 ;;
e8b05380 6931 *-*-hpux* | \
e8b05380 6932 *-*-nto-qnx* | \
6de66370 6933 *-*-solaris2*)
e8b05380
PB
6934 md_exec_prefix=/usr/ccs/bin
6935 ;;
6936esac
6937
671aa708
NN
6938extra_arflags_for_target=
6939extra_nmflags_for_target=
6940extra_ranlibflags_for_target=
6941target_makefile_frag=/dev/null
6942case "${target}" in
58e24147
AM
6943 spu-*-*)
6944 target_makefile_frag="config/mt-spu"
6945 ;;
d896cc4d 6946 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6947 target_makefile_frag="config/mt-sde"
6948 ;;
1ec3b87b
RS
6949 mipsisa*-*-elfoabi*)
6950 target_makefile_frag="config/mt-mips-elfoabi"
6951 ;;
08d0963a
RS
6952 mips*-*-*linux* | mips*-*-gnu*)
6953 target_makefile_frag="config/mt-mips-gnu"
6954 ;;
707f1839
SL
6955 nios2-*-elf*)
6956 target_makefile_frag="config/mt-nios2-elf"
6957 ;;
416ac4d4 6958 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6959 target_makefile_frag="config/mt-gnu"
671aa708
NN
6960 ;;
6961 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6962 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6963 # commands to handle both 32-bit and 64-bit objects. These flags are
6964 # harmless if we're using GNU nm or ar.
6965 extra_arflags_for_target=" -X32_64"
6966 extra_nmflags_for_target=" -B -X32_64"
6967 ;;
671aa708
NN
6968esac
6969
6970alphaieee_frag=/dev/null
6971case $target in
6972 alpha*-*-*)
6973 # This just makes sure to use the -mieee option to build target libs.
6974 # This should probably be set individually by each library.
6975 alphaieee_frag="config/mt-alphaieee"
6976 ;;
6977esac
6978
6979# If --enable-target-optspace always use -Os instead of -O2 to build
6980# the target libraries, similarly if it is not specified, use -Os
6981# on selected platforms.
6982ospace_frag=/dev/null
6983case "${enable_target_optspace}:${target}" in
6984 yes:*)
6985 ospace_frag="config/mt-ospace"
6986 ;;
6987 :d30v-*)
6988 ospace_frag="config/mt-d30v"
6989 ;;
d9063947 6990 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
6991 ospace_frag="config/mt-ospace"
6992 ;;
6993 no:* | :*)
6994 ;;
6995 *)
6996 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6997 ;;
6998esac
6999
671aa708
NN
7000# Some systems (e.g., one of the i386-aix systems the gas testers are
7001# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7002tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7003build_tooldir=${tooldir}
7004
671aa708
NN
7005# Create a .gdbinit file which runs the one in srcdir
7006# and tells GDB to look there for source files.
7007
7008if test -r ${srcdir}/.gdbinit ; then
7009 case ${srcdir} in
7010 .) ;;
7011 *) cat > ./.gdbinit <<EOF
7012# ${NO_EDIT}
7013dir ${srcdir}
7014dir .
7015source ${srcdir}/.gdbinit
7016EOF
7017 ;;
7018 esac
7019fi
7020
671aa708
NN
7021# Make sure that the compiler is able to generate an executable. If it
7022# can't, we are probably in trouble. We don't care whether we can run the
7023# executable--we might be using a cross compiler--we only care whether it
7024# can be created. At this point the main configure script has set CC.
7025we_are_ok=no
7026echo "int main () { return 0; }" > conftest.c
7027${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7028if test $? = 0 ; then
7029 if test -s conftest || test -s conftest.exe ; then
7030 we_are_ok=yes
7031 fi
1c710c3c 7032fi
671aa708
NN
7033case $we_are_ok in
7034 no)
7035 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7036 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7037 rm -f conftest*
7038 exit 1
7039 ;;
7040esac
7041rm -f conftest*
7042
d89f0ad6 7043# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7044case "${host}" in
7045 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7046 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7047 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7048 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7049esac
7050
d89f0ad6
AL
7051# On systems where the dynamic library environment variable is PATH,
7052# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7053# built executables to PATH.
7054if test "$RPATH_ENVVAR" = PATH; then
7055 GCC_SHLIB_SUBDIR=/shlib
7056else
7057 GCC_SHLIB_SUBDIR=
7058fi
7059
beeda1d9
JJ
7060# Adjust the toplevel makefile according to whether bootstrap was selected.
7061case $enable_bootstrap in
7062 yes)
7063 bootstrap_suffix=bootstrap
7064 BUILD_CONFIG=bootstrap-debug
7065 ;;
7066 no)
7067 bootstrap_suffix=no-bootstrap
7068 BUILD_CONFIG=
7069 ;;
7070esac
7071
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7073$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7074
7075
7076# Check whether --with-build-config was given.
7077if test "${with_build_config+set}" = set; then :
7078 withval=$with_build_config; case $with_build_config in
7079 yes) with_build_config= ;;
7080 no) with_build_config= BUILD_CONFIG= ;;
7081 esac
7082fi
7083
7084
7085if test "x${with_build_config}" != x; then
7086 BUILD_CONFIG=$with_build_config
7087else
7088 case $BUILD_CONFIG in
7089 bootstrap-debug)
7090 if echo "int f (void) { return 0; }" > conftest.c &&
7091 ${CC} -c conftest.c &&
7092 mv conftest.o conftest.o.g0 &&
7093 ${CC} -c -g conftest.c &&
7094 mv conftest.o conftest.o.g &&
7095 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7096 :
7097 else
7098 BUILD_CONFIG=
7099 fi
7100 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7101 ;;
7102 esac
7103fi
7104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7105$as_echo "$BUILD_CONFIG" >&6; }
7106
7107
7108# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7110$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7111# Check whether --enable-vtable-verify was given.
7112if test "${enable_vtable_verify+set}" = set; then :
7113 enableval=$enable_vtable_verify; case "$enableval" in
7114 yes) enable_vtable_verify=yes ;;
7115 no) enable_vtable_verify=no ;;
7116 *) enable_vtable_verify=no;;
7117 esac
7118else
7119 enable_vtable_verify=no
7120fi
7121
7122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7123$as_echo "$enable_vtable_verify" >&6; }
7124
671aa708
NN
7125# Record target_configdirs and the configure arguments for target and
7126# build configuration in Makefile.
7127target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7128build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7129bootstrap_fixincludes=no
671aa708 7130
ad1e5170
JR
7131# If we are building libgomp, bootstrap it.
7132if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7133 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7134fi
7135
beeda1d9
JJ
7136# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7137# or bootstrap-ubsan, bootstrap it.
7138if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7139 case "$BUILD_CONFIG" in
7140 *bootstrap-asan* | *bootstrap-ubsan* )
7141 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7142 bootstrap_fixincludes=yes
beeda1d9
JJ
7143 ;;
7144 esac
ac8701fe
L
7145fi
7146
beeda1d9
JJ
7147# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7148if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7149 test "$enable_vtable_verify" != no; then
2077db1b
CT
7150 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7151fi
7152
5373cd33
IE
7153# If we are building libmpx, bootstrap it.
7154if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7155 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7156fi
7157
671aa708
NN
7158# Determine whether gdb needs tk/tcl or not.
7159# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7160# and in that case we want gdb to be built without tk. Ugh!
7161# In fact I believe gdb is the *only* package directly dependent on tk,
7162# so we should be able to put the 'maybe's in unconditionally and
7163# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7164# 100% sure that that's safe though.
e914a571 7165
b4f96efe 7166gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7167case "$enable_gdbtk" in
7168 no)
7169 GDB_TK="" ;;
e914a571
AC
7170 yes)
7171 GDB_TK="${gdb_tk}" ;;
671aa708 7172 *)
e914a571
AC
7173 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7174 # distro. Eventually someone will fix this and move Insight, nee
7175 # gdbtk to a separate directory.
7176 if test -d ${srcdir}/gdb/gdbtk ; then
7177 GDB_TK="${gdb_tk}"
7178 else
7179 GDB_TK=""
7180 fi
7181 ;;
671aa708 7182esac
ef9db8d5
DJ
7183CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7184INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7185
60975492 7186# Strip out unwanted targets.
8b87bb96
NN
7187
7188# While at that, we remove Makefiles if we were started for recursive
7189# configuration, so that the top-level Makefile reconfigures them,
7190# like we used to do when configure itself was recursive.
8b87bb96 7191
3e54529c
RW
7192# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7193# but now we're fixing up the Makefile ourselves with the additional
7194# commands passed to AC_CONFIG_FILES. Use separate variables
7195# extrasub-{build,host,target} not because there is any reason to split
7196# the substitutions up that way, but only to remain below the limit of
7197# 99 commands in a script, for HP-UX sed.
7198# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7199
79cd2b23
RW
7200case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7201 yes:yes:*\ gold\ *:*,c++,*) ;;
7202 yes:yes:*\ gold\ *:*)
7203 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7204 ;;
7205esac
7206
3e54529c 7207extrasub_build=
23f6b2f9 7208for module in ${build_configdirs} ; do
5607edfd
PB
7209 if test -z "${no_recursion}" \
7210 && test -f ${build_subdir}/${module}/Makefile; then
7211 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7212 rm -f ${build_subdir}/${module}/Makefile
7213 fi
3e54529c 7214 extrasub_build="$extrasub_build
5607edfd
PB
7215/^@if build-$module\$/d
7216/^@endif build-$module\$/d
7217/^@if build-$module-$bootstrap_suffix\$/d
7218/^@endif build-$module-$bootstrap_suffix\$/d"
7219done
3e54529c 7220extrasub_host=
5607edfd 7221for module in ${configdirs} ; do
a6fbc1e2 7222 if test -z "${no_recursion}"; then
f063a9ed 7223 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7224 if test -f ${file}; then
7225 echo 1>&2 "*** removing ${file} to force reconfigure"
7226 rm -f ${file}
7227 fi
7228 done
5607edfd 7229 fi
9e1c8fc1
JJ
7230 case ${module},${bootstrap_fixincludes} in
7231 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7232 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7233 esac
3e54529c 7234 extrasub_host="$extrasub_host
5607edfd
PB
7235/^@if $module\$/d
7236/^@endif $module\$/d
9e1c8fc1
JJ
7237/^@if $module-$host_bootstrap_suffix\$/d
7238/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7239done
3e54529c 7240extrasub_target=
5607edfd
PB
7241for module in ${target_configdirs} ; do
7242 if test -z "${no_recursion}" \
7243 && test -f ${target_subdir}/${module}/Makefile; then
7244 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7245 rm -f ${target_subdir}/${module}/Makefile
7246 fi
00020c16
ILT
7247
7248 # We only bootstrap target libraries listed in bootstrap_target_libs.
7249 case $bootstrap_target_libs in
7250 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7251 *) target_bootstrap_suffix=no-bootstrap ;;
7252 esac
7253
3e54529c 7254 extrasub_target="$extrasub_target
5607edfd
PB
7255/^@if target-$module\$/d
7256/^@endif target-$module\$/d
00020c16
ILT
7257/^@if target-$module-$target_bootstrap_suffix\$/d
7258/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7259done
7260
3e54529c
RW
7261# Do the final fixup along with target modules.
7262extrasub_target="$extrasub_target
60975492 7263/^@if /,/^@endif /d"
671aa708
NN
7264
7265# Create the serialization dependencies. This uses a temporary file.
7266
5213506e
RW
7267# Check whether --enable-serial-configure was given.
7268if test "${enable_serial_configure+set}" = set; then :
7269 enableval=$enable_serial_configure;
7270fi
ade82b16
AO
7271
7272
bf1d3e81
NN
7273case ${enable_serial_configure} in
7274 yes)
7275 enable_serial_build_configure=yes
7276 enable_serial_host_configure=yes
7277 enable_serial_target_configure=yes
7278 ;;
7279esac
7280
671aa708
NN
7281# These force 'configure's to be done one at a time, to avoid problems
7282# with contention over a shared config.cache.
7283rm -f serdep.tmp
ade82b16 7284echo '# serdep.tmp' > serdep.tmp
671aa708 7285olditem=
bf1d3e81 7286test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7287for item in ${build_configdirs} ; do
7288 case ${olditem} in
7289 "") ;;
ade82b16 7290 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7291 esac
7292 olditem=${item}
7293done
7294olditem=
bf1d3e81 7295test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7296for item in ${configdirs} ; do
7297 case ${olditem} in
7298 "") ;;
ade82b16 7299 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7300 esac
7301 olditem=${item}
7302done
7303olditem=
bf1d3e81 7304test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7305for item in ${target_configdirs} ; do
7306 case ${olditem} in
7307 "") ;;
ade82b16 7308 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7309 esac
7310 olditem=${item}
7311done
7312serialization_dependencies=serdep.tmp
7313
7314
ade82b16 7315# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7316# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7317# might not want to pass down to subconfigures. The exception being
7318# --cache-file=/dev/null, which is used to turn off the use of cache
7319# files altogether, and which should be passed on to subconfigures.
7320# Also strip program-prefix, program-suffix, and program-transform-name,
7321# so that we can pass down a consistent program-transform-name.
1c710c3c 7322baseargs=
29a63921 7323tbaseargs=
1c710c3c
DJ
7324keep_next=no
7325skip_next=no
7326eval "set -- $ac_configure_args"
44bfc3ac
DJ
7327for ac_arg
7328do
1c710c3c
DJ
7329 if test X"$skip_next" = X"yes"; then
7330 skip_next=no
7331 continue
7332 fi
7333 if test X"$keep_next" = X"yes"; then
7334 case $ac_arg in
7335 *\'*)
7336 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7337 esac
7338 baseargs="$baseargs '$ac_arg'"
29a63921 7339 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7340 keep_next=no
7341 continue
7342 fi
7343
7344 # Handle separated arguments. Based on the logic generated by
7345 # autoconf 2.59.
7346 case $ac_arg in
7347 *=* | --config-cache | -C | -disable-* | --disable-* \
7348 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7349 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7350 | -with-* | --with-* | -without-* | --without-* | --x)
7351 separate_arg=no
7352 ;;
7353 -*)
7354 separate_arg=yes
7355 ;;
7356 *)
7357 separate_arg=no
7358 ;;
7359 esac
7360
29a63921
AO
7361 skip_targ=no
7362 case $ac_arg in
7363
7364 --with-* | --without-*)
7365 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7366
7367 case $libopt in
7368 *[-_]include)
7369 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7370 ;;
7371 *[-_]lib)
7372 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7373 ;;
7374 *)
7375 lib=$libopt
7376 ;;
7377 esac
7378
7379
7380 case $lib in
4a9bb2aa 7381 mpc | mpfr | gmp | isl)
29a63921
AO
7382 # If we're processing --with-$lib, --with-$lib-include or
7383 # --with-$lib-lib, for one of the libs above, and target is
7384 # different from host, don't pass the current argument to any
7385 # target library's configure.
7386 if test x$is_cross_compiler = xyes; then
7387 skip_targ=yes
7388 fi
7389 ;;
7390 esac
7391 ;;
7392 esac
7393
1c710c3c 7394 case "$ac_arg" in
f1a036e4
NC
7395 --cache-file=/dev/null | \
7396 -cache-file=/dev/null )
7397 # Handled here to avoid the test to skip args below.
7398 baseargs="$baseargs '$ac_arg'"
29a63921 7399 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7400 # Assert: $separate_arg should always be no.
7401 keep_next=$separate_arg
7402 ;;
1c710c3c
DJ
7403 --no*)
7404 continue
7405 ;;
7406 --c* | \
7407 --sr* | \
7408 --ho* | \
7409 --bu* | \
7410 --t* | \
7411 --program-* | \
7412 -cache_file* | \
7413 -srcdir* | \
7414 -host* | \
7415 -build* | \
7416 -target* | \
7417 -program-prefix* | \
7418 -program-suffix* | \
7419 -program-transform-name* )
7420 skip_next=$separate_arg
7421 continue
7422 ;;
7423 -*)
7424 # An option. Add it.
7425 case $ac_arg in
7426 *\'*)
7427 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7428 esac
7429 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7430 if test X"$skip_targ" = Xno; then
7431 tbaseargs="$tbaseargs '$ac_arg'"
7432 fi
1c710c3c
DJ
7433 keep_next=$separate_arg
7434 ;;
7435 *)
7436 # Either a variable assignment, or a nonopt (triplet). Don't
7437 # pass it down; let the Makefile handle this.
7438 continue
7439 ;;
7440 esac
7441done
7442# Remove the initial space we just introduced and, as these will be
7443# expanded by make, quote '$'.
7444baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7445
43bb47c2
DJ
7446# Add in --program-transform-name, after --program-prefix and
7447# --program-suffix have been applied to it. Autoconf has already
7448# doubled dollar signs and backslashes in program_transform_name; we want
7449# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7450# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7451# Also, because we want to override the logic in subdir configure scripts to
7452# choose program_transform_name, replace any s,x,x, with s,y,y,.
7453sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7454${program_transform_name}
7455EOF_SED
7456gcc_transform_name=`cat conftestsed.out`
7457rm -f conftestsed.out
7458baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7459tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7460if test "$silent" = yes; then
7461 baseargs="$baseargs --silent"
29a63921 7462 tbaseargs="$tbaseargs --silent"
d9acb717 7463fi
0115d4a3 7464baseargs="$baseargs --disable-option-checking"
29a63921 7465tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7466
ffedf511
RW
7467# Record and document user additions to sub configure arguments.
7468
7469
7470
7471
671aa708
NN
7472# For the build-side libraries, we just need to pretend we're native,
7473# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7474# desired. We can't even use the same cache file for all build-side
7475# libraries, as they're compiled differently; some with C, some with
7476# C++ or with different feature-enabling options.
7477build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7478
7479# For host modules, accept cache file option, or specification as blank.
7480case "${cache_file}" in
7481"") # empty
7482 cache_file_option="" ;;
7483/* | [A-Za-z]:[\\/]* ) # absolute path
7484 cache_file_option="--cache-file=${cache_file}" ;;
7485*) # relative path
7486 cache_file_option="--cache-file=../${cache_file}" ;;
7487esac
7488
09438bde
NN
7489# Host dirs don't like to share a cache file either, horribly enough.
7490# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7491host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7492
29a63921 7493target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7494
7495# Passing a --with-cross-host argument lets the target libraries know
7496# whether they are being built with a cross-compiler or being built
7497# native. However, it would be better to use other mechanisms to make the
7498# sorts of decisions they want to make on this basis. Please consider
7499# this option to be deprecated. FIXME.
7500if test x${is_cross_compiler} = xyes ; then
1c710c3c 7501 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7502fi
7503
79e0604d
FXC
7504# Special user-friendly check for native x86_64-linux build, if
7505# multilib is not explicitly enabled.
7506case "$target:$have_compiler:$host:$target:$enable_multilib" in
7507 x86_64-*linux*:yes:$build:$build:)
e640447c 7508 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7509 dev64=no
7510 echo "int main () { return 0; }" > conftest.c
7511 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7512 if test $? = 0 ; then
7513 if test -s conftest || test -s conftest.exe ; then
7514 dev64=yes
7515 fi
7516 fi
7517 rm -f conftest*
7518 if test x${dev64} != xyes ; then
e640447c 7519 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
7520 fi
7521 ;;
7522esac
7523
dc683a3f
RW
7524# Default to --enable-multilib.
7525if test x${enable_multilib} = x ; then
671aa708 7526 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7527fi
671aa708
NN
7528
7529# Pass --with-newlib if appropriate. Note that target_configdirs has
7530# changed from the earlier setting of with_newlib.
7531if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7532 target_configargs="--with-newlib ${target_configargs}"
7533fi
7534
6b9eb62c
NN
7535# Different target subdirs use different values of certain variables
7536# (notably CXX). Worse, multilibs use *lots* of different values.
7537# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7538# it doesn't automatically accept command-line overrides of them.
7539# This means it's not safe for target subdirs to share a cache file,
7540# which is disgusting, but there you have it. Hopefully this can be
7541# fixed in future. It's still worthwhile to use a cache file for each
7542# directory. I think.
7543
bebcd931
MS
7544# Pass the appropriate --build, --host, --target and --cache-file arguments.
7545# We need to pass --target, as newer autoconf's requires consistency
7546# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7547target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7548
671aa708
NN
7549FLAGS_FOR_TARGET=
7550case " $target_configdirs " in
7551 *" newlib "*)
7552 case " $target_configargs " in
7553 *" --with-newlib "*)
7554 case "$target" in
5d571eaa 7555 *-cygwin*)
443e6238 7556 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7557 ;;
671aa708
NN
7558 esac
7559
7560 # If we're not building GCC, don't discard standard headers.
7561 if test -d ${srcdir}/gcc; then
7562 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7563
7564 if test "${build}" != "${host}"; then
7565 # On Canadian crosses, CC_FOR_TARGET will have already been set
7566 # by `configure', so we won't have an opportunity to add -Bgcc/
7567 # to it. This is right: we don't want to search that directory
7568 # for binaries, but we want the header files in there, so add
7569 # them explicitly.
0463992b 7570 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7571
7572 # Someone might think of using the pre-installed headers on
7573 # Canadian crosses, in case the installed compiler is not fully
7574 # compatible with the compiler being built. In this case, it
7575 # would be better to flag an error than risking having
7576 # incompatible object files being constructed. We can't
7577 # guarantee that an error will be flagged, but let's hope the
7578 # compiler will do it, when presented with incompatible header
7579 # files.
7580 fi
7581 fi
7582
7583 case "${target}-${is_cross_compiler}" in
f2a0e225 7584 i[3456789]86-*-linux*-no)
671aa708
NN
7585 # Here host == target, so we don't need to build gcc,
7586 # so we don't want to discard standard headers.
7587 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7588 ;;
7589 *)
7590 # If we're building newlib, use its generic headers last, but search
7591 # for any libc-related directories first (so make it the last -B
7592 # switch).
7593 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
7594
7595 # If we're building libgloss, find the startup file, simulator library
7596 # and linker script.
7597 case " $target_configdirs " in
7598 *" libgloss "*)
7599 # Look for startup file, simulator library and maybe linker script.
7600 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7601 # Look for libnosys.a in case the target needs it.
7602 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7603 # Most targets have the linker script in the source directory.
7604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7605 ;;
7606 esac
671aa708
NN
7607 ;;
7608 esac
7609 ;;
7610 esac
7611 ;;
7612esac
5d571eaa 7613
b91f0a41 7614case "$target" in
5d571eaa
OS
7615 x86_64-*mingw* | *-w64-mingw*)
7616 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7617 # however, use a symlink named 'mingw' in ${prefix} .
7618 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7619 ;;
7620 *-mingw*)
7621 # MinGW can't be handled as Cygwin above since it does not use newlib.
7622 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'
7623 ;;
b91f0a41 7624esac
671aa708 7625
6691a79e
ME
7626# Allow the user to override the flags for
7627# our build compiler if desired.
f019adc1
MF
7628if test x"${build}" = x"${host}" ; then
7629 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7630 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7631 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7632fi
6691a79e 7633
671aa708
NN
7634# On Canadian crosses, we'll be searching the right directories for
7635# the previously-installed cross compiler, so don't bother to add
7636# flags for directories within the install tree of the compiler
7637# being built; programs in there won't even run.
7638if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7639 # Search for pre-installed headers if nothing else fits.
9124bc53 7640 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
7641fi
7642
7643if test "x${use_gnu_ld}" = x &&
7644 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7645 # Arrange for us to find uninstalled linker scripts.
215c351a 7646 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7647fi
7648
e88a2c09
DD
7649# Search for other target-specific linker scripts and such.
7650case "${target}" in
3e19841a
PB
7651 mep*)
7652 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7653 ;;
e88a2c09
DD
7654esac
7655
671aa708 7656# Makefile fragments.
7b61653a
PE
7657for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7658do
7659 eval fragval=\$$frag
7660 if test $fragval != /dev/null; then
7661 eval $frag=${srcdir}/$fragval
7662 fi
7663done
671aa708
NN
7664
7665
7666
7667
7668
7669# Miscellanea: directories, flags, etc.
7670
7671
7672
7673
7674
7675
7676
d89f0ad6 7677
23f6b2f9 7678# Build module lists & subconfigure args.
671aa708
NN
7679
7680
7681
2abefe3d
PB
7682# Host module lists & subconfigure args.
7683
7684
7685
aae29963 7686
2abefe3d
PB
7687# Target module lists & subconfigure args.
7688
7689
7690
7691# Build tools.
7692
7693
7694
0999159b
PB
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
2abefe3d
PB
7709# Generate default definitions for YACC, M4, LEX and other programs that run
7710# on the build machine. These are used if the Makefile can't locate these
7711# programs in objdir.
7712MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7713
7714for ac_prog in 'bison -y' byacc yacc
7715do
1c710c3c 7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7717set dummy $ac_prog; ac_word=$2
5213506e
RW
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719$as_echo_n "checking for $ac_word... " >&6; }
7720if test "${ac_cv_prog_YACC+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
2abefe3d
PB
7722else
7723 if test -n "$YACC"; then
7724 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7725else
1c710c3c
DJ
7726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
5213506e
RW
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7733 ac_cv_prog_YACC="$ac_prog"
5213506e 7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7735 break 2
7736 fi
7737done
5213506e
RW
7738 done
7739IFS=$as_save_IFS
1c710c3c 7740
2abefe3d
PB
7741fi
7742fi
1c710c3c 7743YACC=$ac_cv_prog_YACC
2abefe3d 7744if test -n "$YACC"; then
5213506e
RW
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7746$as_echo "$YACC" >&6; }
2abefe3d 7747else
5213506e
RW
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749$as_echo "no" >&6; }
2abefe3d
PB
7750fi
7751
5213506e 7752
1c710c3c 7753 test -n "$YACC" && break
2abefe3d
PB
7754done
7755test -n "$YACC" || YACC="$MISSING bison -y"
7756
7757case " $build_configdirs " in
7758 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7759esac
7760
7761for ac_prog in bison
7762do
1c710c3c 7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7764set dummy $ac_prog; ac_word=$2
5213506e
RW
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
7767if test "${ac_cv_prog_BISON+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
2abefe3d
PB
7769else
7770 if test -n "$BISON"; then
7771 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7772else
1c710c3c
DJ
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
5213506e
RW
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7780 ac_cv_prog_BISON="$ac_prog"
5213506e 7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7782 break 2
7783 fi
7784done
5213506e
RW
7785 done
7786IFS=$as_save_IFS
1c710c3c 7787
2abefe3d
PB
7788fi
7789fi
1c710c3c 7790BISON=$ac_cv_prog_BISON
2abefe3d 7791if test -n "$BISON"; then
5213506e
RW
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7793$as_echo "$BISON" >&6; }
2abefe3d 7794else
5213506e
RW
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
2abefe3d
PB
7797fi
7798
5213506e 7799
1c710c3c 7800 test -n "$BISON" && break
2abefe3d
PB
7801done
7802test -n "$BISON" || BISON="$MISSING bison"
7803
7804case " $build_configdirs " in
7805 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7806esac
7807
7808for ac_prog in gm4 gnum4 m4
7809do
1c710c3c 7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7811set dummy $ac_prog; ac_word=$2
5213506e
RW
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813$as_echo_n "checking for $ac_word... " >&6; }
7814if test "${ac_cv_prog_M4+set}" = set; then :
7815 $as_echo_n "(cached) " >&6
2abefe3d
PB
7816else
7817 if test -n "$M4"; then
7818 ac_cv_prog_M4="$M4" # Let the user override the test.
7819else
1c710c3c
DJ
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
5213506e
RW
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7827 ac_cv_prog_M4="$ac_prog"
5213506e 7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7829 break 2
7830 fi
7831done
5213506e
RW
7832 done
7833IFS=$as_save_IFS
1c710c3c 7834
2abefe3d
PB
7835fi
7836fi
1c710c3c 7837M4=$ac_cv_prog_M4
2abefe3d 7838if test -n "$M4"; then
5213506e
RW
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7840$as_echo "$M4" >&6; }
2abefe3d 7841else
5213506e
RW
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
2abefe3d
PB
7844fi
7845
5213506e 7846
1c710c3c 7847 test -n "$M4" && break
2abefe3d
PB
7848done
7849test -n "$M4" || M4="$MISSING m4"
7850
7851case " $build_configdirs " in
7852 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7853esac
7854
7855for ac_prog in flex lex
7856do
1c710c3c 7857 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7858set dummy $ac_prog; ac_word=$2
5213506e
RW
7859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860$as_echo_n "checking for $ac_word... " >&6; }
7861if test "${ac_cv_prog_LEX+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
2abefe3d
PB
7863else
7864 if test -n "$LEX"; then
7865 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7866else
1c710c3c
DJ
7867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868for as_dir in $PATH
7869do
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
5213506e
RW
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7874 ac_cv_prog_LEX="$ac_prog"
5213506e 7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7876 break 2
7877 fi
7878done
5213506e
RW
7879 done
7880IFS=$as_save_IFS
1c710c3c 7881
2abefe3d
PB
7882fi
7883fi
1c710c3c 7884LEX=$ac_cv_prog_LEX
2abefe3d 7885if test -n "$LEX"; then
5213506e
RW
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7887$as_echo "$LEX" >&6; }
2abefe3d 7888else
5213506e
RW
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890$as_echo "no" >&6; }
2abefe3d
PB
7891fi
7892
5213506e 7893
1c710c3c 7894 test -n "$LEX" && break
2abefe3d
PB
7895done
7896test -n "$LEX" || LEX="$MISSING flex"
7897
7898case " $build_configdirs " in
7899 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7900 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7901esac
7902
7903for ac_prog in flex
7904do
1c710c3c 7905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7906set dummy $ac_prog; ac_word=$2
5213506e
RW
7907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908$as_echo_n "checking for $ac_word... " >&6; }
7909if test "${ac_cv_prog_FLEX+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
2abefe3d
PB
7911else
7912 if test -n "$FLEX"; then
7913 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7914else
1c710c3c
DJ
7915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916for as_dir in $PATH
7917do
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
5213506e
RW
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7922 ac_cv_prog_FLEX="$ac_prog"
5213506e 7923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7924 break 2
7925 fi
7926done
5213506e
RW
7927 done
7928IFS=$as_save_IFS
1c710c3c 7929
2abefe3d
PB
7930fi
7931fi
1c710c3c 7932FLEX=$ac_cv_prog_FLEX
2abefe3d 7933if test -n "$FLEX"; then
5213506e
RW
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7935$as_echo "$FLEX" >&6; }
2abefe3d 7936else
5213506e
RW
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938$as_echo "no" >&6; }
2abefe3d
PB
7939fi
7940
5213506e 7941
1c710c3c 7942 test -n "$FLEX" && break
2abefe3d
PB
7943done
7944test -n "$FLEX" || FLEX="$MISSING flex"
7945
7946case " $build_configdirs " in
7947 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7948esac
7949
7950for ac_prog in makeinfo
7951do
1c710c3c 7952 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7953set dummy $ac_prog; ac_word=$2
5213506e
RW
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
7956if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7957 $as_echo_n "(cached) " >&6
2abefe3d
PB
7958else
7959 if test -n "$MAKEINFO"; then
7960 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7961else
1c710c3c
DJ
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965 IFS=$as_save_IFS
7966 test -z "$as_dir" && as_dir=.
5213506e
RW
7967 for ac_exec_ext in '' $ac_executable_extensions; do
7968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7969 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7971 break 2
7972 fi
7973done
5213506e
RW
7974 done
7975IFS=$as_save_IFS
1c710c3c 7976
2abefe3d
PB
7977fi
7978fi
1c710c3c 7979MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7980if test -n "$MAKEINFO"; then
5213506e
RW
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7982$as_echo "$MAKEINFO" >&6; }
2abefe3d 7983else
5213506e
RW
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
2abefe3d
PB
7986fi
7987
5213506e 7988
1c710c3c 7989 test -n "$MAKEINFO" && break
2abefe3d
PB
7990done
7991test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7992
7993case " $build_configdirs " in
7994 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7995 *)
7996
d18ff35a 7997 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7998 # higher, else we use the "missing" dummy.
7999 if ${MAKEINFO} --version \
d18ff35a 8000 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8001 :
8002 else
8003 MAKEINFO="$MISSING makeinfo"
8004 fi
8005 ;;
8006
8007esac
671aa708 8008
2abefe3d 8009# FIXME: expect and dejagnu may become build tools?
671aa708 8010
2abefe3d
PB
8011for ac_prog in expect
8012do
1c710c3c 8013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8014set dummy $ac_prog; ac_word=$2
5213506e
RW
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if test "${ac_cv_prog_EXPECT+set}" = set; then :
8018 $as_echo_n "(cached) " >&6
2abefe3d
PB
8019else
8020 if test -n "$EXPECT"; then
8021 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8022else
1c710c3c
DJ
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
5213506e
RW
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8030 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8032 break 2
8033 fi
8034done
5213506e
RW
8035 done
8036IFS=$as_save_IFS
1c710c3c 8037
2abefe3d
PB
8038fi
8039fi
1c710c3c 8040EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8041if test -n "$EXPECT"; then
5213506e
RW
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8043$as_echo "$EXPECT" >&6; }
2abefe3d 8044else
5213506e
RW
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
2abefe3d 8047fi
671aa708 8048
5213506e 8049
1c710c3c 8050 test -n "$EXPECT" && break
2abefe3d
PB
8051done
8052test -n "$EXPECT" || EXPECT="expect"
671aa708 8053
2abefe3d
PB
8054case " $configdirs " in
8055 *" expect "*)
8056 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8057 ;;
8058esac
671aa708 8059
2abefe3d
PB
8060for ac_prog in runtest
8061do
1c710c3c 8062 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8063set dummy $ac_prog; ac_word=$2
5213506e
RW
8064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065$as_echo_n "checking for $ac_word... " >&6; }
8066if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8067 $as_echo_n "(cached) " >&6
2abefe3d
PB
8068else
8069 if test -n "$RUNTEST"; then
8070 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8071else
1c710c3c
DJ
8072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073for as_dir in $PATH
8074do
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
5213506e
RW
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8079 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8081 break 2
8082 fi
8083done
5213506e
RW
8084 done
8085IFS=$as_save_IFS
1c710c3c 8086
2abefe3d
PB
8087fi
8088fi
1c710c3c 8089RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8090if test -n "$RUNTEST"; then
5213506e
RW
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8092$as_echo "$RUNTEST" >&6; }
2abefe3d 8093else
5213506e
RW
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095$as_echo "no" >&6; }
2abefe3d 8096fi
671aa708 8097
5213506e 8098
1c710c3c 8099 test -n "$RUNTEST" && break
2abefe3d
PB
8100done
8101test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8102
2abefe3d
PB
8103case " $configdirs " in
8104 *" dejagnu "*)
c394e891 8105 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8106 ;;
8107esac
671aa708
NN
8108
8109
671aa708 8110# Host tools.
ca9f4b81
AO
8111ncn_tool_prefix=
8112test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8113ncn_target_tool_prefix=
8114test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8115
278a7a38
AO
8116
8117
8118if test -n "$AR"; then
8119 ac_cv_prog_AR=$AR
8120elif test -n "$ac_cv_prog_AR"; then
8121 AR=$ac_cv_prog_AR
8122fi
8123
8124if test -n "$ac_cv_prog_AR"; then
8125 for ncn_progname in ar; do
8126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8127set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129$as_echo_n "checking for $ac_word... " >&6; }
8130if test "${ac_cv_prog_AR+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
278a7a38
AO
8132else
8133 if test -n "$AR"; then
8134 ac_cv_prog_AR="$AR" # Let the user override the test.
8135else
8136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
5213506e
RW
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8143 ac_cv_prog_AR="${ncn_progname}"
5213506e 8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8145 break 2
8146 fi
8147done
5213506e
RW
8148 done
8149IFS=$as_save_IFS
278a7a38
AO
8150
8151fi
8152fi
8153AR=$ac_cv_prog_AR
8154if test -n "$AR"; then
5213506e
RW
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8156$as_echo "$AR" >&6; }
278a7a38 8157else
5213506e
RW
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159$as_echo "no" >&6; }
278a7a38
AO
8160fi
8161
5213506e 8162
278a7a38
AO
8163 done
8164fi
8165
8166for ncn_progname in ar; do
2693c0b0
PB
8167 if test -n "$ncn_tool_prefix"; then
8168 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8169set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171$as_echo_n "checking for $ac_word... " >&6; }
8172if test "${ac_cv_prog_AR+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8174else
8175 if test -n "$AR"; then
8176 ac_cv_prog_AR="$AR" # Let the user override the test.
8177else
1c710c3c
DJ
8178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179for as_dir in $PATH
8180do
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
5213506e
RW
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8185 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8187 break 2
8188 fi
8189done
5213506e
RW
8190 done
8191IFS=$as_save_IFS
1c710c3c 8192
ca9f4b81
AO
8193fi
8194fi
1c710c3c 8195AR=$ac_cv_prog_AR
ca9f4b81 8196if test -n "$AR"; then
5213506e
RW
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8198$as_echo "$AR" >&6; }
ca9f4b81 8199else
5213506e
RW
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201$as_echo "no" >&6; }
ca9f4b81
AO
8202fi
8203
5213506e 8204
2693c0b0
PB
8205 fi
8206 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8208set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8210$as_echo_n "checking for $ac_word... " >&6; }
8211if test "${ac_cv_prog_AR+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
ca9f4b81 8213else
2693c0b0 8214 if test -n "$AR"; then
af71363e
AS
8215 ac_cv_prog_AR="$AR" # Let the user override the test.
8216else
1c710c3c
DJ
8217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218for as_dir in $PATH
8219do
8220 IFS=$as_save_IFS
8221 test -z "$as_dir" && as_dir=.
5213506e
RW
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8224 ac_cv_prog_AR="${ncn_progname}"
5213506e 8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8226 break 2
8227 fi
8228done
5213506e
RW
8229 done
8230IFS=$as_save_IFS
1c710c3c 8231
ca9f4b81
AO
8232fi
8233fi
1c710c3c 8234AR=$ac_cv_prog_AR
2693c0b0 8235if test -n "$AR"; then
5213506e
RW
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8237$as_echo "$AR" >&6; }
ca9f4b81 8238else
5213506e
RW
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8240$as_echo "no" >&6; }
ca9f4b81 8241fi
1c710c3c 8242
5213506e 8243
2693c0b0
PB
8244 fi
8245 test -n "$ac_cv_prog_AR" && break
8246done
8247
8248if test -z "$ac_cv_prog_AR" ; then
8249 set dummy ar
8250 if test $build = $host ; then
8251 AR="$2"
ca9f4b81 8252 else
2693c0b0 8253 AR="${ncn_tool_prefix}$2"
ca9f4b81 8254 fi
ca9f4b81
AO
8255fi
8256
278a7a38
AO
8257
8258
8259if test -n "$AS"; then
8260 ac_cv_prog_AS=$AS
8261elif test -n "$ac_cv_prog_AS"; then
8262 AS=$ac_cv_prog_AS
8263fi
8264
8265if test -n "$ac_cv_prog_AS"; then
8266 for ncn_progname in as; do
8267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8268set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270$as_echo_n "checking for $ac_word... " >&6; }
8271if test "${ac_cv_prog_AS+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
278a7a38
AO
8273else
8274 if test -n "$AS"; then
8275 ac_cv_prog_AS="$AS" # Let the user override the test.
8276else
8277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
5213506e
RW
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8284 ac_cv_prog_AS="${ncn_progname}"
5213506e 8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8286 break 2
8287 fi
8288done
5213506e
RW
8289 done
8290IFS=$as_save_IFS
278a7a38
AO
8291
8292fi
8293fi
8294AS=$ac_cv_prog_AS
8295if test -n "$AS"; then
5213506e
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8297$as_echo "$AS" >&6; }
278a7a38 8298else
5213506e
RW
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300$as_echo "no" >&6; }
278a7a38
AO
8301fi
8302
5213506e 8303
278a7a38
AO
8304 done
8305fi
8306
8307for ncn_progname in as; do
2693c0b0
PB
8308 if test -n "$ncn_tool_prefix"; then
8309 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8310set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312$as_echo_n "checking for $ac_word... " >&6; }
8313if test "${ac_cv_prog_AS+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8315else
8316 if test -n "$AS"; then
8317 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8318else
1c710c3c
DJ
8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
5213506e
RW
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8326 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8328 break 2
8329 fi
8330done
5213506e
RW
8331 done
8332IFS=$as_save_IFS
1c710c3c 8333
ca9f4b81
AO
8334fi
8335fi
1c710c3c 8336AS=$ac_cv_prog_AS
ca9f4b81 8337if test -n "$AS"; then
5213506e
RW
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8339$as_echo "$AS" >&6; }
ca9f4b81 8340else
5213506e
RW
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342$as_echo "no" >&6; }
ca9f4b81
AO
8343fi
8344
5213506e 8345
2693c0b0
PB
8346 fi
8347 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8349set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351$as_echo_n "checking for $ac_word... " >&6; }
8352if test "${ac_cv_prog_AS+set}" = set; then :
8353 $as_echo_n "(cached) " >&6
ca9f4b81 8354else
2693c0b0
PB
8355 if test -n "$AS"; then
8356 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8357else
1c710c3c
DJ
8358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359for as_dir in $PATH
8360do
8361 IFS=$as_save_IFS
8362 test -z "$as_dir" && as_dir=.
5213506e
RW
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8365 ac_cv_prog_AS="${ncn_progname}"
5213506e 8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8367 break 2
8368 fi
8369done
5213506e
RW
8370 done
8371IFS=$as_save_IFS
1c710c3c 8372
ca9f4b81
AO
8373fi
8374fi
1c710c3c 8375AS=$ac_cv_prog_AS
2693c0b0 8376if test -n "$AS"; then
5213506e
RW
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8378$as_echo "$AS" >&6; }
ca9f4b81 8379else
5213506e
RW
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381$as_echo "no" >&6; }
ca9f4b81 8382fi
1c710c3c 8383
5213506e 8384
2693c0b0
PB
8385 fi
8386 test -n "$ac_cv_prog_AS" && break
8387done
8388
8389if test -z "$ac_cv_prog_AS" ; then
8390 set dummy as
8391 if test $build = $host ; then
8392 AS="$2"
ca9f4b81 8393 else
2693c0b0 8394 AS="${ncn_tool_prefix}$2"
ca9f4b81 8395 fi
ca9f4b81
AO
8396fi
8397
278a7a38
AO
8398
8399
8400if test -n "$DLLTOOL"; then
8401 ac_cv_prog_DLLTOOL=$DLLTOOL
8402elif test -n "$ac_cv_prog_DLLTOOL"; then
8403 DLLTOOL=$ac_cv_prog_DLLTOOL
8404fi
8405
8406if test -n "$ac_cv_prog_DLLTOOL"; then
8407 for ncn_progname in dlltool; do
8408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8409set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411$as_echo_n "checking for $ac_word... " >&6; }
8412if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
278a7a38
AO
8414else
8415 if test -n "$DLLTOOL"; then
8416 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8417else
8418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419for as_dir in $PATH
8420do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
5213506e
RW
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8425 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8427 break 2
8428 fi
8429done
5213506e
RW
8430 done
8431IFS=$as_save_IFS
278a7a38
AO
8432
8433fi
8434fi
8435DLLTOOL=$ac_cv_prog_DLLTOOL
8436if test -n "$DLLTOOL"; then
5213506e
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8438$as_echo "$DLLTOOL" >&6; }
278a7a38 8439else
5213506e
RW
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441$as_echo "no" >&6; }
278a7a38
AO
8442fi
8443
5213506e 8444
278a7a38
AO
8445 done
8446fi
8447
8448for ncn_progname in dlltool; do
2693c0b0
PB
8449 if test -n "$ncn_tool_prefix"; then
8450 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8451set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453$as_echo_n "checking for $ac_word... " >&6; }
8454if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8456else
8457 if test -n "$DLLTOOL"; then
8458 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8459else
1c710c3c
DJ
8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
5213506e
RW
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8467 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8469 break 2
8470 fi
8471done
5213506e
RW
8472 done
8473IFS=$as_save_IFS
1c710c3c 8474
ca9f4b81
AO
8475fi
8476fi
1c710c3c 8477DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8478if test -n "$DLLTOOL"; then
5213506e
RW
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8480$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8481else
5213506e
RW
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
ca9f4b81
AO
8484fi
8485
5213506e 8486
2693c0b0
PB
8487 fi
8488 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8490set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492$as_echo_n "checking for $ac_word... " >&6; }
8493if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
ca9f4b81 8495else
2693c0b0
PB
8496 if test -n "$DLLTOOL"; then
8497 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8498else
1c710c3c
DJ
8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500for as_dir in $PATH
8501do
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
5213506e
RW
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8506 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8508 break 2
8509 fi
8510done
5213506e
RW
8511 done
8512IFS=$as_save_IFS
1c710c3c 8513
ca9f4b81
AO
8514fi
8515fi
1c710c3c 8516DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8517if test -n "$DLLTOOL"; then
5213506e
RW
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8519$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8520else
5213506e
RW
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522$as_echo "no" >&6; }
ca9f4b81 8523fi
1c710c3c 8524
5213506e 8525
2693c0b0
PB
8526 fi
8527 test -n "$ac_cv_prog_DLLTOOL" && break
8528done
8529
8530if test -z "$ac_cv_prog_DLLTOOL" ; then
8531 set dummy dlltool
8532 if test $build = $host ; then
8533 DLLTOOL="$2"
ca9f4b81 8534 else
2693c0b0 8535 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8536 fi
ca9f4b81
AO
8537fi
8538
278a7a38
AO
8539
8540
8541if test -n "$LD"; then
8542 ac_cv_prog_LD=$LD
8543elif test -n "$ac_cv_prog_LD"; then
8544 LD=$ac_cv_prog_LD
8545fi
8546
8547if test -n "$ac_cv_prog_LD"; then
8548 for ncn_progname in ld; do
8549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8550set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552$as_echo_n "checking for $ac_word... " >&6; }
8553if test "${ac_cv_prog_LD+set}" = set; then :
8554 $as_echo_n "(cached) " >&6
278a7a38
AO
8555else
8556 if test -n "$LD"; then
8557 ac_cv_prog_LD="$LD" # Let the user override the test.
8558else
8559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560for as_dir in $PATH
8561do
8562 IFS=$as_save_IFS
8563 test -z "$as_dir" && as_dir=.
5213506e
RW
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8566 ac_cv_prog_LD="${ncn_progname}"
5213506e 8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8568 break 2
8569 fi
8570done
5213506e
RW
8571 done
8572IFS=$as_save_IFS
278a7a38
AO
8573
8574fi
8575fi
8576LD=$ac_cv_prog_LD
8577if test -n "$LD"; then
5213506e
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8579$as_echo "$LD" >&6; }
278a7a38 8580else
5213506e
RW
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582$as_echo "no" >&6; }
278a7a38
AO
8583fi
8584
5213506e 8585
278a7a38
AO
8586 done
8587fi
8588
8589for ncn_progname in ld; do
2693c0b0
PB
8590 if test -n "$ncn_tool_prefix"; then
8591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8592set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594$as_echo_n "checking for $ac_word... " >&6; }
8595if test "${ac_cv_prog_LD+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8597else
8598 if test -n "$LD"; then
8599 ac_cv_prog_LD="$LD" # Let the user override the test.
8600else
1c710c3c
DJ
8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
5213506e
RW
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8608 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8610 break 2
8611 fi
8612done
5213506e
RW
8613 done
8614IFS=$as_save_IFS
1c710c3c 8615
ca9f4b81
AO
8616fi
8617fi
1c710c3c 8618LD=$ac_cv_prog_LD
ca9f4b81 8619if test -n "$LD"; then
5213506e
RW
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8621$as_echo "$LD" >&6; }
ca9f4b81 8622else
5213506e
RW
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624$as_echo "no" >&6; }
ca9f4b81
AO
8625fi
8626
5213506e 8627
2693c0b0
PB
8628 fi
8629 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8631set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633$as_echo_n "checking for $ac_word... " >&6; }
8634if test "${ac_cv_prog_LD+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
ca9f4b81 8636else
2693c0b0
PB
8637 if test -n "$LD"; then
8638 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8639else
1c710c3c
DJ
8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
5213506e
RW
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8647 ac_cv_prog_LD="${ncn_progname}"
5213506e 8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8649 break 2
8650 fi
8651done
5213506e
RW
8652 done
8653IFS=$as_save_IFS
1c710c3c 8654
ca9f4b81
AO
8655fi
8656fi
1c710c3c 8657LD=$ac_cv_prog_LD
2693c0b0 8658if test -n "$LD"; then
5213506e
RW
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8660$as_echo "$LD" >&6; }
ca9f4b81 8661else
5213506e
RW
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663$as_echo "no" >&6; }
ca9f4b81 8664fi
1c710c3c 8665
5213506e 8666
2693c0b0
PB
8667 fi
8668 test -n "$ac_cv_prog_LD" && break
8669done
8670
8671if test -z "$ac_cv_prog_LD" ; then
8672 set dummy ld
8673 if test $build = $host ; then
8674 LD="$2"
ca9f4b81 8675 else
2693c0b0 8676 LD="${ncn_tool_prefix}$2"
ca9f4b81 8677 fi
ca9f4b81
AO
8678fi
8679
278a7a38
AO
8680
8681
8682if test -n "$LIPO"; then
8683 ac_cv_prog_LIPO=$LIPO
8684elif test -n "$ac_cv_prog_LIPO"; then
8685 LIPO=$ac_cv_prog_LIPO
8686fi
8687
8688if test -n "$ac_cv_prog_LIPO"; then
8689 for ncn_progname in lipo; do
8690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8691set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693$as_echo_n "checking for $ac_word... " >&6; }
8694if test "${ac_cv_prog_LIPO+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
278a7a38
AO
8696else
8697 if test -n "$LIPO"; then
8698 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
5213506e
RW
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8707 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8709 break 2
8710 fi
8711done
5213506e
RW
8712 done
8713IFS=$as_save_IFS
278a7a38
AO
8714
8715fi
8716fi
8717LIPO=$ac_cv_prog_LIPO
8718if test -n "$LIPO"; then
5213506e
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8720$as_echo "$LIPO" >&6; }
278a7a38 8721else
5213506e
RW
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723$as_echo "no" >&6; }
278a7a38
AO
8724fi
8725
5213506e 8726
278a7a38
AO
8727 done
8728fi
8729
8730for ncn_progname in lipo; do
2abefe3d
PB
8731 if test -n "$ncn_tool_prefix"; then
8732 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8733set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735$as_echo_n "checking for $ac_word... " >&6; }
8736if test "${ac_cv_prog_LIPO+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
2abefe3d
PB
8738else
8739 if test -n "$LIPO"; then
8740 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8741else
1c710c3c
DJ
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
5213506e
RW
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8749 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8751 break 2
8752 fi
8753done
5213506e
RW
8754 done
8755IFS=$as_save_IFS
1c710c3c 8756
2abefe3d
PB
8757fi
8758fi
1c710c3c 8759LIPO=$ac_cv_prog_LIPO
2abefe3d 8760if test -n "$LIPO"; then
5213506e
RW
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8762$as_echo "$LIPO" >&6; }
2abefe3d 8763else
5213506e
RW
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765$as_echo "no" >&6; }
2abefe3d
PB
8766fi
8767
5213506e 8768
2abefe3d
PB
8769 fi
8770 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8772set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774$as_echo_n "checking for $ac_word... " >&6; }
8775if test "${ac_cv_prog_LIPO+set}" = set; then :
8776 $as_echo_n "(cached) " >&6
2abefe3d
PB
8777else
8778 if test -n "$LIPO"; then
8779 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8780else
1c710c3c
DJ
8781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782for as_dir in $PATH
8783do
8784 IFS=$as_save_IFS
8785 test -z "$as_dir" && as_dir=.
5213506e
RW
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8788 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8790 break 2
8791 fi
8792done
5213506e
RW
8793 done
8794IFS=$as_save_IFS
1c710c3c 8795
2abefe3d
PB
8796fi
8797fi
1c710c3c 8798LIPO=$ac_cv_prog_LIPO
2abefe3d 8799if test -n "$LIPO"; then
5213506e
RW
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8801$as_echo "$LIPO" >&6; }
2abefe3d 8802else
5213506e
RW
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804$as_echo "no" >&6; }
2abefe3d 8805fi
1c710c3c 8806
5213506e 8807
2abefe3d
PB
8808 fi
8809 test -n "$ac_cv_prog_LIPO" && break
8810done
8811
8812if test -z "$ac_cv_prog_LIPO" ; then
8813 set dummy lipo
8814 if test $build = $host ; then
8815 LIPO="$2"
8816 else
8817 LIPO="${ncn_tool_prefix}$2"
8818 fi
8819fi
8820
278a7a38
AO
8821
8822
8823if test -n "$NM"; then
8824 ac_cv_prog_NM=$NM
8825elif test -n "$ac_cv_prog_NM"; then
8826 NM=$ac_cv_prog_NM
8827fi
8828
8829if test -n "$ac_cv_prog_NM"; then
8830 for ncn_progname in nm; do
8831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8832set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834$as_echo_n "checking for $ac_word... " >&6; }
8835if test "${ac_cv_prog_NM+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8837else
8838 if test -n "$NM"; then
8839 ac_cv_prog_NM="$NM" # Let the user override the test.
8840else
1c710c3c
DJ
8841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842for as_dir in $PATH
8843do
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
5213506e
RW
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8848 ac_cv_prog_NM="${ncn_progname}"
5213506e 8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8850 break 2
8851 fi
8852done
5213506e
RW
8853 done
8854IFS=$as_save_IFS
1c710c3c 8855
ca9f4b81
AO
8856fi
8857fi
1c710c3c 8858NM=$ac_cv_prog_NM
ca9f4b81 8859if test -n "$NM"; then
5213506e
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8861$as_echo "$NM" >&6; }
ca9f4b81 8862else
5213506e
RW
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864$as_echo "no" >&6; }
ca9f4b81
AO
8865fi
8866
5213506e 8867
278a7a38
AO
8868 done
8869fi
8870
8871for ncn_progname in nm; do
8872 if test -n "$ncn_tool_prefix"; then
8873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8874set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876$as_echo_n "checking for $ac_word... " >&6; }
8877if test "${ac_cv_prog_NM+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
ca9f4b81 8879else
2693c0b0
PB
8880 if test -n "$NM"; then
8881 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8882else
1c710c3c
DJ
8883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884for as_dir in $PATH
8885do
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
5213506e
RW
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8890 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8892 break 2
8893 fi
8894done
5213506e
RW
8895 done
8896IFS=$as_save_IFS
1c710c3c 8897
ca9f4b81
AO
8898fi
8899fi
1c710c3c 8900NM=$ac_cv_prog_NM
2693c0b0 8901if test -n "$NM"; then
5213506e
RW
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8903$as_echo "$NM" >&6; }
ca9f4b81 8904else
5213506e
RW
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
ca9f4b81 8907fi
1c710c3c 8908
5213506e 8909
2693c0b0 8910 fi
278a7a38
AO
8911 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8913set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915$as_echo_n "checking for $ac_word... " >&6; }
8916if test "${ac_cv_prog_NM+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
278a7a38
AO
8918else
8919 if test -n "$NM"; then
8920 ac_cv_prog_NM="$NM" # Let the user override the test.
8921else
8922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923for as_dir in $PATH
8924do
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
5213506e
RW
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8929 ac_cv_prog_NM="${ncn_progname}"
5213506e 8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8931 break 2
8932 fi
8933done
5213506e
RW
8934 done
8935IFS=$as_save_IFS
278a7a38
AO
8936
8937fi
8938fi
8939NM=$ac_cv_prog_NM
8940if test -n "$NM"; then
5213506e
RW
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8942$as_echo "$NM" >&6; }
278a7a38 8943else
5213506e
RW
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945$as_echo "no" >&6; }
278a7a38
AO
8946fi
8947
5213506e 8948
278a7a38
AO
8949 fi
8950 test -n "$ac_cv_prog_NM" && break
8951done
8952
8953if test -z "$ac_cv_prog_NM" ; then
8954 set dummy nm
8955 if test $build = $host ; then
8956 NM="$2"
8957 else
8958 NM="${ncn_tool_prefix}$2"
8959 fi
8960fi
8961
8962
8963
8964if test -n "$RANLIB"; then
8965 ac_cv_prog_RANLIB=$RANLIB
8966elif test -n "$ac_cv_prog_RANLIB"; then
8967 RANLIB=$ac_cv_prog_RANLIB
8968fi
8969
8970if test -n "$ac_cv_prog_RANLIB"; then
8971 for ncn_progname in ranlib; do
8972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8973set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8975$as_echo_n "checking for $ac_word... " >&6; }
8976if test "${ac_cv_prog_RANLIB+set}" = set; then :
8977 $as_echo_n "(cached) " >&6
278a7a38
AO
8978else
8979 if test -n "$RANLIB"; then
8980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8981else
8982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983for as_dir in $PATH
8984do
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
5213506e
RW
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8989 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8991 break 2
8992 fi
8993done
5213506e
RW
8994 done
8995IFS=$as_save_IFS
278a7a38
AO
8996
8997fi
8998fi
8999RANLIB=$ac_cv_prog_RANLIB
9000if test -n "$RANLIB"; then
5213506e
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9002$as_echo "$RANLIB" >&6; }
278a7a38 9003else
5213506e
RW
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005$as_echo "no" >&6; }
278a7a38
AO
9006fi
9007
5213506e 9008
278a7a38
AO
9009 done
9010fi
ca9f4b81 9011
278a7a38 9012for ncn_progname in ranlib; do
2693c0b0
PB
9013 if test -n "$ncn_tool_prefix"; then
9014 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9015set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017$as_echo_n "checking for $ac_word... " >&6; }
9018if test "${ac_cv_prog_RANLIB+set}" = set; then :
9019 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9020else
9021 if test -n "$RANLIB"; then
9022 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9023else
1c710c3c
DJ
9024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025for as_dir in $PATH
9026do
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
5213506e
RW
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9031 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9033 break 2
9034 fi
9035done
5213506e
RW
9036 done
9037IFS=$as_save_IFS
1c710c3c 9038
ca9f4b81
AO
9039fi
9040fi
1c710c3c 9041RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9042if test -n "$RANLIB"; then
5213506e
RW
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9044$as_echo "$RANLIB" >&6; }
ca9f4b81 9045else
5213506e
RW
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047$as_echo "no" >&6; }
ca9f4b81
AO
9048fi
9049
5213506e 9050
2693c0b0
PB
9051 fi
9052 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9054set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056$as_echo_n "checking for $ac_word... " >&6; }
9057if test "${ac_cv_prog_RANLIB+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
ca9f4b81 9059else
2693c0b0
PB
9060 if test -n "$RANLIB"; then
9061 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9062else
1c710c3c
DJ
9063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064for as_dir in $PATH
9065do
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
5213506e
RW
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9070 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9072 break 2
9073 fi
9074done
5213506e
RW
9075 done
9076IFS=$as_save_IFS
1c710c3c 9077
ca9f4b81
AO
9078fi
9079fi
1c710c3c 9080RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9081if test -n "$RANLIB"; then
5213506e
RW
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9083$as_echo "$RANLIB" >&6; }
ca9f4b81 9084else
5213506e
RW
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086$as_echo "no" >&6; }
ca9f4b81 9087fi
1c710c3c 9088
5213506e 9089
ca9f4b81 9090 fi
2693c0b0
PB
9091 test -n "$ac_cv_prog_RANLIB" && break
9092done
9093
9094if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9095 RANLIB="true"
ca9f4b81
AO
9096fi
9097
278a7a38
AO
9098
9099
9100if test -n "$STRIP"; then
9101 ac_cv_prog_STRIP=$STRIP
9102elif test -n "$ac_cv_prog_STRIP"; then
9103 STRIP=$ac_cv_prog_STRIP
9104fi
9105
9106if test -n "$ac_cv_prog_STRIP"; then
9107 for ncn_progname in strip; do
9108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9109set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111$as_echo_n "checking for $ac_word... " >&6; }
9112if test "${ac_cv_prog_STRIP+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
278a7a38
AO
9114else
9115 if test -n "$STRIP"; then
9116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9117else
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
5213506e
RW
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9125 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9127 break 2
9128 fi
9129done
5213506e
RW
9130 done
9131IFS=$as_save_IFS
278a7a38
AO
9132
9133fi
9134fi
9135STRIP=$ac_cv_prog_STRIP
9136if test -n "$STRIP"; then
5213506e
RW
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9138$as_echo "$STRIP" >&6; }
278a7a38 9139else
5213506e
RW
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141$as_echo "no" >&6; }
278a7a38
AO
9142fi
9143
5213506e 9144
278a7a38
AO
9145 done
9146fi
9147
9148for ncn_progname in strip; do
2abefe3d
PB
9149 if test -n "$ncn_tool_prefix"; then
9150 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9151set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153$as_echo_n "checking for $ac_word... " >&6; }
9154if test "${ac_cv_prog_STRIP+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
2abefe3d
PB
9156else
9157 if test -n "$STRIP"; then
9158 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9159else
1c710c3c
DJ
9160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161for as_dir in $PATH
9162do
9163 IFS=$as_save_IFS
9164 test -z "$as_dir" && as_dir=.
5213506e
RW
9165 for ac_exec_ext in '' $ac_executable_extensions; do
9166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9167 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9169 break 2
9170 fi
9171done
5213506e
RW
9172 done
9173IFS=$as_save_IFS
1c710c3c 9174
2abefe3d
PB
9175fi
9176fi
1c710c3c 9177STRIP=$ac_cv_prog_STRIP
2abefe3d 9178if test -n "$STRIP"; then
5213506e
RW
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9180$as_echo "$STRIP" >&6; }
2abefe3d 9181else
5213506e
RW
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183$as_echo "no" >&6; }
2abefe3d
PB
9184fi
9185
5213506e 9186
2abefe3d
PB
9187 fi
9188 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9190set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9192$as_echo_n "checking for $ac_word... " >&6; }
9193if test "${ac_cv_prog_STRIP+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
2abefe3d
PB
9195else
9196 if test -n "$STRIP"; then
9197 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9198else
1c710c3c
DJ
9199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200for as_dir in $PATH
9201do
9202 IFS=$as_save_IFS
9203 test -z "$as_dir" && as_dir=.
5213506e
RW
9204 for ac_exec_ext in '' $ac_executable_extensions; do
9205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9206 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9208 break 2
9209 fi
9210done
5213506e
RW
9211 done
9212IFS=$as_save_IFS
1c710c3c 9213
2abefe3d
PB
9214fi
9215fi
1c710c3c 9216STRIP=$ac_cv_prog_STRIP
2abefe3d 9217if test -n "$STRIP"; then
5213506e
RW
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9219$as_echo "$STRIP" >&6; }
2abefe3d 9220else
5213506e
RW
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9222$as_echo "no" >&6; }
2abefe3d 9223fi
1c710c3c 9224
5213506e 9225
2abefe3d
PB
9226 fi
9227 test -n "$ac_cv_prog_STRIP" && break
9228done
9229
9230if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9231 STRIP="true"
2abefe3d
PB
9232fi
9233
278a7a38
AO
9234
9235
9236if test -n "$WINDRES"; then
9237 ac_cv_prog_WINDRES=$WINDRES
9238elif test -n "$ac_cv_prog_WINDRES"; then
9239 WINDRES=$ac_cv_prog_WINDRES
9240fi
9241
9242if test -n "$ac_cv_prog_WINDRES"; then
9243 for ncn_progname in windres; do
9244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9245set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247$as_echo_n "checking for $ac_word... " >&6; }
9248if test "${ac_cv_prog_WINDRES+set}" = set; then :
9249 $as_echo_n "(cached) " >&6
278a7a38
AO
9250else
9251 if test -n "$WINDRES"; then
9252 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9253else
9254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255for as_dir in $PATH
9256do
9257 IFS=$as_save_IFS
9258 test -z "$as_dir" && as_dir=.
5213506e
RW
9259 for ac_exec_ext in '' $ac_executable_extensions; do
9260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9261 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9263 break 2
9264 fi
9265done
5213506e
RW
9266 done
9267IFS=$as_save_IFS
278a7a38
AO
9268
9269fi
9270fi
9271WINDRES=$ac_cv_prog_WINDRES
9272if test -n "$WINDRES"; then
5213506e
RW
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9274$as_echo "$WINDRES" >&6; }
278a7a38 9275else
5213506e
RW
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277$as_echo "no" >&6; }
278a7a38
AO
9278fi
9279
5213506e 9280
278a7a38
AO
9281 done
9282fi
9283
9284for ncn_progname in windres; do
2693c0b0
PB
9285 if test -n "$ncn_tool_prefix"; then
9286 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9287set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289$as_echo_n "checking for $ac_word... " >&6; }
9290if test "${ac_cv_prog_WINDRES+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9292else
9293 if test -n "$WINDRES"; then
9294 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9295else
1c710c3c
DJ
9296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297for as_dir in $PATH
9298do
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
5213506e
RW
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9303 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9305 break 2
9306 fi
9307done
5213506e
RW
9308 done
9309IFS=$as_save_IFS
1c710c3c 9310
ca9f4b81
AO
9311fi
9312fi
1c710c3c 9313WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9314if test -n "$WINDRES"; then
5213506e
RW
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9316$as_echo "$WINDRES" >&6; }
ca9f4b81 9317else
5213506e
RW
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319$as_echo "no" >&6; }
ca9f4b81
AO
9320fi
9321
5213506e 9322
2693c0b0
PB
9323 fi
9324 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9326set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9328$as_echo_n "checking for $ac_word... " >&6; }
9329if test "${ac_cv_prog_WINDRES+set}" = set; then :
9330 $as_echo_n "(cached) " >&6
ca9f4b81 9331else
2693c0b0
PB
9332 if test -n "$WINDRES"; then
9333 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9334else
1c710c3c
DJ
9335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336for as_dir in $PATH
9337do
9338 IFS=$as_save_IFS
9339 test -z "$as_dir" && as_dir=.
5213506e
RW
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9342 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9344 break 2
9345 fi
9346done
5213506e
RW
9347 done
9348IFS=$as_save_IFS
1c710c3c 9349
ca9f4b81
AO
9350fi
9351fi
1c710c3c 9352WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9353if test -n "$WINDRES"; then
5213506e
RW
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9355$as_echo "$WINDRES" >&6; }
ca9f4b81 9356else
5213506e
RW
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358$as_echo "no" >&6; }
ca9f4b81 9359fi
1c710c3c 9360
5213506e 9361
2693c0b0
PB
9362 fi
9363 test -n "$ac_cv_prog_WINDRES" && break
9364done
9365
9366if test -z "$ac_cv_prog_WINDRES" ; then
9367 set dummy windres
9368 if test $build = $host ; then
9369 WINDRES="$2"
ca9f4b81 9370 else
2693c0b0 9371 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9372 fi
ca9f4b81
AO
9373fi
9374
278a7a38
AO
9375
9376
901119ae
KT
9377if test -n "$WINDMC"; then
9378 ac_cv_prog_WINDMC=$WINDMC
9379elif test -n "$ac_cv_prog_WINDMC"; then
9380 WINDMC=$ac_cv_prog_WINDMC
9381fi
9382
9383if test -n "$ac_cv_prog_WINDMC"; then
9384 for ncn_progname in windmc; do
9385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9386set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388$as_echo_n "checking for $ac_word... " >&6; }
9389if test "${ac_cv_prog_WINDMC+set}" = set; then :
9390 $as_echo_n "(cached) " >&6
901119ae
KT
9391else
9392 if test -n "$WINDMC"; then
9393 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9394else
9395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396for as_dir in $PATH
9397do
9398 IFS=$as_save_IFS
9399 test -z "$as_dir" && as_dir=.
5213506e
RW
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9402 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9404 break 2
9405 fi
9406done
5213506e
RW
9407 done
9408IFS=$as_save_IFS
901119ae
KT
9409
9410fi
9411fi
9412WINDMC=$ac_cv_prog_WINDMC
9413if test -n "$WINDMC"; then
5213506e
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9415$as_echo "$WINDMC" >&6; }
901119ae 9416else
5213506e
RW
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418$as_echo "no" >&6; }
901119ae
KT
9419fi
9420
5213506e 9421
901119ae
KT
9422 done
9423fi
9424
9425for ncn_progname in windmc; do
9426 if test -n "$ncn_tool_prefix"; then
9427 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9428set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430$as_echo_n "checking for $ac_word... " >&6; }
9431if test "${ac_cv_prog_WINDMC+set}" = set; then :
9432 $as_echo_n "(cached) " >&6
901119ae
KT
9433else
9434 if test -n "$WINDMC"; then
9435 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9436else
9437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438for as_dir in $PATH
9439do
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
5213506e
RW
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9444 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9446 break 2
9447 fi
9448done
5213506e
RW
9449 done
9450IFS=$as_save_IFS
901119ae
KT
9451
9452fi
9453fi
9454WINDMC=$ac_cv_prog_WINDMC
9455if test -n "$WINDMC"; then
5213506e
RW
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9457$as_echo "$WINDMC" >&6; }
901119ae 9458else
5213506e
RW
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460$as_echo "no" >&6; }
901119ae
KT
9461fi
9462
5213506e 9463
901119ae
KT
9464 fi
9465 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9466 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9467set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9469$as_echo_n "checking for $ac_word... " >&6; }
9470if test "${ac_cv_prog_WINDMC+set}" = set; then :
9471 $as_echo_n "(cached) " >&6
901119ae
KT
9472else
9473 if test -n "$WINDMC"; then
9474 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9475else
9476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9477for as_dir in $PATH
9478do
9479 IFS=$as_save_IFS
9480 test -z "$as_dir" && as_dir=.
5213506e
RW
9481 for ac_exec_ext in '' $ac_executable_extensions; do
9482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9483 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9485 break 2
9486 fi
9487done
5213506e
RW
9488 done
9489IFS=$as_save_IFS
901119ae
KT
9490
9491fi
9492fi
9493WINDMC=$ac_cv_prog_WINDMC
9494if test -n "$WINDMC"; then
5213506e
RW
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9496$as_echo "$WINDMC" >&6; }
901119ae 9497else
5213506e
RW
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499$as_echo "no" >&6; }
901119ae
KT
9500fi
9501
5213506e 9502
901119ae
KT
9503 fi
9504 test -n "$ac_cv_prog_WINDMC" && break
9505done
9506
9507if test -z "$ac_cv_prog_WINDMC" ; then
9508 set dummy windmc
9509 if test $build = $host ; then
9510 WINDMC="$2"
9511 else
9512 WINDMC="${ncn_tool_prefix}$2"
9513 fi
9514fi
9515
9516
9517
278a7a38
AO
9518if test -n "$OBJCOPY"; then
9519 ac_cv_prog_OBJCOPY=$OBJCOPY
9520elif test -n "$ac_cv_prog_OBJCOPY"; then
9521 OBJCOPY=$ac_cv_prog_OBJCOPY
9522fi
9523
9524if test -n "$ac_cv_prog_OBJCOPY"; then
9525 for ncn_progname in objcopy; do
9526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9527set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529$as_echo_n "checking for $ac_word... " >&6; }
9530if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
278a7a38
AO
9532else
9533 if test -n "$OBJCOPY"; then
9534 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9535else
9536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537for as_dir in $PATH
9538do
9539 IFS=$as_save_IFS
9540 test -z "$as_dir" && as_dir=.
5213506e
RW
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9543 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9545 break 2
9546 fi
9547done
5213506e
RW
9548 done
9549IFS=$as_save_IFS
278a7a38
AO
9550
9551fi
9552fi
9553OBJCOPY=$ac_cv_prog_OBJCOPY
9554if test -n "$OBJCOPY"; then
5213506e
RW
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9556$as_echo "$OBJCOPY" >&6; }
278a7a38 9557else
5213506e
RW
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559$as_echo "no" >&6; }
278a7a38
AO
9560fi
9561
5213506e 9562
278a7a38
AO
9563 done
9564fi
9565
9566for ncn_progname in objcopy; do
2693c0b0
PB
9567 if test -n "$ncn_tool_prefix"; then
9568 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9569set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571$as_echo_n "checking for $ac_word... " >&6; }
9572if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9574else
9575 if test -n "$OBJCOPY"; then
9576 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9577else
1c710c3c
DJ
9578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579for as_dir in $PATH
9580do
9581 IFS=$as_save_IFS
9582 test -z "$as_dir" && as_dir=.
5213506e
RW
9583 for ac_exec_ext in '' $ac_executable_extensions; do
9584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9585 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9587 break 2
9588 fi
9589done
5213506e
RW
9590 done
9591IFS=$as_save_IFS
1c710c3c 9592
ca9f4b81
AO
9593fi
9594fi
1c710c3c 9595OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9596if test -n "$OBJCOPY"; then
5213506e
RW
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9598$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9599else
5213506e
RW
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601$as_echo "no" >&6; }
ca9f4b81
AO
9602fi
9603
5213506e 9604
2693c0b0
PB
9605 fi
9606 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9607 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9608set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9610$as_echo_n "checking for $ac_word... " >&6; }
9611if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9612 $as_echo_n "(cached) " >&6
ca9f4b81 9613else
2693c0b0
PB
9614 if test -n "$OBJCOPY"; then
9615 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9616else
1c710c3c
DJ
9617as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618for as_dir in $PATH
9619do
9620 IFS=$as_save_IFS
9621 test -z "$as_dir" && as_dir=.
5213506e
RW
9622 for ac_exec_ext in '' $ac_executable_extensions; do
9623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9624 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9626 break 2
9627 fi
9628done
5213506e
RW
9629 done
9630IFS=$as_save_IFS
1c710c3c 9631
ca9f4b81
AO
9632fi
9633fi
1c710c3c 9634OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9635if test -n "$OBJCOPY"; then
5213506e
RW
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9637$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9638else
5213506e
RW
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9640$as_echo "no" >&6; }
ca9f4b81 9641fi
1c710c3c 9642
5213506e 9643
2693c0b0
PB
9644 fi
9645 test -n "$ac_cv_prog_OBJCOPY" && break
9646done
9647
9648if test -z "$ac_cv_prog_OBJCOPY" ; then
9649 set dummy objcopy
9650 if test $build = $host ; then
9651 OBJCOPY="$2"
ca9f4b81 9652 else
2693c0b0 9653 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9654 fi
ca9f4b81
AO
9655fi
9656
278a7a38
AO
9657
9658
9659if test -n "$OBJDUMP"; then
9660 ac_cv_prog_OBJDUMP=$OBJDUMP
9661elif test -n "$ac_cv_prog_OBJDUMP"; then
9662 OBJDUMP=$ac_cv_prog_OBJDUMP
9663fi
9664
9665if test -n "$ac_cv_prog_OBJDUMP"; then
9666 for ncn_progname in objdump; do
9667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9668set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670$as_echo_n "checking for $ac_word... " >&6; }
9671if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9672 $as_echo_n "(cached) " >&6
278a7a38
AO
9673else
9674 if test -n "$OBJDUMP"; then
9675 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9676else
9677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678for as_dir in $PATH
9679do
9680 IFS=$as_save_IFS
9681 test -z "$as_dir" && as_dir=.
5213506e
RW
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9684 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9686 break 2
9687 fi
9688done
5213506e
RW
9689 done
9690IFS=$as_save_IFS
278a7a38
AO
9691
9692fi
9693fi
9694OBJDUMP=$ac_cv_prog_OBJDUMP
9695if test -n "$OBJDUMP"; then
5213506e
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9697$as_echo "$OBJDUMP" >&6; }
278a7a38 9698else
5213506e
RW
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700$as_echo "no" >&6; }
278a7a38
AO
9701fi
9702
5213506e 9703
278a7a38
AO
9704 done
9705fi
9706
9707for ncn_progname in objdump; do
2693c0b0
PB
9708 if test -n "$ncn_tool_prefix"; then
9709 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9710set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9712$as_echo_n "checking for $ac_word... " >&6; }
9713if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9714 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9715else
9716 if test -n "$OBJDUMP"; then
9717 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9718else
1c710c3c
DJ
9719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720for as_dir in $PATH
9721do
9722 IFS=$as_save_IFS
9723 test -z "$as_dir" && as_dir=.
5213506e
RW
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9726 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9728 break 2
9729 fi
9730done
5213506e
RW
9731 done
9732IFS=$as_save_IFS
1c710c3c 9733
ca9f4b81
AO
9734fi
9735fi
1c710c3c 9736OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9737if test -n "$OBJDUMP"; then
5213506e
RW
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9739$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9740else
5213506e
RW
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742$as_echo "no" >&6; }
ca9f4b81
AO
9743fi
9744
5213506e 9745
2693c0b0
PB
9746 fi
9747 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9749set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751$as_echo_n "checking for $ac_word... " >&6; }
9752if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
ca9f4b81 9754else
2693c0b0
PB
9755 if test -n "$OBJDUMP"; then
9756 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9757else
1c710c3c
DJ
9758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759for as_dir in $PATH
9760do
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
5213506e
RW
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9765 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9767 break 2
9768 fi
9769done
5213506e
RW
9770 done
9771IFS=$as_save_IFS
1c710c3c 9772
ca9f4b81
AO
9773fi
9774fi
1c710c3c 9775OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9776if test -n "$OBJDUMP"; then
5213506e
RW
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9778$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9779else
5213506e
RW
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781$as_echo "no" >&6; }
ca9f4b81 9782fi
1c710c3c 9783
5213506e 9784
2693c0b0
PB
9785 fi
9786 test -n "$ac_cv_prog_OBJDUMP" && break
9787done
9788
9789if test -z "$ac_cv_prog_OBJDUMP" ; then
9790 set dummy objdump
9791 if test $build = $host ; then
9792 OBJDUMP="$2"
ca9f4b81 9793 else
2693c0b0 9794 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9795 fi
ca9f4b81
AO
9796fi
9797
671aa708
NN
9798
9799
e7a82751
RM
9800if test -n "$READELF"; then
9801 ac_cv_prog_READELF=$READELF
9802elif test -n "$ac_cv_prog_READELF"; then
9803 READELF=$ac_cv_prog_READELF
9804fi
9805
9806if test -n "$ac_cv_prog_READELF"; then
9807 for ncn_progname in readelf; do
9808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9809set dummy ${ncn_progname}; ac_word=$2
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811$as_echo_n "checking for $ac_word... " >&6; }
9812if test "${ac_cv_prog_READELF+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
9814else
9815 if test -n "$READELF"; then
9816 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9817else
9818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819for as_dir in $PATH
9820do
9821 IFS=$as_save_IFS
9822 test -z "$as_dir" && as_dir=.
9823 for ac_exec_ext in '' $ac_executable_extensions; do
9824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9825 ac_cv_prog_READELF="${ncn_progname}"
9826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9827 break 2
9828 fi
9829done
9830 done
9831IFS=$as_save_IFS
9832
9833fi
9834fi
9835READELF=$ac_cv_prog_READELF
9836if test -n "$READELF"; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9838$as_echo "$READELF" >&6; }
9839else
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841$as_echo "no" >&6; }
9842fi
9843
9844
9845 done
9846fi
9847
9848for ncn_progname in readelf; do
9849 if test -n "$ncn_tool_prefix"; then
9850 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9851set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853$as_echo_n "checking for $ac_word... " >&6; }
9854if test "${ac_cv_prog_READELF+set}" = set; then :
9855 $as_echo_n "(cached) " >&6
9856else
9857 if test -n "$READELF"; then
9858 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9859else
9860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861for as_dir in $PATH
9862do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9867 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9869 break 2
9870 fi
9871done
9872 done
9873IFS=$as_save_IFS
9874
9875fi
9876fi
9877READELF=$ac_cv_prog_READELF
9878if test -n "$READELF"; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9880$as_echo "$READELF" >&6; }
9881else
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883$as_echo "no" >&6; }
9884fi
9885
9886
9887 fi
9888 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9889 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9890set dummy ${ncn_progname}; ac_word=$2
9891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892$as_echo_n "checking for $ac_word... " >&6; }
9893if test "${ac_cv_prog_READELF+set}" = set; then :
9894 $as_echo_n "(cached) " >&6
9895else
9896 if test -n "$READELF"; then
9897 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9898else
9899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9900for as_dir in $PATH
9901do
9902 IFS=$as_save_IFS
9903 test -z "$as_dir" && as_dir=.
9904 for ac_exec_ext in '' $ac_executable_extensions; do
9905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9906 ac_cv_prog_READELF="${ncn_progname}"
9907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9908 break 2
9909 fi
9910done
9911 done
9912IFS=$as_save_IFS
9913
9914fi
9915fi
9916READELF=$ac_cv_prog_READELF
9917if test -n "$READELF"; then
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9919$as_echo "$READELF" >&6; }
9920else
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9922$as_echo "no" >&6; }
9923fi
9924
9925
9926 fi
9927 test -n "$ac_cv_prog_READELF" && break
9928done
9929
9930if test -z "$ac_cv_prog_READELF" ; then
9931 set dummy readelf
9932 if test $build = $host ; then
9933 READELF="$2"
9934 else
9935 READELF="${ncn_tool_prefix}$2"
9936 fi
9937fi
9938
9939
9940
671aa708
NN
9941
9942
9943
2abefe3d 9944# Target tools.
1c710c3c 9945
5213506e
RW
9946# Check whether --with-build-time-tools was given.
9947if test "${with_build_time_tools+set}" = set; then :
9948 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9949 x/*) ;;
9950 *)
9951 with_build_time_tools=
5213506e
RW
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9953$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9954 ;;
9955 esac
ca9f4b81 9956else
e8b05380 9957 with_build_time_tools=
5213506e
RW
9958fi
9959
ca9f4b81 9960
278a7a38
AO
9961
9962
9963if test -n "$CC_FOR_TARGET"; then
9964 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9965elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9966 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9967fi
9968
9969if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9970 for ncn_progname in cc gcc; do
9971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9972set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974$as_echo_n "checking for $ac_word... " >&6; }
9975if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
278a7a38
AO
9977else
9978 if test -n "$CC_FOR_TARGET"; then
9979 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9980else
9981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982for as_dir in $PATH
9983do
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
5213506e
RW
9986 for ac_exec_ext in '' $ac_executable_extensions; do
9987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9988 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9990 break 2
9991 fi
9992done
5213506e
RW
9993 done
9994IFS=$as_save_IFS
278a7a38
AO
9995
9996fi
9997fi
9998CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9999if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10001$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10002else
5213506e
RW
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004$as_echo "no" >&6; }
278a7a38
AO
10005fi
10006
5213506e 10007
278a7a38
AO
10008 done
10009fi
10010
10011if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10012 for ncn_progname in cc gcc; do
5213506e
RW
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10014$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10015 if test -x $with_build_time_tools/${ncn_progname}; then
10016 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10018$as_echo "yes" >&6; }
72a7ab82 10019 break
e8b05380 10020 else
5213506e
RW
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022$as_echo "no" >&6; }
72a7ab82
AP
10023 fi
10024 done
4de997d1
PB
10025fi
10026
e8b05380
PB
10027if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10028 for ncn_progname in cc gcc; do
10029 if test -n "$ncn_target_tool_prefix"; then
10030 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10031set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10033$as_echo_n "checking for $ac_word... " >&6; }
10034if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
4de997d1
PB
10036else
10037 if test -n "$CC_FOR_TARGET"; then
10038 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10039else
1c710c3c
DJ
10040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10041for as_dir in $PATH
10042do
10043 IFS=$as_save_IFS
10044 test -z "$as_dir" && as_dir=.
5213506e
RW
10045 for ac_exec_ext in '' $ac_executable_extensions; do
10046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10047 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10049 break 2
10050 fi
10051done
5213506e
RW
10052 done
10053IFS=$as_save_IFS
1c710c3c 10054
4de997d1
PB
10055fi
10056fi
1c710c3c 10057CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10058if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10060$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10061else
5213506e
RW
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10063$as_echo "no" >&6; }
4de997d1
PB
10064fi
10065
5213506e 10066
e8b05380
PB
10067 fi
10068 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10070set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10072$as_echo_n "checking for $ac_word... " >&6; }
10073if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
4de997d1 10075else
2693c0b0
PB
10076 if test -n "$CC_FOR_TARGET"; then
10077 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10078else
1c710c3c
DJ
10079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080for as_dir in $PATH
10081do
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
5213506e
RW
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10086 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10088 break 2
10089 fi
10090done
5213506e
RW
10091 done
10092IFS=$as_save_IFS
1c710c3c 10093
4de997d1
PB
10094fi
10095fi
1c710c3c 10096CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10097if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10099$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10100else
5213506e
RW
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10102$as_echo "no" >&6; }
4de997d1 10103fi
1c710c3c 10104
5213506e 10105
e8b05380
PB
10106 fi
10107 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10108 done
10109fi
1c710c3c 10110
2693c0b0
PB
10111if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10112 set dummy cc gcc
10113 if test $build = $target ; then
10114 CC_FOR_TARGET="$2"
4de997d1 10115 else
2693c0b0 10116 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10117 fi
1c00b503
PB
10118else
10119 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10120fi
10121
278a7a38
AO
10122
10123
10124if test -n "$CXX_FOR_TARGET"; then
10125 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10126elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10127 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10128fi
10129
10130if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10131 for ncn_progname in c++ g++ cxx gxx; do
10132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10133set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135$as_echo_n "checking for $ac_word... " >&6; }
10136if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
278a7a38
AO
10138else
10139 if test -n "$CXX_FOR_TARGET"; then
10140 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10141else
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
5213506e
RW
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10149 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10151 break 2
10152 fi
10153done
5213506e
RW
10154 done
10155IFS=$as_save_IFS
278a7a38
AO
10156
10157fi
10158fi
10159CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10160if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10162$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10163else
5213506e
RW
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165$as_echo "no" >&6; }
278a7a38
AO
10166fi
10167
5213506e 10168
278a7a38
AO
10169 done
10170fi
10171
10172if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10173 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10175$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10176 if test -x $with_build_time_tools/${ncn_progname}; then
10177 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10179$as_echo "yes" >&6; }
e8b05380
PB
10180 break
10181 else
5213506e
RW
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183$as_echo "no" >&6; }
e8b05380
PB
10184 fi
10185 done
10186fi
10187
10188if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10189 for ncn_progname in c++ g++ cxx gxx; do
10190 if test -n "$ncn_target_tool_prefix"; then
10191 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10192set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194$as_echo_n "checking for $ac_word... " >&6; }
10195if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
4de997d1
PB
10197else
10198 if test -n "$CXX_FOR_TARGET"; then
10199 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10200else
1c710c3c
DJ
10201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202for as_dir in $PATH
10203do
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
5213506e
RW
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10208 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10210 break 2
10211 fi
10212done
5213506e
RW
10213 done
10214IFS=$as_save_IFS
1c710c3c 10215
4de997d1
PB
10216fi
10217fi
1c710c3c 10218CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10219if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10221$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10222else
5213506e
RW
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224$as_echo "no" >&6; }
4de997d1
PB
10225fi
10226
5213506e 10227
e8b05380
PB
10228 fi
10229 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10231set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233$as_echo_n "checking for $ac_word... " >&6; }
10234if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
4de997d1 10236else
2693c0b0
PB
10237 if test -n "$CXX_FOR_TARGET"; then
10238 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10239else
1c710c3c
DJ
10240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
5213506e
RW
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10247 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10249 break 2
10250 fi
10251done
5213506e
RW
10252 done
10253IFS=$as_save_IFS
1c710c3c 10254
4de997d1
PB
10255fi
10256fi
1c710c3c 10257CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10258if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10260$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10261else
5213506e
RW
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
4de997d1 10264fi
1c710c3c 10265
5213506e 10266
e8b05380
PB
10267 fi
10268 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10269 done
10270fi
1c710c3c 10271
2693c0b0
PB
10272if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10273 set dummy c++ g++ cxx gxx
10274 if test $build = $target ; then
10275 CXX_FOR_TARGET="$2"
4de997d1 10276 else
2693c0b0 10277 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10278 fi
1c00b503
PB
10279else
10280 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10281fi
10282
278a7a38
AO
10283
10284
10285if test -n "$GCC_FOR_TARGET"; then
10286 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10287elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10288 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10289fi
10290
10291if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10292 for ncn_progname in gcc; do
10293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10294set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296$as_echo_n "checking for $ac_word... " >&6; }
10297if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
278a7a38
AO
10299else
10300 if test -n "$GCC_FOR_TARGET"; then
10301 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10302else
10303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304for as_dir in $PATH
10305do
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
5213506e
RW
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10310 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10312 break 2
10313 fi
10314done
5213506e
RW
10315 done
10316IFS=$as_save_IFS
278a7a38
AO
10317
10318fi
10319fi
10320GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10321if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10323$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10324else
5213506e
RW
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326$as_echo "no" >&6; }
278a7a38
AO
10327fi
10328
5213506e 10329
278a7a38
AO
10330 done
10331fi
10332
10333if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10334 for ncn_progname in gcc; do
5213506e
RW
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10336$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10337 if test -x $with_build_time_tools/${ncn_progname}; then
10338 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10340$as_echo "yes" >&6; }
e8b05380
PB
10341 break
10342 else
5213506e
RW
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
e8b05380
PB
10345 fi
10346 done
10347fi
10348
10349if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10350 for ncn_progname in gcc; do
10351 if test -n "$ncn_target_tool_prefix"; then
10352 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10353set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355$as_echo_n "checking for $ac_word... " >&6; }
10356if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
ca9f4b81 10358else
e8b05380
PB
10359 if test -n "$GCC_FOR_TARGET"; then
10360 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10361else
1c710c3c
DJ
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
5213506e
RW
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10369 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10371 break 2
10372 fi
10373done
5213506e
RW
10374 done
10375IFS=$as_save_IFS
1c710c3c 10376
ca9f4b81
AO
10377fi
10378fi
1c710c3c 10379GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10380if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10382$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10383else
5213506e
RW
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385$as_echo "no" >&6; }
ca9f4b81
AO
10386fi
10387
5213506e 10388
e8b05380
PB
10389 fi
10390 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10392set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394$as_echo_n "checking for $ac_word... " >&6; }
10395if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
ca9f4b81 10397else
e8b05380
PB
10398 if test -n "$GCC_FOR_TARGET"; then
10399 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10400else
1c710c3c
DJ
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
5213506e
RW
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10408 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10410 break 2
10411 fi
10412done
5213506e
RW
10413 done
10414IFS=$as_save_IFS
1c710c3c 10415
ca9f4b81
AO
10416fi
10417fi
1c710c3c 10418GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10419if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10421$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10422else
5213506e
RW
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424$as_echo "no" >&6; }
ca9f4b81 10425fi
1c710c3c 10426
5213506e 10427
e8b05380
PB
10428 fi
10429 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10430 done
10431fi
1c710c3c 10432
e8b05380
PB
10433if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10434 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10435else
10436 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10437fi
10438
278a7a38
AO
10439
10440
10441if test -n "$GCJ_FOR_TARGET"; then
10442 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10443elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10444 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10445fi
10446
10447if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10448 for ncn_progname in gcj; do
10449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10450set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452$as_echo_n "checking for $ac_word... " >&6; }
10453if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10454 $as_echo_n "(cached) " >&6
278a7a38
AO
10455else
10456 if test -n "$GCJ_FOR_TARGET"; then
10457 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10458else
10459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460for as_dir in $PATH
10461do
10462 IFS=$as_save_IFS
10463 test -z "$as_dir" && as_dir=.
5213506e
RW
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10466 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10468 break 2
10469 fi
10470done
5213506e
RW
10471 done
10472IFS=$as_save_IFS
278a7a38
AO
10473
10474fi
10475fi
10476GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10477if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10479$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10480else
5213506e
RW
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482$as_echo "no" >&6; }
278a7a38
AO
10483fi
10484
5213506e 10485
278a7a38
AO
10486 done
10487fi
10488
10489if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10490 for ncn_progname in gcj; do
5213506e
RW
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10492$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10493 if test -x $with_build_time_tools/${ncn_progname}; then
10494 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10496$as_echo "yes" >&6; }
e8b05380
PB
10497 break
10498 else
5213506e
RW
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500$as_echo "no" >&6; }
e8b05380
PB
10501 fi
10502 done
10503fi
10504
10505if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10506 for ncn_progname in gcj; do
10507 if test -n "$ncn_target_tool_prefix"; then
10508 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10509set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10511$as_echo_n "checking for $ac_word... " >&6; }
10512if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
e8b05380 10514else
fb0103e5
RG
10515 if test -n "$GCJ_FOR_TARGET"; then
10516 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10517else
1c710c3c
DJ
10518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10519for as_dir in $PATH
10520do
10521 IFS=$as_save_IFS
10522 test -z "$as_dir" && as_dir=.
5213506e
RW
10523 for ac_exec_ext in '' $ac_executable_extensions; do
10524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10525 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10527 break 2
10528 fi
10529done
5213506e
RW
10530 done
10531IFS=$as_save_IFS
1c710c3c 10532
e8b05380
PB
10533fi
10534fi
278a7a38
AO
10535GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10536if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10538$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10539else
5213506e
RW
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10541$as_echo "no" >&6; }
278a7a38
AO
10542fi
10543
5213506e 10544
278a7a38
AO
10545 fi
10546 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10547 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10548set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550$as_echo_n "checking for $ac_word... " >&6; }
10551if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10552 $as_echo_n "(cached) " >&6
278a7a38
AO
10553else
10554 if test -n "$GCJ_FOR_TARGET"; then
10555 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10556else
10557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558for as_dir in $PATH
10559do
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
5213506e
RW
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10564 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10566 break 2
10567 fi
10568done
5213506e
RW
10569 done
10570IFS=$as_save_IFS
278a7a38
AO
10571
10572fi
10573fi
10574GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10575if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10577$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10578else
5213506e
RW
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580$as_echo "no" >&6; }
278a7a38
AO
10581fi
10582
5213506e 10583
278a7a38
AO
10584 fi
10585 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10586 done
10587fi
10588
10589if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10590 set dummy gcj
10591 if test $build = $target ; then
10592 GCJ_FOR_TARGET="$2"
10593 else
10594 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10595 fi
1c00b503
PB
10596else
10597 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10598fi
10599
10600
10601
10602if test -n "$GFORTRAN_FOR_TARGET"; then
10603 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10604elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10605 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10606fi
10607
278a7a38
AO
10608if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10609 for ncn_progname in gfortran; do
10610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10611set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613$as_echo_n "checking for $ac_word... " >&6; }
10614if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10615 $as_echo_n "(cached) " >&6
e8b05380 10616else
278a7a38
AO
10617 if test -n "$GFORTRAN_FOR_TARGET"; then
10618 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10619else
1c710c3c
DJ
10620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621for as_dir in $PATH
10622do
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
5213506e
RW
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10627 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10629 break 2
10630 fi
10631done
5213506e
RW
10632 done
10633IFS=$as_save_IFS
1c710c3c 10634
e8b05380
PB
10635fi
10636fi
278a7a38
AO
10637GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10638if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10640$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10641else
5213506e
RW
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643$as_echo "no" >&6; }
e8b05380 10644fi
1c710c3c 10645
5213506e 10646
e8b05380
PB
10647 done
10648fi
1c710c3c 10649
278a7a38 10650if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10651 for ncn_progname in gfortran; do
5213506e
RW
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10653$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10654 if test -x $with_build_time_tools/${ncn_progname}; then
10655 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10657$as_echo "yes" >&6; }
e8b05380
PB
10658 break
10659 else
5213506e
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661$as_echo "no" >&6; }
e8b05380
PB
10662 fi
10663 done
10664fi
10665
10666if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10667 for ncn_progname in gfortran; do
10668 if test -n "$ncn_target_tool_prefix"; then
10669 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10670set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10672$as_echo_n "checking for $ac_word... " >&6; }
10673if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10674 $as_echo_n "(cached) " >&6
e8b05380
PB
10675else
10676 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10677 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10678else
10679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10680for as_dir in $PATH
10681do
10682 IFS=$as_save_IFS
10683 test -z "$as_dir" && as_dir=.
5213506e
RW
10684 for ac_exec_ext in '' $ac_executable_extensions; do
10685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10686 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10688 break 2
10689 fi
10690done
5213506e
RW
10691 done
10692IFS=$as_save_IFS
1c710c3c 10693
e8b05380
PB
10694fi
10695fi
1c710c3c 10696GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10697if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10699$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10700else
5213506e
RW
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10702$as_echo "no" >&6; }
e8b05380
PB
10703fi
10704
5213506e 10705
e8b05380
PB
10706 fi
10707 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10708 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10709set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711$as_echo_n "checking for $ac_word... " >&6; }
10712if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
e8b05380
PB
10714else
10715 if test -n "$GFORTRAN_FOR_TARGET"; then
10716 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10717else
1c710c3c
DJ
10718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719for as_dir in $PATH
10720do
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
5213506e
RW
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10725 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10727 break 2
10728 fi
10729done
5213506e
RW
10730 done
10731IFS=$as_save_IFS
1c710c3c 10732
e8b05380
PB
10733fi
10734fi
1c710c3c 10735GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10736if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10738$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10739else
5213506e
RW
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
e8b05380 10742fi
1c710c3c 10743
5213506e 10744
e8b05380
PB
10745 fi
10746 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10747 done
10748fi
1c710c3c 10749
e8b05380
PB
10750if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10751 set dummy gfortran
2693c0b0 10752 if test $build = $target ; then
e8b05380 10753 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10754 else
e8b05380
PB
10755 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10756 fi
1c00b503
PB
10757else
10758 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10759fi
10760
10761
10762
632e2a07
ILT
10763if test -n "$GOC_FOR_TARGET"; then
10764 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10765elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10766 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10767fi
10768
10769if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10770 for ncn_progname in gccgo; do
10771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10772set dummy ${ncn_progname}; ac_word=$2
10773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10774$as_echo_n "checking for $ac_word... " >&6; }
10775if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10776 $as_echo_n "(cached) " >&6
10777else
10778 if test -n "$GOC_FOR_TARGET"; then
10779 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10780else
10781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10782for as_dir in $PATH
10783do
10784 IFS=$as_save_IFS
10785 test -z "$as_dir" && as_dir=.
10786 for ac_exec_ext in '' $ac_executable_extensions; do
10787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10788 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10790 break 2
10791 fi
10792done
10793 done
10794IFS=$as_save_IFS
10795
10796fi
10797fi
10798GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10799if test -n "$GOC_FOR_TARGET"; then
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10801$as_echo "$GOC_FOR_TARGET" >&6; }
10802else
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804$as_echo "no" >&6; }
10805fi
10806
10807
10808 done
10809fi
10810
10811if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10812 for ncn_progname in gccgo; do
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10814$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10815 if test -x $with_build_time_tools/${ncn_progname}; then
10816 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10818$as_echo "yes" >&6; }
10819 break
10820 else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822$as_echo "no" >&6; }
10823 fi
10824 done
10825fi
10826
10827if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10828 for ncn_progname in gccgo; do
10829 if test -n "$ncn_target_tool_prefix"; then
10830 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10831set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833$as_echo_n "checking for $ac_word... " >&6; }
10834if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10835 $as_echo_n "(cached) " >&6
10836else
10837 if test -n "$GOC_FOR_TARGET"; then
10838 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10839else
10840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841for as_dir in $PATH
10842do
10843 IFS=$as_save_IFS
10844 test -z "$as_dir" && as_dir=.
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10847 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849 break 2
10850 fi
10851done
10852 done
10853IFS=$as_save_IFS
10854
10855fi
10856fi
10857GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10858if test -n "$GOC_FOR_TARGET"; then
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10860$as_echo "$GOC_FOR_TARGET" >&6; }
10861else
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863$as_echo "no" >&6; }
10864fi
10865
10866
10867 fi
10868 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10870set dummy ${ncn_progname}; ac_word=$2
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872$as_echo_n "checking for $ac_word... " >&6; }
10873if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
10875else
10876 if test -n "$GOC_FOR_TARGET"; then
10877 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10878else
10879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880for as_dir in $PATH
10881do
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10886 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 break 2
10889 fi
10890done
10891 done
10892IFS=$as_save_IFS
10893
10894fi
10895fi
10896GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10897if test -n "$GOC_FOR_TARGET"; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10899$as_echo "$GOC_FOR_TARGET" >&6; }
10900else
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902$as_echo "no" >&6; }
10903fi
10904
10905
10906 fi
10907 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10908 done
10909fi
10910
10911if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10912 set dummy gccgo
10913 if test $build = $target ; then
10914 GOC_FOR_TARGET="$2"
10915 else
10916 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10917 fi
10918else
10919 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10920fi
10921
10922
10923
e8b05380
PB
10924cat > conftest.c << \EOF
10925#ifdef __GNUC__
10926 gcc_yay;
10927#endif
10928EOF
10929if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10930 have_gcc_for_target=yes
10931else
10932 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10933 have_gcc_for_target=no
10934fi
10935rm conftest.c
10936
10937
10938
10939
10940if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10941 if test -n "$with_build_time_tools"; then
5213506e
RW
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10943$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10944 if test -x $with_build_time_tools/ar; then
10945 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10946 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10948$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10949 else
5213506e
RW
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10951$as_echo "no" >&6; }
d1f8db0c 10952 fi
e8b05380
PB
10953 elif test $build != $host && test $have_gcc_for_target = yes; then
10954 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10955 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10956 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10957 fi
10958fi
3e19841a 10959if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10960 # Extract the first word of "ar", so it can be a program name with args.
10961set dummy ar; ac_word=$2
5213506e
RW
10962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963$as_echo_n "checking for $ac_word... " >&6; }
10964if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10965 $as_echo_n "(cached) " >&6
e8b05380 10966else
1c710c3c
DJ
10967 case $AR_FOR_TARGET in
10968 [\\/]* | ?:[\\/]*)
e8b05380
PB
10969 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10970 ;;
e8b05380 10971 *)
1c710c3c
DJ
10972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $gcc_cv_tool_dirs
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
5213506e
RW
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10979 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10981 break 2
10982 fi
10983done
5213506e
RW
10984 done
10985IFS=$as_save_IFS
1c710c3c 10986
e8b05380
PB
10987 ;;
10988esac
10989fi
1c710c3c 10990AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10991if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10993$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10994else
5213506e
RW
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10996$as_echo "no" >&6; }
4de997d1
PB
10997fi
10998
5213506e 10999
e8b05380
PB
11000fi
11001if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11002
11003
11004if test -n "$AR_FOR_TARGET"; then
11005 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11006elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11007 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11008fi
11009
11010if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11011 for ncn_progname in ar; do
11012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11013set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11015$as_echo_n "checking for $ac_word... " >&6; }
11016if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11017 $as_echo_n "(cached) " >&6
278a7a38
AO
11018else
11019 if test -n "$AR_FOR_TARGET"; then
11020 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11021else
11022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023for as_dir in $PATH
11024do
11025 IFS=$as_save_IFS
11026 test -z "$as_dir" && as_dir=.
5213506e
RW
11027 for ac_exec_ext in '' $ac_executable_extensions; do
11028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11029 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11031 break 2
11032 fi
11033done
5213506e
RW
11034 done
11035IFS=$as_save_IFS
278a7a38
AO
11036
11037fi
11038fi
11039AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11040if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11042$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11043else
5213506e
RW
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045$as_echo "no" >&6; }
278a7a38
AO
11046fi
11047
5213506e 11048
278a7a38
AO
11049 done
11050fi
11051
11052if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11053 for ncn_progname in ar; do
5213506e
RW
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11055$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11056 if test -x $with_build_time_tools/${ncn_progname}; then
11057 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059$as_echo "yes" >&6; }
e8b05380
PB
11060 break
11061 else
5213506e
RW
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
e8b05380
PB
11064 fi
11065 done
11066fi
11067
11068if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11069 for ncn_progname in ar; do
11070 if test -n "$ncn_target_tool_prefix"; then
11071 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11072set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074$as_echo_n "checking for $ac_word... " >&6; }
11075if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11076 $as_echo_n "(cached) " >&6
4de997d1 11077else
e8b05380
PB
11078 if test -n "$AR_FOR_TARGET"; then
11079 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11080else
1c710c3c
DJ
11081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082for as_dir in $PATH
11083do
11084 IFS=$as_save_IFS
11085 test -z "$as_dir" && as_dir=.
5213506e
RW
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11088 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11090 break 2
11091 fi
11092done
5213506e
RW
11093 done
11094IFS=$as_save_IFS
1c710c3c 11095
4de997d1
PB
11096fi
11097fi
1c710c3c 11098AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11099if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11101$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11102else
5213506e
RW
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104$as_echo "no" >&6; }
4de997d1
PB
11105fi
11106
5213506e 11107
e8b05380
PB
11108 fi
11109 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11111set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11113$as_echo_n "checking for $ac_word... " >&6; }
11114if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11115 $as_echo_n "(cached) " >&6
e8b05380
PB
11116else
11117 if test -n "$AR_FOR_TARGET"; then
11118 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11119else
1c710c3c
DJ
11120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11121for as_dir in $PATH
11122do
11123 IFS=$as_save_IFS
11124 test -z "$as_dir" && as_dir=.
5213506e
RW
11125 for ac_exec_ext in '' $ac_executable_extensions; do
11126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11127 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11129 break 2
11130 fi
11131done
5213506e
RW
11132 done
11133IFS=$as_save_IFS
1c710c3c 11134
e8b05380
PB
11135fi
11136fi
1c710c3c 11137AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11138if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11140$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11141else
5213506e
RW
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11143$as_echo "no" >&6; }
e8b05380 11144fi
1c710c3c 11145
5213506e 11146
e8b05380
PB
11147 fi
11148 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11149 done
11150fi
1c710c3c 11151
e8b05380
PB
11152if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11153 set dummy ar
11154 if test $build = $target ; then
11155 AR_FOR_TARGET="$2"
11156 else
11157 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11158 fi
1c00b503
PB
11159else
11160 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11161fi
11162
d1f8db0c
PB
11163else
11164 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11165fi
11166
11167
11168
11169
11170if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11171 if test -n "$with_build_time_tools"; then
5213506e
RW
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11173$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11174 if test -x $with_build_time_tools/as; then
11175 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11176 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11178$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11179 else
5213506e
RW
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181$as_echo "no" >&6; }
d1f8db0c 11182 fi
e8b05380
PB
11183 elif test $build != $host && test $have_gcc_for_target = yes; then
11184 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11185 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11186 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11187 fi
11188fi
3e19841a 11189if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11190 # Extract the first word of "as", so it can be a program name with args.
11191set dummy as; ac_word=$2
5213506e
RW
11192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11193$as_echo_n "checking for $ac_word... " >&6; }
11194if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11195 $as_echo_n "(cached) " >&6
e8b05380 11196else
1c710c3c
DJ
11197 case $AS_FOR_TARGET in
11198 [\\/]* | ?:[\\/]*)
e8b05380
PB
11199 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11200 ;;
e8b05380 11201 *)
1c710c3c
DJ
11202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $gcc_cv_tool_dirs
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
5213506e
RW
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11209 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11211 break 2
11212 fi
11213done
5213506e
RW
11214 done
11215IFS=$as_save_IFS
1c710c3c 11216
e8b05380
PB
11217 ;;
11218esac
11219fi
1c710c3c 11220AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11221if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11223$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11224else
5213506e
RW
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226$as_echo "no" >&6; }
e8b05380
PB
11227fi
11228
5213506e 11229
e8b05380
PB
11230fi
11231if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11232
11233
11234if test -n "$AS_FOR_TARGET"; then
11235 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11236elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11237 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11238fi
11239
11240if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11241 for ncn_progname in as; do
11242 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11243set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11245$as_echo_n "checking for $ac_word... " >&6; }
11246if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
278a7a38
AO
11248else
11249 if test -n "$AS_FOR_TARGET"; then
11250 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11251else
11252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253for as_dir in $PATH
11254do
11255 IFS=$as_save_IFS
11256 test -z "$as_dir" && as_dir=.
5213506e
RW
11257 for ac_exec_ext in '' $ac_executable_extensions; do
11258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11259 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11261 break 2
11262 fi
11263done
5213506e
RW
11264 done
11265IFS=$as_save_IFS
278a7a38
AO
11266
11267fi
11268fi
11269AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11270if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11272$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11273else
5213506e
RW
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275$as_echo "no" >&6; }
278a7a38
AO
11276fi
11277
5213506e 11278
278a7a38
AO
11279 done
11280fi
11281
11282if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11283 for ncn_progname in as; do
5213506e
RW
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11285$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11286 if test -x $with_build_time_tools/${ncn_progname}; then
11287 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11289$as_echo "yes" >&6; }
e8b05380
PB
11290 break
11291 else
5213506e
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293$as_echo "no" >&6; }
e8b05380
PB
11294 fi
11295 done
11296fi
11297
11298if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11299 for ncn_progname in as; do
11300 if test -n "$ncn_target_tool_prefix"; then
11301 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11302set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11304$as_echo_n "checking for $ac_word... " >&6; }
11305if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11306 $as_echo_n "(cached) " >&6
e8b05380
PB
11307else
11308 if test -n "$AS_FOR_TARGET"; then
11309 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11310else
1c710c3c
DJ
11311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312for as_dir in $PATH
11313do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
5213506e
RW
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11318 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11320 break 2
11321 fi
11322done
5213506e
RW
11323 done
11324IFS=$as_save_IFS
1c710c3c 11325
e8b05380
PB
11326fi
11327fi
1c710c3c 11328AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11329if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11331$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11332else
5213506e
RW
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334$as_echo "no" >&6; }
e8b05380
PB
11335fi
11336
5213506e 11337
e8b05380
PB
11338 fi
11339 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11341set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343$as_echo_n "checking for $ac_word... " >&6; }
11344if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11345 $as_echo_n "(cached) " >&6
4de997d1 11346else
e8b05380
PB
11347 if test -n "$AS_FOR_TARGET"; then
11348 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11349else
1c710c3c
DJ
11350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351for as_dir in $PATH
11352do
11353 IFS=$as_save_IFS
11354 test -z "$as_dir" && as_dir=.
5213506e
RW
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11357 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11359 break 2
11360 fi
11361done
5213506e
RW
11362 done
11363IFS=$as_save_IFS
1c710c3c 11364
4de997d1
PB
11365fi
11366fi
1c710c3c 11367AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11368if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11370$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11371else
5213506e
RW
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373$as_echo "no" >&6; }
4de997d1 11374fi
1c710c3c 11375
5213506e 11376
e8b05380
PB
11377 fi
11378 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11379 done
11380fi
1c710c3c 11381
e8b05380
PB
11382if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11383 set dummy as
11384 if test $build = $target ; then
11385 AS_FOR_TARGET="$2"
11386 else
11387 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11388 fi
1c00b503
PB
11389else
11390 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11391fi
2693c0b0 11392
d1f8db0c
PB
11393else
11394 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11395fi
11396
e8b05380
PB
11397
11398
11399
11400if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11401 if test -n "$with_build_time_tools"; then
5213506e
RW
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11403$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11404 if test -x $with_build_time_tools/dlltool; then
11405 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11406 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11408$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11409 else
5213506e
RW
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411$as_echo "no" >&6; }
d1f8db0c 11412 fi
e8b05380
PB
11413 elif test $build != $host && test $have_gcc_for_target = yes; then
11414 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11415 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11416 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11417 fi
11418fi
3e19841a 11419if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11420 # Extract the first word of "dlltool", so it can be a program name with args.
11421set dummy dlltool; ac_word=$2
5213506e
RW
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423$as_echo_n "checking for $ac_word... " >&6; }
11424if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11425 $as_echo_n "(cached) " >&6
4de997d1 11426else
1c710c3c
DJ
11427 case $DLLTOOL_FOR_TARGET in
11428 [\\/]* | ?:[\\/]*)
e8b05380
PB
11429 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11430 ;;
e8b05380 11431 *)
1c710c3c
DJ
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433for as_dir in $gcc_cv_tool_dirs
11434do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
5213506e
RW
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11439 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11441 break 2
11442 fi
11443done
5213506e
RW
11444 done
11445IFS=$as_save_IFS
1c710c3c 11446
e8b05380
PB
11447 ;;
11448esac
4de997d1 11449fi
1c710c3c 11450DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11451if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11453$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11454else
5213506e
RW
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456$as_echo "no" >&6; }
4de997d1
PB
11457fi
11458
5213506e 11459
e8b05380
PB
11460fi
11461if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11462
11463
11464if test -n "$DLLTOOL_FOR_TARGET"; then
11465 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11466elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11467 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11468fi
11469
11470if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11471 for ncn_progname in dlltool; do
11472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11473set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475$as_echo_n "checking for $ac_word... " >&6; }
11476if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11477 $as_echo_n "(cached) " >&6
278a7a38
AO
11478else
11479 if test -n "$DLLTOOL_FOR_TARGET"; then
11480 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11481else
11482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11483for as_dir in $PATH
11484do
11485 IFS=$as_save_IFS
11486 test -z "$as_dir" && as_dir=.
5213506e
RW
11487 for ac_exec_ext in '' $ac_executable_extensions; do
11488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11489 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11491 break 2
11492 fi
11493done
5213506e
RW
11494 done
11495IFS=$as_save_IFS
278a7a38
AO
11496
11497fi
11498fi
11499DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11500if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11502$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11503else
5213506e
RW
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505$as_echo "no" >&6; }
278a7a38
AO
11506fi
11507
5213506e 11508
278a7a38
AO
11509 done
11510fi
11511
11512if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11513 for ncn_progname in dlltool; do
5213506e
RW
11514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11515$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11516 if test -x $with_build_time_tools/${ncn_progname}; then
11517 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11519$as_echo "yes" >&6; }
e8b05380
PB
11520 break
11521 else
5213506e
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523$as_echo "no" >&6; }
e8b05380
PB
11524 fi
11525 done
11526fi
11527
11528if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11529 for ncn_progname in dlltool; do
11530 if test -n "$ncn_target_tool_prefix"; then
11531 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11532set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11534$as_echo_n "checking for $ac_word... " >&6; }
11535if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11536 $as_echo_n "(cached) " >&6
4de997d1 11537else
e8b05380
PB
11538 if test -n "$DLLTOOL_FOR_TARGET"; then
11539 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11540else
1c710c3c
DJ
11541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542for as_dir in $PATH
11543do
11544 IFS=$as_save_IFS
11545 test -z "$as_dir" && as_dir=.
5213506e
RW
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11548 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11550 break 2
11551 fi
11552done
5213506e
RW
11553 done
11554IFS=$as_save_IFS
1c710c3c 11555
4de997d1
PB
11556fi
11557fi
1c710c3c 11558DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11559if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11561$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11562else
5213506e
RW
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564$as_echo "no" >&6; }
4de997d1 11565fi
4de997d1 11566
5213506e 11567
e8b05380
PB
11568 fi
11569 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11571set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11573$as_echo_n "checking for $ac_word... " >&6; }
11574if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11575 $as_echo_n "(cached) " >&6
4de997d1 11576else
e8b05380
PB
11577 if test -n "$DLLTOOL_FOR_TARGET"; then
11578 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11579else
1c710c3c
DJ
11580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581for as_dir in $PATH
11582do
11583 IFS=$as_save_IFS
11584 test -z "$as_dir" && as_dir=.
5213506e
RW
11585 for ac_exec_ext in '' $ac_executable_extensions; do
11586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11587 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11589 break 2
11590 fi
11591done
5213506e
RW
11592 done
11593IFS=$as_save_IFS
1c710c3c 11594
4de997d1
PB
11595fi
11596fi
1c710c3c 11597DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11598if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11600$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11601else
5213506e
RW
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11603$as_echo "no" >&6; }
4de997d1 11604fi
1c710c3c 11605
5213506e 11606
e8b05380
PB
11607 fi
11608 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11609 done
11610fi
1c710c3c 11611
e8b05380
PB
11612if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11613 set dummy dlltool
11614 if test $build = $target ; then
11615 DLLTOOL_FOR_TARGET="$2"
11616 else
11617 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11618 fi
1c00b503
PB
11619else
11620 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11621fi
11622
d1f8db0c
PB
11623else
11624 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11625fi
11626
4de997d1 11627
e8b05380
PB
11628
11629
11630if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11631 if test -n "$with_build_time_tools"; then
5213506e
RW
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11633$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11634 if test -x $with_build_time_tools/ld; then
11635 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11636 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11638$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11639 else
5213506e
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11641$as_echo "no" >&6; }
d1f8db0c 11642 fi
e8b05380
PB
11643 elif test $build != $host && test $have_gcc_for_target = yes; then
11644 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11645 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11646 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11647 fi
e8b05380 11648fi
3e19841a 11649if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11650 # Extract the first word of "ld", so it can be a program name with args.
11651set dummy ld; ac_word=$2
5213506e
RW
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11653$as_echo_n "checking for $ac_word... " >&6; }
11654if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
4de997d1 11656else
1c710c3c
DJ
11657 case $LD_FOR_TARGET in
11658 [\\/]* | ?:[\\/]*)
e8b05380
PB
11659 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11660 ;;
e8b05380 11661 *)
1c710c3c
DJ
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $gcc_cv_tool_dirs
11664do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
5213506e
RW
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11669 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11671 break 2
11672 fi
11673done
5213506e
RW
11674 done
11675IFS=$as_save_IFS
1c710c3c 11676
e8b05380
PB
11677 ;;
11678esac
4de997d1 11679fi
1c710c3c 11680LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11681if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11683$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11684else
5213506e
RW
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686$as_echo "no" >&6; }
4de997d1 11687fi
2693c0b0 11688
5213506e 11689
e8b05380
PB
11690fi
11691if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11692
11693
11694if test -n "$LD_FOR_TARGET"; then
11695 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11696elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11697 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11698fi
11699
11700if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11701 for ncn_progname in ld; do
11702 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11703set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11705$as_echo_n "checking for $ac_word... " >&6; }
11706if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11707 $as_echo_n "(cached) " >&6
278a7a38
AO
11708else
11709 if test -n "$LD_FOR_TARGET"; then
11710 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11711else
11712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11713for as_dir in $PATH
11714do
11715 IFS=$as_save_IFS
11716 test -z "$as_dir" && as_dir=.
5213506e
RW
11717 for ac_exec_ext in '' $ac_executable_extensions; do
11718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11719 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11721 break 2
11722 fi
11723done
5213506e
RW
11724 done
11725IFS=$as_save_IFS
278a7a38
AO
11726
11727fi
11728fi
11729LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11730if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11732$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11733else
5213506e
RW
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735$as_echo "no" >&6; }
278a7a38
AO
11736fi
11737
5213506e 11738
278a7a38
AO
11739 done
11740fi
11741
11742if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11743 for ncn_progname in ld; do
5213506e
RW
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11745$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11746 if test -x $with_build_time_tools/${ncn_progname}; then
11747 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11749$as_echo "yes" >&6; }
e8b05380
PB
11750 break
11751 else
5213506e
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
e8b05380
PB
11754 fi
11755 done
ca9f4b81
AO
11756fi
11757
e8b05380
PB
11758if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11759 for ncn_progname in ld; do
11760 if test -n "$ncn_target_tool_prefix"; then
11761 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11762set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764$as_echo_n "checking for $ac_word... " >&6; }
11765if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11766 $as_echo_n "(cached) " >&6
ca9f4b81 11767else
4de997d1
PB
11768 if test -n "$LD_FOR_TARGET"; then
11769 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11770else
1c710c3c
DJ
11771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772for as_dir in $PATH
11773do
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
5213506e
RW
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11778 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11780 break 2
11781 fi
11782done
5213506e
RW
11783 done
11784IFS=$as_save_IFS
1c710c3c 11785
ca9f4b81
AO
11786fi
11787fi
1c710c3c 11788LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11789if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11791$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11792else
5213506e
RW
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794$as_echo "no" >&6; }
ca9f4b81
AO
11795fi
11796
5213506e 11797
e8b05380
PB
11798 fi
11799 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11800 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11801set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803$as_echo_n "checking for $ac_word... " >&6; }
11804if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11805 $as_echo_n "(cached) " >&6
ca9f4b81 11806else
2693c0b0
PB
11807 if test -n "$LD_FOR_TARGET"; then
11808 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11809else
1c710c3c
DJ
11810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811for as_dir in $PATH
11812do
11813 IFS=$as_save_IFS
11814 test -z "$as_dir" && as_dir=.
5213506e
RW
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11817 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11819 break 2
11820 fi
11821done
5213506e
RW
11822 done
11823IFS=$as_save_IFS
1c710c3c 11824
ca9f4b81
AO
11825fi
11826fi
1c710c3c 11827LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11828if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11830$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11831else
5213506e
RW
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11833$as_echo "no" >&6; }
ca9f4b81 11834fi
1c710c3c 11835
5213506e 11836
e8b05380
PB
11837 fi
11838 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11839 done
11840fi
1c710c3c 11841
2693c0b0
PB
11842if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11843 set dummy ld
11844 if test $build = $target ; then
11845 LD_FOR_TARGET="$2"
ca9f4b81 11846 else
2693c0b0 11847 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11848 fi
1c00b503
PB
11849else
11850 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11851fi
11852
d1f8db0c
PB
11853else
11854 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11855fi
11856
11857
11858
11859
11860if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11861 if test -n "$with_build_time_tools"; then
5213506e
RW
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11863$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11864 if test -x $with_build_time_tools/lipo; then
11865 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11866 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11868$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11869 else
5213506e
RW
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871$as_echo "no" >&6; }
d1f8db0c 11872 fi
e8b05380
PB
11873 elif test $build != $host && test $have_gcc_for_target = yes; then
11874 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11875 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11876 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11877 fi
11878fi
278a7a38
AO
11879if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11880 # Extract the first word of "lipo", so it can be a program name with args.
11881set dummy lipo; ac_word=$2
5213506e
RW
11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11883$as_echo_n "checking for $ac_word... " >&6; }
11884if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
278a7a38
AO
11886else
11887 case $LIPO_FOR_TARGET in
11888 [\\/]* | ?:[\\/]*)
11889 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11890 ;;
11891 *)
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $gcc_cv_tool_dirs
11894do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
5213506e
RW
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11899 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11901 break 2
11902 fi
11903done
5213506e
RW
11904 done
11905IFS=$as_save_IFS
278a7a38
AO
11906
11907 ;;
11908esac
11909fi
11910LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11911if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11913$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11914else
5213506e
RW
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916$as_echo "no" >&6; }
278a7a38
AO
11917fi
11918
5213506e 11919
278a7a38
AO
11920fi
11921if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11922
11923
11924if test -n "$LIPO_FOR_TARGET"; then
11925 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11926elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11927 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11928fi
11929
11930if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11931 for ncn_progname in lipo; do
11932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11933set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11935$as_echo_n "checking for $ac_word... " >&6; }
11936if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11937 $as_echo_n "(cached) " >&6
e8b05380 11938else
278a7a38
AO
11939 if test -n "$LIPO_FOR_TARGET"; then
11940 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11941else
11942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11943for as_dir in $PATH
1c710c3c
DJ
11944do
11945 IFS=$as_save_IFS
11946 test -z "$as_dir" && as_dir=.
5213506e
RW
11947 for ac_exec_ext in '' $ac_executable_extensions; do
11948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11949 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11951 break 2
11952 fi
11953done
5213506e
RW
11954 done
11955IFS=$as_save_IFS
1c710c3c 11956
e8b05380 11957fi
278a7a38
AO
11958fi
11959LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11960if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11962$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11963else
5213506e
RW
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965$as_echo "no" >&6; }
e8b05380
PB
11966fi
11967
5213506e 11968
278a7a38 11969 done
e8b05380 11970fi
278a7a38
AO
11971
11972if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11973 for ncn_progname in lipo; do
5213506e
RW
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11975$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11976 if test -x $with_build_time_tools/${ncn_progname}; then
11977 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11979$as_echo "yes" >&6; }
e8b05380
PB
11980 break
11981 else
5213506e
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
e8b05380
PB
11984 fi
11985 done
11986fi
11987
11988if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11989 for ncn_progname in lipo; do
11990 if test -n "$ncn_target_tool_prefix"; then
11991 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11992set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11994$as_echo_n "checking for $ac_word... " >&6; }
11995if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11996 $as_echo_n "(cached) " >&6
040b1c5a
GK
11997else
11998 if test -n "$LIPO_FOR_TARGET"; then
11999 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12000else
1c710c3c
DJ
12001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002for as_dir in $PATH
12003do
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
5213506e
RW
12006 for ac_exec_ext in '' $ac_executable_extensions; do
12007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12008 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12010 break 2
12011 fi
12012done
5213506e
RW
12013 done
12014IFS=$as_save_IFS
1c710c3c 12015
040b1c5a
GK
12016fi
12017fi
1c710c3c 12018LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12019if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12021$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12022else
5213506e
RW
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024$as_echo "no" >&6; }
040b1c5a
GK
12025fi
12026
5213506e 12027
e8b05380
PB
12028 fi
12029 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12031set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12033$as_echo_n "checking for $ac_word... " >&6; }
12034if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12035 $as_echo_n "(cached) " >&6
040b1c5a
GK
12036else
12037 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12038 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12039else
1c710c3c
DJ
12040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041for as_dir in $PATH
12042do
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
5213506e
RW
12045 for ac_exec_ext in '' $ac_executable_extensions; do
12046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12047 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12049 break 2
12050 fi
12051done
5213506e
RW
12052 done
12053IFS=$as_save_IFS
1c710c3c 12054
040b1c5a
GK
12055fi
12056fi
1c710c3c 12057LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12058if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12060$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12061else
5213506e
RW
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063$as_echo "no" >&6; }
040b1c5a 12064fi
1c710c3c 12065
5213506e 12066
e8b05380
PB
12067 fi
12068 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12069 done
12070fi
1c710c3c 12071
040b1c5a
GK
12072if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12073 set dummy lipo
12074 if test $build = $target ; then
12075 LIPO_FOR_TARGET="$2"
12076 else
12077 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12078 fi
1c00b503
PB
12079else
12080 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12081fi
12082
d1f8db0c
PB
12083else
12084 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12085fi
12086
12087
12088
12089
12090if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12091 if test -n "$with_build_time_tools"; then
5213506e
RW
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12093$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12094 if test -x $with_build_time_tools/nm; then
12095 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12096 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12098$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12099 else
5213506e
RW
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12101$as_echo "no" >&6; }
d1f8db0c 12102 fi
e8b05380
PB
12103 elif test $build != $host && test $have_gcc_for_target = yes; then
12104 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12105 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12106 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12107 fi
12108fi
3e19841a 12109if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12110 # Extract the first word of "nm", so it can be a program name with args.
12111set dummy nm; ac_word=$2
5213506e
RW
12112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12113$as_echo_n "checking for $ac_word... " >&6; }
12114if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12115 $as_echo_n "(cached) " >&6
e8b05380 12116else
1c710c3c
DJ
12117 case $NM_FOR_TARGET in
12118 [\\/]* | ?:[\\/]*)
e8b05380
PB
12119 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12120 ;;
e8b05380 12121 *)
1c710c3c
DJ
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123for as_dir in $gcc_cv_tool_dirs
12124do
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
5213506e
RW
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12129 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12131 break 2
12132 fi
12133done
5213506e
RW
12134 done
12135IFS=$as_save_IFS
1c710c3c 12136
e8b05380
PB
12137 ;;
12138esac
12139fi
1c710c3c 12140NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12141if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12143$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12144else
5213506e
RW
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12146$as_echo "no" >&6; }
e8b05380
PB
12147fi
12148
5213506e 12149
e8b05380
PB
12150fi
12151if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12152
12153
12154if test -n "$NM_FOR_TARGET"; then
12155 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12156elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12157 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12158fi
12159
12160if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12161 for ncn_progname in nm; do
12162 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12163set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165$as_echo_n "checking for $ac_word... " >&6; }
12166if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12167 $as_echo_n "(cached) " >&6
278a7a38
AO
12168else
12169 if test -n "$NM_FOR_TARGET"; then
12170 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12171else
12172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173for as_dir in $PATH
12174do
12175 IFS=$as_save_IFS
12176 test -z "$as_dir" && as_dir=.
5213506e
RW
12177 for ac_exec_ext in '' $ac_executable_extensions; do
12178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12179 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12181 break 2
12182 fi
12183done
5213506e
RW
12184 done
12185IFS=$as_save_IFS
278a7a38
AO
12186
12187fi
12188fi
12189NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12190if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12192$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12193else
5213506e
RW
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195$as_echo "no" >&6; }
278a7a38
AO
12196fi
12197
5213506e 12198
278a7a38
AO
12199 done
12200fi
12201
12202if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12203 for ncn_progname in nm; do
5213506e
RW
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12205$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12206 if test -x $with_build_time_tools/${ncn_progname}; then
12207 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12209$as_echo "yes" >&6; }
e8b05380
PB
12210 break
12211 else
5213506e
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
e8b05380
PB
12214 fi
12215 done
12216fi
12217
12218if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12219 for ncn_progname in nm; do
12220 if test -n "$ncn_target_tool_prefix"; then
12221 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12222set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12224$as_echo_n "checking for $ac_word... " >&6; }
12225if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12226 $as_echo_n "(cached) " >&6
ca9f4b81 12227else
4de997d1
PB
12228 if test -n "$NM_FOR_TARGET"; then
12229 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12230else
1c710c3c
DJ
12231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
5213506e
RW
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12238 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12240 break 2
12241 fi
12242done
5213506e
RW
12243 done
12244IFS=$as_save_IFS
1c710c3c 12245
ca9f4b81
AO
12246fi
12247fi
1c710c3c 12248NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12249if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12251$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12252else
5213506e
RW
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
ca9f4b81
AO
12255fi
12256
5213506e 12257
e8b05380
PB
12258 fi
12259 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12260 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12261set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
12264if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12265 $as_echo_n "(cached) " >&6
ca9f4b81 12266else
2693c0b0
PB
12267 if test -n "$NM_FOR_TARGET"; then
12268 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12269else
1c710c3c
DJ
12270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271for as_dir in $PATH
12272do
12273 IFS=$as_save_IFS
12274 test -z "$as_dir" && as_dir=.
5213506e
RW
12275 for ac_exec_ext in '' $ac_executable_extensions; do
12276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12277 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12279 break 2
12280 fi
12281done
5213506e
RW
12282 done
12283IFS=$as_save_IFS
1c710c3c 12284
ca9f4b81
AO
12285fi
12286fi
1c710c3c 12287NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12288if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12290$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12291else
5213506e
RW
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
ca9f4b81 12294fi
1c710c3c 12295
5213506e 12296
e8b05380
PB
12297 fi
12298 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12299 done
12300fi
1c710c3c 12301
2693c0b0
PB
12302if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12303 set dummy nm
12304 if test $build = $target ; then
12305 NM_FOR_TARGET="$2"
ca9f4b81 12306 else
2693c0b0 12307 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12308 fi
1c00b503
PB
12309else
12310 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12311fi
12312
d1f8db0c
PB
12313else
12314 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12315fi
12316
12317
12318
12319
9bccfdf5
AP
12320if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12321 if test -n "$with_build_time_tools"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12323$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12324 if test -x $with_build_time_tools/objcopy; then
12325 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12326 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12328$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12329 else
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12331$as_echo "no" >&6; }
12332 fi
12333 elif test $build != $host && test $have_gcc_for_target = yes; then
12334 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12335 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12336 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12337 fi
12338fi
12339if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12340 # Extract the first word of "objcopy", so it can be a program name with args.
12341set dummy objcopy; ac_word=$2
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343$as_echo_n "checking for $ac_word... " >&6; }
12344if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12345 $as_echo_n "(cached) " >&6
12346else
12347 case $OBJCOPY_FOR_TARGET in
12348 [\\/]* | ?:[\\/]*)
12349 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12350 ;;
12351 *)
12352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353for as_dir in $gcc_cv_tool_dirs
12354do
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12359 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12361 break 2
12362 fi
12363done
12364 done
12365IFS=$as_save_IFS
12366
12367 ;;
12368esac
12369fi
12370OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12371if test -n "$OBJCOPY_FOR_TARGET"; then
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12373$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12374else
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
12377fi
12378
12379
12380fi
12381if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12382
12383
12384if test -n "$OBJCOPY_FOR_TARGET"; then
12385 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12386elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12387 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12388fi
12389
12390if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12391 for ncn_progname in objcopy; do
12392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12393set dummy ${ncn_progname}; ac_word=$2
12394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12395$as_echo_n "checking for $ac_word... " >&6; }
12396if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12397 $as_echo_n "(cached) " >&6
12398else
12399 if test -n "$OBJCOPY_FOR_TARGET"; then
12400 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12401else
12402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403for as_dir in $PATH
12404do
12405 IFS=$as_save_IFS
12406 test -z "$as_dir" && as_dir=.
12407 for ac_exec_ext in '' $ac_executable_extensions; do
12408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12409 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12411 break 2
12412 fi
12413done
12414 done
12415IFS=$as_save_IFS
12416
12417fi
12418fi
12419OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12420if test -n "$OBJCOPY_FOR_TARGET"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12422$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12423else
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425$as_echo "no" >&6; }
12426fi
12427
12428
12429 done
12430fi
12431
12432if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12433 for ncn_progname in objcopy; do
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12435$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12436 if test -x $with_build_time_tools/${ncn_progname}; then
12437 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12439$as_echo "yes" >&6; }
12440 break
12441 else
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
12444 fi
12445 done
12446fi
12447
12448if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12449 for ncn_progname in objcopy; do
12450 if test -n "$ncn_target_tool_prefix"; then
12451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12452set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12454$as_echo_n "checking for $ac_word... " >&6; }
12455if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12457else
12458 if test -n "$OBJCOPY_FOR_TARGET"; then
12459 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12460else
12461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12462for as_dir in $PATH
12463do
12464 IFS=$as_save_IFS
12465 test -z "$as_dir" && as_dir=.
12466 for ac_exec_ext in '' $ac_executable_extensions; do
12467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12468 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470 break 2
12471 fi
12472done
12473 done
12474IFS=$as_save_IFS
12475
12476fi
12477fi
12478OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12479if test -n "$OBJCOPY_FOR_TARGET"; then
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12481$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12482else
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
12485fi
12486
12487
12488 fi
12489 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12491set dummy ${ncn_progname}; ac_word=$2
12492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12493$as_echo_n "checking for $ac_word... " >&6; }
12494if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12495 $as_echo_n "(cached) " >&6
12496else
12497 if test -n "$OBJCOPY_FOR_TARGET"; then
12498 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12499else
12500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12501for as_dir in $PATH
12502do
12503 IFS=$as_save_IFS
12504 test -z "$as_dir" && as_dir=.
12505 for ac_exec_ext in '' $ac_executable_extensions; do
12506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12507 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12509 break 2
12510 fi
12511done
12512 done
12513IFS=$as_save_IFS
12514
12515fi
12516fi
12517OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12518if test -n "$OBJCOPY_FOR_TARGET"; then
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12520$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12521else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12523$as_echo "no" >&6; }
12524fi
12525
12526
12527 fi
12528 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12529 done
12530fi
12531
12532if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12533 set dummy objcopy
12534 if test $build = $target ; then
12535 OBJCOPY_FOR_TARGET="$2"
12536 else
12537 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12538 fi
12539else
12540 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12541fi
12542
12543else
12544 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12545fi
12546
12547
12548
12549
e8b05380
PB
12550if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12551 if test -n "$with_build_time_tools"; then
5213506e
RW
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12553$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12554 if test -x $with_build_time_tools/objdump; then
12555 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12556 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12558$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12559 else
5213506e
RW
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12561$as_echo "no" >&6; }
d1f8db0c 12562 fi
e8b05380
PB
12563 elif test $build != $host && test $have_gcc_for_target = yes; then
12564 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12565 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12566 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12567 fi
12568fi
3e19841a 12569if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12570 # Extract the first word of "objdump", so it can be a program name with args.
12571set dummy objdump; ac_word=$2
5213506e
RW
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12573$as_echo_n "checking for $ac_word... " >&6; }
12574if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12575 $as_echo_n "(cached) " >&6
e8b05380 12576else
1c710c3c
DJ
12577 case $OBJDUMP_FOR_TARGET in
12578 [\\/]* | ?:[\\/]*)
e8b05380
PB
12579 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12580 ;;
e8b05380 12581 *)
1c710c3c
DJ
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583for as_dir in $gcc_cv_tool_dirs
12584do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
5213506e
RW
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12589 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12591 break 2
12592 fi
12593done
5213506e
RW
12594 done
12595IFS=$as_save_IFS
1c710c3c 12596
e8b05380
PB
12597 ;;
12598esac
12599fi
1c710c3c 12600OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12601if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12603$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12604else
5213506e
RW
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12606$as_echo "no" >&6; }
e8b05380
PB
12607fi
12608
5213506e 12609
e8b05380
PB
12610fi
12611if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12612
12613
12614if test -n "$OBJDUMP_FOR_TARGET"; then
12615 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12616elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12617 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12618fi
12619
12620if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12621 for ncn_progname in objdump; do
12622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12623set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12625$as_echo_n "checking for $ac_word... " >&6; }
12626if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12627 $as_echo_n "(cached) " >&6
278a7a38
AO
12628else
12629 if test -n "$OBJDUMP_FOR_TARGET"; then
12630 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12631else
12632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633for as_dir in $PATH
12634do
12635 IFS=$as_save_IFS
12636 test -z "$as_dir" && as_dir=.
5213506e
RW
12637 for ac_exec_ext in '' $ac_executable_extensions; do
12638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12639 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12641 break 2
12642 fi
12643done
5213506e
RW
12644 done
12645IFS=$as_save_IFS
278a7a38
AO
12646
12647fi
12648fi
12649OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12650if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12652$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12653else
5213506e
RW
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655$as_echo "no" >&6; }
278a7a38
AO
12656fi
12657
5213506e 12658
278a7a38
AO
12659 done
12660fi
12661
12662if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12663 for ncn_progname in objdump; do
5213506e
RW
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12665$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12666 if test -x $with_build_time_tools/${ncn_progname}; then
12667 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12669$as_echo "yes" >&6; }
e8b05380
PB
12670 break
12671 else
5213506e
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
e8b05380
PB
12674 fi
12675 done
12676fi
12677
12678if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12679 for ncn_progname in objdump; do
12680 if test -n "$ncn_target_tool_prefix"; then
12681 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12682set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684$as_echo_n "checking for $ac_word... " >&6; }
12685if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12686 $as_echo_n "(cached) " >&6
d739199a
DJ
12687else
12688 if test -n "$OBJDUMP_FOR_TARGET"; then
12689 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12690else
1c710c3c
DJ
12691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12692for as_dir in $PATH
12693do
12694 IFS=$as_save_IFS
12695 test -z "$as_dir" && as_dir=.
5213506e
RW
12696 for ac_exec_ext in '' $ac_executable_extensions; do
12697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12698 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12700 break 2
12701 fi
12702done
5213506e
RW
12703 done
12704IFS=$as_save_IFS
1c710c3c 12705
d739199a
DJ
12706fi
12707fi
1c710c3c 12708OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12709if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12711$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12712else
5213506e
RW
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714$as_echo "no" >&6; }
d739199a
DJ
12715fi
12716
5213506e 12717
e8b05380
PB
12718 fi
12719 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12720 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12721set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723$as_echo_n "checking for $ac_word... " >&6; }
12724if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12725 $as_echo_n "(cached) " >&6
d739199a
DJ
12726else
12727 if test -n "$OBJDUMP_FOR_TARGET"; then
12728 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12729else
1c710c3c
DJ
12730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12731for as_dir in $PATH
12732do
12733 IFS=$as_save_IFS
12734 test -z "$as_dir" && as_dir=.
5213506e
RW
12735 for ac_exec_ext in '' $ac_executable_extensions; do
12736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12737 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12739 break 2
12740 fi
12741done
5213506e
RW
12742 done
12743IFS=$as_save_IFS
1c710c3c 12744
d739199a
DJ
12745fi
12746fi
1c710c3c 12747OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12748if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12750$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12751else
5213506e
RW
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753$as_echo "no" >&6; }
d739199a 12754fi
1c710c3c 12755
5213506e 12756
e8b05380
PB
12757 fi
12758 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12759 done
12760fi
1c710c3c 12761
d739199a
DJ
12762if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12763 set dummy objdump
12764 if test $build = $target ; then
12765 OBJDUMP_FOR_TARGET="$2"
12766 else
12767 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12768 fi
1c00b503
PB
12769else
12770 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12771fi
12772
d1f8db0c
PB
12773else
12774 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12775fi
12776
12777
12778
12779
12780if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12781 if test -n "$with_build_time_tools"; then
5213506e
RW
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12783$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12784 if test -x $with_build_time_tools/ranlib; then
12785 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12786 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12788$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12789 else
5213506e
RW
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12791$as_echo "no" >&6; }
d1f8db0c 12792 fi
e8b05380
PB
12793 elif test $build != $host && test $have_gcc_for_target = yes; then
12794 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12795 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12796 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12797 fi
12798fi
3e19841a 12799if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12800 # Extract the first word of "ranlib", so it can be a program name with args.
12801set dummy ranlib; ac_word=$2
5213506e
RW
12802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12803$as_echo_n "checking for $ac_word... " >&6; }
12804if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12805 $as_echo_n "(cached) " >&6
e8b05380 12806else
1c710c3c
DJ
12807 case $RANLIB_FOR_TARGET in
12808 [\\/]* | ?:[\\/]*)
e8b05380
PB
12809 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12810 ;;
e8b05380 12811 *)
1c710c3c
DJ
12812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12813for as_dir in $gcc_cv_tool_dirs
12814do
12815 IFS=$as_save_IFS
12816 test -z "$as_dir" && as_dir=.
5213506e
RW
12817 for ac_exec_ext in '' $ac_executable_extensions; do
12818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12819 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12821 break 2
12822 fi
12823done
5213506e
RW
12824 done
12825IFS=$as_save_IFS
1c710c3c 12826
e8b05380
PB
12827 ;;
12828esac
12829fi
1c710c3c 12830RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12831if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12833$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12834else
5213506e
RW
12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12836$as_echo "no" >&6; }
e8b05380
PB
12837fi
12838
5213506e 12839
e8b05380
PB
12840fi
12841if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12842
12843
12844if test -n "$RANLIB_FOR_TARGET"; then
12845 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12846elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12847 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12848fi
12849
12850if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12851 for ncn_progname in ranlib; do
12852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12853set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12855$as_echo_n "checking for $ac_word... " >&6; }
12856if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12857 $as_echo_n "(cached) " >&6
278a7a38
AO
12858else
12859 if test -n "$RANLIB_FOR_TARGET"; then
12860 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12861else
12862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12863for as_dir in $PATH
12864do
12865 IFS=$as_save_IFS
12866 test -z "$as_dir" && as_dir=.
5213506e
RW
12867 for ac_exec_ext in '' $ac_executable_extensions; do
12868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12869 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12871 break 2
12872 fi
12873done
5213506e
RW
12874 done
12875IFS=$as_save_IFS
278a7a38
AO
12876
12877fi
12878fi
12879RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12880if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12882$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12883else
5213506e
RW
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885$as_echo "no" >&6; }
278a7a38
AO
12886fi
12887
5213506e 12888
278a7a38
AO
12889 done
12890fi
12891
12892if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12893 for ncn_progname in ranlib; do
5213506e
RW
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12895$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12896 if test -x $with_build_time_tools/${ncn_progname}; then
12897 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12899$as_echo "yes" >&6; }
e8b05380
PB
12900 break
12901 else
5213506e
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
e8b05380
PB
12904 fi
12905 done
12906fi
12907
12908if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12909 for ncn_progname in ranlib; do
12910 if test -n "$ncn_target_tool_prefix"; then
12911 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12912set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12914$as_echo_n "checking for $ac_word... " >&6; }
12915if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12916 $as_echo_n "(cached) " >&6
ca9f4b81 12917else
4de997d1
PB
12918 if test -n "$RANLIB_FOR_TARGET"; then
12919 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12920else
1c710c3c
DJ
12921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922for as_dir in $PATH
12923do
12924 IFS=$as_save_IFS
12925 test -z "$as_dir" && as_dir=.
5213506e
RW
12926 for ac_exec_ext in '' $ac_executable_extensions; do
12927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12928 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12930 break 2
12931 fi
12932done
5213506e
RW
12933 done
12934IFS=$as_save_IFS
1c710c3c 12935
ca9f4b81
AO
12936fi
12937fi
1c710c3c 12938RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12939if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12941$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12942else
5213506e
RW
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944$as_echo "no" >&6; }
ca9f4b81
AO
12945fi
12946
5213506e 12947
e8b05380
PB
12948 fi
12949 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12951set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12953$as_echo_n "checking for $ac_word... " >&6; }
12954if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
ca9f4b81 12956else
2693c0b0
PB
12957 if test -n "$RANLIB_FOR_TARGET"; then
12958 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12959else
1c710c3c
DJ
12960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12961for as_dir in $PATH
12962do
12963 IFS=$as_save_IFS
12964 test -z "$as_dir" && as_dir=.
5213506e
RW
12965 for ac_exec_ext in '' $ac_executable_extensions; do
12966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12967 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12969 break 2
12970 fi
12971done
5213506e
RW
12972 done
12973IFS=$as_save_IFS
1c710c3c 12974
ca9f4b81
AO
12975fi
12976fi
1c710c3c 12977RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12978if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12980$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12981else
5213506e
RW
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12983$as_echo "no" >&6; }
ca9f4b81 12984fi
1c710c3c 12985
5213506e 12986
e8b05380
PB
12987 fi
12988 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12989 done
12990fi
1c710c3c 12991
e8b05380
PB
12992if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12993 set dummy ranlib
12994 if test $build = $target ; then
12995 RANLIB_FOR_TARGET="$2"
12996 else
12997 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12998 fi
1c00b503
PB
12999else
13000 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 13001fi
2693c0b0 13002
d1f8db0c
PB
13003else
13004 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13005fi
13006
e8b05380
PB
13007
13008
13009
e7a82751
RM
13010if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13011 if test -n "$with_build_time_tools"; then
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13013$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13014 if test -x $with_build_time_tools/readelf; then
13015 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13016 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13018$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13019 else
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13021$as_echo "no" >&6; }
13022 fi
13023 elif test $build != $host && test $have_gcc_for_target = yes; then
13024 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13025 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13026 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13027 fi
13028fi
13029if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13030 # Extract the first word of "readelf", so it can be a program name with args.
13031set dummy readelf; ac_word=$2
13032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13033$as_echo_n "checking for $ac_word... " >&6; }
13034if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13035 $as_echo_n "(cached) " >&6
13036else
13037 case $READELF_FOR_TARGET in
13038 [\\/]* | ?:[\\/]*)
13039 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13040 ;;
13041 *)
13042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13043for as_dir in $gcc_cv_tool_dirs
13044do
13045 IFS=$as_save_IFS
13046 test -z "$as_dir" && as_dir=.
13047 for ac_exec_ext in '' $ac_executable_extensions; do
13048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13049 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13051 break 2
13052 fi
13053done
13054 done
13055IFS=$as_save_IFS
13056
13057 ;;
13058esac
13059fi
13060READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13061if test -n "$READELF_FOR_TARGET"; then
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13063$as_echo "$READELF_FOR_TARGET" >&6; }
13064else
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13066$as_echo "no" >&6; }
13067fi
13068
13069
13070fi
13071if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13072
13073
13074if test -n "$READELF_FOR_TARGET"; then
13075 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13076elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13077 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13078fi
13079
13080if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13081 for ncn_progname in readelf; do
13082 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13083set dummy ${ncn_progname}; ac_word=$2
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13085$as_echo_n "checking for $ac_word... " >&6; }
13086if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13087 $as_echo_n "(cached) " >&6
13088else
13089 if test -n "$READELF_FOR_TARGET"; then
13090 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13091else
13092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13093for as_dir in $PATH
13094do
13095 IFS=$as_save_IFS
13096 test -z "$as_dir" && as_dir=.
13097 for ac_exec_ext in '' $ac_executable_extensions; do
13098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13099 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13101 break 2
13102 fi
13103done
13104 done
13105IFS=$as_save_IFS
13106
13107fi
13108fi
13109READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13110if test -n "$READELF_FOR_TARGET"; then
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13112$as_echo "$READELF_FOR_TARGET" >&6; }
13113else
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115$as_echo "no" >&6; }
13116fi
13117
13118
13119 done
13120fi
13121
13122if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13123 for ncn_progname in readelf; do
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13125$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13126 if test -x $with_build_time_tools/${ncn_progname}; then
13127 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13129$as_echo "yes" >&6; }
13130 break
13131 else
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133$as_echo "no" >&6; }
13134 fi
13135 done
13136fi
13137
13138if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13139 for ncn_progname in readelf; do
13140 if test -n "$ncn_target_tool_prefix"; then
13141 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13142set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13144$as_echo_n "checking for $ac_word... " >&6; }
13145if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13147else
13148 if test -n "$READELF_FOR_TARGET"; then
13149 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13150else
13151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152for as_dir in $PATH
13153do
13154 IFS=$as_save_IFS
13155 test -z "$as_dir" && as_dir=.
13156 for ac_exec_ext in '' $ac_executable_extensions; do
13157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13158 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13160 break 2
13161 fi
13162done
13163 done
13164IFS=$as_save_IFS
13165
13166fi
13167fi
13168READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13169if test -n "$READELF_FOR_TARGET"; then
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13171$as_echo "$READELF_FOR_TARGET" >&6; }
13172else
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174$as_echo "no" >&6; }
13175fi
13176
13177
13178 fi
13179 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13181set dummy ${ncn_progname}; ac_word=$2
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183$as_echo_n "checking for $ac_word... " >&6; }
13184if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13185 $as_echo_n "(cached) " >&6
13186else
13187 if test -n "$READELF_FOR_TARGET"; then
13188 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13189else
13190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13191for as_dir in $PATH
13192do
13193 IFS=$as_save_IFS
13194 test -z "$as_dir" && as_dir=.
13195 for ac_exec_ext in '' $ac_executable_extensions; do
13196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13197 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13199 break 2
13200 fi
13201done
13202 done
13203IFS=$as_save_IFS
13204
13205fi
13206fi
13207READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13208if test -n "$READELF_FOR_TARGET"; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13210$as_echo "$READELF_FOR_TARGET" >&6; }
13211else
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13213$as_echo "no" >&6; }
13214fi
13215
13216
13217 fi
13218 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13219 done
13220fi
13221
13222if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13223 set dummy readelf
13224 if test $build = $target ; then
13225 READELF_FOR_TARGET="$2"
13226 else
13227 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13228 fi
13229else
13230 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13231fi
13232
13233else
13234 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13235fi
13236
13237
13238
13239
e8b05380
PB
13240if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13241 if test -n "$with_build_time_tools"; then
5213506e
RW
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13243$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13244 if test -x $with_build_time_tools/strip; then
13245 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13246 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13248$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13249 else
5213506e
RW
13250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13251$as_echo "no" >&6; }
d1f8db0c 13252 fi
e8b05380
PB
13253 elif test $build != $host && test $have_gcc_for_target = yes; then
13254 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13255 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13256 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13257 fi
13258fi
3e19841a 13259if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13260 # Extract the first word of "strip", so it can be a program name with args.
13261set dummy strip; ac_word=$2
5213506e
RW
13262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263$as_echo_n "checking for $ac_word... " >&6; }
13264if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13265 $as_echo_n "(cached) " >&6
e8b05380 13266else
1c710c3c
DJ
13267 case $STRIP_FOR_TARGET in
13268 [\\/]* | ?:[\\/]*)
e8b05380
PB
13269 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13270 ;;
e8b05380 13271 *)
1c710c3c
DJ
13272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $gcc_cv_tool_dirs
13274do
13275 IFS=$as_save_IFS
13276 test -z "$as_dir" && as_dir=.
5213506e
RW
13277 for ac_exec_ext in '' $ac_executable_extensions; do
13278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13279 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13281 break 2
13282 fi
13283done
5213506e
RW
13284 done
13285IFS=$as_save_IFS
1c710c3c 13286
e8b05380
PB
13287 ;;
13288esac
13289fi
1c710c3c 13290STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13291if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13293$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13294else
5213506e
RW
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296$as_echo "no" >&6; }
e8b05380
PB
13297fi
13298
5213506e 13299
e8b05380
PB
13300fi
13301if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13302
13303
13304if test -n "$STRIP_FOR_TARGET"; then
13305 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13306elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13307 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13308fi
13309
13310if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13311 for ncn_progname in strip; do
13312 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13313set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13315$as_echo_n "checking for $ac_word... " >&6; }
13316if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13317 $as_echo_n "(cached) " >&6
278a7a38
AO
13318else
13319 if test -n "$STRIP_FOR_TARGET"; then
13320 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13321else
13322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13323for as_dir in $PATH
13324do
13325 IFS=$as_save_IFS
13326 test -z "$as_dir" && as_dir=.
5213506e
RW
13327 for ac_exec_ext in '' $ac_executable_extensions; do
13328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13329 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13331 break 2
13332 fi
13333done
5213506e
RW
13334 done
13335IFS=$as_save_IFS
278a7a38
AO
13336
13337fi
13338fi
13339STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13340if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13342$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13343else
5213506e
RW
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13345$as_echo "no" >&6; }
278a7a38
AO
13346fi
13347
5213506e 13348
278a7a38
AO
13349 done
13350fi
13351
13352if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13353 for ncn_progname in strip; do
5213506e
RW
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13355$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13356 if test -x $with_build_time_tools/${ncn_progname}; then
13357 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13359$as_echo "yes" >&6; }
e8b05380
PB
13360 break
13361 else
5213506e
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363$as_echo "no" >&6; }
e8b05380
PB
13364 fi
13365 done
13366fi
13367
13368if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13369 for ncn_progname in strip; do
13370 if test -n "$ncn_target_tool_prefix"; then
13371 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13372set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13374$as_echo_n "checking for $ac_word... " >&6; }
13375if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13376 $as_echo_n "(cached) " >&6
af71363e
AS
13377else
13378 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13379 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13380else
13381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13382for as_dir in $PATH
13383do
13384 IFS=$as_save_IFS
13385 test -z "$as_dir" && as_dir=.
5213506e
RW
13386 for ac_exec_ext in '' $ac_executable_extensions; do
13387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13388 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13390 break 2
13391 fi
13392done
5213506e
RW
13393 done
13394IFS=$as_save_IFS
1c710c3c 13395
040b1c5a
GK
13396fi
13397fi
1c710c3c 13398STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13399if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13401$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13402else
5213506e
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404$as_echo "no" >&6; }
040b1c5a
GK
13405fi
13406
5213506e 13407
e8b05380
PB
13408 fi
13409 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13411set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13413$as_echo_n "checking for $ac_word... " >&6; }
13414if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13415 $as_echo_n "(cached) " >&6
040b1c5a
GK
13416else
13417 if test -n "$STRIP_FOR_TARGET"; then
13418 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13419else
1c710c3c
DJ
13420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13421for as_dir in $PATH
13422do
13423 IFS=$as_save_IFS
13424 test -z "$as_dir" && as_dir=.
5213506e
RW
13425 for ac_exec_ext in '' $ac_executable_extensions; do
13426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13427 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13429 break 2
13430 fi
13431done
5213506e
RW
13432 done
13433IFS=$as_save_IFS
1c710c3c 13434
040b1c5a
GK
13435fi
13436fi
1c710c3c 13437STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13438if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13440$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13441else
5213506e
RW
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13443$as_echo "no" >&6; }
040b1c5a 13444fi
1c710c3c 13445
5213506e 13446
e8b05380
PB
13447 fi
13448 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13449 done
13450fi
1c710c3c 13451
040b1c5a
GK
13452if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13453 set dummy strip
13454 if test $build = $target ; then
13455 STRIP_FOR_TARGET="$2"
13456 else
13457 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13458 fi
1c00b503
PB
13459else
13460 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13461fi
13462
d1f8db0c
PB
13463else
13464 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13465fi
13466
13467
13468
13469
13470if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13471 if test -n "$with_build_time_tools"; then
5213506e
RW
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13473$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13474 if test -x $with_build_time_tools/windres; then
13475 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13476 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13478$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13479 else
5213506e
RW
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481$as_echo "no" >&6; }
d1f8db0c 13482 fi
e8b05380
PB
13483 elif test $build != $host && test $have_gcc_for_target = yes; then
13484 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13485 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13486 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13487 fi
13488fi
3e19841a 13489if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13490 # Extract the first word of "windres", so it can be a program name with args.
13491set dummy windres; ac_word=$2
5213506e
RW
13492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13493$as_echo_n "checking for $ac_word... " >&6; }
13494if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13495 $as_echo_n "(cached) " >&6
e8b05380 13496else
1c710c3c
DJ
13497 case $WINDRES_FOR_TARGET in
13498 [\\/]* | ?:[\\/]*)
e8b05380
PB
13499 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13500 ;;
e8b05380 13501 *)
1c710c3c
DJ
13502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13503for as_dir in $gcc_cv_tool_dirs
13504do
13505 IFS=$as_save_IFS
13506 test -z "$as_dir" && as_dir=.
5213506e
RW
13507 for ac_exec_ext in '' $ac_executable_extensions; do
13508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13509 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13511 break 2
13512 fi
13513done
5213506e
RW
13514 done
13515IFS=$as_save_IFS
1c710c3c 13516
e8b05380
PB
13517 ;;
13518esac
13519fi
1c710c3c 13520WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13521if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13523$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13524else
5213506e
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13526$as_echo "no" >&6; }
e8b05380
PB
13527fi
13528
5213506e 13529
e8b05380
PB
13530fi
13531if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13532
13533
13534if test -n "$WINDRES_FOR_TARGET"; then
13535 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13536elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13537 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13538fi
13539
13540if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13541 for ncn_progname in windres; do
13542 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13543set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13545$as_echo_n "checking for $ac_word... " >&6; }
13546if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13547 $as_echo_n "(cached) " >&6
278a7a38
AO
13548else
13549 if test -n "$WINDRES_FOR_TARGET"; then
13550 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13551else
13552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13553for as_dir in $PATH
13554do
13555 IFS=$as_save_IFS
13556 test -z "$as_dir" && as_dir=.
5213506e
RW
13557 for ac_exec_ext in '' $ac_executable_extensions; do
13558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13559 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13561 break 2
13562 fi
13563done
5213506e
RW
13564 done
13565IFS=$as_save_IFS
278a7a38
AO
13566
13567fi
13568fi
13569WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13570if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13572$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13573else
5213506e
RW
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575$as_echo "no" >&6; }
278a7a38
AO
13576fi
13577
5213506e 13578
278a7a38
AO
13579 done
13580fi
13581
13582if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13583 for ncn_progname in windres; do
5213506e
RW
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13585$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13586 if test -x $with_build_time_tools/${ncn_progname}; then
13587 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13589$as_echo "yes" >&6; }
e8b05380
PB
13590 break
13591 else
5213506e
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593$as_echo "no" >&6; }
e8b05380
PB
13594 fi
13595 done
13596fi
13597
13598if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13599 for ncn_progname in windres; do
13600 if test -n "$ncn_target_tool_prefix"; then
13601 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13602set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13604$as_echo_n "checking for $ac_word... " >&6; }
13605if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13606 $as_echo_n "(cached) " >&6
ca9f4b81 13607else
4de997d1
PB
13608 if test -n "$WINDRES_FOR_TARGET"; then
13609 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13610else
1c710c3c
DJ
13611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13612for as_dir in $PATH
13613do
13614 IFS=$as_save_IFS
13615 test -z "$as_dir" && as_dir=.
5213506e
RW
13616 for ac_exec_ext in '' $ac_executable_extensions; do
13617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13618 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13620 break 2
13621 fi
13622done
5213506e
RW
13623 done
13624IFS=$as_save_IFS
1c710c3c 13625
ca9f4b81
AO
13626fi
13627fi
1c710c3c 13628WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13629if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13631$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13632else
5213506e
RW
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634$as_echo "no" >&6; }
ca9f4b81
AO
13635fi
13636
5213506e 13637
e8b05380
PB
13638 fi
13639 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13641set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13643$as_echo_n "checking for $ac_word... " >&6; }
13644if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13645 $as_echo_n "(cached) " >&6
ca9f4b81 13646else
2693c0b0
PB
13647 if test -n "$WINDRES_FOR_TARGET"; then
13648 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13649else
1c710c3c
DJ
13650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13651for as_dir in $PATH
13652do
13653 IFS=$as_save_IFS
13654 test -z "$as_dir" && as_dir=.
5213506e
RW
13655 for ac_exec_ext in '' $ac_executable_extensions; do
13656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13657 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13659 break 2
13660 fi
13661done
5213506e
RW
13662 done
13663IFS=$as_save_IFS
1c710c3c 13664
ca9f4b81
AO
13665fi
13666fi
1c710c3c 13667WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13668if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13670$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13671else
5213506e
RW
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673$as_echo "no" >&6; }
ca9f4b81 13674fi
1c710c3c 13675
5213506e 13676
e8b05380
PB
13677 fi
13678 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13679 done
13680fi
1c710c3c 13681
2693c0b0
PB
13682if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13683 set dummy windres
13684 if test $build = $target ; then
13685 WINDRES_FOR_TARGET="$2"
ca9f4b81 13686 else
2693c0b0 13687 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13688 fi
1c00b503
PB
13689else
13690 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13691fi
13692
d1f8db0c
PB
13693else
13694 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13695fi
13696
4977bab6 13697
901119ae
KT
13698
13699
13700if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13701 if test -n "$with_build_time_tools"; then
5213506e
RW
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13703$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13704 if test -x $with_build_time_tools/windmc; then
13705 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13706 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13708$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13709 else
5213506e
RW
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711$as_echo "no" >&6; }
901119ae
KT
13712 fi
13713 elif test $build != $host && test $have_gcc_for_target = yes; then
13714 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13715 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13716 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13717 fi
13718fi
13719if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13720 # Extract the first word of "windmc", so it can be a program name with args.
13721set dummy windmc; ac_word=$2
5213506e
RW
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723$as_echo_n "checking for $ac_word... " >&6; }
13724if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13725 $as_echo_n "(cached) " >&6
901119ae
KT
13726else
13727 case $WINDMC_FOR_TARGET in
13728 [\\/]* | ?:[\\/]*)
13729 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13730 ;;
13731 *)
13732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13733for as_dir in $gcc_cv_tool_dirs
13734do
13735 IFS=$as_save_IFS
13736 test -z "$as_dir" && as_dir=.
5213506e
RW
13737 for ac_exec_ext in '' $ac_executable_extensions; do
13738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13739 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13741 break 2
13742 fi
13743done
5213506e
RW
13744 done
13745IFS=$as_save_IFS
901119ae
KT
13746
13747 ;;
13748esac
13749fi
13750WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13751if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13753$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13754else
5213506e
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13756$as_echo "no" >&6; }
901119ae
KT
13757fi
13758
5213506e 13759
901119ae
KT
13760fi
13761if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13762
13763
13764if test -n "$WINDMC_FOR_TARGET"; then
13765 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13766elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13767 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13768fi
13769
13770if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13771 for ncn_progname in windmc; do
13772 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13773set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13775$as_echo_n "checking for $ac_word... " >&6; }
13776if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13777 $as_echo_n "(cached) " >&6
901119ae
KT
13778else
13779 if test -n "$WINDMC_FOR_TARGET"; then
13780 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13781else
13782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783for as_dir in $PATH
13784do
13785 IFS=$as_save_IFS
13786 test -z "$as_dir" && as_dir=.
5213506e
RW
13787 for ac_exec_ext in '' $ac_executable_extensions; do
13788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13789 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13791 break 2
13792 fi
13793done
5213506e
RW
13794 done
13795IFS=$as_save_IFS
901119ae
KT
13796
13797fi
13798fi
13799WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13800if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13802$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13803else
5213506e
RW
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805$as_echo "no" >&6; }
901119ae
KT
13806fi
13807
5213506e 13808
901119ae
KT
13809 done
13810fi
13811
13812if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13813 for ncn_progname in windmc; do
5213506e
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13815$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13816 if test -x $with_build_time_tools/${ncn_progname}; then
13817 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13819$as_echo "yes" >&6; }
901119ae
KT
13820 break
13821 else
5213506e
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13823$as_echo "no" >&6; }
901119ae
KT
13824 fi
13825 done
13826fi
13827
13828if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13829 for ncn_progname in windmc; do
13830 if test -n "$ncn_target_tool_prefix"; then
13831 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13832set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13834$as_echo_n "checking for $ac_word... " >&6; }
13835if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13836 $as_echo_n "(cached) " >&6
901119ae
KT
13837else
13838 if test -n "$WINDMC_FOR_TARGET"; then
13839 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13840else
13841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842for as_dir in $PATH
13843do
13844 IFS=$as_save_IFS
13845 test -z "$as_dir" && as_dir=.
5213506e
RW
13846 for ac_exec_ext in '' $ac_executable_extensions; do
13847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13848 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13850 break 2
13851 fi
13852done
5213506e
RW
13853 done
13854IFS=$as_save_IFS
901119ae
KT
13855
13856fi
13857fi
13858WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13859if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13861$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13862else
5213506e
RW
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13864$as_echo "no" >&6; }
901119ae
KT
13865fi
13866
5213506e 13867
901119ae
KT
13868 fi
13869 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13871set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13873$as_echo_n "checking for $ac_word... " >&6; }
13874if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
901119ae
KT
13876else
13877 if test -n "$WINDMC_FOR_TARGET"; then
13878 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13879else
13880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881for as_dir in $PATH
13882do
13883 IFS=$as_save_IFS
13884 test -z "$as_dir" && as_dir=.
5213506e
RW
13885 for ac_exec_ext in '' $ac_executable_extensions; do
13886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13887 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13889 break 2
13890 fi
13891done
5213506e
RW
13892 done
13893IFS=$as_save_IFS
901119ae
KT
13894
13895fi
13896fi
13897WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13898if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13900$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13901else
5213506e
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13903$as_echo "no" >&6; }
901119ae
KT
13904fi
13905
5213506e 13906
901119ae
KT
13907 fi
13908 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13909 done
13910fi
13911
13912if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13913 set dummy windmc
13914 if test $build = $target ; then
13915 WINDMC_FOR_TARGET="$2"
13916 else
13917 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13918 fi
1c00b503
PB
13919else
13920 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13921fi
13922
13923else
13924 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13925fi
13926
13927
2abefe3d
PB
13928RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13929
5213506e
RW
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13931$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13932if test "x${build}" != "x${host}" ; then
e8b05380
PB
13933 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13934 # We already found the complete path
172e41aa 13935 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13937$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13938 else
13939 # Canadian cross, just use what we found
5213506e
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13941$as_echo "pre-installed" >&6; }
e8b05380 13942 fi
2abefe3d
PB
13943else
13944 ok=yes
13945 case " ${configdirs} " in
13946 *" binutils "*) ;;
13947 *) ok=no ;;
13948 esac
1c710c3c 13949
2abefe3d
PB
13950 if test $ok = yes; then
13951 # An in-tree tool is available and we can use it
13952 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13954$as_echo "just compiled" >&6; }
e8b05380
PB
13955 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13956 # We already found the complete path
172e41aa 13957 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13959$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13960 elif test "x$target" = "x$host"; then
13961 # We can use an host tool
13962 AR_FOR_TARGET='$(AR)'
5213506e
RW
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13964$as_echo "host tool" >&6; }
2abefe3d
PB
13965 else
13966 # We need a cross tool
5213506e
RW
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13968$as_echo "pre-installed" >&6; }
2abefe3d
PB
13969 fi
13970fi
0b0dc272 13971
5213506e
RW
13972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13973$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13974if test "x${build}" != "x${host}" ; then
e8b05380
PB
13975 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13976 # We already found the complete path
172e41aa 13977 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13979$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13980 else
13981 # Canadian cross, just use what we found
5213506e
RW
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13983$as_echo "pre-installed" >&6; }
e8b05380 13984 fi
2abefe3d
PB
13985else
13986 ok=yes
13987 case " ${configdirs} " in
13988 *" gas "*) ;;
13989 *) ok=no ;;
13990 esac
1c710c3c 13991
2abefe3d
PB
13992 if test $ok = yes; then
13993 # An in-tree tool is available and we can use it
13994 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13996$as_echo "just compiled" >&6; }
e8b05380
PB
13997 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13998 # We already found the complete path
172e41aa 13999 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14001$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14002 elif test "x$target" = "x$host"; then
14003 # We can use an host tool
14004 AS_FOR_TARGET='$(AS)'
5213506e
RW
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14006$as_echo "host tool" >&6; }
2abefe3d
PB
14007 else
14008 # We need a cross tool
5213506e
RW
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14010$as_echo "pre-installed" >&6; }
2abefe3d
PB
14011 fi
14012fi
0b0dc272 14013
5213506e
RW
14014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14015$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14016if test "x${build}" != "x${host}" ; then
e8b05380
PB
14017 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14018 # We already found the complete path
172e41aa 14019 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14021$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14022 else
14023 # Canadian cross, just use what we found
5213506e
RW
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14025$as_echo "pre-installed" >&6; }
e8b05380 14026 fi
2abefe3d
PB
14027else
14028 ok=yes
14029 case " ${configdirs} " in
14030 *" gcc "*) ;;
14031 *) ok=no ;;
14032 esac
1c710c3c 14033
2abefe3d
PB
14034 if test $ok = yes; then
14035 # An in-tree tool is available and we can use it
14036 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14038$as_echo "just compiled" >&6; }
e8b05380
PB
14039 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14040 # We already found the complete path
172e41aa 14041 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14043$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14044 elif test "x$target" = "x$host"; then
14045 # We can use an host tool
14046 CC_FOR_TARGET='$(CC)'
5213506e
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14048$as_echo "host tool" >&6; }
2abefe3d
PB
14049 else
14050 # We need a cross tool
5213506e
RW
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14052$as_echo "pre-installed" >&6; }
2abefe3d
PB
14053 fi
14054fi
0b0dc272 14055
5213506e
RW
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14057$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14058if test "x${build}" != "x${host}" ; then
e8b05380
PB
14059 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14060 # We already found the complete path
172e41aa 14061 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14063$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14064 else
14065 # Canadian cross, just use what we found
5213506e
RW
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14067$as_echo "pre-installed" >&6; }
e8b05380 14068 fi
2abefe3d
PB
14069else
14070 ok=yes
14071 case " ${configdirs} " in
14072 *" gcc "*) ;;
14073 *) ok=no ;;
14074 esac
14075 case ,${enable_languages}, in
14076 *,c++,*) ;;
14077 *) ok=no ;;
14078 esac
14079 if test $ok = yes; then
14080 # An in-tree tool is available and we can use it
2077db1b 14081 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
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14083$as_echo "just compiled" >&6; }
e8b05380
PB
14084 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14085 # We already found the complete path
172e41aa 14086 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14088$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14089 elif test "x$target" = "x$host"; then
14090 # We can use an host tool
14091 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14093$as_echo "host tool" >&6; }
2abefe3d
PB
14094 else
14095 # We need a cross tool
5213506e
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14097$as_echo "pre-installed" >&6; }
2abefe3d
PB
14098 fi
14099fi
0b0dc272 14100
5213506e
RW
14101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14102$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14103if test "x${build}" != "x${host}" ; then
e8b05380
PB
14104 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14105 # We already found the complete path
172e41aa 14106 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14108$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14109 else
14110 # Canadian cross, just use what we found
5213506e
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14112$as_echo "pre-installed" >&6; }
e8b05380 14113 fi
2abefe3d
PB
14114else
14115 ok=yes
14116 case " ${configdirs} " in
14117 *" gcc "*) ;;
14118 *) ok=no ;;
14119 esac
14120 case ,${enable_languages}, in
14121 *,c++,*) ;;
14122 *) ok=no ;;
14123 esac
14124 if test $ok = yes; then
14125 # An in-tree tool is available and we can use it
2077db1b 14126 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
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14128$as_echo "just compiled" >&6; }
e8b05380
PB
14129 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14130 # We already found the complete path
172e41aa 14131 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14133$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14134 elif test "x$target" = "x$host"; then
14135 # We can use an host tool
14136 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14138$as_echo "host tool" >&6; }
2abefe3d
PB
14139 else
14140 # We need a cross tool
5213506e
RW
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14142$as_echo "pre-installed" >&6; }
2abefe3d
PB
14143 fi
14144fi
0b0dc272 14145
5213506e
RW
14146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14147$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14148if test "x${build}" != "x${host}" ; then
e8b05380
PB
14149 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14150 # We already found the complete path
172e41aa 14151 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14153$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14154 else
14155 # Canadian cross, just use what we found
5213506e
RW
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14157$as_echo "pre-installed" >&6; }
e8b05380 14158 fi
2abefe3d
PB
14159else
14160 ok=yes
14161 case " ${configdirs} " in
14162 *" binutils "*) ;;
14163 *) ok=no ;;
14164 esac
1c710c3c 14165
2abefe3d
PB
14166 if test $ok = yes; then
14167 # An in-tree tool is available and we can use it
14168 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14170$as_echo "just compiled" >&6; }
e8b05380
PB
14171 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14172 # We already found the complete path
172e41aa 14173 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14175$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14176 elif test "x$target" = "x$host"; then
14177 # We can use an host tool
14178 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14180$as_echo "host tool" >&6; }
2abefe3d
PB
14181 else
14182 # We need a cross tool
5213506e
RW
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14184$as_echo "pre-installed" >&6; }
2abefe3d
PB
14185 fi
14186fi
0b0dc272 14187
5213506e
RW
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14189$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14190if test "x${build}" != "x${host}" ; then
e8b05380
PB
14191 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14192 # We already found the complete path
172e41aa 14193 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14195$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14196 else
14197 # Canadian cross, just use what we found
5213506e
RW
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14199$as_echo "pre-installed" >&6; }
e8b05380 14200 fi
2abefe3d
PB
14201else
14202 ok=yes
14203 case " ${configdirs} " in
14204 *" gcc "*) ;;
14205 *) ok=no ;;
14206 esac
1c710c3c 14207
2abefe3d
PB
14208 if test $ok = yes; then
14209 # An in-tree tool is available and we can use it
14210 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14212$as_echo "just compiled" >&6; }
e8b05380
PB
14213 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14214 # We already found the complete path
172e41aa 14215 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14217$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14218 elif test "x$target" = "x$host"; then
14219 # We can use an host tool
14220 GCC_FOR_TARGET='$()'
5213506e
RW
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14222$as_echo "host tool" >&6; }
2abefe3d
PB
14223 else
14224 # We need a cross tool
5213506e
RW
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14226$as_echo "pre-installed" >&6; }
2abefe3d
PB
14227 fi
14228fi
0b0dc272 14229
5213506e
RW
14230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14231$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 14232if test "x${build}" != "x${host}" ; then
e8b05380
PB
14233 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14234 # We already found the complete path
172e41aa 14235 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14237$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14238 else
14239 # Canadian cross, just use what we found
5213506e
RW
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14241$as_echo "pre-installed" >&6; }
e8b05380 14242 fi
2abefe3d
PB
14243else
14244 ok=yes
14245 case " ${configdirs} " in
14246 *" gcc "*) ;;
14247 *) ok=no ;;
14248 esac
14249 case ,${enable_languages}, in
14250 *,java,*) ;;
14251 *) ok=no ;;
14252 esac
14253 if test $ok = yes; then
14254 # An in-tree tool is available and we can use it
14255 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14257$as_echo "just compiled" >&6; }
e8b05380
PB
14258 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14259 # We already found the complete path
172e41aa 14260 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14262$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14263 elif test "x$target" = "x$host"; then
14264 # We can use an host tool
14265 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14267$as_echo "host tool" >&6; }
2abefe3d
PB
14268 else
14269 # We need a cross tool
5213506e
RW
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14271$as_echo "pre-installed" >&6; }
2abefe3d
PB
14272 fi
14273fi
0b0dc272 14274
5213506e
RW
14275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14276$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14277if test "x${build}" != "x${host}" ; then
e8b05380
PB
14278 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14279 # We already found the complete path
172e41aa 14280 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14282$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14283 else
14284 # Canadian cross, just use what we found
5213506e
RW
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14286$as_echo "pre-installed" >&6; }
e8b05380 14287 fi
2abefe3d
PB
14288else
14289 ok=yes
14290 case " ${configdirs} " in
14291 *" gcc "*) ;;
14292 *) ok=no ;;
14293 esac
14294 case ,${enable_languages}, in
14295 *,fortran,*) ;;
14296 *) ok=no ;;
14297 esac
14298 if test $ok = yes; then
14299 # An in-tree tool is available and we can use it
14300 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14302$as_echo "just compiled" >&6; }
e8b05380
PB
14303 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14304 # We already found the complete path
172e41aa 14305 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14307$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14308 elif test "x$target" = "x$host"; then
14309 # We can use an host tool
14310 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14312$as_echo "host tool" >&6; }
2abefe3d
PB
14313 else
14314 # We need a cross tool
5213506e
RW
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14316$as_echo "pre-installed" >&6; }
2abefe3d
PB
14317 fi
14318fi
0b0dc272 14319
632e2a07
ILT
14320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14321$as_echo_n "checking where to find the target gccgo... " >&6; }
14322if test "x${build}" != "x${host}" ; then
14323 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14324 # We already found the complete path
14325 ac_dir=`dirname $GOC_FOR_TARGET`
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14327$as_echo "pre-installed in $ac_dir" >&6; }
14328 else
14329 # Canadian cross, just use what we found
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331$as_echo "pre-installed" >&6; }
14332 fi
14333else
14334 ok=yes
14335 case " ${configdirs} " in
14336 *" gcc "*) ;;
14337 *) ok=no ;;
14338 esac
14339 case ,${enable_languages}, in
14340 *,go,*) ;;
14341 *) ok=no ;;
14342 esac
14343 if test $ok = yes; then
14344 # An in-tree tool is available and we can use it
14345 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14347$as_echo "just compiled" >&6; }
14348 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14349 # We already found the complete path
14350 ac_dir=`dirname $GOC_FOR_TARGET`
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14352$as_echo "pre-installed in $ac_dir" >&6; }
14353 elif test "x$target" = "x$host"; then
14354 # We can use an host tool
14355 GOC_FOR_TARGET='$(GOC)'
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14357$as_echo "host tool" >&6; }
14358 else
14359 # We need a cross tool
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14361$as_echo "pre-installed" >&6; }
14362 fi
14363fi
14364
5213506e
RW
14365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14366$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14367if test "x${build}" != "x${host}" ; then
e8b05380
PB
14368 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14369 # We already found the complete path
172e41aa 14370 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14372$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14373 else
14374 # Canadian cross, just use what we found
5213506e
RW
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14376$as_echo "pre-installed" >&6; }
e8b05380 14377 fi
2abefe3d
PB
14378else
14379 ok=yes
14380 case " ${configdirs} " in
14381 *" ld "*) ;;
14382 *) ok=no ;;
14383 esac
1c710c3c 14384
2abefe3d
PB
14385 if test $ok = yes; then
14386 # An in-tree tool is available and we can use it
14387 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14389$as_echo "just compiled" >&6; }
e8b05380
PB
14390 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14391 # We already found the complete path
172e41aa 14392 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14394$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14395 elif test "x$target" = "x$host"; then
14396 # We can use an host tool
14397 LD_FOR_TARGET='$(LD)'
5213506e
RW
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14399$as_echo "host tool" >&6; }
2abefe3d
PB
14400 else
14401 # We need a cross tool
5213506e
RW
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14403$as_echo "pre-installed" >&6; }
2abefe3d
PB
14404 fi
14405fi
0b0dc272 14406
5213506e
RW
14407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14408$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14409if test "x${build}" != "x${host}" ; then
e8b05380
PB
14410 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14411 # We already found the complete path
172e41aa 14412 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14414$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14415 else
14416 # Canadian cross, just use what we found
5213506e
RW
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14418$as_echo "pre-installed" >&6; }
e8b05380 14419 fi
2abefe3d 14420else
e8b05380
PB
14421 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14422 # We already found the complete path
172e41aa 14423 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14425$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14426 elif test "x$target" = "x$host"; then
2abefe3d
PB
14427 # We can use an host tool
14428 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14430$as_echo "host tool" >&6; }
2abefe3d
PB
14431 else
14432 # We need a cross tool
5213506e
RW
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14434$as_echo "pre-installed" >&6; }
2abefe3d
PB
14435 fi
14436fi
0b0dc272 14437
5213506e
RW
14438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14439$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14440if test "x${build}" != "x${host}" ; then
e8b05380
PB
14441 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14442 # We already found the complete path
172e41aa 14443 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14445$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14446 else
14447 # Canadian cross, just use what we found
5213506e
RW
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14449$as_echo "pre-installed" >&6; }
e8b05380 14450 fi
2abefe3d
PB
14451else
14452 ok=yes
14453 case " ${configdirs} " in
14454 *" binutils "*) ;;
14455 *) ok=no ;;
14456 esac
1c710c3c 14457
2abefe3d
PB
14458 if test $ok = yes; then
14459 # An in-tree tool is available and we can use it
14460 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14462$as_echo "just compiled" >&6; }
e8b05380
PB
14463 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14464 # We already found the complete path
172e41aa 14465 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14467$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14468 elif test "x$target" = "x$host"; then
14469 # We can use an host tool
14470 NM_FOR_TARGET='$(NM)'
5213506e
RW
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14472$as_echo "host tool" >&6; }
2abefe3d
PB
14473 else
14474 # We need a cross tool
5213506e
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14476$as_echo "pre-installed" >&6; }
2abefe3d
PB
14477 fi
14478fi
0b0dc272 14479
9bccfdf5
AP
14480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14481$as_echo_n "checking where to find the target objcopy... " >&6; }
14482if test "x${build}" != "x${host}" ; then
14483 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14484 # We already found the complete path
14485 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14487$as_echo "pre-installed in $ac_dir" >&6; }
14488 else
14489 # Canadian cross, just use what we found
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14491$as_echo "pre-installed" >&6; }
14492 fi
14493else
14494 ok=yes
14495 case " ${configdirs} " in
14496 *" binutils "*) ;;
14497 *) ok=no ;;
14498 esac
14499
14500 if test $ok = yes; then
14501 # An in-tree tool is available and we can use it
14502 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14504$as_echo "just compiled" >&6; }
14505 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14506 # We already found the complete path
14507 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14509$as_echo "pre-installed in $ac_dir" >&6; }
14510 elif test "x$target" = "x$host"; then
14511 # We can use an host tool
ec8fd1c0 14512 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14514$as_echo "host tool" >&6; }
14515 else
14516 # We need a cross tool
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14518$as_echo "pre-installed" >&6; }
14519 fi
14520fi
14521
5213506e
RW
14522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14523$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14524if test "x${build}" != "x${host}" ; then
e8b05380
PB
14525 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14526 # We already found the complete path
172e41aa 14527 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14529$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14530 else
14531 # Canadian cross, just use what we found
5213506e
RW
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14533$as_echo "pre-installed" >&6; }
e8b05380 14534 fi
2abefe3d
PB
14535else
14536 ok=yes
14537 case " ${configdirs} " in
14538 *" binutils "*) ;;
14539 *) ok=no ;;
14540 esac
1c710c3c 14541
2abefe3d
PB
14542 if test $ok = yes; then
14543 # An in-tree tool is available and we can use it
14544 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14546$as_echo "just compiled" >&6; }
e8b05380
PB
14547 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14548 # We already found the complete path
172e41aa 14549 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14551$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14552 elif test "x$target" = "x$host"; then
14553 # We can use an host tool
14554 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14556$as_echo "host tool" >&6; }
2abefe3d
PB
14557 else
14558 # We need a cross tool
5213506e
RW
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14560$as_echo "pre-installed" >&6; }
2abefe3d
PB
14561 fi
14562fi
0b0dc272 14563
5213506e
RW
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14565$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14566if test "x${build}" != "x${host}" ; then
e8b05380
PB
14567 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14568 # We already found the complete path
172e41aa 14569 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14571$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14572 else
14573 # Canadian cross, just use what we found
5213506e
RW
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14575$as_echo "pre-installed" >&6; }
e8b05380 14576 fi
2abefe3d
PB
14577else
14578 ok=yes
14579 case " ${configdirs} " in
14580 *" binutils "*) ;;
14581 *) ok=no ;;
14582 esac
1c710c3c 14583
2abefe3d
PB
14584 if test $ok = yes; then
14585 # An in-tree tool is available and we can use it
14586 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14588$as_echo "just compiled" >&6; }
e8b05380
PB
14589 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14590 # We already found the complete path
172e41aa 14591 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14593$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14594 elif test "x$target" = "x$host"; then
14595 # We can use an host tool
14596 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14598$as_echo "host tool" >&6; }
2abefe3d
PB
14599 else
14600 # We need a cross tool
5213506e
RW
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14602$as_echo "pre-installed" >&6; }
2abefe3d
PB
14603 fi
14604fi
0b0dc272 14605
e7a82751
RM
14606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14607$as_echo_n "checking where to find the target readelf... " >&6; }
14608if test "x${build}" != "x${host}" ; then
14609 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14610 # We already found the complete path
14611 ac_dir=`dirname $READELF_FOR_TARGET`
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14613$as_echo "pre-installed in $ac_dir" >&6; }
14614 else
14615 # Canadian cross, just use what we found
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14617$as_echo "pre-installed" >&6; }
14618 fi
14619else
14620 ok=yes
14621 case " ${configdirs} " in
14622 *" binutils "*) ;;
14623 *) ok=no ;;
14624 esac
14625
14626 if test $ok = yes; then
14627 # An in-tree tool is available and we can use it
14628 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14630$as_echo "just compiled" >&6; }
14631 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14632 # We already found the complete path
14633 ac_dir=`dirname $READELF_FOR_TARGET`
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14635$as_echo "pre-installed in $ac_dir" >&6; }
14636 elif test "x$target" = "x$host"; then
14637 # We can use an host tool
14638 READELF_FOR_TARGET='$(READELF)'
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14640$as_echo "host tool" >&6; }
14641 else
14642 # We need a cross tool
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14644$as_echo "pre-installed" >&6; }
14645 fi
14646fi
14647
5213506e
RW
14648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14649$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14650if test "x${build}" != "x${host}" ; then
e8b05380
PB
14651 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14652 # We already found the complete path
172e41aa 14653 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14655$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14656 else
14657 # Canadian cross, just use what we found
5213506e
RW
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14659$as_echo "pre-installed" >&6; }
e8b05380 14660 fi
2abefe3d
PB
14661else
14662 ok=yes
14663 case " ${configdirs} " in
14664 *" binutils "*) ;;
14665 *) ok=no ;;
14666 esac
1c710c3c 14667
2abefe3d
PB
14668 if test $ok = yes; then
14669 # An in-tree tool is available and we can use it
455c8f48 14670 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14672$as_echo "just compiled" >&6; }
e8b05380
PB
14673 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14674 # We already found the complete path
172e41aa 14675 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14677$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14678 elif test "x$target" = "x$host"; then
14679 # We can use an host tool
14680 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14682$as_echo "host tool" >&6; }
2abefe3d
PB
14683 else
14684 # We need a cross tool
5213506e
RW
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14686$as_echo "pre-installed" >&6; }
2abefe3d
PB
14687 fi
14688fi
0b0dc272 14689
5213506e
RW
14690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14691$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14692if test "x${build}" != "x${host}" ; then
e8b05380
PB
14693 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14694 # We already found the complete path
172e41aa 14695 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14697$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14698 else
14699 # Canadian cross, just use what we found
5213506e
RW
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14701$as_echo "pre-installed" >&6; }
e8b05380 14702 fi
2abefe3d
PB
14703else
14704 ok=yes
14705 case " ${configdirs} " in
14706 *" binutils "*) ;;
14707 *) ok=no ;;
14708 esac
1c710c3c 14709
2abefe3d
PB
14710 if test $ok = yes; then
14711 # An in-tree tool is available and we can use it
14712 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14714$as_echo "just compiled" >&6; }
e8b05380
PB
14715 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14716 # We already found the complete path
172e41aa 14717 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14719$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14720 elif test "x$target" = "x$host"; then
14721 # We can use an host tool
14722 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14724$as_echo "host tool" >&6; }
2abefe3d
PB
14725 else
14726 # We need a cross tool
5213506e
RW
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14728$as_echo "pre-installed" >&6; }
2abefe3d 14729 fi
671aa708 14730fi
be912515 14731
5213506e
RW
14732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14733$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14734if test "x${build}" != "x${host}" ; then
14735 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14736 # We already found the complete path
14737 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14739$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14740 else
14741 # Canadian cross, just use what we found
5213506e
RW
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14743$as_echo "pre-installed" >&6; }
901119ae
KT
14744 fi
14745else
14746 ok=yes
14747 case " ${configdirs} " in
14748 *" binutils "*) ;;
14749 *) ok=no ;;
14750 esac
14751
14752 if test $ok = yes; then
14753 # An in-tree tool is available and we can use it
14754 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14756$as_echo "just compiled" >&6; }
901119ae
KT
14757 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14758 # We already found the complete path
14759 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14761$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14762 elif test "x$target" = "x$host"; then
14763 # We can use an host tool
14764 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14766$as_echo "host tool" >&6; }
901119ae
KT
14767 else
14768 # We need a cross tool
5213506e
RW
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14770$as_echo "pre-installed" >&6; }
901119ae
KT
14771 fi
14772fi
14773
be912515
NN
14774
14775
2abefe3d 14776
0b0dc272 14777
671aa708
NN
14778# Certain tools may need extra flags.
14779AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14780RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14781NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14782
2abefe3d
PB
14783# When building target libraries, except in a Canadian cross, we use
14784# the same toolchain as the compiler we just built.
14785COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14786COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14787COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14788if test $host = $build; then
14789 case " $configdirs " in
14790 *" gcc "*)
14791 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14792 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14793 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14794 ;;
14795 esac
14796fi
14797
14798
14799
14800
14801
5213506e
RW
14802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14803$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14804# Check whether --enable-maintainer-mode was given.
14805if test "${enable_maintainer_mode+set}" = set; then :
14806 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14807else
14808 USE_MAINTAINER_MODE=no
5213506e
RW
14809fi
14810
14811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14812$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14813
14814
14815if test "$USE_MAINTAINER_MODE" = yes; then
14816 MAINTAINER_MODE_TRUE=
14817 MAINTAINER_MODE_FALSE='#'
14818else
14819 MAINTAINER_MODE_TRUE='#'
14820 MAINTAINER_MODE_FALSE=
1c710c3c 14821fi
ee03dc5e
AO
14822MAINT=$MAINTAINER_MODE_TRUE
14823
2805b53a
NN
14824# ---------------------
14825# GCC bootstrap support
14826# ---------------------
14827
14828# Stage specific cflags for build.
14829stage1_cflags="-g"
14830case $build in
14831 vax-*-*)
14832 case ${GCC} in
14833 yes) stage1_cflags="-g -Wa,-J" ;;
14834 *) stage1_cflags="-g -J" ;;
14835 esac ;;
2805b53a
NN
14836esac
14837
0b50988a 14838
2805b53a 14839
8efea775 14840# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14841# Check whether --enable-stage1-checking was given.
14842if test "${enable_stage1_checking+set}" = set; then :
14843 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14844else
e643dc23 14845 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14846 # For --disable-checking or implicit --enable-checking=release, avoid
14847 # setting --enable-checking=gc in the default stage1 checking for LTO
14848 # bootstraps. See PR62077.
c10b5ea0
JJ
14849 case $BUILD_CONFIG in
14850 *lto*)
7db11a5a
JJ
14851 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14852 *)
14853 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 14854 esac
7db11a5a
JJ
14855 if test "x$enable_checking" = x && \
14856 test -d ${srcdir}/gcc && \
14857 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 14858 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 14859 fi
8efea775 14860else
e643dc23 14861 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14862fi
5213506e 14863fi
8efea775
PB
14864
14865
2aeb72e9 14866
5213506e
RW
14867# Enable -Werror in bootstrap stage2 and later.
14868# Check whether --enable-werror was given.
14869if test "${enable_werror+set}" = set; then :
14870 enableval=$enable_werror;
2805b53a 14871else
416cfb5e 14872 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14873 enable_werror=yes
88fceb68
PB
14874else
14875 enable_werror=no
14876fi
5213506e
RW
14877fi
14878
09a9c095
NN
14879case ${enable_werror} in
14880 yes) stage2_werror_flag="--enable-werror-always" ;;
14881 *) stage2_werror_flag="" ;;
2805b53a
NN
14882esac
14883
14884
459260ec
DM
14885# Enable --enable-host-shared.
14886# Check whether --enable-host-shared was given.
14887if test "${enable_host_shared+set}" = set; then :
14888 enableval=$enable_host_shared; host_shared=$enableval
14889else
14890 host_shared=no
14891fi
14892
14893
14894
231d020b
DM
14895# PR jit/64780: Require the user to explicitly specify
14896# --enable-host-shared if the jit is enabled, hinting
14897# that they might want to do a separate configure/build of
14898# the jit, to avoid users from slowing down the rest of the
14899# compiler by enabling the jit.
14900if test ${host_shared} = "no" ; then
14901 case "${enable_languages}" in
14902 *jit*)
14903 as_fn_error "
14904Enabling language \"jit\" requires --enable-host-shared.
14905
14906--enable-host-shared typically slows the rest of the compiler down by
14907a few %, so you must explicitly enable it.
14908
14909If you want to build both the jit and the regular compiler, it is often
14910best to do this via two separate configure/builds, in separate
14911directories, to avoid imposing the performance cost of
14912--enable-host-shared on the regular compiler." "$LINENO" 5
14913 ;;
14914 *)
14915 ;;
14916 esac
14917fi
14918
f2689b09
SE
14919# Specify what files to not compare during bootstrap.
14920
14921compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14922case "$target" in
14923 hppa*64*-*-hpux*) ;;
14924 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14925 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14926esac
14927
14928
5213506e
RW
14929ac_config_files="$ac_config_files Makefile"
14930
1c710c3c 14931cat >confcache <<\_ACEOF
671aa708
NN
14932# This file is a shell script that caches the results of configure
14933# tests run on this system so they can be shared between configure
1c710c3c
DJ
14934# scripts and configure runs, see configure's option --config-cache.
14935# It is not useful on other systems. If it contains results you don't
14936# want to keep, you may remove or edit it.
671aa708 14937#
1c710c3c
DJ
14938# config.status only pays attention to the cache file if you give it
14939# the --recheck option to rerun configure.
671aa708 14940#
1c710c3c
DJ
14941# `ac_cv_env_foo' variables (set or unset) will be overridden when
14942# loading this file, other *unset* `ac_cv_foo' will be assigned the
14943# following values.
14944
14945_ACEOF
14946
671aa708
NN
14947# The following way of writing the cache mishandles newlines in values,
14948# but we know of no workaround that is simple, portable, and efficient.
5213506e 14949# So, we kill variables containing newlines.
671aa708
NN
14950# Ultrix sh set writes to stderr and can't be redirected directly,
14951# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14952(
14953 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14954 eval ac_val=\$$ac_var
14955 case $ac_val in #(
14956 *${as_nl}*)
14957 case $ac_var in #(
14958 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14959$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14960 esac
14961 case $ac_var in #(
14962 _ | IFS | as_nl) ;; #(
14963 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14964 *) { eval $ac_var=; unset $ac_var;} ;;
14965 esac ;;
14966 esac
14967 done
14968
1c710c3c 14969 (set) 2>&1 |
5213506e
RW
14970 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14971 *${as_nl}ac_space=\ *)
14972 # `set' does not quote correctly, so add quotes: double-quote
14973 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14974 sed -n \
14975 "s/'/'\\\\''/g;
14976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14977 ;; #(
1c710c3c
DJ
14978 *)
14979 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14980 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14981 ;;
5213506e
RW
14982 esac |
14983 sort
14984) |
1c710c3c 14985 sed '
5213506e 14986 /^ac_cv_env_/b end
1c710c3c 14987 t clear
5213506e 14988 :clear
1c710c3c
DJ
14989 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14990 t end
5213506e
RW
14991 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14992 :end' >>confcache
14993if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14994 if test -w "$cache_file"; then
14995 test "x$cache_file" != "x/dev/null" &&
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14997$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14998 cat confcache >$cache_file
671aa708 14999 else
5213506e
RW
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15001$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 15002 fi
4977bab6 15003fi
671aa708 15004rm -f confcache
79c06341 15005
671aa708
NN
15006test "x$prefix" = xNONE && prefix=$ac_default_prefix
15007# Let make expand exec_prefix.
15008test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15009
671aa708
NN
15010# Transform confdefs.h into DEFS.
15011# Protect against shell expansion while executing Makefile rules.
15012# Protect against Makefile macro expansion.
1c710c3c
DJ
15013#
15014# If the first sed substitution is executed (which looks for macros that
5213506e 15015# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15016# look for a macro that doesn't take arguments.
5213506e
RW
15017ac_script='
15018:mline
15019/\\$/{
15020 N
15021 s,\\\n,,
15022 b mline
15023}
1c710c3c 15024t clear
5213506e
RW
15025:clear
15026s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15027t quote
5213506e 15028s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15029t quote
5213506e
RW
15030b any
15031:quote
15032s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15033s/\[/\\&/g
15034s/\]/\\&/g
15035s/\$/$$/g
15036H
15037:any
15038${
15039 g
15040 s/^\n//
15041 s/\n/ /g
15042 p
15043}
15044'
15045DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
15046
15047
15048ac_libobjs=
15049ac_ltlibobjs=
15050for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15051 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15052 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15053 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15054 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15055 # will be set to the directory where LIBOBJS objects are built.
15056 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15057 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
15058done
15059LIBOBJS=$ac_libobjs
fb0103e5 15060
1c710c3c 15061LTLIBOBJS=$ac_ltlibobjs
0b0dc272 15062
af71363e 15063
1c710c3c
DJ
15064
15065: ${CONFIG_STATUS=./config.status}
5213506e 15066ac_write_fail=0
1c710c3c
DJ
15067ac_clean_files_save=$ac_clean_files
15068ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15069{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15070$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15071as_write_fail=0
15072cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15073#! $SHELL
15074# Generated by $as_me.
671aa708 15075# Run this file to recreate the current configuration.
671aa708 15076# Compiler output produced by configure, useful for debugging
1c710c3c 15077# configure, is in config.log if it exists.
0b0dc272 15078
1c710c3c
DJ
15079debug=false
15080ac_cs_recheck=false
15081ac_cs_silent=false
1c710c3c 15082
5213506e
RW
15083SHELL=\${CONFIG_SHELL-$SHELL}
15084export SHELL
15085_ASEOF
15086cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15087## -------------------- ##
15088## M4sh Initialization. ##
15089## -------------------- ##
15090
15091# Be more Bourne compatible
15092DUALCASE=1; export DUALCASE # for MKS sh
15093if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15094 emulate sh
15095 NULLCMD=:
5213506e 15096 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15097 # is contrary to our usage. Disable this feature.
15098 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15099 setopt NO_GLOB_SUBST
15100else
15101 case `(set -o) 2>/dev/null` in #(
15102 *posix*) :
15103 set -o posix ;; #(
15104 *) :
15105 ;;
15106esac
1c710c3c 15107fi
1c710c3c 15108
5213506e
RW
15109
15110as_nl='
15111'
15112export as_nl
15113# Printing a long string crashes Solaris 7 /usr/bin/printf.
15114as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15115as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15116as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15117# Prefer a ksh shell builtin over an external printf program on Solaris,
15118# but without wasting forks for bash or zsh.
15119if test -z "$BASH_VERSION$ZSH_VERSION" \
15120 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15121 as_echo='print -r --'
15122 as_echo_n='print -rn --'
15123elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15124 as_echo='printf %s\n'
15125 as_echo_n='printf %s'
15126else
15127 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15128 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15129 as_echo_n='/usr/ucb/echo -n'
15130 else
15131 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15132 as_echo_n_body='eval
15133 arg=$1;
15134 case $arg in #(
15135 *"$as_nl"*)
15136 expr "X$arg" : "X\\(.*\\)$as_nl";
15137 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15138 esac;
15139 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15140 '
15141 export as_echo_n_body
15142 as_echo_n='sh -c $as_echo_n_body as_echo'
15143 fi
15144 export as_echo_body
15145 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15146fi
15147
5213506e
RW
15148# The user is always right.
15149if test "${PATH_SEPARATOR+set}" != set; then
15150 PATH_SEPARATOR=:
15151 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15152 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15153 PATH_SEPARATOR=';'
15154 }
15155fi
15156
15157
15158# IFS
15159# We need space, tab and new line, in precisely that order. Quoting is
15160# there to prevent editors from complaining about space-tab.
15161# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15162# splitting by setting IFS to empty value.)
15163IFS=" "" $as_nl"
15164
15165# Find who we are. Look in the path if we contain no directory separator.
15166case $0 in #((
15167 *[\\/]* ) as_myself=$0 ;;
15168 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15169for as_dir in $PATH
15170do
15171 IFS=$as_save_IFS
15172 test -z "$as_dir" && as_dir=.
15173 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15174 done
15175IFS=$as_save_IFS
15176
15177 ;;
15178esac
15179# We did not find ourselves, most probably we were run as `sh COMMAND'
15180# in which case we are not to be found in the path.
15181if test "x$as_myself" = x; then
15182 as_myself=$0
15183fi
15184if test ! -f "$as_myself"; then
15185 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15186 exit 1
15187fi
1c710c3c 15188
5213506e
RW
15189# Unset variables that we do not need and which cause bugs (e.g. in
15190# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15191# suppresses any "Segmentation fault" message there. '((' could
15192# trigger a bug in pdksh 5.2.14.
15193for as_var in BASH_ENV ENV MAIL MAILPATH
15194do eval test x\${$as_var+set} = xset \
15195 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15196done
1c710c3c
DJ
15197PS1='$ '
15198PS2='> '
15199PS4='+ '
15200
15201# NLS nuisances.
5213506e
RW
15202LC_ALL=C
15203export LC_ALL
15204LANGUAGE=C
15205export LANGUAGE
15206
15207# CDPATH.
15208(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15209
15210
15211# as_fn_error ERROR [LINENO LOG_FD]
15212# ---------------------------------
15213# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15214# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15215# script with status $?, using 1 if that was 0.
15216as_fn_error ()
15217{
15218 as_status=$?; test $as_status -eq 0 && as_status=1
15219 if test "$3"; then
15220 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15221 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 15222 fi
5213506e
RW
15223 $as_echo "$as_me: error: $1" >&2
15224 as_fn_exit $as_status
15225} # as_fn_error
15226
15227
15228# as_fn_set_status STATUS
15229# -----------------------
15230# Set $? to STATUS, without forking.
15231as_fn_set_status ()
15232{
15233 return $1
15234} # as_fn_set_status
15235
15236# as_fn_exit STATUS
15237# -----------------
15238# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15239as_fn_exit ()
15240{
15241 set +e
15242 as_fn_set_status $1
15243 exit $1
15244} # as_fn_exit
15245
15246# as_fn_unset VAR
15247# ---------------
15248# Portably unset VAR.
15249as_fn_unset ()
15250{
15251 { eval $1=; unset $1;}
15252}
15253as_unset=as_fn_unset
15254# as_fn_append VAR VALUE
15255# ----------------------
15256# Append the text in VALUE to the end of the definition contained in VAR. Take
15257# advantage of any shell optimizations that allow amortized linear growth over
15258# repeated appends, instead of the typical quadratic growth present in naive
15259# implementations.
15260if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15261 eval 'as_fn_append ()
15262 {
15263 eval $1+=\$2
15264 }'
15265else
15266 as_fn_append ()
15267 {
15268 eval $1=\$$1\$2
15269 }
15270fi # as_fn_append
15271
15272# as_fn_arith ARG...
15273# ------------------
15274# Perform arithmetic evaluation on the ARGs, and store the result in the
15275# global $as_val. Take advantage of shells that can avoid forks. The arguments
15276# must be portable across $(()) and expr.
15277if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15278 eval 'as_fn_arith ()
15279 {
15280 as_val=$(( $* ))
15281 }'
15282else
15283 as_fn_arith ()
15284 {
15285 as_val=`expr "$@" || test $? -eq 1`
15286 }
15287fi # as_fn_arith
15288
1c710c3c 15289
5213506e
RW
15290if expr a : '\(a\)' >/dev/null 2>&1 &&
15291 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15292 as_expr=expr
15293else
15294 as_expr=false
15295fi
15296
5213506e 15297if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15298 as_basename=basename
15299else
15300 as_basename=false
15301fi
15302
5213506e
RW
15303if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15304 as_dirname=dirname
15305else
15306 as_dirname=false
15307fi
1c710c3c 15308
5213506e 15309as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15310$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15311 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15312 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15313$as_echo X/"$0" |
15314 sed '/^.*\/\([^/][^/]*\)\/*$/{
15315 s//\1/
15316 q
15317 }
15318 /^X\/\(\/\/\)$/{
15319 s//\1/
15320 q
15321 }
15322 /^X\/\(\/\).*/{
15323 s//\1/
15324 q
15325 }
15326 s/.*/./; q'`
2aeb72e9 15327
2aeb72e9
DD
15328# Avoid depending upon Character Ranges.
15329as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15330as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15331as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15332as_cr_digits='0123456789'
15333as_cr_alnum=$as_cr_Letters$as_cr_digits
15334
5213506e
RW
15335ECHO_C= ECHO_N= ECHO_T=
15336case `echo -n x` in #(((((
15337-n*)
15338 case `echo 'xy\c'` in
15339 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15340 xy) ECHO_C='\c';;
15341 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15342 ECHO_T=' ';;
15343 esac;;
15344*)
15345 ECHO_N='-n';;
1c710c3c
DJ
15346esac
15347
5213506e
RW
15348rm -f conf$$ conf$$.exe conf$$.file
15349if test -d conf$$.dir; then
15350 rm -f conf$$.dir/conf$$.file
1c710c3c 15351else
5213506e
RW
15352 rm -f conf$$.dir
15353 mkdir conf$$.dir 2>/dev/null
1c710c3c 15354fi
5213506e
RW
15355if (echo >conf$$.file) 2>/dev/null; then
15356 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15357 as_ln_s='ln -s'
5213506e
RW
15358 # ... but there are two gotchas:
15359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15361 # In both cases, we have to default to `cp -p'.
15362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15363 as_ln_s='cp -p'
15364 elif ln conf$$.file conf$$ 2>/dev/null; then
15365 as_ln_s=ln
15366 else
15367 as_ln_s='cp -p'
2aeb72e9 15368 fi
1c710c3c
DJ
15369else
15370 as_ln_s='cp -p'
15371fi
5213506e
RW
15372rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15373rmdir conf$$.dir 2>/dev/null
15374
15375
15376# as_fn_mkdir_p
15377# -------------
15378# Create "$as_dir" as a directory, including parents if necessary.
15379as_fn_mkdir_p ()
15380{
15381
15382 case $as_dir in #(
15383 -*) as_dir=./$as_dir;;
15384 esac
15385 test -d "$as_dir" || eval $as_mkdir_p || {
15386 as_dirs=
15387 while :; do
15388 case $as_dir in #(
15389 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15390 *) as_qdir=$as_dir;;
15391 esac
15392 as_dirs="'$as_qdir' $as_dirs"
15393 as_dir=`$as_dirname -- "$as_dir" ||
15394$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15395 X"$as_dir" : 'X\(//\)[^/]' \| \
15396 X"$as_dir" : 'X\(//\)$' \| \
15397 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15398$as_echo X"$as_dir" |
15399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15400 s//\1/
15401 q
15402 }
15403 /^X\(\/\/\)[^/].*/{
15404 s//\1/
15405 q
15406 }
15407 /^X\(\/\/\)$/{
15408 s//\1/
15409 q
15410 }
15411 /^X\(\/\).*/{
15412 s//\1/
15413 q
15414 }
15415 s/.*/./; q'`
15416 test -d "$as_dir" && break
15417 done
15418 test -z "$as_dirs" || eval "mkdir $as_dirs"
15419 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15420
1c710c3c 15421
5213506e 15422} # as_fn_mkdir_p
1c710c3c 15423if mkdir -p . 2>/dev/null; then
5213506e 15424 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15425else
15426 test -d ./-p && rmdir ./-p
15427 as_mkdir_p=false
15428fi
15429
5213506e
RW
15430if test -x / >/dev/null 2>&1; then
15431 as_test_x='test -x'
15432else
15433 if ls -dL / >/dev/null 2>&1; then
15434 as_ls_L_option=L
15435 else
15436 as_ls_L_option=
15437 fi
15438 as_test_x='
15439 eval sh -c '\''
15440 if test -d "$1"; then
15441 test -d "$1/.";
15442 else
15443 case $1 in #(
15444 -*)set "./$1";;
15445 esac;
15446 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15447 ???[sx]*):;;*)false;;esac;fi
15448 '\'' sh
15449 '
15450fi
15451as_executable_p=$as_test_x
1c710c3c
DJ
15452
15453# Sed expression to map a string onto a valid CPP name.
15454as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15455
15456# Sed expression to map a string onto a valid variable name.
15457as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15458
15459
1c710c3c 15460exec 6>&1
5213506e
RW
15461## ----------------------------------- ##
15462## Main body of $CONFIG_STATUS script. ##
15463## ----------------------------------- ##
15464_ASEOF
15465test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15466
15467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15468# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15469# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15470# values after options handling.
15471ac_log="
1c710c3c 15472This file was extended by $as_me, which was
5213506e 15473generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15474
15475 CONFIG_FILES = $CONFIG_FILES
15476 CONFIG_HEADERS = $CONFIG_HEADERS
15477 CONFIG_LINKS = $CONFIG_LINKS
15478 CONFIG_COMMANDS = $CONFIG_COMMANDS
15479 $ $0 $@
15480
5213506e
RW
15481on `(hostname || uname -n) 2>/dev/null | sed 1q`
15482"
15483
1c710c3c
DJ
15484_ACEOF
15485
5213506e
RW
15486case $ac_config_files in *"
15487"*) set x $ac_config_files; shift; ac_config_files=$*;;
15488esac
1c710c3c 15489
2aeb72e9 15490
2aeb72e9 15491
5213506e
RW
15492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15493# Files that config.status was made for.
15494config_files="$ac_config_files"
1c710c3c 15495
5213506e 15496_ACEOF
2aeb72e9 15497
5213506e 15498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15499ac_cs_usage="\
5213506e
RW
15500\`$as_me' instantiates files and other configuration actions
15501from templates according to the current configuration. Unless the files
15502and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15503
5213506e 15504Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15505
15506 -h, --help print this help, then exit
5213506e
RW
15507 -V, --version print version number and configuration settings, then exit
15508 -q, --quiet, --silent
15509 do not print progress messages
1c710c3c
DJ
15510 -d, --debug don't remove temporary files
15511 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15512 --file=FILE[:TEMPLATE]
15513 instantiate the configuration file FILE
1c710c3c
DJ
15514
15515Configuration files:
15516$config_files
15517
5213506e 15518Report bugs to the package provider."
2aeb72e9 15519
5213506e
RW
15520_ACEOF
15521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15522ac_cs_version="\\
15523config.status
5213506e
RW
15524configured by $0, generated by GNU Autoconf 2.64,
15525 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15526
5213506e 15527Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15528This config.status script is free software; the Free Software Foundation
15529gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15530
15531ac_pwd='$ac_pwd'
15532srcdir='$srcdir'
15533INSTALL='$INSTALL'
87264276 15534AWK='$AWK'
5213506e 15535test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15536_ACEOF
15537
5213506e
RW
15538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15539# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15540ac_need_defaults=:
15541while test $# != 0
a4b9e93e 15542do
1c710c3c
DJ
15543 case $1 in
15544 --*=*)
5213506e
RW
15545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15546 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15547 ac_shift=:
15548 ;;
5213506e 15549 *)
1c710c3c
DJ
15550 ac_option=$1
15551 ac_optarg=$2
15552 ac_shift=shift
15553 ;;
1c710c3c
DJ
15554 esac
15555
15556 case $ac_option in
15557 # Handling of the options.
671aa708 15558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15559 ac_cs_recheck=: ;;
5213506e
RW
15560 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15561 $as_echo "$ac_cs_version"; exit ;;
15562 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15563 debug=: ;;
15564 --file | --fil | --fi | --f )
15565 $ac_shift
5213506e
RW
15566 case $ac_optarg in
15567 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15568 esac
15569 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15570 ac_need_defaults=false;;
5213506e
RW
15571 --he | --h | --help | --hel | -h )
15572 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15573 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15574 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15575 ac_cs_silent=: ;;
15576
15577 # This is an error.
5213506e
RW
15578 -*) as_fn_error "unrecognized option: \`$1'
15579Try \`$0 --help' for more information." ;;
1c710c3c 15580
5213506e
RW
15581 *) as_fn_append ac_config_targets " $1"
15582 ac_need_defaults=false ;;
1c710c3c 15583
0b0dc272 15584 esac
1c710c3c 15585 shift
0b0dc272
AM
15586done
15587
1c710c3c 15588ac_configure_extra_args=
0b0dc272 15589
1c710c3c
DJ
15590if $ac_cs_silent; then
15591 exec 6>/dev/null
15592 ac_configure_extra_args="$ac_configure_extra_args --silent"
15593fi
0b0dc272 15594
1c710c3c 15595_ACEOF
5213506e 15596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15597if \$ac_cs_recheck; then
5213506e
RW
15598 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15599 shift
15600 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15601 CONFIG_SHELL='$SHELL'
15602 export CONFIG_SHELL
15603 exec "\$@"
1c710c3c
DJ
15604fi
15605
15606_ACEOF
5213506e
RW
15607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15608exec 5>>config.log
15609{
15610 echo
15611 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15612## Running $as_me. ##
15613_ASBOX
15614 $as_echo "$ac_log"
15615} >&5
1c710c3c 15616
5213506e
RW
15617_ACEOF
15618cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15619#
15620# INIT-COMMANDS
15621#
15622extrasub_build="$extrasub_build"
15623 extrasub_host="$extrasub_host"
15624 extrasub_target="$extrasub_target"
15625
5213506e 15626_ACEOF
1c710c3c 15627
5213506e 15628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15629
5213506e 15630# Handling of arguments.
1c710c3c
DJ
15631for ac_config_target in $ac_config_targets
15632do
5213506e
RW
15633 case $ac_config_target in
15634 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15635
15636 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15637 esac
15638done
15639
5213506e 15640
1c710c3c
DJ
15641# If the user did not use the arguments to specify the items to instantiate,
15642# then the envvar interface is used. Set only those that are not.
15643# We use the long form for the default assignment because of an extremely
15644# bizarre bug on SunOS 4.1.3.
15645if $ac_need_defaults; then
15646 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15647fi
15648
15649# Have a temporary directory for convenience. Make it in the build tree
5213506e 15650# simply because there is no reason against having it here, and in addition,
1c710c3c 15651# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15652# Hook for its removal unless debugging.
15653# Note that there is a small window in which the directory will not be cleaned:
15654# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15655$debug ||
15656{
5213506e
RW
15657 tmp=
15658 trap 'exit_status=$?
15659 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15660' 0
15661 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15662}
1c710c3c
DJ
15663# Create a (secure) tmp directory for tmp files.
15664
15665{
5213506e 15666 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15667 test -n "$tmp" && test -d "$tmp"
15668} ||
15669{
5213506e
RW
15670 tmp=./conf$$-$RANDOM
15671 (umask 077 && mkdir "$tmp")
15672} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15673
15674# Set up the scripts for CONFIG_FILES section.
15675# No need to generate them if there are no CONFIG_FILES.
15676# This happens for instance with `./config.status config.h'.
15677if test -n "$CONFIG_FILES"; then
15678
15679if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15680 ac_cs_awk_getline=:
15681 ac_cs_awk_pipe_init=
15682 ac_cs_awk_read_file='
15683 while ((getline aline < (F[key])) > 0)
15684 print(aline)
15685 close(F[key])'
15686 ac_cs_awk_pipe_fini=
15687else
15688 ac_cs_awk_getline=false
15689 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15690 ac_cs_awk_read_file='
15691 print "|#_!!_#|"
15692 print "cat " F[key] " &&"
15693 '$ac_cs_awk_pipe_init
15694 # The final `:' finishes the AND list.
15695 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15696fi
15697ac_cr=`echo X | tr X '\015'`
15698# On cygwin, bash can eat \r inside `` if the user requested igncr.
15699# But we know of no other shell where ac_cr would be empty at this
15700# point, so we can use a bashism as a fallback.
15701if test "x$ac_cr" = x; then
15702 eval ac_cr=\$\'\\r\'
15703fi
15704ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15705if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15706 ac_cs_awk_cr='\r'
15707else
15708 ac_cs_awk_cr=$ac_cr
15709fi
15710
15711echo 'BEGIN {' >"$tmp/subs1.awk" &&
15712_ACEOF
15713
15714# Create commands to substitute file output variables.
1c710c3c 15715{
5213506e
RW
15716 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15717 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15718 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15719 echo "_ACAWK" &&
15720 echo "_ACEOF"
15721} >conf$$files.sh &&
15722. ./conf$$files.sh ||
15723 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15724rm -f conf$$files.sh
1c710c3c 15725
5213506e
RW
15726{
15727 echo "cat >conf$$subs.awk <<_ACEOF" &&
15728 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15729 echo "_ACEOF"
15730} >conf$$subs.sh ||
15731 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15732ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15733ac_delim='%!_!# '
15734for ac_last_try in false false false false false :; do
15735 . ./conf$$subs.sh ||
15736 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15737
15738 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15739 if test $ac_delim_n = $ac_delim_num; then
15740 break
15741 elif $ac_last_try; then
15742 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15743 else
15744 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15745 fi
15746done
15747rm -f conf$$subs.sh
15748
15749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15750cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15751_ACEOF
5213506e
RW
15752sed -n '
15753h
15754s/^/S["/; s/!.*/"]=/
15755p
15756g
15757s/^[^!]*!//
15758:repl
15759t repl
15760s/'"$ac_delim"'$//
15761t delim
15762:nl
15763h
15764s/\(.\{148\}\).*/\1/
15765t more1
15766s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15767p
15768n
15769b repl
15770:more1
15771s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15772p
15773g
15774s/.\{148\}//
15775t nl
15776:delim
15777h
15778s/\(.\{148\}\).*/\1/
15779t more2
15780s/["\\]/\\&/g; s/^/"/; s/$/"/
15781p
15782b
15783:more2
15784s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15785p
15786g
15787s/.\{148\}//
15788t delim
15789' <conf$$subs.awk | sed '
15790/^[^""]/{
15791 N
15792 s/\n//
15793}
15794' >>$CONFIG_STATUS || ac_write_fail=1
15795rm -f conf$$subs.awk
15796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15797_ACAWK
15798cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15799 for (key in S) S_is_set[key] = 1
15800 FS = "\a"
15801 \$ac_cs_awk_pipe_init
15802}
15803{
15804 line = $ 0
15805 nfields = split(line, field, "@")
15806 substed = 0
15807 len = length(field[1])
15808 for (i = 2; i < nfields; i++) {
15809 key = field[i]
15810 keylen = length(key)
15811 if (S_is_set[key]) {
15812 value = S[key]
15813 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15814 len += length(value) + length(field[++i])
15815 substed = 1
15816 } else
15817 len += 1 + keylen
15818 }
15819 if (nfields == 3 && !substed) {
15820 key = field[2]
15821 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15822 \$ac_cs_awk_read_file
15823 next
15824 }
15825 }
15826 print line
15827}
15828\$ac_cs_awk_pipe_fini
15829_ACAWK
15830_ACEOF
15831cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15832if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15833 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15834else
15835 cat
15836fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15837 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15838_ACEOF
15839
15840# VPATH may cause trouble with some makes, so we remove $(srcdir),
15841# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15842# trailing colons and then remove the whole line if VPATH becomes empty
15843# (actually we leave an empty line to preserve line numbers).
15844if test "x$srcdir" = x.; then
15845 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15846s/:*\$(srcdir):*/:/
15847s/:*\${srcdir}:*/:/
15848s/:*@srcdir@:*/:/
15849s/^\([^=]*=[ ]*\):*/\1/
15850s/:*$//
15851s/^[^=]*=[ ]*$//
15852}'
15853fi
2aeb72e9 15854
5213506e
RW
15855cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15856fi # test -n "$CONFIG_FILES"
2aeb72e9 15857
1c710c3c 15858
5213506e
RW
15859eval set X " :F $CONFIG_FILES "
15860shift
15861for ac_tag
15862do
15863 case $ac_tag in
15864 :[FHLC]) ac_mode=$ac_tag; continue;;
15865 esac
15866 case $ac_mode$ac_tag in
15867 :[FHL]*:*);;
15868 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15869 :[FH]-) ac_tag=-:-;;
15870 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15871 esac
15872 ac_save_IFS=$IFS
15873 IFS=:
15874 set x $ac_tag
15875 IFS=$ac_save_IFS
15876 shift
15877 ac_file=$1
15878 shift
79c06341 15879
5213506e
RW
15880 case $ac_mode in
15881 :L) ac_source=$1;;
15882 :[FH])
15883 ac_file_inputs=
15884 for ac_f
15885 do
15886 case $ac_f in
15887 -) ac_f="$tmp/stdin";;
15888 *) # Look for the file first in the build tree, then in the source tree
15889 # (if the path is not absolute). The absolute path cannot be DOS-style,
15890 # because $ac_f cannot contain `:'.
15891 test -f "$ac_f" ||
15892 case $ac_f in
15893 [\\/$]*) false;;
15894 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15895 esac ||
15896 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15897 esac
15898 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15899 as_fn_append ac_file_inputs " '$ac_f'"
15900 done
1c710c3c 15901
5213506e
RW
15902 # Let's still pretend it is `configure' which instantiates (i.e., don't
15903 # use $as_me), people would be surprised to read:
15904 # /* config.h. Generated by config.status. */
15905 configure_input='Generated from '`
15906 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15907 `' by configure.'
15908 if test x"$ac_file" != x-; then
15909 configure_input="$ac_file. $configure_input"
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15911$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15912 fi
5213506e
RW
15913 # Neutralize special characters interpreted by sed in replacement strings.
15914 case $configure_input in #(
15915 *\&* | *\|* | *\\* )
15916 ac_sed_conf_input=`$as_echo "$configure_input" |
15917 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15918 *) ac_sed_conf_input=$configure_input;;
15919 esac
11a67599 15920
5213506e
RW
15921 case $ac_tag in
15922 *:-:* | *:-) cat >"$tmp/stdin" \
15923 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15924 esac
15925 ;;
11a67599
ZW
15926 esac
15927
5213506e 15928 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15929$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15930 X"$ac_file" : 'X\(//\)[^/]' \| \
15931 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15932 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15933$as_echo X"$ac_file" |
15934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15935 s//\1/
15936 q
15937 }
15938 /^X\(\/\/\)[^/].*/{
15939 s//\1/
15940 q
15941 }
15942 /^X\(\/\/\)$/{
15943 s//\1/
15944 q
15945 }
15946 /^X\(\/\).*/{
15947 s//\1/
15948 q
15949 }
15950 s/.*/./; q'`
15951 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15952 ac_builddir=.
0b0dc272 15953
5213506e
RW
15954case "$ac_dir" in
15955.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15956*)
15957 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15958 # A ".." for each directory in $ac_dir_suffix.
15959 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15960 case $ac_top_builddir_sub in
15961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15963 esac ;;
15964esac
15965ac_abs_top_builddir=$ac_pwd
15966ac_abs_builddir=$ac_pwd$ac_dir_suffix
15967# for backward compatibility:
15968ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15969
15970case $srcdir in
5213506e 15971 .) # We are building in place.
1c710c3c 15972 ac_srcdir=.
5213506e
RW
15973 ac_top_srcdir=$ac_top_builddir_sub
15974 ac_abs_top_srcdir=$ac_pwd ;;
15975 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15976 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15977 ac_top_srcdir=$srcdir
15978 ac_abs_top_srcdir=$srcdir ;;
15979 *) # Relative name.
15980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15981 ac_top_srcdir=$ac_top_build_prefix$srcdir
15982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15983esac
5213506e 15984ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15985
0b0dc272 15986
5213506e
RW
15987 case $ac_mode in
15988 :F)
15989 #
15990 # CONFIG_FILE
15991 #
1c710c3c
DJ
15992
15993 case $INSTALL in
15994 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15995 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15996 esac
5213506e 15997_ACEOF
11a67599 15998
5213506e
RW
15999cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16000# If the template does not know about datarootdir, expand it.
16001# FIXME: This hack should be removed a few years after 2.60.
16002ac_datarootdir_hack=; ac_datarootdir_seen=
16003ac_sed_dataroot='
16004/datarootdir/ {
16005 p
16006 q
16007}
16008/@datadir@/p
16009/@docdir@/p
16010/@infodir@/p
16011/@localedir@/p
16012/@mandir@/p'
16013case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16014*datarootdir*) ac_datarootdir_seen=yes;;
16015*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16017$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 16018_ACEOF
5213506e
RW
16019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16020 ac_datarootdir_hack='
16021 s&@datadir@&$datadir&g
16022 s&@docdir@&$docdir&g
16023 s&@infodir@&$infodir&g
16024 s&@localedir@&$localedir&g
16025 s&@mandir@&$mandir&g
16026 s&\\\${datarootdir}&$datarootdir&g' ;;
16027esac
16028_ACEOF
16029
16030# Neutralize VPATH when `$srcdir' = `.'.
16031# Shell code in configure.ac might set extrasub.
16032# FIXME: do we really want to maintain this feature?
16033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16034ac_sed_extra="$ac_vpsub
1c710c3c
DJ
16035$extrasub
16036_ACEOF
5213506e 16037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
16038:t
16039/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
16040s|@configure_input@|$ac_sed_conf_input|;t t
16041s&@top_builddir@&$ac_top_builddir_sub&;t t
16042s&@top_build_prefix@&$ac_top_build_prefix&;t t
16043s&@srcdir@&$ac_srcdir&;t t
16044s&@abs_srcdir@&$ac_abs_srcdir&;t t
16045s&@top_srcdir@&$ac_top_srcdir&;t t
16046s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16047s&@builddir@&$ac_builddir&;t t
16048s&@abs_builddir@&$ac_abs_builddir&;t t
16049s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16050s&@INSTALL@&$ac_INSTALL&;t t
16051$ac_datarootdir_hack
16052"
16053eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16054if $ac_cs_awk_getline; then
16055 $AWK -f "$tmp/subs.awk"
16056else
16057 $AWK -f "$tmp/subs.awk" | $SHELL
16058fi >$tmp/out \
16059 || as_fn_error "could not create $ac_file" "$LINENO" 5
16060
16061test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16062 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16063 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16065which seems to be undefined. Please make sure it is defined." >&5
16066$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16067which seems to be undefined. Please make sure it is defined." >&2;}
16068
16069 rm -f "$tmp/stdin"
16070 case $ac_file in
16071 -) cat "$tmp/out" && rm -f "$tmp/out";;
16072 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16073 esac \
16074 || as_fn_error "could not create $ac_file" "$LINENO" 5
16075 ;;
11a67599 16076
11a67599 16077
79c06341 16078
5213506e
RW
16079 esac
16080
3e54529c
RW
16081
16082 case $ac_file$ac_mode in
16083 "Makefile":F) sed "$extrasub_build" Makefile |
16084 sed "$extrasub_host" |
16085 sed "$extrasub_target" > mf$$
16086 mv -f mf$$ Makefile ;;
16087
16088 esac
5213506e
RW
16089done # for ac_tag
16090
16091
16092as_fn_exit 0
1c710c3c 16093_ACEOF
1c710c3c
DJ
16094ac_clean_files=$ac_clean_files_save
16095
5213506e
RW
16096test $ac_write_fail = 0 ||
16097 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16098
1c710c3c
DJ
16099
16100# configure is writing to config.log, and then calls config.status.
16101# config.status does its own redirection, appending to config.log.
16102# Unfortunately, on DOS this fails, as config.log is still kept open
16103# by configure, so config.status won't be able to write to it; its
16104# output is simply discarded. So we exec the FD to /dev/null,
16105# effectively closing config.log, so it can be properly (re)opened and
16106# appended to by config.status. When coming back to configure, we
16107# need to make the FD available again.
16108if test "$no_create" != yes; then
16109 ac_cs_success=:
16110 ac_config_status_args=
16111 test "$silent" = yes &&
16112 ac_config_status_args="$ac_config_status_args --quiet"
16113 exec 5>/dev/null
16114 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16115 exec 5>>config.log
16116 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16117 # would make configure fail if this is the last instruction.
5213506e
RW
16118 $ac_cs_success || as_fn_exit $?
16119fi
16120if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16122$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16123fi
79c06341 16124