]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Daily bump.
[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 ;;
3449 sh64-*-* | sh5*-*-*)
3450 ;;
3451 sparc*-*-*)
3452 ;;
3453 x86_64-*-*)
3454 ;;
3455 *-*-*)
3456 unsupported_languages="$unsupported_languages java"
3457 ;;
3458esac
3459
3460# Disable Java, libgcj or related libraries for some systems.
3461case "${target}" in
2909494b
JM
3462 powerpc-*-darwin*)
3463 ;;
3464 i[3456789]86-*-darwin*)
3465 ;;
3466 x86_64-*-darwin[912]*)
3467 ;;
3468 *-*-darwin*)
3469 noconfigdirs="$noconfigdirs ${libgcj}"
3470 ;;
2909494b
JM
3471 *-*-netware*)
3472 noconfigdirs="$noconfigdirs ${libgcj}"
3473 ;;
3474 *-*-rtems*)
3475 noconfigdirs="$noconfigdirs ${libgcj}"
3476 ;;
3477 *-*-tpf*)
3478 noconfigdirs="$noconfigdirs ${libgcj}"
3479 ;;
3480 *-*-uclinux*)
3481 noconfigdirs="$noconfigdirs ${libgcj}"
3482 ;;
3483 *-*-vxworks*)
3484 noconfigdirs="$noconfigdirs ${libgcj}"
3485 ;;
2909494b
JM
3486 alpha*-*-*vms*)
3487 noconfigdirs="$noconfigdirs ${libgcj}"
3488 ;;
82a19768
AT
3489 arm*-*-freebsd*)
3490 noconfigdirs="$noconfigdirs ${libgcj}"
3491 ;;
80f81134 3492 arm-wince-pe)
2909494b
JM
3493 noconfigdirs="$noconfigdirs ${libgcj}"
3494 ;;
2909494b
JM
3495 arm*-*-symbianelf*)
3496 noconfigdirs="$noconfigdirs ${libgcj}"
3497 ;;
2909494b 3498 bfin-*-*)
2909494b
JM
3499 noconfigdirs="$noconfigdirs target-boehm-gc"
3500 ;;
2909494b
JM
3501 cris-*-* | crisv32-*-*)
3502 unsupported_languages="$unsupported_languages java"
3503 case "${target}" in
3504 *-*-linux*)
3505 ;;
3506 *) # See PR46792 regarding target-libffi.
3507 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3508 esac
3509 ;;
2909494b
JM
3510 hppa*64*-*-linux*)
3511 # In this case, it's because the hppa64-linux target is for
3512 # the kernel only at this point and has no libc, and thus no
3513 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3514 unsupported_languages="$unsupported_languages java"
2909494b 3515 ;;
fddf9ee7 3516 hppa*64*-*-hpux*)
2909494b
JM
3517 noconfigdirs="$noconfigdirs ${libgcj}"
3518 ;;
3519 hppa*-hp-hpux11*)
3520 ;;
fddf9ee7 3521 hppa*-*-hpux*)
2909494b
JM
3522 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3523 # build on HP-UX 10.20.
3524 noconfigdirs="$noconfigdirs ${libgcj}"
3525 ;;
2909494b
JM
3526 ia64*-*-*vms*)
3527 noconfigdirs="$noconfigdirs ${libgcj}"
3528 ;;
2909494b
JM
3529 i[3456789]86-w64-mingw*)
3530 noconfigdirs="$noconfigdirs ${libgcj}"
3531 ;;
3532 i[3456789]86-*-mingw*)
3533 noconfigdirs="$noconfigdirs ${libgcj}"
3534 ;;
3535 x86_64-*-mingw*)
3536 noconfigdirs="$noconfigdirs ${libgcj}"
3537 ;;
2909494b
JM
3538 mmix-*-*)
3539 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3540 ;;
3541 powerpc-*-aix*)
3542 # copied from rs6000-*-* entry
3543 noconfigdirs="$noconfigdirs ${libgcj}"
3544 ;;
2909494b
JM
3545 rs6000-*-aix*)
3546 noconfigdirs="$noconfigdirs ${libgcj}"
3547 ;;
a05c2c75
L
3548 ft32-*-*)
3549 noconfigdirs="$noconfigdirs ${libgcj}"
3550 ;;
2909494b
JM
3551 *-*-lynxos*)
3552 noconfigdirs="$noconfigdirs ${libgcj}"
3553 ;;
2909494b
JM
3554esac
3555
1335a8ca
JBG
3556# Disable the go frontend on systems where it is known to not work. Please keep
3557# this in sync with contrib/config-list.mk.
74cc5471
ILT
3558case "${target}" in
3559*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3560 unsupported_languages="$unsupported_languages go"
3561 ;;
3562esac
3563
cdbc9e92
ILT
3564# Disable libgo for some systems where it is known to not work.
3565# For testing, you can easily override this with --enable-libgo.
3566if test x$enable_libgo = x; then
3567 case "${target}" in
3568 *-*-darwin*)
3569 # PR 46986
3570 noconfigdirs="$noconfigdirs target-libgo"
3571 ;;
3572 *-*-cygwin* | *-*-mingw*)
3573 noconfigdirs="$noconfigdirs target-libgo"
3574 ;;
3575 *-*-aix*)
3576 noconfigdirs="$noconfigdirs target-libgo"
3577 ;;
3578 esac
3579fi
3580
c03353e2
RIL
3581# Default libgloss CPU subdirectory.
3582libgloss_dir="$target_cpu"
6de9cd9a 3583
fbcf0dca
JM
3584case "${target}" in
3585 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3586 libgloss_dir=wince
3587 ;;
4dddfc74
YZ
3588 aarch64*-*-* )
3589 libgloss_dir=aarch64
3590 ;;
fbcf0dca
JM
3591 arm*-*-*)
3592 libgloss_dir=arm
3593 ;;
3594 cris-*-* | crisv32-*-*)
3595 libgloss_dir=cris
3596 ;;
3597 hppa*-*-*)
3598 libgloss_dir=pa
3599 ;;
3600 i[3456789]86-*-*)
3601 libgloss_dir=i386
3602 ;;
3603 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3604 libgloss_dir=m68hc11
3605 ;;
3606 m68*-*-* | fido-*-*)
3607 libgloss_dir=m68k
3608 ;;
3609 mips*-*-*)
3610 libgloss_dir=mips
3611 ;;
3612 powerpc*-*-*)
3613 libgloss_dir=rs6000
3614 ;;
3615 sparc*-*-*)
3616 libgloss_dir=sparc
3617 ;;
3618esac
3619
6a789d5e 3620# Disable newlib and libgloss for various target OSes.
671aa708 3621case "${target}" in
6a789d5e
JM
3622 alpha*-dec-osf*)
3623 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3624 ;;
3625 i[3456789]86-*-linux*)
3626 # This section makes it possible to build newlib natively on linux.
3627 # If we are using a cross compiler then don't configure newlib.
3628 if test x${is_cross_compiler} != xno ; then
3629 noconfigdirs="$noconfigdirs target-newlib"
3630 fi
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 # If we are not using a cross compiler, do configure newlib.
3633 # Note however, that newlib will only be configured in this situation
3634 # if the --with-newlib option has been given, because otherwise
3635 # 'target-newlib' will appear in skipdirs.
3636 ;;
3637 i[3456789]86-*-rdos*)
3638 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3639 ;;
3640 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3641 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3642 ;;
3643 sparc-*-sunos4*)
3644 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3645 ;;
3646 *-*-aix*)
3647 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3648 ;;
3649 *-*-beos*)
3650 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3651 ;;
671aa708 3652 *-*-chorusos)
0036370f 3653 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3654 ;;
6a789d5e
JM
3655 *-*-dragonfly*)
3656 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3657 ;;
3658 *-*-freebsd*)
3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3660 ;;
3661 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3662 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3663 ;;
3664 *-*-lynxos*)
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 ;;
3667 *-*-mingw*)
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3669 ;;
3670 *-*-netbsd*)
3671 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3672 ;;
3673 *-*-netware*)
3674 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3675 ;;
3676 *-*-tpf*)
3677 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3678 ;;
3679 *-*-uclinux*)
3680 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3681 ;;
3682 *-*-vxworks*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3684 ;;
3685esac
3686
3687case "${target}" in
3688 *-*-chorusos)
3689 ;;
3be96231
TG
3690 aarch64-*-darwin*)
3691 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3692 noconfigdirs="$noconfigdirs sim target-rda"
3693 ;;
3694 arm-*-darwin*)
3695 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3696 noconfigdirs="$noconfigdirs sim target-rda"
3697 ;;
75eeae1a 3698 powerpc-*-darwin*)
e1514c3f 3699 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3700 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3701 ;;
354ebf88
RW
3702 i[3456789]86-*-darwin*)
3703 noconfigdirs="$noconfigdirs ld gprof"
3704 noconfigdirs="$noconfigdirs sim target-rda"
3705 ;;
3706 x86_64-*-darwin[912]*)
0db3a858
TG
3707 noconfigdirs="$noconfigdirs ld gas gprof"
3708 noconfigdirs="$noconfigdirs sim target-rda"
3709 ;;
42c1cd8a
AT
3710 *-*-darwin*)
3711 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3712 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3713 ;;
8c6d158a 3714 *-*-dragonfly*)
8c6d158a 3715 ;;
c3f84f61 3716 *-*-freebsd*)
6de9cd9a
DN
3717 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3718 && test -f /usr/local/include/gmp.h; then
3719 with_gmp=/usr/local
3720 fi
6de9cd9a 3721 ;;
ef4e7569
US
3722 *-*-kaos*)
3723 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3724 noconfigdirs="$noconfigdirs target-libgloss"
3725 ;;
671aa708 3726 *-*-netbsd*)
671aa708 3727 ;;
61fec9ff 3728 *-*-netware*)
671aa708
NN
3729 ;;
3730 *-*-rtems*)
2909494b 3731 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3732 # this is not caught below because this stanza matches earlier
3733 case $target in
3734 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3735 esac
671aa708 3736 ;;
a8ba31f2
EC
3737 # The tpf target doesn't support gdb yet.
3738 *-*-tpf*)
6a789d5e 3739 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3740 ;;
5785c0ed 3741 *-*-uclinux*)
6a789d5e 3742 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3743 ;;
671aa708 3744 *-*-vxworks*)
671aa708
NN
3745 ;;
3746 alpha*-dec-osf*)
3747 # ld works, but does not support shared libraries.
671aa708 3748 # gas doesn't generate exception information.
6a789d5e 3749 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3750 ;;
3751 alpha*-*-*vms*)
2909494b 3752 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3753 ;;
671aa708
NN
3754 alpha*-*-*)
3755 # newlib is not 64 bit ready
2909494b 3756 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3757 ;;
671aa708 3758 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3759 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3760 ;;
53426f6c 3761 arc-*-*|arceb-*-*)
ebb9f8b0 3762 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3763 ;;
671aa708 3764 arm-*-pe*)
2909494b 3765 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3766 ;;
671aa708 3767 arm-*-riscix*)
0036370f 3768 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3769 ;;
b588ae30
GJL
3770 avr-*-rtems*)
3771 ;;
3772 avr-*-*)
3773 if test x${with_avrlibc} != xno; then
3774 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3775 fi
3776 ;;
671aa708 3777 c4x-*-* | tic4x-*-*)
0036370f 3778 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3779 ;;
0036370f
JM
3780 tic54x-*-*)
3781 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3782 ;;
671aa708 3783 d10v-*-*)
0036370f 3784 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3785 ;;
3786 d30v-*-*)
0036370f 3787 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3788 ;;
3789 fr30-*-elf*)
2909494b 3790 noconfigdirs="$noconfigdirs gdb"
671aa708 3791 ;;
a05c2c75
L
3792 ft32-*-*)
3793 noconfigdirs="$noconfigdirs target-rda gprof"
3794 ;;
55f2d967 3795 moxie-*-*)
a05c2c75 3796 noconfigdirs="$noconfigdirs"
55f2d967 3797 ;;
671aa708 3798 h8300*-*-*)
2909494b 3799 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3800 ;;
3801 h8500-*-*)
0036370f 3802 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3803 ;;
ee6a22df 3804 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3805 ;;
a05c2c75
L
3806 hppa*64*-*-hpux*)
3807 noconfigdirs="$noconfigdirs gdb"
3808 ;;
3809 hppa*-*-hpux11*)
3810 noconfigdirs="$noconfigdirs gdb ld"
3811 ;;
4569f85e 3812 hppa*64*-*-linux*)
671aa708 3813 ;;
56f8587a 3814 hppa*-*-linux*)
3e732ba0 3815 ;;
671aa708 3816 hppa*-*-*elf* | \
671aa708
NN
3817 hppa*-*-lites* | \
3818 hppa*-*-openbsd* | \
3819 hppa*64*-*-*)
671aa708 3820 ;;
c03353e2 3821 hppa*-*-pro*)
c03353e2 3822 ;;
671aa708 3823 hppa*-*-*)
2909494b 3824 noconfigdirs="$noconfigdirs ld"
671aa708 3825 ;;
fb87ad5d 3826 i960-*-*)
0036370f 3827 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3828 ;;
671aa708
NN
3829 ia64*-*-elf*)
3830 # No gdb support yet.
1bcce263 3831 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3832 ;;
3833 ia64*-**-hpux*)
5a2931d1 3834 # No ld support yet.
a05c2c75 3835 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3836 ;;
52535a64 3837 ia64*-*-*vms*)
091fe9ca
TG
3838 # No ld support yet.
3839 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3840 ;;
ef4c4300 3841 i[3456789]86-w64-mingw*)
ef4c4300
KT
3842 ;;
3843 i[3456789]86-*-mingw*)
b91f0a41 3844 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3845 ;;
671aa708
NN
3846 *-*-cygwin*)
3847 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3848 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3849 # always build newlib if winsup directory is present.
b91f0a41 3850 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3851 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3852 elif test -d "$srcdir/newlib"; then
b91f0a41 3853 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3854 fi
1c710c3c 3855 ;;
f2a0e225 3856 i[3456789]86-*-pe)
ebb9f8b0 3857 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3858 ;;
f2a0e225 3859 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3860 # The linker does not yet know about weak symbols in COFF,
3861 # and is not configured to handle mixed ELF and COFF.
0036370f 3862 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3863 ;;
f2a0e225 3864 i[3456789]86-*-sco*)
0036370f 3865 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3866 ;;
fbdd5d87 3867 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3868 noconfigdirs="$noconfigdirs target-libgloss"
3869 ;;
f2a0e225 3870 i[3456789]86-*-sysv4*)
0036370f 3871 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3872 ;;
f2a0e225 3873 i[3456789]86-*-beos*)
6a789d5e 3874 noconfigdirs="$noconfigdirs gdb"
3aa83176 3875 ;;
d1f8db0c 3876 i[3456789]86-*-rdos*)
6a789d5e 3877 noconfigdirs="$noconfigdirs gdb"
c03353e2 3878 ;;
671aa708 3879 mmix-*-*)
2909494b 3880 noconfigdirs="$noconfigdirs gdb"
671aa708 3881 ;;
ab34901f 3882 mt-*-*)
79dd769c
AH
3883 noconfigdirs="$noconfigdirs sim"
3884 ;;
671aa708
NN
3885 powerpc-*-aix*)
3886 # copied from rs6000-*-* entry
6a789d5e 3887 noconfigdirs="$noconfigdirs gprof"
671aa708 3888 ;;
4569f85e 3889 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3890 target_configdirs="$target_configdirs target-winsup"
0036370f 3891 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3892 # always build newlib.
3893 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3894 ;;
3895 # This is temporary until we can link against shared libraries
3896 powerpcle-*-solaris*)
0036370f 3897 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3898 ;;
3899 powerpc-*-beos*)
6a789d5e 3900 noconfigdirs="$noconfigdirs gdb"
671aa708 3901 ;;
671aa708 3902 rs6000-*-lynxos*)
6a789d5e 3903 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3904 ;;
3905 rs6000-*-aix*)
6a789d5e 3906 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3907 ;;
3908 rs6000-*-*)
2909494b 3909 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3910 ;;
3911 m68k-apollo-*)
0036370f 3912 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3913 ;;
ca9fe997 3914 microblaze*)
2909494b 3915 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3916 ;;
d896cc4d 3917 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3918 if test x$with_newlib = xyes; then
3919 noconfigdirs="$noconfigdirs gprof"
3920 fi
d9dced13 3921 ;;
671aa708 3922 mips*-*-irix5*)
0036370f 3923 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3924 ;;
3925 mips*-*-irix6*)
2909494b 3926 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3927 ;;
671aa708 3928 mips*-*-bsd*)
bc98bcc4 3929 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3930 ;;
671aa708 3931 mips*-*-linux*)
671aa708 3932 ;;
bc98bcc4
JBG
3933 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3934 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3935 noconfigdirs="$noconfigdirs ld gas gprof"
3936 ;;
671aa708 3937 mips*-*-*)
2909494b 3938 noconfigdirs="$noconfigdirs gprof"
671aa708 3939 ;;
d896cc4d
JBG
3940 nds32*-*-*)
3941 noconfigdirs="$noconfigdirs gdb"
3942 ;;
738f2522 3943 nvptx*-*-*)
738f2522
BS
3944 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3945 ;;
d896cc4d
JBG
3946 or1k*-*-*)
3947 noconfigdirs="$noconfigdirs gdb"
3948 ;;
669f01d8 3949 sh-*-* | sh64-*-*)
ea2002ba
CB
3950 case "${target}" in
3951 sh*-*-elf)
2909494b 3952 ;;
ea2002ba 3953 *)
2909494b 3954 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3955 esac
671aa708 3956 ;;
671aa708 3957 sparc-*-sunos4*)
6a789d5e 3958 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3959 use_gnu_ld=no
3960 fi
3961 ;;
b42f0d7e 3962 tic6x-*-*)
0d557ff8 3963 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3964 ;;
341c653c 3965 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3966 noconfigdirs="$noconfigdirs sim"
3967 ;;
671aa708 3968 v810-*-*)
0036370f 3969 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3970 ;;
3971 vax-*-*)
2909494b 3972 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3973 ;;
671aa708 3974esac
79c06341 3975
671aa708
NN
3976# If we aren't building newlib, then don't build libgloss, since libgloss
3977# depends upon some newlib header files.
3978case "${noconfigdirs}" in
3979 *target-libgloss*) ;;
3980 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3981esac
3982
671aa708 3983# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3984host_makefile_frag=/dev/null
3985if test -d ${srcdir}/config ; then
3986case "${host}" in
f2a0e225 3987 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3988 host_makefile_frag="config/mh-djgpp"
3989 ;;
3990 *-cygwin*)
2a79c47f 3991
5213506e
RW
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3993$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3994echo a >cygwin-cat-check
e25a8c82 3995if test `cat cygwin-cat-check` = a ; then
2a79c47f 3996 rm cygwin-cat-check
5213506e
RW
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3998$as_echo "yes" >&6; }
2a79c47f
NC
3999else
4000 rm cygwin-cat-check
5213506e
RW
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4002$as_echo "no" >&6; }
4003 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
4004 Please either mount the build directory in binary mode or run the following
4005 commands before running any configure script:
4006set -o igncr
4007export SHELLOPTS
5213506e 4008 " "$LINENO" 5
2a79c47f
NC
4009fi
4010
671aa708
NN
4011 host_makefile_frag="config/mh-cygwin"
4012 ;;
c53a18d3 4013 *-mingw*)
1f5a6b84 4014 host_makefile_frag="config/mh-mingw"
95af8923 4015 ;;
cabb9d59 4016 alpha*-linux*)
13be44ed
UB
4017 host_makefile_frag="config/mh-alpha-linux"
4018 ;;
efd41714 4019 hppa*-hp-hpux10*)
efd41714 4020 host_makefile_frag="config/mh-pa-hpux10"
671aa708 4021 ;;
111eeb6e 4022 hppa*-hp-hpux*)
efd41714
PB
4023 host_makefile_frag="config/mh-pa"
4024 ;;
4025 hppa*-*)
4026 host_makefile_frag="config/mh-pa"
4027 ;;
d8ed14ce
IS
4028 *-*-darwin*)
4029 host_makefile_frag="config/mh-darwin"
be8fff81 4030 ;;
d19bca38
PB
4031 powerpc-*-aix*)
4032 host_makefile_frag="config/mh-ppc-aix"
4033 ;;
4034 rs6000-*-aix*)
4035 host_makefile_frag="config/mh-ppc-aix"
4036 ;;
671aa708
NN
4037esac
4038fi
4039
55ffb5ed 4040if test "${build}" != "${host}" ; then
0999159b
PB
4041 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4042 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 4043 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
4044 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4045 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
4046 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 4047 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
4048 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4049 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4050 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4051 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4052 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4053 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4054else
4055 AR_FOR_BUILD="\$(AR)"
4056 AS_FOR_BUILD="\$(AS)"
fb0103e5 4057 CC_FOR_BUILD="\$(CC)"
0999159b
PB
4058 CXX_FOR_BUILD="\$(CXX)"
4059 GCJ_FOR_BUILD="\$(GCJ)"
4060 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 4061 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
4062 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4063 LD_FOR_BUILD="\$(LD)"
4064 NM_FOR_BUILD="\$(NM)"
4065 RANLIB_FOR_BUILD="\$(RANLIB)"
4066 WINDRES_FOR_BUILD="\$(WINDRES)"
4067 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
4068fi
4069
4070ac_ext=c
1c710c3c
DJ
4071ac_cpp='$CPP $CPPFLAGS'
4072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4074ac_compiler_gnu=$ac_cv_c_compiler_gnu
4075if test -n "$ac_tool_prefix"; then
4076 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4077set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079$as_echo_n "checking for $ac_word... " >&6; }
4080if test "${ac_cv_prog_CC+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4082else
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4085else
4086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087for as_dir in $PATH
4088do
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
5213506e
RW
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4093 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4095 break 2
4096 fi
4097done
5213506e
RW
4098 done
4099IFS=$as_save_IFS
1c710c3c
DJ
4100
4101fi
4102fi
4103CC=$ac_cv_prog_CC
4104if test -n "$CC"; then
5213506e
RW
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4106$as_echo "$CC" >&6; }
1c710c3c 4107else
5213506e
RW
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109$as_echo "no" >&6; }
1c710c3c
DJ
4110fi
4111
5213506e 4112
1c710c3c
DJ
4113fi
4114if test -z "$ac_cv_prog_CC"; then
4115 ac_ct_CC=$CC
fb0103e5
RG
4116 # Extract the first word of "gcc", so it can be a program name with args.
4117set dummy gcc; ac_word=$2
5213506e
RW
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119$as_echo_n "checking for $ac_word... " >&6; }
4120if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4122else
4123 if test -n "$ac_ct_CC"; then
4124 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4125else
4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127for as_dir in $PATH
4128do
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
5213506e
RW
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4133 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4135 break 2
4136 fi
4137done
5213506e
RW
4138 done
4139IFS=$as_save_IFS
1c710c3c
DJ
4140
4141fi
4142fi
4143ac_ct_CC=$ac_cv_prog_ac_ct_CC
4144if test -n "$ac_ct_CC"; then
5213506e
RW
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4146$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4147else
5213506e
RW
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149$as_echo "no" >&6; }
1c710c3c
DJ
4150fi
4151
5213506e
RW
4152 if test "x$ac_ct_CC" = x; then
4153 CC=""
4154 else
4155 case $cross_compiling:$ac_tool_warned in
4156yes:)
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4159ac_tool_warned=yes ;;
4160esac
4161 CC=$ac_ct_CC
4162 fi
1c710c3c
DJ
4163else
4164 CC="$ac_cv_prog_CC"
4165fi
4166
4167if test -z "$CC"; then
5213506e
RW
4168 if test -n "$ac_tool_prefix"; then
4169 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4170set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4172$as_echo_n "checking for $ac_word... " >&6; }
4173if test "${ac_cv_prog_CC+set}" = set; then :
4174 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4175else
4176 if test -n "$CC"; then
4177 ac_cv_prog_CC="$CC" # Let the user override the test.
4178else
1c710c3c
DJ
4179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180for as_dir in $PATH
4181do
4182 IFS=$as_save_IFS
4183 test -z "$as_dir" && as_dir=.
5213506e
RW
4184 for ac_exec_ext in '' $ac_executable_extensions; do
4185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4186 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4188 break 2
4189 fi
4190done
5213506e
RW
4191 done
4192IFS=$as_save_IFS
1c710c3c 4193
0b0dc272 4194fi
0b0dc272 4195fi
1c710c3c 4196CC=$ac_cv_prog_CC
af71363e 4197if test -n "$CC"; then
5213506e
RW
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4199$as_echo "$CC" >&6; }
2aeb72e9 4200else
5213506e
RW
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4202$as_echo "no" >&6; }
2aeb72e9
DD
4203fi
4204
2aeb72e9 4205
5213506e 4206 fi
1c710c3c 4207fi
55ffb5ed
NN
4208if test -z "$CC"; then
4209 # Extract the first word of "cc", so it can be a program name with args.
4210set dummy cc; ac_word=$2
5213506e
RW
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4212$as_echo_n "checking for $ac_word... " >&6; }
4213if test "${ac_cv_prog_CC+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4215else
4216 if test -n "$CC"; then
4217 ac_cv_prog_CC="$CC" # Let the user override the test.
4218else
0b0dc272 4219 ac_prog_rejected=no
1c710c3c
DJ
4220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221for as_dir in $PATH
4222do
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
5213506e
RW
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4227 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4228 ac_prog_rejected=yes
4229 continue
4230 fi
4231 ac_cv_prog_CC="cc"
5213506e 4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4233 break 2
4234 fi
4235done
5213506e
RW
4236 done
4237IFS=$as_save_IFS
1c710c3c 4238
55ffb5ed
NN
4239if test $ac_prog_rejected = yes; then
4240 # We found a bogon in the path, so make sure we never use it.
4241 set dummy $ac_cv_prog_CC
4242 shift
1c710c3c 4243 if test $# != 0; then
55ffb5ed
NN
4244 # We chose a different compiler from the bogus one.
4245 # However, it has the same basename, so the bogon will be chosen
4246 # first if we set CC to just the basename; use the full file name.
4247 shift
1c710c3c 4248 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4249 fi
4250fi
4251fi
4252fi
1c710c3c 4253CC=$ac_cv_prog_CC
55ffb5ed 4254if test -n "$CC"; then
5213506e
RW
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4256$as_echo "$CC" >&6; }
55ffb5ed 4257else
5213506e
RW
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259$as_echo "no" >&6; }
55ffb5ed
NN
4260fi
4261
5213506e 4262
1c710c3c
DJ
4263fi
4264if test -z "$CC"; then
4265 if test -n "$ac_tool_prefix"; then
5213506e 4266 for ac_prog in cl.exe
1c710c3c
DJ
4267 do
4268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4269set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4271$as_echo_n "checking for $ac_word... " >&6; }
4272if test "${ac_cv_prog_CC+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4274else
4275 if test -n "$CC"; then
4276 ac_cv_prog_CC="$CC" # Let the user override the test.
4277else
1c710c3c
DJ
4278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
5213506e
RW
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4287 break 2
4288 fi
4289done
5213506e
RW
4290 done
4291IFS=$as_save_IFS
1c710c3c 4292
55ffb5ed
NN
4293fi
4294fi
1c710c3c 4295CC=$ac_cv_prog_CC
55ffb5ed 4296if test -n "$CC"; then
5213506e
RW
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4298$as_echo "$CC" >&6; }
a4b9e93e 4299else
5213506e
RW
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301$as_echo "no" >&6; }
fb0103e5 4302fi
af71363e 4303
5213506e 4304
1c710c3c
DJ
4305 test -n "$CC" && break
4306 done
af71363e 4307fi
1c710c3c
DJ
4308if test -z "$CC"; then
4309 ac_ct_CC=$CC
5213506e 4310 for ac_prog in cl.exe
1c710c3c
DJ
4311do
4312 # Extract the first word of "$ac_prog", so it can be a program name with args.
4313set dummy $ac_prog; ac_word=$2
5213506e
RW
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315$as_echo_n "checking for $ac_word... " >&6; }
4316if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
0b0dc272 4318else
1c710c3c
DJ
4319 if test -n "$ac_ct_CC"; then
4320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4321else
1c710c3c
DJ
4322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323for as_dir in $PATH
4324do
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
5213506e
RW
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4329 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4331 break 2
4332 fi
4333done
5213506e
RW
4334 done
4335IFS=$as_save_IFS
1c710c3c 4336
af71363e
AS
4337fi
4338fi
1c710c3c
DJ
4339ac_ct_CC=$ac_cv_prog_ac_ct_CC
4340if test -n "$ac_ct_CC"; then
5213506e
RW
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4342$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4343else
5213506e
RW
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345$as_echo "no" >&6; }
af71363e 4346fi
0b0dc272 4347
5213506e 4348
1c710c3c
DJ
4349 test -n "$ac_ct_CC" && break
4350done
4351
5213506e
RW
4352 if test "x$ac_ct_CC" = x; then
4353 CC=""
4354 else
4355 case $cross_compiling:$ac_tool_warned in
4356yes:)
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4359ac_tool_warned=yes ;;
4360esac
4361 CC=$ac_ct_CC
4362 fi
1c710c3c
DJ
4363fi
4364
4365fi
4366
4367
5213506e
RW
4368test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4369$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4370as_fn_error "no acceptable C compiler found in \$PATH
4371See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4372
4373# Provide some information about the compiler.
5213506e
RW
4374$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4375set X $ac_compile
4376ac_compiler=$2
4377for ac_option in --version -v -V -qversion; do
4378 { { ac_try="$ac_compiler $ac_option >&5"
4379case "(($ac_try" in
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384$as_echo "$ac_try_echo"; } >&5
4385 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4386 ac_status=$?
5213506e
RW
4387 if test -s conftest.err; then
4388 sed '10a\
4389... rest of stderr output deleted ...
4390 10q' conftest.err >conftest.er1
4391 cat conftest.er1 >&5
4392 rm -f conftest.er1 conftest.err
4393 fi
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }
4396done
1c710c3c 4397
5213506e 4398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4399/* end confdefs.h. */
4400
4401int
4402main ()
4403{
4404
4405 ;
4406 return 0;
4407}
4408_ACEOF
4409ac_clean_files_save=$ac_clean_files
5213506e 4410ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4411# Try to create an executable without -o first, disregard a.out.
4412# It will help us diagnose broken compilers, and finding out an intuition
4413# of exeext.
5213506e
RW
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4415$as_echo_n "checking for C compiler default output file name... " >&6; }
4416ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4417
4418# The possible output files:
4419ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4420
4421ac_rmfiles=
4422for ac_file in $ac_files
4423do
4424 case $ac_file in
4425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4426 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4427 esac
4428done
4429rm -f $ac_rmfiles
4430
4431if { { ac_try="$ac_link_default"
4432case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437$as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link_default") 2>&5
1c710c3c 4439 ac_status=$?
5213506e
RW
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
4442 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4443# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4444# in a Makefile. We should not override ac_cv_exeext if it was cached,
4445# so that the user can short-circuit this test for compilers unknown to
4446# Autoconf.
4447for ac_file in $ac_files ''
1c710c3c
DJ
4448do
4449 test -f "$ac_file" || continue
4450 case $ac_file in
5213506e 4451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4452 ;;
4453 [ab].out )
4454 # We found the default executable, but exeext='' is most
4455 # certainly right.
4456 break;;
4457 *.* )
5213506e
RW
4458 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4459 then :; else
4460 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4461 fi
4462 # We set ac_cv_exeext here because the later test for it is not
4463 # safe: cross compilers may not add the suffix if given an `-o'
4464 # argument, so we may need to know it at that point already.
4465 # Even if this section looks crufty: it has the advantage of
4466 # actually working.
1c710c3c
DJ
4467 break;;
4468 * )
4469 break;;
4470 esac
4471done
5213506e
RW
4472test "$ac_cv_exeext" = no && ac_cv_exeext=
4473
1c710c3c 4474else
5213506e
RW
4475 ac_file=''
4476fi
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4478$as_echo "$ac_file" >&6; }
4479if test -z "$ac_file"; then :
4480 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4481sed 's/^/| /' conftest.$ac_ext >&5
4482
5213506e
RW
4483{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4485{ as_fn_set_status 77
4486as_fn_error "C compiler cannot create executables
4487See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4488fi
1c710c3c 4489ac_exeext=$ac_cv_exeext
1c710c3c 4490
5213506e 4491# Check that the compiler produces executables we can run. If not, either
1c710c3c 4492# the compiler is broken, or we cross compile.
5213506e
RW
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4494$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4495# If not cross compiling, check that we can run a simple program.
4496if test "$cross_compiling" != yes; then
4497 if { ac_try='./$ac_file'
5213506e
RW
4498 { { case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501esac
4502eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503$as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_try") 2>&5
1c710c3c 4505 ac_status=$?
5213506e
RW
4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }; }; then
1c710c3c
DJ
4508 cross_compiling=no
4509 else
4510 if test "$cross_compiling" = maybe; then
4511 cross_compiling=yes
4512 else
5213506e
RW
4513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4515as_fn_error "cannot run C compiled programs.
1c710c3c 4516If you meant to cross compile, use \`--host'.
5213506e 4517See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4518 fi
4519 fi
4520fi
5213506e
RW
4521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522$as_echo "yes" >&6; }
1c710c3c 4523
5213506e 4524rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4525ac_clean_files=$ac_clean_files_save
5213506e 4526# Check that the compiler produces executables we can run. If not, either
1c710c3c 4527# the compiler is broken, or we cross compile.
5213506e
RW
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4529$as_echo_n "checking whether we are cross compiling... " >&6; }
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4531$as_echo "$cross_compiling" >&6; }
4532
4533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4534$as_echo_n "checking for suffix of executables... " >&6; }
4535if { { ac_try="$ac_link"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541$as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_link") 2>&5
1c710c3c 4543 ac_status=$?
5213506e
RW
4544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4545 test $ac_status = 0; }; then :
1c710c3c
DJ
4546 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4547# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4548# work properly (i.e., refer to `conftest.exe'), while it won't with
4549# `rm'.
4550for ac_file in conftest.exe conftest conftest.*; do
4551 test -f "$ac_file" || continue
4552 case $ac_file in
5213506e 4553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4554 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4555 break;;
4556 * ) break;;
4557 esac
4558done
af71363e 4559else
5213506e
RW
4560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4562as_fn_error "cannot compute suffix of executables: cannot compile and link
4563See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4564fi
1c710c3c 4565rm -f conftest$ac_cv_exeext
5213506e
RW
4566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4567$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4568
4569rm -f conftest.$ac_ext
4570EXEEXT=$ac_cv_exeext
4571ac_exeext=$EXEEXT
5213506e
RW
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4573$as_echo_n "checking for suffix of object files... " >&6; }
4574if test "${ac_cv_objext+set}" = set; then :
4575 $as_echo_n "(cached) " >&6
1c710c3c 4576else
5213506e 4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4578/* end confdefs.h. */
4579
4580int
4581main ()
4582{
4583
4584 ;
4585 return 0;
4586}
4587_ACEOF
4588rm -f conftest.o conftest.obj
5213506e
RW
4589if { { ac_try="$ac_compile"
4590case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4593esac
4594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595$as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_compile") 2>&5
1c710c3c 4597 ac_status=$?
5213506e
RW
4598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599 test $ac_status = 0; }; then :
4600 for ac_file in conftest.o conftest.obj conftest.*; do
4601 test -f "$ac_file" || continue;
1c710c3c 4602 case $ac_file in
5213506e 4603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4604 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4605 break;;
4606 esac
4607done
4608else
5213506e 4609 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4610sed 's/^/| /' conftest.$ac_ext >&5
4611
5213506e
RW
4612{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4614as_fn_error "cannot compute suffix of object files: cannot compile
4615See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4616fi
1c710c3c
DJ
4617rm -f conftest.$ac_cv_objext conftest.$ac_ext
4618fi
5213506e
RW
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4620$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4621OBJEXT=$ac_cv_objext
4622ac_objext=$OBJEXT
5213506e
RW
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4624$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4625if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4626 $as_echo_n "(cached) " >&6
1c710c3c 4627else
5213506e 4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4629/* end confdefs.h. */
4630
4631int
4632main ()
4633{
4634#ifndef __GNUC__
4635 choke me
4636#endif
4637
4638 ;
4639 return 0;
4640}
4641_ACEOF
5213506e 4642if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4643 ac_compiler_gnu=yes
4644else
5213506e 4645 ac_compiler_gnu=no
1c710c3c 4646fi
5213506e 4647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4648ac_cv_c_compiler_gnu=$ac_compiler_gnu
4649
4650fi
5213506e
RW
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4652$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4653if test $ac_compiler_gnu = yes; then
4654 GCC=yes
4655else
4656 GCC=
4657fi
1c710c3c
DJ
4658ac_test_CFLAGS=${CFLAGS+set}
4659ac_save_CFLAGS=$CFLAGS
5213506e
RW
4660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4661$as_echo_n "checking whether $CC accepts -g... " >&6; }
4662if test "${ac_cv_prog_cc_g+set}" = set; then :
4663 $as_echo_n "(cached) " >&6
4664else
4665 ac_save_c_werror_flag=$ac_c_werror_flag
4666 ac_c_werror_flag=yes
4667 ac_cv_prog_cc_g=no
4668 CFLAGS="-g"
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4670/* end confdefs.h. */
4671
4672int
4673main ()
4674{
4675
4676 ;
4677 return 0;
4678}
4679_ACEOF
5213506e 4680if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4681 ac_cv_prog_cc_g=yes
4682else
5213506e
RW
4683 CFLAGS=""
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h. */
4686
4687int
4688main ()
4689{
4690
4691 ;
4692 return 0;
4693}
4694_ACEOF
4695if ac_fn_c_try_compile "$LINENO"; then :
4696
4697else
4698 ac_c_werror_flag=$ac_save_c_werror_flag
4699 CFLAGS="-g"
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701/* end confdefs.h. */
af71363e 4702
5213506e
RW
4703int
4704main ()
4705{
4706
4707 ;
4708 return 0;
4709}
4710_ACEOF
4711if ac_fn_c_try_compile "$LINENO"; then :
4712 ac_cv_prog_cc_g=yes
4713fi
4714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4715fi
5213506e 4716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4717fi
5213506e
RW
4718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 ac_c_werror_flag=$ac_save_c_werror_flag
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4722$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4723if test "$ac_test_CFLAGS" = set; then
1c710c3c 4724 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4725elif test $ac_cv_prog_cc_g = yes; then
4726 if test "$GCC" = yes; then
4727 CFLAGS="-g -O2"
4728 else
4729 CFLAGS="-g"
4730 fi
4731else
4732 if test "$GCC" = yes; then
4733 CFLAGS="-O2"
4734 else
4735 CFLAGS=
4736 fi
4737fi
5213506e
RW
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4739$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4740if test "${ac_cv_prog_cc_c89+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
1c710c3c 4742else
5213506e 4743 ac_cv_prog_cc_c89=no
1c710c3c 4744ac_save_CC=$CC
5213506e 4745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4746/* end confdefs.h. */
4747#include <stdarg.h>
4748#include <stdio.h>
4749#include <sys/types.h>
4750#include <sys/stat.h>
4751/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4752struct buf { int x; };
4753FILE * (*rcsopen) (struct buf *, struct stat *, int);
4754static char *e (p, i)
4755 char **p;
4756 int i;
4757{
4758 return p[i];
4759}
4760static char *f (char * (*g) (char **, int), char **p, ...)
4761{
4762 char *s;
4763 va_list v;
4764 va_start (v,p);
4765 s = g (p, va_arg (v,int));
4766 va_end (v);
4767 return s;
4768}
4769
4770/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4771 function prototypes and stuff, but not '\xHH' hex character constants.
4772 These don't provoke an error unfortunately, instead are silently treated
5213506e 4773 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4774 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4775 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4776 that's true only with -std. */
1c710c3c
DJ
4777int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4778
5213506e
RW
4779/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4780 inside strings and character constants. */
4781#define FOO(x) 'x'
4782int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4783
1c710c3c
DJ
4784int test (int i, double x);
4785struct s1 {int (*f) (int a);};
4786struct s2 {int (*f) (double a);};
4787int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4788int argc;
4789char **argv;
4790int
4791main ()
4792{
4793return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4794 ;
4795 return 0;
4796}
4797_ACEOF
5213506e
RW
4798for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4799 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4800do
4801 CC="$ac_save_CC $ac_arg"
5213506e
RW
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4804fi
5213506e
RW
4805rm -f core conftest.err conftest.$ac_objext
4806 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4807done
5213506e 4808rm -f conftest.$ac_ext
1c710c3c
DJ
4809CC=$ac_save_CC
4810
4811fi
5213506e
RW
4812# AC_CACHE_VAL
4813case "x$ac_cv_prog_cc_c89" in
4814 x)
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4816$as_echo "none needed" >&6; } ;;
4817 xno)
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4819$as_echo "unsupported" >&6; } ;;
1c710c3c 4820 *)
5213506e
RW
4821 CC="$CC $ac_cv_prog_cc_c89"
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4823$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4824esac
5213506e 4825if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4826
2aeb72e9
DD
4827fi
4828
2aeb72e9
DD
4829ac_ext=c
4830ac_cpp='$CPP $CPPFLAGS'
4831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4833ac_compiler_gnu=$ac_cv_c_compiler_gnu
4834
5213506e 4835ac_ext=cpp
2aeb72e9
DD
4836ac_cpp='$CXXCPP $CPPFLAGS'
4837ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4838ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4839ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4840if test -z "$CXX"; then
4841 if test -n "$CCC"; then
4842 CXX=$CCC
4843 else
4844 if test -n "$ac_tool_prefix"; then
4845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4846 do
4847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4848set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4850$as_echo_n "checking for $ac_word... " >&6; }
4851if test "${ac_cv_prog_CXX+set}" = set; then :
4852 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4853else
4854 if test -n "$CXX"; then
4855 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4856else
4857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858for as_dir in $PATH
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
5213506e
RW
4862 for ac_exec_ext in '' $ac_executable_extensions; do
4863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4864 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4866 break 2
4867 fi
4868done
5213506e
RW
4869 done
4870IFS=$as_save_IFS
55ffb5ed 4871
c3a86da9
DJ
4872fi
4873fi
4874CXX=$ac_cv_prog_CXX
4875if test -n "$CXX"; then
5213506e
RW
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4877$as_echo "$CXX" >&6; }
c3a86da9 4878else
5213506e
RW
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4880$as_echo "no" >&6; }
c3a86da9
DJ
4881fi
4882
5213506e 4883
c3a86da9
DJ
4884 test -n "$CXX" && break
4885 done
4886fi
4887if test -z "$CXX"; then
4888 ac_ct_CXX=$CXX
5213506e 4889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4890do
4891 # Extract the first word of "$ac_prog", so it can be a program name with args.
4892set dummy $ac_prog; ac_word=$2
5213506e
RW
4893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894$as_echo_n "checking for $ac_word... " >&6; }
4895if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4896 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4897else
4898 if test -n "$ac_ct_CXX"; then
4899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4900else
4901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902for as_dir in $PATH
4903do
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
5213506e
RW
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4908 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4910 break 2
4911 fi
4912done
5213506e
RW
4913 done
4914IFS=$as_save_IFS
c3a86da9
DJ
4915
4916fi
4917fi
4918ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4919if test -n "$ac_ct_CXX"; then
5213506e
RW
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4921$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4922else
5213506e
RW
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924$as_echo "no" >&6; }
c3a86da9
DJ
4925fi
4926
5213506e 4927
c3a86da9
DJ
4928 test -n "$ac_ct_CXX" && break
4929done
c3a86da9 4930
5213506e
RW
4931 if test "x$ac_ct_CXX" = x; then
4932 CXX="g++"
4933 else
4934 case $cross_compiling:$ac_tool_warned in
4935yes:)
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938ac_tool_warned=yes ;;
4939esac
4940 CXX=$ac_ct_CXX
4941 fi
c3a86da9
DJ
4942fi
4943
5213506e
RW
4944 fi
4945fi
c3a86da9 4946# Provide some information about the compiler.
5213506e
RW
4947$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4948set X $ac_compile
4949ac_compiler=$2
4950for ac_option in --version -v -V -qversion; do
4951 { { ac_try="$ac_compiler $ac_option >&5"
4952case "(($ac_try" in
4953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954 *) ac_try_echo=$ac_try;;
4955esac
4956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4957$as_echo "$ac_try_echo"; } >&5
4958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4959 ac_status=$?
5213506e
RW
4960 if test -s conftest.err; then
4961 sed '10a\
4962... rest of stderr output deleted ...
4963 10q' conftest.err >conftest.er1
4964 cat conftest.er1 >&5
4965 rm -f conftest.er1 conftest.err
4966 fi
4967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4968 test $ac_status = 0; }
4969done
c3a86da9 4970
5213506e
RW
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4972$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4973if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
c3a86da9 4975else
5213506e 4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4977/* end confdefs.h. */
4978
4979int
4980main ()
4981{
4982#ifndef __GNUC__
4983 choke me
4984#endif
4985
4986 ;
4987 return 0;
4988}
4989_ACEOF
5213506e 4990if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4991 ac_compiler_gnu=yes
4992else
5213506e 4993 ac_compiler_gnu=no
c3a86da9 4994fi
5213506e 4995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4996ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4997
4998fi
5213506e
RW
4999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5000$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5001if test $ac_compiler_gnu = yes; then
5002 GXX=yes
5003else
5004 GXX=
5005fi
c3a86da9
DJ
5006ac_test_CXXFLAGS=${CXXFLAGS+set}
5007ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5009$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5010if test "${ac_cv_prog_cxx_g+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5012else
5013 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5014 ac_cxx_werror_flag=yes
5015 ac_cv_prog_cxx_g=no
5016 CXXFLAGS="-g"
5017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
5018/* end confdefs.h. */
5019
5020int
5021main ()
5022{
5023
5024 ;
5025 return 0;
5026}
5027_ACEOF
5213506e 5028if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
5029 ac_cv_prog_cxx_g=yes
5030else
5213506e
RW
5031 CXXFLAGS=""
5032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5033/* end confdefs.h. */
5213506e 5034
c3a86da9
DJ
5035int
5036main ()
5037{
5213506e 5038
c3a86da9
DJ
5039 ;
5040 return 0;
5041}
5042_ACEOF
5213506e 5043if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 5044
5213506e
RW
5045else
5046 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5047 CXXFLAGS="-g"
5048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 5049/* end confdefs.h. */
5213506e 5050
c3a86da9
DJ
5051int
5052main ()
5053{
5213506e 5054
c3a86da9
DJ
5055 ;
5056 return 0;
5057}
5058_ACEOF
5213506e
RW
5059if ac_fn_cxx_try_compile "$LINENO"; then :
5060 ac_cv_prog_cxx_g=yes
11a67599 5061fi
5213506e
RW
5062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5063fi
5064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5065fi
5066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5068fi
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5070$as_echo "$ac_cv_prog_cxx_g" >&6; }
5071if test "$ac_test_CXXFLAGS" = set; then
5072 CXXFLAGS=$ac_save_CXXFLAGS
5073elif test $ac_cv_prog_cxx_g = yes; then
5074 if test "$GXX" = yes; then
5075 CXXFLAGS="-g -O2"
5076 else
5077 CXXFLAGS="-g"
5078 fi
5079else
5080 if test "$GXX" = yes; then
5081 CXXFLAGS="-O2"
5082 else
5083 CXXFLAGS=
5084 fi
c3a86da9 5085fi
c3a86da9
DJ
5086ac_ext=c
5087ac_cpp='$CPP $CPPFLAGS'
5088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5090ac_compiler_gnu=$ac_cv_c_compiler_gnu
5091
5092
5093# We must set the default linker to the linker used by gcc for the correct
5094# operation of libtool. If LD is not defined and we are using gcc, try to
5095# set the LD default to the ld used by gcc.
5096if test -z "$LD"; then
5097 if test "$GCC" = yes; then
5098 case $build in
5099 *-*-mingw*)
5100 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5101 *)
5102 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5103 esac
5104 case $gcc_prog_ld in
5105 # Accept absolute paths.
5106 [\\/]* | [A-Za-z]:[\\/]*)
5107 LD="$gcc_prog_ld" ;;
5108 esac
5109 fi
23f6b2f9
PB
5110fi
5111
0b21f5d3
EB
5112# Check whether -static-libstdc++ -static-libgcc is supported.
5113have_static_libs=no
5114if test "$GCC" = yes; then
5115 saved_LDFLAGS="$LDFLAGS"
5116
5117 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5119$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5120 ac_ext=cpp
5121ac_cpp='$CXXCPP $CPPFLAGS'
5122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5125
5126
5127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h. */
0d6414b2
EB
5129
5130#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5131#error -static-libstdc++ not implemented
5132#endif
0b21f5d3
EB
5133int main() {}
5134_ACEOF
5135if ac_fn_cxx_try_link "$LINENO"; then :
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5137$as_echo "yes" >&6; }; have_static_libs=yes
5138else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }
5141fi
5142rm -f core conftest.err conftest.$ac_objext \
5143 conftest$ac_exeext conftest.$ac_ext
5144 ac_ext=c
5145ac_cpp='$CPP $CPPFLAGS'
5146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149
5150
5151 LDFLAGS="$saved_LDFLAGS"
5152fi
5153
23f6b2f9
PB
5154
5155
55ffb5ed 5156
1c710c3c
DJ
5157if test -n "$ac_tool_prefix"; then
5158 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5159set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161$as_echo_n "checking for $ac_word... " >&6; }
5162if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5164else
5165 if test -n "$GNATBIND"; then
5166 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5167else
1c710c3c
DJ
5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169for as_dir in $PATH
5170do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5213506e
RW
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5175 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5177 break 2
5178 fi
5179done
5213506e
RW
5180 done
5181IFS=$as_save_IFS
1c710c3c 5182
55ffb5ed
NN
5183fi
5184fi
1c710c3c 5185GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5186if test -n "$GNATBIND"; then
5213506e
RW
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5188$as_echo "$GNATBIND" >&6; }
55ffb5ed 5189else
5213506e
RW
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191$as_echo "no" >&6; }
55ffb5ed
NN
5192fi
5193
5213506e 5194
1c710c3c 5195fi
55ffb5ed 5196if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5197 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5198 # Extract the first word of "gnatbind", so it can be a program name with args.
5199set dummy gnatbind; ac_word=$2
5213506e
RW
5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
5202if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5203 $as_echo_n "(cached) " >&6
55ffb5ed 5204else
1c710c3c
DJ
5205 if test -n "$ac_ct_GNATBIND"; then
5206 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5207else
1c710c3c
DJ
5208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209for as_dir in $PATH
5210do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213506e
RW
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5215 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5217 break 2
5218 fi
5219done
5213506e
RW
5220 done
5221IFS=$as_save_IFS
1c710c3c 5222
55ffb5ed
NN
5223fi
5224fi
1c710c3c
DJ
5225ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5226if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5228$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5229else
5213506e
RW
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
55ffb5ed
NN
5232fi
5233
5213506e
RW
5234 if test "x$ac_ct_GNATBIND" = x; then
5235 GNATBIND="no"
5236 else
5237 case $cross_compiling:$ac_tool_warned in
5238yes:)
5239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5241ac_tool_warned=yes ;;
5242esac
5243 GNATBIND=$ac_ct_GNATBIND
5244 fi
55ffb5ed 5245else
1c710c3c 5246 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5247fi
5248
1c710c3c
DJ
5249if test -n "$ac_tool_prefix"; then
5250 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5251set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253$as_echo_n "checking for $ac_word... " >&6; }
5254if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5255 $as_echo_n "(cached) " >&6
5305be7e
RG
5256else
5257 if test -n "$GNATMAKE"; then
5258 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5259else
1c710c3c
DJ
5260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261for as_dir in $PATH
5262do
5263 IFS=$as_save_IFS
5264 test -z "$as_dir" && as_dir=.
5213506e
RW
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5267 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5269 break 2
5270 fi
5271done
5213506e
RW
5272 done
5273IFS=$as_save_IFS
1c710c3c 5274
5305be7e
RG
5275fi
5276fi
1c710c3c 5277GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5278if test -n "$GNATMAKE"; then
5213506e
RW
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5280$as_echo "$GNATMAKE" >&6; }
5305be7e 5281else
5213506e
RW
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283$as_echo "no" >&6; }
5305be7e
RG
5284fi
5285
5213506e 5286
1c710c3c 5287fi
5305be7e 5288if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5289 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5290 # Extract the first word of "gnatmake", so it can be a program name with args.
5291set dummy gnatmake; ac_word=$2
5213506e
RW
5292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293$as_echo_n "checking for $ac_word... " >&6; }
5294if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5295 $as_echo_n "(cached) " >&6
5305be7e 5296else
1c710c3c
DJ
5297 if test -n "$ac_ct_GNATMAKE"; then
5298 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5299else
1c710c3c
DJ
5300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301for as_dir in $PATH
5302do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5213506e
RW
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5307 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5309 break 2
5310 fi
5311done
5213506e
RW
5312 done
5313IFS=$as_save_IFS
1c710c3c 5314
5305be7e
RG
5315fi
5316fi
1c710c3c
DJ
5317ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5318if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5320$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5321else
5213506e
RW
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323$as_echo "no" >&6; }
5305be7e
RG
5324fi
5325
5213506e
RW
5326 if test "x$ac_ct_GNATMAKE" = x; then
5327 GNATMAKE="no"
5328 else
5329 case $cross_compiling:$ac_tool_warned in
5330yes:)
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333ac_tool_warned=yes ;;
5334esac
5335 GNATMAKE=$ac_ct_GNATMAKE
5336 fi
5305be7e 5337else
1c710c3c 5338 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5339fi
5340
5213506e
RW
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5342$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5343if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5344 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5345else
5346 cat >conftest.adb <<EOF
5347procedure conftest is begin null; end conftest;
5348EOF
5349acx_cv_cc_gcc_supports_ada=no
5350# There is a bug in old released versions of GCC which causes the
5351# driver to exit successfully when the appropriate language module
5352# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5353# Therefore we must check for the error message as well as an
5354# unsuccessful exit.
1db673ca
RO
5355# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5356# given a .adb file, but produce no object file. So we must check
5357# if an object file was really produced to guard against this.
55ffb5ed 5358errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5359if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5360 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5361fi
5362rm -f conftest.*
5363fi
5213506e
RW
5364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5365$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5366
7cb62ef1 5367if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5368 have_gnat=yes
5369else
5370 have_gnat=no
5371fi
5372
5213506e
RW
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5374$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5375if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5376 $as_echo_n "(cached) " >&6
a76494aa
PB
5377else
5378 echo abfoo >t1
5379 echo cdfoo >t2
5380 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5381 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5382 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5383 :
5384 else
5385 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5386 fi
5387 fi
a76494aa
PB
5388 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5389 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5390 :
a76494aa
PB
5391 else
5392 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5393 fi
5394 fi
5395 rm t1 t2
5396
5397fi
5213506e
RW
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5399$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5400do_compare="$gcc_cv_prog_cmp_skip"
5401
5402
55ffb5ed 5403
ff3ac0f4
ILT
5404# Check whether --enable-bootstrap was given.
5405if test "${enable_bootstrap+set}" = set; then :
5406 enableval=$enable_bootstrap;
5407else
5408 enable_bootstrap=default
5409fi
5410
5411
5412# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5413if test -r $srcdir/gcc/configure; then
5414 have_compiler=yes
5415else
5416 have_compiler=no
5417fi
ff3ac0f4
ILT
5418
5419case "$have_compiler:$host:$target:$enable_bootstrap" in
5420 *:*:*:no) ;;
5421
5422 # Default behavior. Enable bootstrap if we have a compiler
5423 # and we are in a native configuration.
5424 yes:$build:$build:default)
5425 enable_bootstrap=yes ;;
5426
5427 *:*:*:default)
5428 enable_bootstrap=no ;;
5429
5430 # We have a compiler and we are in a native configuration, bootstrap is ok
5431 yes:$build:$build:yes)
5432 ;;
5433
5434 # Other configurations, but we have a compiler. Assume the user knows
5435 # what he's doing.
5436 yes:*:*:yes)
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5438$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5439 ;;
5440
5441 # No compiler: if they passed --enable-bootstrap explicitly, fail
5442 no:*:*:yes)
5443 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5444
5445 # Fail if wrong command line
5446 *)
5447 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5448 ;;
5449esac
5450
46070488
JM
5451# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5452# C++98 compiler can still start the bootstrap.
5453if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5454 CXX="$CXX -std=gnu++98"
46070488
JM
5455fi
5456
592c90ff
KG
5457# Used for setting $lt_cv_objdir
5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5459$as_echo_n "checking for objdir... " >&6; }
5460if test "${lt_cv_objdir+set}" = set; then :
5461 $as_echo_n "(cached) " >&6
5462else
5463 rm -f .libs 2>/dev/null
5464mkdir .libs 2>/dev/null
5465if test -d .libs; then
5466 lt_cv_objdir=.libs
5467else
5468 # MS-DOS does not allow filenames that begin with a dot.
5469 lt_cv_objdir=_libs
5470fi
5471rmdir .libs 2>/dev/null
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5474$as_echo "$lt_cv_objdir" >&6; }
5475objdir=$lt_cv_objdir
5476
5477
5478
5479
5480
5481cat >>confdefs.h <<_ACEOF
5482#define LT_OBJDIR "$lt_cv_objdir/"
5483_ACEOF
5484
5485
5486
acd26225 5487# Check for GMP, MPFR and MPC
3a5729ea 5488gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5489gmpinc=
e69bf64b 5490have_gmp=no
acd26225
KG
5491
5492# Specify a location for mpc
5493# check for this first so it ends up on the link line before mpfr.
5494
5213506e
RW
5495# Check whether --with-mpc was given.
5496if test "${with_mpc+set}" = set; then :
5497 withval=$with_mpc;
5498fi
acd26225 5499
acd26225 5500
9965e3cd 5501# Check whether --with-mpc-include was given.
5213506e
RW
5502if test "${with_mpc_include+set}" = set; then :
5503 withval=$with_mpc_include;
5504fi
acd26225 5505
acd26225 5506
9965e3cd 5507# Check whether --with-mpc-lib was given.
5213506e
RW
5508if test "${with_mpc_lib+set}" = set; then :
5509 withval=$with_mpc_lib;
5510fi
acd26225 5511
acd26225
KG
5512
5513if test "x$with_mpc" != x; then
3a5729ea
KG
5514 gmplibs="-L$with_mpc/lib $gmplibs"
5515 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5516fi
5517if test "x$with_mpc_include" != x; then
3a5729ea 5518 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5519fi
5520if test "x$with_mpc_lib" != x; then
3a5729ea 5521 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5522fi
5523if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5524 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5525 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5526 # Do not test the mpc version. Assume that it is sufficient, since
5527 # it is in the source tree, and the library has not been built yet
5528 # but it would be included on the link line in the version check below
5529 # hence making the test fail.
3a5729ea 5530 have_gmp=yes
acd26225 5531fi
e69bf64b 5532
bebf829d
PB
5533# Specify a location for mpfr
5534# check for this first so it ends up on the link line before gmp.
1c710c3c 5535
5213506e
RW
5536# Check whether --with-mpfr-dir was given.
5537if test "${with_mpfr_dir+set}" = set; then :
5538 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5539Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5540fi
5541
bebf829d
PB
5542
5543
5213506e
RW
5544# Check whether --with-mpfr was given.
5545if test "${with_mpfr+set}" = set; then :
5546 withval=$with_mpfr;
5547fi
1c710c3c 5548
bebf829d 5549
9965e3cd 5550# Check whether --with-mpfr-include was given.
5213506e
RW
5551if test "${with_mpfr_include+set}" = set; then :
5552 withval=$with_mpfr_include;
5553fi
1c710c3c 5554
8a877c9c 5555
9965e3cd 5556# Check whether --with-mpfr-lib was given.
5213506e
RW
5557if test "${with_mpfr_lib+set}" = set; then :
5558 withval=$with_mpfr_lib;
5559fi
8a877c9c 5560
bebf829d
PB
5561
5562if test "x$with_mpfr" != x; then
5563 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5564 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5565fi
8a877c9c 5566if test "x$with_mpfr_include" != x; then
3a5729ea 5567 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5568fi
5569if test "x$with_mpfr_lib" != x; then
5570 gmplibs="-L$with_mpfr_lib $gmplibs"
5571fi
e69bf64b 5572if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5b0d38e4
NC
5573 # MPFR v3.1.0 moved the sources into a src sub-directory.
5574 if test -d ${srcdir}/mpfr/src; then
5575 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5576 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5577 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5578 else
5579 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5580 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5581 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5582 fi
e69bf64b
PB
5583 # Do not test the mpfr version. Assume that it is sufficient, since
5584 # it is in the source tree, and the library has not been built yet
5585 # but it would be included on the link line in the version check below
5586 # hence making the test fail.
5587 have_gmp=yes
5588fi
bebf829d 5589
6de9cd9a 5590# Specify a location for gmp
1c710c3c 5591
5213506e
RW
5592# Check whether --with-gmp-dir was given.
5593if test "${with_gmp_dir+set}" = set; then :
5594 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5595Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5596fi
5597
6de9cd9a 5598
6de9cd9a 5599
5213506e
RW
5600# Check whether --with-gmp was given.
5601if test "${with_gmp+set}" = set; then :
5602 withval=$with_gmp;
5603fi
1c710c3c 5604
6de9cd9a 5605
9965e3cd 5606# Check whether --with-gmp-include was given.
5213506e
RW
5607if test "${with_gmp_include+set}" = set; then :
5608 withval=$with_gmp_include;
5609fi
1c710c3c 5610
8a877c9c 5611
9965e3cd 5612# Check whether --with-gmp-lib was given.
5213506e
RW
5613if test "${with_gmp_lib+set}" = set; then :
5614 withval=$with_gmp_lib;
5615fi
8a877c9c
KG
5616
5617
6de9cd9a 5618
bebf829d
PB
5619if test "x$with_gmp" != x; then
5620 gmplibs="-L$with_gmp/lib $gmplibs"
5621 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5622fi
8a877c9c
KG
5623if test "x$with_gmp_include" != x; then
5624 gmpinc="-I$with_gmp_include $gmpinc"
5625fi
5626if test "x$with_gmp_lib" != x; then
5627 gmplibs="-L$with_gmp_lib $gmplibs"
5628fi
e69bf64b 5629if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5630 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5631 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5632 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5633 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5634 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5635 # Do not test the gmp version. Assume that it is sufficient, since
5636 # it is in the source tree, and the library has not been built yet
5637 # but it would be included on the link line in the version check below
5638 # hence making the test fail.
5639 have_gmp=yes
5640fi
6de9cd9a 5641
d943d7c4 5642if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5643 have_gmp=yes
5644 saved_CFLAGS="$CFLAGS"
5645 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5646 # Check for the recommended and required versions of GMP.
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5648$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5649
5650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5651/* end confdefs.h. */
5652#include "gmp.h"
5653int
5654main ()
5655{
5656
5657 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5658 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5659 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5660 choke me
5661 #endif
5662
5663 ;
5664 return 0;
5665}
5666_ACEOF
5667if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5669/* end confdefs.h. */
362c6d2f 5670#include <gmp.h>
1c710c3c
DJ
5671int
5672main ()
5673{
6de9cd9a 5674
362c6d2f
KG
5675 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5676 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5677 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5678 choke me
5679 #endif
1c710c3c
DJ
5680
5681 ;
5682 return 0;
5683}
5684_ACEOF
5213506e
RW
5685if ac_fn_c_try_compile "$LINENO"; then :
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5687$as_echo "yes" >&6; }
362c6d2f
KG
5688else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5690$as_echo "buggy but acceptable" >&6; }
5691fi
5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5693else
5213506e
RW
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5696fi
5213506e 5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5698
acd26225 5699 # If we have GMP, check the MPFR version.
e69bf64b 5700 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5701 # Check for the recommended and required versions of MPFR.
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5703$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5705/* end confdefs.h. */
70ec446f 5706#include <gmp.h>
e69bf64b 5707 #include <mpfr.h>
1c710c3c
DJ
5708int
5709main ()
5710{
e48d66a9 5711
f7d6bc01 5712 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5713 choke me
5714 #endif
1c710c3c
DJ
5715
5716 ;
5717 return 0;
5718}
5719_ACEOF
5213506e
RW
5720if ac_fn_c_try_compile "$LINENO"; then :
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5722/* end confdefs.h. */
a3993f33 5723#include <gmp.h>
e69bf64b 5724 #include <mpfr.h>
1c710c3c
DJ
5725int
5726main ()
5727{
a3993f33 5728
362c6d2f 5729 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5730 choke me
5731 #endif
acd26225
KG
5732
5733 ;
5734 return 0;
5735}
5736_ACEOF
5213506e
RW
5737if ac_fn_c_try_compile "$LINENO"; then :
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5739$as_echo "yes" >&6; }
acd26225 5740else
5213506e
RW
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5742$as_echo "buggy but acceptable" >&6; }
acd26225 5743fi
5213506e 5744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5745else
5213506e
RW
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747$as_echo "no" >&6; }; have_gmp=no
acd26225 5748fi
5213506e 5749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5750 fi
5751
5752 # Check for the MPC header version.
3a5729ea 5753 if test x"$have_gmp" = xyes ; then
362c6d2f 5754 # Check for the recommended and required versions of MPC.
5213506e
RW
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5756$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5758/* end confdefs.h. */
5759#include <mpc.h>
5760int
5761main ()
5762{
5763
362c6d2f
KG
5764 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5765 choke me
5766 #endif
5767
5768 ;
5769 return 0;
5770}
5771_ACEOF
5772if ac_fn_c_try_compile "$LINENO"; then :
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774/* end confdefs.h. */
5775#include <mpc.h>
5776int
5777main ()
5778{
5779
5780 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5781 choke me
5782 #endif
5783
5784 ;
5785 return 0;
5786}
5787_ACEOF
5213506e
RW
5788if ac_fn_c_try_compile "$LINENO"; then :
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5790$as_echo "yes" >&6; }
362c6d2f
KG
5791else
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5793$as_echo "buggy but acceptable" >&6; }
5794fi
5795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5796else
5213506e 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5798$as_echo "no" >&6; }; have_gmp=no
acd26225 5799fi
5213506e 5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5801 fi
5802
5803 # Now check the MPFR library.
5804 if test x"$have_gmp" = xyes; then
5805 saved_LIBS="$LIBS"
5806 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5808$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5810/* end confdefs.h. */
3a5729ea 5811#include <mpc.h>
acd26225
KG
5812int
5813main ()
5814{
5815
5816 mpfr_t n;
5817 mpfr_t x;
3a5729ea 5818 mpc_t c;
acd26225
KG
5819 int t;
5820 mpfr_init (n);
5821 mpfr_init (x);
5822 mpfr_atan2 (n, n, x, GMP_RNDN);
5823 mpfr_erfc (n, x, GMP_RNDN);
5824 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5825 mpfr_clear(n);
5826 mpfr_clear(x);
5827 mpc_init2 (c, 53);
5828 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5829 mpc_cosh (c, c, MPC_RNDNN);
5830 mpc_pow (c, c, c, MPC_RNDNN);
5831 mpc_acosh (c, c, MPC_RNDNN);
5832 mpc_clear (c);
1c710c3c
DJ
5833
5834 ;
5835 return 0;
5836}
5837_ACEOF
5213506e
RW
5838if ac_fn_c_try_link "$LINENO"; then :
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5840$as_echo "yes" >&6; }
1c710c3c 5841else
5213506e
RW
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5844fi
5213506e
RW
5845rm -f core conftest.err conftest.$ac_objext \
5846 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5847 LIBS="$saved_LIBS"
5848 fi
5849
e69bf64b 5850 CFLAGS="$saved_CFLAGS"
6de9cd9a 5851
362c6d2f
KG
5852# The library versions listed in the error message below should match
5853# the HARD-minimums enforced above.
e69bf64b 5854 if test x$have_gmp != xyes; then
f7d6bc01 5855 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5856Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5857their locations. Source code for these libraries can be found at
5858their respective hosting sites as well as at
5859ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5860http://gcc.gnu.org/install/prerequisites.html for additional info. If
5861you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5862make sure that you have installed both the libraries and the header
5863files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5864 fi
70ec446f
KG
5865fi
5866
acd26225
KG
5867# Flags needed for both GMP, MPFR and/or MPC.
5868
5869
6de9cd9a
DN
5870
5871
5872
9e3eba15 5873
0ff2d841 5874
0b21f5d3 5875# Libraries to use for stage1 or when not bootstrapping.
00020c16 5876
0b21f5d3
EB
5877# Check whether --with-stage1-libs was given.
5878if test "${with_stage1_libs+set}" = set; then :
5879 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5880 stage1_libs=
00020c16 5881 else
0b21f5d3 5882 stage1_libs=$withval
00020c16
ILT
5883 fi
5884else
5dc85f7e 5885 stage1_libs=
5213506e
RW
5886fi
5887
00020c16
ILT
5888
5889
0b21f5d3 5890# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5891
0b21f5d3
EB
5892# Check whether --with-stage1-ldflags was given.
5893if test "${with_stage1_ldflags+set}" = set; then :
5894 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5895 stage1_ldflags=
00020c16 5896 else
0b21f5d3 5897 stage1_ldflags=$withval
00020c16
ILT
5898 fi
5899else
0b21f5d3
EB
5900 stage1_ldflags=
5901 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5902 # if supported. But if the user explicitly specified the libraries to use,
5903 # trust that they are doing what they want.
5904 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5905 stage1_ldflags="-static-libstdc++ -static-libgcc"
5906 fi
5213506e
RW
5907fi
5908
00020c16
ILT
5909
5910
5dc85f7e 5911# Libraries to use for stage2 and later builds.
00020c16 5912
5213506e
RW
5913# Check whether --with-boot-libs was given.
5914if test "${with_boot_libs+set}" = set; then :
5915 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5916 poststage1_libs=
5917 else
5918 poststage1_libs=$withval
5919 fi
5920else
5dc85f7e 5921 poststage1_libs=
5213506e
RW
5922fi
5923
00020c16
ILT
5924
5925
ed2eaa9f
ILT
5926# Linker flags to use for stage2 and later builds.
5927
5928# Check whether --with-boot-ldflags was given.
5929if test "${with_boot_ldflags+set}" = set; then :
5930 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5931 poststage1_ldflags=
5932 else
5933 poststage1_ldflags=$withval
5934 fi
5935else
5936 poststage1_ldflags=
bec93d73
ILT
5937 # In stages 2 and 3, default to linking libstdc++ and libgcc
5938 # statically. But if the user explicitly specified the libraries to
5939 # use, trust that they are doing what they want.
5940 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5941 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5942 fi
5943fi
5944
5945
5946
e357a5e0 5947# GCC GRAPHITE dependency isl.
4a9bb2aa 5948# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5949
5950
33ad93b9
RG
5951# Check whether --with-isl was given.
5952if test "${with_isl+set}" = set; then :
5953 withval=$with_isl;
5213506e 5954fi
f8bf9252 5955
f8bf9252 5956
eae1a5d4 5957# Treat --without-isl as a request to disable
625afa23 5958# GRAPHITE support and skip all following checks.
eae1a5d4 5959if test "x$with_isl" != "xno"; then
e357a5e0 5960 # Check for isl
625afa23
RG
5961
5962
33ad93b9
RG
5963# Check whether --with-isl-include was given.
5964if test "${with_isl_include+set}" = set; then :
5965 withval=$with_isl_include;
5213506e
RW
5966fi
5967
f8bf9252 5968
33ad93b9
RG
5969# Check whether --with-isl-lib was given.
5970if test "${with_isl_lib+set}" = set; then :
5971 withval=$with_isl_lib;
5213506e 5972fi
f8bf9252 5973
f8bf9252 5974
33ad93b9
RG
5975 # Check whether --enable-isl-version-check was given.
5976if test "${enable_isl_version_check+set}" = set; then :
5977 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5978else
5979 ENABLE_ISL_CHECK=yes
7d32a440
SP
5980fi
5981
5982
33ad93b9
RG
5983 # Initialize isllibs and islinc.
5984 case $with_isl in
5985 no)
5986 isllibs=
5987 islinc=
5988 ;;
5989 "" | yes)
5990 ;;
5991 *)
5992 isllibs="-L$with_isl/lib"
5993 islinc="-I$with_isl/include"
5994 ;;
5995 esac
5996 if test "x${with_isl_include}" != x ; then
5997 islinc="-I$with_isl_include"
5998 fi
5999 if test "x${with_isl_lib}" != x; then
6000 isllibs="-L$with_isl_lib"
6001 fi
6002 if test "x${islinc}" = x && test "x${isllibs}" = x \
6003 && test -d ${srcdir}/isl; then
6004 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
6005 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
6006 ENABLE_ISL_CHECK=no
560d18d3
AK
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
6008$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 6009 fi
7d32a440 6010
eae1a5d4
RG
6011 isllibs="${isllibs} -lisl"
6012
7d32a440 6013
7d32a440 6014
9847828b
RB
6015 if test "${ENABLE_ISL_CHECK}" = yes ; then
6016 _isl_saved_CFLAGS=$CFLAGS
6017 _isl_saved_LDFLAGS=$LDFLAGS
6018 _isl_saved_LIBS=$LIBS
6019
6020 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
6021 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
6022 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 6023
c661a43d
SP
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
6025$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
e0c0c325 6026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 6027/* end confdefs.h. */
560d18d3 6028#include <isl/ctx.h>
622dbadf
BC
6029int
6030main ()
6031{
560d18d3 6032isl_ctx_get_max_operations (isl_ctx_alloc ());
622dbadf
BC
6033 ;
6034 return 0;
6035}
6036_ACEOF
6037if ac_fn_c_try_link "$LINENO"; then :
9847828b 6038 gcc_cv_isl=yes
622dbadf
BC
6039else
6040 gcc_cv_isl=no
6041fi
6042rm -f core conftest.err conftest.$ac_objext \
6043 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
6045$as_echo "$gcc_cv_isl" >&6; }
6046
560d18d3 6047 if test "${gcc_cv_isl}" = no ; then
c661a43d
SP
6048 { $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
6049$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
560d18d3
AK
6050 fi
6051
c661a43d
SP
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
6053$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
1e050c90
AK
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055/* end confdefs.h. */
6056#include <isl/schedule.h>
6057int
6058main ()
6059{
6060isl_options_set_schedule_serialize_sccs (NULL, 0);
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_link "$LINENO"; then :
6066 ac_has_isl_options_set_schedule_serialize_sccs=yes
6067else
6068 ac_has_isl_options_set_schedule_serialize_sccs=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
6073$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
6074
6075 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
6076 islver="0.15"
6077
6078 fi
6079
9847828b
RB
6080 CFLAGS=$_isl_saved_CFLAGS
6081 LDFLAGS=$_isl_saved_LDFLAGS
6082 LIBS=$_isl_saved_LIBS
6083 fi
6084
6085
f8bf9252 6086
f8bf9252 6087
33ad93b9
RG
6088
6089
33ad93b9
RG
6090 if test "x${with_isl}" = xno; then
6091 graphite_requested=no
6092 elif test "x${with_isl}" != x \
6093 || test "x${with_isl_include}" != x \
6094 || test "x${with_isl_lib}" != x ; then
6095 graphite_requested=yes
6096 else
6097 graphite_requested=no
7d32a440 6098 fi
d789184e 6099
d789184e
SP
6100
6101
33ad93b9
RG
6102 if test "${gcc_cv_isl}" = no ; then
6103 isllibs=
6104 islinc=
6105 fi
6106
6107 if test "${graphite_requested}" = yes \
6108 && test "x${isllibs}" = x \
6109 && test "x${islinc}" = x ; then
f8bf9252 6110
e357a5e0 6111 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6112 fi
f8bf9252 6113
d32ef397 6114
d32ef397
AS
6115fi
6116
e357a5e0 6117# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6118if test "x$with_isl" = xno ||
625afa23 6119 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6120 noconfigdirs="$noconfigdirs isl"
625afa23 6121 islinc=
32d024bf
RG
6122fi
6123
625afa23
RG
6124
6125
6126
d7f09764
DN
6127# Check for LTO support.
6128# Check whether --enable-lto was given.
6129if test "${enable_lto+set}" = set; then :
6130 enableval=$enable_lto; enable_lto=$enableval
6131else
6132 enable_lto=yes; default_enable_lto=yes
6133fi
6134
6135
7413962d 6136
9a02962b
DK
6137
6138
6139target_elf=no
6140case $target in
6141 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6142 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8ae12d71
TS
6143 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
6144 nvptx-*-none)
9a02962b
DK
6145 target_elf=no
6146 ;;
6147 *)
6148 target_elf=yes
6149 ;;
6150esac
6151
6152if test $target_elf = yes; then :
48215350
DK
6153 # ELF platforms build the lto-plugin always.
6154 build_lto_plugin=yes
9a02962b 6155
9a02962b
DK
6156else
6157 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6158 case $target in
9e530bcd 6159 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6160 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6161 *) enable_lto=no ;;
6162 esac
9a02962b 6163 else
db50fe7d
IS
6164 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6165 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6166 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6167 # warn during gcc/ subconfigure; unless you're bootstrapping with
6168 # -flto it won't be needed until after installation anyway.
6169 case $target in
9e530bcd 6170 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b
DK
6171 *) if test x"$enable_lto" = x"yes"; then
6172 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6173 fi
6174 ;;
6175 esac
6176 fi
1cd0b716 6177 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6178 # Build it unless LTO was explicitly disabled.
1cd0b716 6179 case $target in
48215350 6180 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6181 *) ;;
6182 esac
48215350 6183
9a02962b
DK
6184fi
6185
d7f09764 6186
45b3824d
TS
6187# Check whether --enable-linker-plugin-configure-flags was given.
6188if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6189 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6190else
6191 extra_linker_plugin_configure_flags=
6192fi
6193
6194
6195# Check whether --enable-linker-plugin-flags was given.
6196if test "${enable_linker_plugin_flags+set}" = set; then :
6197 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6198else
6199 extra_linker_plugin_flags=
6200fi
6201
6202
6203
f8bf9252 6204
0823efed 6205# By default, C and C++ are the only stage 1 languages.
e1888513 6206stage1_languages=,c,
2805b53a 6207
00020c16 6208# Target libraries that we bootstrap.
ad1e5170 6209bootstrap_target_libs=,target-libgcc,
00020c16 6210
55ffb5ed
NN
6211# Figure out what language subdirectories are present.
6212# Look if the user specified --enable-languages="..."; if not, use
6213# the environment variable $LANGUAGES if defined. $LANGUAGES might
6214# go away some day.
6215# NB: embedded tabs in this IF block -- do not untabify
6216if test -d ${srcdir}/gcc; then
6217 if test x"${enable_languages+set}" != xset; then
6218 if test x"${LANGUAGES+set}" = xset; then
6219 enable_languages="${LANGUAGES}"
6b1786aa 6220 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed
NN
6221 else
6222 enable_languages=all
6223 fi
6224 else
6225 if test x"${enable_languages}" = x ||
6226 test x"${enable_languages}" = xyes;
6227 then
6b1786aa 6228 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6229 exit 1
6230 fi
6231 fi
6232 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6233
7f26dfa3
FXC
6234 # 'f95' is the old name for the 'fortran' language. We issue a warning
6235 # and make the substitution.
6236 case ,${enable_languages}, in
6237 *,f95,*)
6b1786aa 6238 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6239 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6240 ;;
6241 esac
6242
0823efed
DN
6243 # If bootstrapping, C++ must be enabled.
6244 case ",$enable_languages,:$enable_bootstrap" in
6245 *,c++,*:*) ;;
6246 *:yes)
ff3ac0f4
ILT
6247 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6248 enable_languages="${enable_languages},c++"
6249 else
0823efed 6250 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6251 fi
6252 ;;
6253 esac
6254
55ffb5ed
NN
6255 # First scan to see if an enabled language requires some other language.
6256 # We assume that a given config-lang.in will list all the language
6257 # front ends it requires, even if some are required indirectly.
6258 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6259 case ${lang_frag} in
6260 ..) ;;
6261 # The odd quoting in the next line works around
6262 # an apparent bug in bash 1.12 on linux.
6263 ${srcdir}/gcc/[*]/config-lang.in) ;;
6264 *)
69ecd18f
ILT
6265 # From the config-lang.in, get $language, $lang_requires, and
6266 # $lang_requires_boot_languages.
55ffb5ed
NN
6267 language=
6268 lang_requires=
69ecd18f 6269 lang_requires_boot_languages=
55ffb5ed 6270 . ${lang_frag}
69ecd18f 6271 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6272 case ,${enable_languages}, in
6273 *,$other,*) ;;
6274 *,all,*) ;;
6275 *,$language,*)
6276 echo " \`$other' language required by \`$language'; enabling" 1>&2
6277 enable_languages="${enable_languages},${other}"
6278 ;;
6279 esac
6280 done
69ecd18f
ILT
6281 for other in ${lang_requires_boot_languages} ; do
6282 if test "$other" != "c"; then
6283 case ,${enable_stage1_languages}, in
6284 *,$other,*) ;;
6285 *,all,*) ;;
6286 *)
6287 case ,${enable_languages}, in
6288 *,$language,*)
6289 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6290 enable_stage1_languages="$enable_stage1_languages,${other}"
6291 ;;
6292 esac
6293 ;;
6294 esac
6295 fi
6296 done
55ffb5ed
NN
6297 ;;
6298 esac
6299 done
6300
e1888513 6301 new_enable_languages=,c,
d7f09764
DN
6302
6303 # If LTO is enabled, add the LTO front end.
d7f09764 6304 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6305 case ,${enable_languages}, in
6306 *,lto,*) ;;
6307 *) enable_languages="${enable_languages},lto" ;;
6308 esac
1cd0b716 6309 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6310 configdirs="$configdirs lto-plugin"
d7f09764
DN
6311 fi
6312 fi
6313
426c1eb0
TS
6314 # If we're building an offloading compiler, add the LTO front end.
6315 if test x"$enable_as_accelerator_for" != x ; then
6316 case ,${enable_languages}, in
6317 *,lto,*) ;;
6318 *) enable_languages="${enable_languages},lto" ;;
6319 esac
6320 fi
6321
55ffb5ed 6322 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6323 potential_languages=,c,
55ffb5ed 6324
4da3b0f8
ILT
6325 enabled_target_libs=
6326 disabled_target_libs=
6327
55ffb5ed
NN
6328 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6329 case ${lang_frag} in
6330 ..) ;;
6331 # The odd quoting in the next line works around
6332 # an apparent bug in bash 1.12 on linux.
6333 ${srcdir}/gcc/[*]/config-lang.in) ;;
6334 *)
1c710c3c 6335 # From the config-lang.in, get $language, $target_libs,
2805b53a 6336 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6337 language=
6338 target_libs=
6339 lang_dirs=
1546bb64 6340 subdir_requires=
e1888513
PB
6341 boot_language=no
6342 build_by_default=yes
55ffb5ed 6343 . ${lang_frag}
e1888513
PB
6344 if test x${language} = x; then
6345 echo "${lang_frag} doesn't set \$language." 1>&2
6346 exit 1
6347 fi
6348
78767fd9 6349 if test "$language" = "c++"; then
0823efed 6350 boot_language=yes
00020c16
ILT
6351 fi
6352
178f875a 6353 add_this_lang=no
e1888513
PB
6354 case ,${enable_languages}, in
6355 *,${language},*)
d4a10d0a
SB
6356 # Language was explicitly selected; include it
6357 # unless it is C, which is enabled by default.
6358 if test "$language" != "c"; then
6359 add_this_lang=yes
6360 fi
55ffb5ed 6361 ;;
e1888513
PB
6362 *,all,*)
6363 # 'all' was selected, select it if it is a default language
178f875a
JM
6364 if test "$language" != "c"; then
6365 add_this_lang=${build_by_default}
6366 fi
55ffb5ed
NN
6367 ;;
6368 esac
6de9cd9a 6369
1546bb64 6370 # Disable languages that need other directories if these aren't available.
95695ad3 6371 for i in $subdir_requires; do
b6348cb3 6372 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6373 case ,${enable_languages}, in
6374 *,${language},*)
6375 # Specifically requested language; tell them.
5213506e 6376 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6377 ;;
6378 *)
6379 # Silently disable.
e1888513 6380 add_this_lang=unsupported
1546bb64
PB
6381 ;;
6382 esac
6383 done
6384
e1888513
PB
6385 # Disable Ada if no preexisting GNAT is available.
6386 case ,${enable_languages},:${language}:${have_gnat} in
6387 *,${language},*:ada:no)
6388 # Specifically requested language; tell them.
5213506e 6389 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6390 ;;
6391 *:ada:no)
6392 # Silently disable.
6393 add_this_lang=unsupported
6394 ;;
6395 esac
6396
4fab7234
HPN
6397 # Disable a language that is unsupported by the target.
6398 case " $unsupported_languages " in
6399 *" $language "*)
e1888513 6400 add_this_lang=unsupported
4fab7234
HPN
6401 ;;
6402 esac
6403
6de9cd9a 6404 case $add_this_lang in
e1888513 6405 unsupported)
55ffb5ed 6406 # Remove language-dependent dirs.
4da3b0f8
ILT
6407 disabled_target_libs="$disabled_target_libs $target_libs"
6408 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6409 ;;
e1888513
PB
6410 no)
6411 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6412 disabled_target_libs="$disabled_target_libs $target_libs"
6413 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6414 potential_languages="${potential_languages}${language},"
6415 ;;
6416 yes)
6417 new_enable_languages="${new_enable_languages}${language},"
6418 potential_languages="${potential_languages}${language},"
2805b53a 6419 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6420 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6421 case "${boot_language}:,$enable_stage1_languages," in
6422 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6423 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6424 case ",$stage1_languages," in
6425 *,$language,* | ,yes, | ,all,) ;;
6426 *) stage1_languages="${stage1_languages}${language}," ;;
6427 esac
00020c16
ILT
6428 # We need to bootstrap any supporting libraries.
6429 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6430 ;;
6431 esac
6432 ;;
55ffb5ed
NN
6433 esac
6434 ;;
6435 esac
6436 done
6437
4da3b0f8
ILT
6438 # Add target libraries which are only needed for disabled languages
6439 # to noconfigdirs.
6440 if test -n "$disabled_target_libs"; then
6441 for dir in $disabled_target_libs; do
6442 case " $enabled_target_libs " in
6443 *" ${dir} "*) ;;
6444 *) noconfigdirs="$noconfigdirs $dir" ;;
6445 esac
6446 done
6447 fi
6448
5213506e
RW
6449 # Check whether --enable-stage1-languages was given.
6450if test "${enable_stage1_languages+set}" = set; then :
6451 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6452 ,no,|,,)
6453 # Set it to something that will have no effect in the loop below
6454 enable_stage1_languages=c ;;
6455 ,yes,)
6456 enable_stage1_languages=`echo $new_enable_languages | \
6457 sed -e "s/^,//" -e "s/,$//" ` ;;
6458 *,all,*)
6459 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6460 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6461 esac
6462
6463 # Add "good" languages from enable_stage1_languages to stage1_languages,
6464 # while "bad" languages go in missing_languages. Leave no duplicates.
6465 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6466 case $potential_languages in
6467 *,$i,*)
6468 case $stage1_languages in
6469 *,$i,*) ;;
6470 *) stage1_languages="$stage1_languages$i," ;;
6471 esac ;;
6472 *)
6473 case $missing_languages in
6474 *,$i,*) ;;
6475 *) missing_languages="$missing_languages$i," ;;
6476 esac ;;
6477 esac
6478 done
5213506e
RW
6479fi
6480
e1888513
PB
6481
6482 # Remove leading/trailing commas that were added for simplicity
6483 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6484 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6485 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6486 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6487
55ffb5ed 6488 if test "x$missing_languages" != x; then
5213506e 6489 as_fn_error "
0cf085e4 6490The following requested languages could not be built: ${missing_languages}
5213506e 6491Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6492 fi
55ffb5ed
NN
6493 if test "x$new_enable_languages" != "x$enable_languages"; then
6494 echo The following languages will be built: ${new_enable_languages}
e1888513 6495 enable_languages="$new_enable_languages"
55ffb5ed 6496 fi
e1888513 6497
1c710c3c 6498
b2eaac4a 6499 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6500fi
6501
27079765
AH
6502# Handle --disable-<component> generically.
6503for dir in $configdirs $build_configdirs $target_configdirs ; do
6504 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6505 varname=`echo $dirname | sed -e s/+/_/g`
6506 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6507 noconfigdirs="$noconfigdirs $dir"
6508 fi
6509done
6510
7cd0cf9c 6511# Check for Boehm's garbage collector
5213506e
RW
6512# Check whether --enable-objc-gc was given.
6513if test "${enable_objc_gc+set}" = set; then :
6514 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6515 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6516 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6517 ;;
6518esac
5213506e
RW
6519fi
6520
7cd0cf9c
DA
6521
6522# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6523case ,${enable_languages},:${enable_objc_gc} in
6524 *,objc,*:yes)
7cd0cf9c
DA
6525 # Keep target-boehm-gc if requested for Objective-C.
6526 ;;
7cd0cf9c 6527 *)
2a79fd67
DA
6528 # Otherwise remove target-boehm-gc depending on target-libjava.
6529 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6530 noconfigdirs="$noconfigdirs target-boehm-gc"
6531 fi
7cd0cf9c
DA
6532 ;;
6533esac
6534
5f520819 6535# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6536case ,${enable_languages}, in
1007a55c
JW
6537 *,c++,*)
6538 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6539 case "${noconfigdirs}" in
6540 *target-libstdc++-v3*)
6541 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6542 ;;
6543 *) ;;
6544 esac
6545 ;;
99776ebd 6546 *)
5f520819 6547 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6548 ;;
6549esac
6550
ee6a22df
L
6551# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6552# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6553# If we have the source for $noconfigdirs entries, add them to $notsupp.
6554
6555notsupp=""
6556for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6557 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6558 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6559 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6560 if test -r $srcdir/$dirname/configure ; then
6561 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6562 true
6563 else
6564 notsupp="$notsupp $dir"
6565 fi
6566 fi
6567 fi
ee6a22df
L
6568 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6569 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6570 if test -r $srcdir/$dirname/configure ; then
6571 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6572 true
6573 else
6574 notsupp="$notsupp $dir"
6575 fi
6576 fi
6577 fi
55ffb5ed
NN
6578 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6579 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6580 if test -r $srcdir/$dirname/configure ; then
6581 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6582 true
6583 else
6584 notsupp="$notsupp $dir"
6585 fi
6586 fi
6587 fi
6588done
6589
55ffb5ed
NN
6590# Quietly strip out all directories which aren't configurable in this tree.
6591# This relies on all configurable subdirectories being autoconfiscated, which
6592# is now the case.
23f6b2f9
PB
6593build_configdirs_all="$build_configdirs"
6594build_configdirs=
6595for i in ${build_configdirs_all} ; do
1c710c3c 6596 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6597 if test -f ${srcdir}/$j/configure ; then
6598 build_configdirs="${build_configdirs} $i"
6599 fi
6600done
6601
55ffb5ed
NN
6602configdirs_all="$configdirs"
6603configdirs=
6604for i in ${configdirs_all} ; do
6605 if test -f ${srcdir}/$i/configure ; then
6606 configdirs="${configdirs} $i"
6607 fi
6608done
23f6b2f9 6609
55ffb5ed
NN
6610target_configdirs_all="$target_configdirs"
6611target_configdirs=
6612for i in ${target_configdirs_all} ; do
1c710c3c 6613 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6614 if test -f ${srcdir}/$j/configure ; then
6615 target_configdirs="${target_configdirs} $i"
6616 fi
6617done
6618
f1595603
L
6619# Exclude target-zlib if target-libjava isn't built.
6620case ${target_configdirs} in
6621*target-libjava*)
6622 ;;
6623*)
6624 target_configdirs="`echo ${target_configdirs} | sed -e 's/target-zlib//'`"
6625 ;;
6626esac
6627
45b3824d
TS
6628# libiberty-linker-plugin is special: it doesn't have its own source directory,
6629# so we have to add it after the preceding checks.
6630if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6631then
6632 case " $configdirs " in
6633 *" libiberty "*)
6634 # If we can build libiberty, we can also build libiberty-linker-plugin.
6635 configdirs="$configdirs libiberty-linker-plugin"
6636 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6637 --with-libiberty=../libiberty-linker-plugin";;
6638 *)
6639 as_fn_error "libiberty missing" "$LINENO" 5;;
6640 esac
6641fi
6642
fca38047
TS
6643# Sometimes we have special requirements for the host libiberty.
6644extra_host_libiberty_configure_flags=
1c01ebf6 6645extra_host_zlib_configure_flags=
fca38047
TS
6646case " $configdirs " in
6647 *" lto-plugin "* | *" libcc1 "*)
6648 # When these are to be built as shared libraries, the same applies to
6649 # libiberty.
6650 extra_host_libiberty_configure_flags=--enable-shared
6651 ;;
1c01ebf6
L
6652 *" bfd "*)
6653 # When bfd is to be built as a shared library, the same applies to
6654 # zlib.
6655 if test "$enable_shared" = "yes"; then
6656 extra_host_zlib_configure_flags=--enable-host-shared
6657 fi
6658 ;;
fca38047
TS
6659esac
6660
6661
1c01ebf6 6662
55ffb5ed
NN
6663# Produce a warning message for the subdirs we can't configure.
6664# This isn't especially interesting in the Cygnus tree, but in the individual
6665# FSF releases, it's important to let people know when their machine isn't
6666# supported by the one or two programs in a package.
6667
6668if test -n "${notsupp}" && test -z "${norecursion}" ; then
6669 # If $appdirs is non-empty, at least one of those directories must still
6670 # be configured, or we error out. (E.g., if the gas release supports a
6671 # specified target in some subdirs but not the gas subdir, we shouldn't
6672 # pretend that all is well.)
6673 if test -n "$appdirs" ; then
6674 for dir in $appdirs ; do
6675 if test -r $dir/Makefile.in ; then
6676 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6677 appdirs=""
6678 break
6679 fi
23f6b2f9 6680 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6681 appdirs=""
6682 break
6683 fi
6684 fi
6685 done
6686 if test -n "$appdirs" ; then
6687 echo "*** This configuration is not supported by this package." 1>&2
6688 exit 1
6689 fi
6690 fi
6691 # Okay, some application will build, or we don't care to check. Still
6692 # notify of subdirs not getting built.
6693 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6694 echo " ${notsupp}" 1>&2
6695 echo " (Any other directories should still work fine.)" 1>&2
6696fi
6697
6698case "$host" in
6699 *msdosdjgpp*)
6700 enable_gdbtk=no ;;
6701esac
6702
c3a86da9
DJ
6703# To find our prefix, in gcc_cv_tool_prefix.
6704
6705# The user is always right.
6706if test "${PATH_SEPARATOR+set}" != set; then
6707 echo "#! /bin/sh" >conf$$.sh
6708 echo "exit 0" >>conf$$.sh
6709 chmod +x conf$$.sh
6710 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6711 PATH_SEPARATOR=';'
6712 else
6713 PATH_SEPARATOR=:
6714 fi
6715 rm -f conf$$.sh
6716fi
6717
6718
6719
6720if test "x$exec_prefix" = xNONE; then
6721 if test "x$prefix" = xNONE; then
6722 gcc_cv_tool_prefix=$ac_default_prefix
6723 else
6724 gcc_cv_tool_prefix=$prefix
6725 fi
6726else
6727 gcc_cv_tool_prefix=$exec_prefix
6728fi
6729
6730# If there is no compiler in the tree, use the PATH only. In any
6731# case, if there is no compiler in the tree nobody should use
6732# AS_FOR_TARGET and LD_FOR_TARGET.
6733if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6734 gcc_version=`cat $srcdir/gcc/BASE-VER`
6735 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6736 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6737 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6738 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6739 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6740 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6741else
6742 gcc_cv_tool_dirs=
6743fi
6744
6745if test x$build = x$target && test -n "$md_exec_prefix"; then
6746 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6747fi
6748
6749
6750
55ffb5ed
NN
6751copy_dirs=
6752
1c710c3c 6753
5213506e
RW
6754# Check whether --with-build-sysroot was given.
6755if test "${with_build_sysroot+set}" = set; then :
6756 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6757 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6758 fi
6759else
6760 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6761fi
526635cb
MM
6762
6763
c8aea42c 6764
5213506e
RW
6765
6766# Check whether --with-debug-prefix-map was given.
6767if test "${with_debug_prefix_map+set}" = set; then :
6768 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6769 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6770 for debug_map in $withval; do
6771 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6772 done
6773 fi
6774else
6775 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6776fi
6777
c8aea42c
PB
6778
6779
1c8bd6a3
PB
6780# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6781# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6782# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6783# We want to ensure that TARGET libraries (which we know are built with
6784# gcc) are built with "-O2 -g", so include those options when setting
6785# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6786if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6787 if test "x${is_cross_compiler}" = xyes; then
6788 CFLAGS_FOR_TARGET="-g -O2"
6789 else
6790 CFLAGS_FOR_TARGET=$CFLAGS
6791 case " $CFLAGS " in
6792 *" -O2 "*) ;;
6793 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6794 esac
6795 case " $CFLAGS " in
6796 *" -g "* | *" -g3 "*) ;;
6797 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6798 esac
6799 fi
1c8bd6a3
PB
6800fi
6801
6802
6803if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6804 if test "x${is_cross_compiler}" = xyes; then
6805 CXXFLAGS_FOR_TARGET="-g -O2"
6806 else
6807 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6808 case " $CXXFLAGS " in
6809 *" -O2 "*) ;;
6810 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6811 esac
6812 case " $CXXFLAGS " in
6813 *" -g "* | *" -g3 "*) ;;
6814 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6815 esac
6816 fi
1c8bd6a3
PB
6817fi
6818
6819
6f57bdf6
DK
6820
6821
55ffb5ed
NN
6822# Handle --with-headers=XXX. If the value is not "yes", the contents of
6823# the named directory are copied to $(tooldir)/sys-include.
6824if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6825 if test x${is_cross_compiler} = xno ; then
6826 echo 1>&2 '***' --with-headers is only supported when cross compiling
6827 exit 1
6828 fi
6829 if test x"${with_headers}" != xyes ; then
c3a86da9 6830 x=${gcc_cv_tool_prefix}
1c710c3c 6831 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6832 fi
6833fi
6834
6835# Handle --with-libs=XXX. If the value is not "yes", the contents of
6836# the name directories are copied to $(tooldir)/lib. Multiple directories
6837# are permitted.
6838if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6839 if test x${is_cross_compiler} = xno ; then
6840 echo 1>&2 '***' --with-libs is only supported when cross compiling
6841 exit 1
6842 fi
6843 if test x"${with_libs}" != xyes ; then
6844 # Copy the libraries in reverse order, so that files in the first named
6845 # library override files in subsequent libraries.
c3a86da9 6846 x=${gcc_cv_tool_prefix}
55ffb5ed 6847 for l in ${with_libs}; do
1c710c3c 6848 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6849 done
6850 fi
6851fi
6852
d7f09764 6853# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6854#
6855# This is done by determining whether or not the appropriate directory
6856# is available, and by checking whether or not specific configurations
6857# have requested that this magic not happen.
1c710c3c
DJ
6858#
6859# The command line options always override the explicit settings in
6b1786aa 6860# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6861#
1c710c3c 6862# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6863# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6864# --without-gnu-ld options for the configure script. Similarly, if
6865# the default is to use the included zlib and you don't want to do that,
6866# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6867
6868if test x${use_gnu_as} = x &&
6869 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6870 with_gnu_as=yes
6871 extra_host_args="$extra_host_args --with-gnu-as"
6872fi
6873
6874if test x${use_gnu_ld} = x &&
5afab7ad 6875 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6876 with_gnu_ld=yes
6877 extra_host_args="$extra_host_args --with-gnu-ld"
6878fi
6879
d7f09764
DN
6880if test x${use_included_zlib} = x &&
6881 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6882 :
6883else
6884 with_system_zlib=yes
6885 extra_host_args="$extra_host_args --with-system-zlib"
6886fi
6887
e8b05380
PB
6888# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6889# can detect this case.
6890
6891if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6892 with_newlib=yes
6893 extra_host_args="$extra_host_args --with-newlib"
6894fi
6895
55ffb5ed
NN
6896# Handle ${copy_dirs}
6897set fnord ${copy_dirs}
6898shift
6899while test $# != 0 ; do
6900 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6901 :
6902 else
6903 echo Copying $1 to $2
6904
6905 # Use the install script to create the directory and all required
6906 # parent directories.
6907 if test -d $2 ; then
6908 :
6909 else
6910 echo >config.temp
6911 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6912 fi
6913
6914 # Copy the directory, assuming we have tar.
6915 # FIXME: Should we use B in the second tar? Not all systems support it.
6916 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6917
6918 # It is the responsibility of the user to correctly adjust all
6919 # symlinks. If somebody can figure out how to handle them correctly
6920 # here, feel free to add the code.
6921
6922 echo $1 > $2/COPIED
6923 fi
6924 shift; shift
6925done
6926
e8b05380
PB
6927# Determine a target-dependent exec_prefix that the installed
6928# gcc will search in. Keep this list sorted by triplet, with
6929# the *-*-osname triplets last.
6930md_exec_prefix=
6931case "${target}" in
30b74385 6932 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6933 md_exec_prefix=/dev/env/DJDIR/bin
6934 ;;
e8b05380 6935 *-*-hpux* | \
e8b05380 6936 *-*-nto-qnx* | \
6de66370 6937 *-*-solaris2*)
e8b05380
PB
6938 md_exec_prefix=/usr/ccs/bin
6939 ;;
6940esac
6941
671aa708
NN
6942extra_arflags_for_target=
6943extra_nmflags_for_target=
6944extra_ranlibflags_for_target=
6945target_makefile_frag=/dev/null
6946case "${target}" in
58e24147
AM
6947 spu-*-*)
6948 target_makefile_frag="config/mt-spu"
6949 ;;
d896cc4d 6950 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6951 target_makefile_frag="config/mt-sde"
6952 ;;
1ec3b87b
RS
6953 mipsisa*-*-elfoabi*)
6954 target_makefile_frag="config/mt-mips-elfoabi"
6955 ;;
08d0963a
RS
6956 mips*-*-*linux* | mips*-*-gnu*)
6957 target_makefile_frag="config/mt-mips-gnu"
6958 ;;
707f1839
SL
6959 nios2-*-elf*)
6960 target_makefile_frag="config/mt-nios2-elf"
6961 ;;
416ac4d4 6962 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6963 target_makefile_frag="config/mt-gnu"
671aa708
NN
6964 ;;
6965 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6966 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6967 # commands to handle both 32-bit and 64-bit objects. These flags are
6968 # harmless if we're using GNU nm or ar.
6969 extra_arflags_for_target=" -X32_64"
6970 extra_nmflags_for_target=" -B -X32_64"
6971 ;;
671aa708
NN
6972esac
6973
6974alphaieee_frag=/dev/null
6975case $target in
6976 alpha*-*-*)
6977 # This just makes sure to use the -mieee option to build target libs.
6978 # This should probably be set individually by each library.
6979 alphaieee_frag="config/mt-alphaieee"
6980 ;;
6981esac
6982
6983# If --enable-target-optspace always use -Os instead of -O2 to build
6984# the target libraries, similarly if it is not specified, use -Os
6985# on selected platforms.
6986ospace_frag=/dev/null
6987case "${enable_target_optspace}:${target}" in
6988 yes:*)
6989 ospace_frag="config/mt-ospace"
6990 ;;
6991 :d30v-*)
6992 ospace_frag="config/mt-d30v"
6993 ;;
d9063947 6994 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
6995 ospace_frag="config/mt-ospace"
6996 ;;
6997 no:* | :*)
6998 ;;
6999 *)
7000 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7001 ;;
7002esac
7003
671aa708
NN
7004# Some systems (e.g., one of the i386-aix systems the gas testers are
7005# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 7006tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
7007build_tooldir=${tooldir}
7008
671aa708
NN
7009# Create a .gdbinit file which runs the one in srcdir
7010# and tells GDB to look there for source files.
7011
7012if test -r ${srcdir}/.gdbinit ; then
7013 case ${srcdir} in
7014 .) ;;
7015 *) cat > ./.gdbinit <<EOF
7016# ${NO_EDIT}
7017dir ${srcdir}
7018dir .
7019source ${srcdir}/.gdbinit
7020EOF
7021 ;;
7022 esac
7023fi
7024
671aa708
NN
7025# Make sure that the compiler is able to generate an executable. If it
7026# can't, we are probably in trouble. We don't care whether we can run the
7027# executable--we might be using a cross compiler--we only care whether it
7028# can be created. At this point the main configure script has set CC.
7029we_are_ok=no
7030echo "int main () { return 0; }" > conftest.c
7031${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7032if test $? = 0 ; then
7033 if test -s conftest || test -s conftest.exe ; then
7034 we_are_ok=yes
7035 fi
1c710c3c 7036fi
671aa708
NN
7037case $we_are_ok in
7038 no)
7039 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7040 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7041 rm -f conftest*
7042 exit 1
7043 ;;
7044esac
7045rm -f conftest*
7046
d89f0ad6 7047# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7048case "${host}" in
7049 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 7050 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7051 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7052 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7053esac
7054
d89f0ad6
AL
7055# On systems where the dynamic library environment variable is PATH,
7056# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7057# built executables to PATH.
7058if test "$RPATH_ENVVAR" = PATH; then
7059 GCC_SHLIB_SUBDIR=/shlib
7060else
7061 GCC_SHLIB_SUBDIR=
7062fi
7063
beeda1d9
JJ
7064# Adjust the toplevel makefile according to whether bootstrap was selected.
7065case $enable_bootstrap in
7066 yes)
7067 bootstrap_suffix=bootstrap
7068 BUILD_CONFIG=bootstrap-debug
7069 ;;
7070 no)
7071 bootstrap_suffix=no-bootstrap
7072 BUILD_CONFIG=
7073 ;;
7074esac
7075
7076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7077$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7078
7079
7080# Check whether --with-build-config was given.
7081if test "${with_build_config+set}" = set; then :
7082 withval=$with_build_config; case $with_build_config in
7083 yes) with_build_config= ;;
7084 no) with_build_config= BUILD_CONFIG= ;;
7085 esac
7086fi
7087
7088
7089if test "x${with_build_config}" != x; then
7090 BUILD_CONFIG=$with_build_config
7091else
7092 case $BUILD_CONFIG in
7093 bootstrap-debug)
7094 if echo "int f (void) { return 0; }" > conftest.c &&
7095 ${CC} -c conftest.c &&
7096 mv conftest.o conftest.o.g0 &&
7097 ${CC} -c -g conftest.c &&
7098 mv conftest.o conftest.o.g &&
7099 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7100 :
7101 else
7102 BUILD_CONFIG=
7103 fi
7104 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7105 ;;
7106 esac
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7109$as_echo "$BUILD_CONFIG" >&6; }
7110
7111
7112# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7114$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7115# Check whether --enable-vtable-verify was given.
7116if test "${enable_vtable_verify+set}" = set; then :
7117 enableval=$enable_vtable_verify; case "$enableval" in
7118 yes) enable_vtable_verify=yes ;;
7119 no) enable_vtable_verify=no ;;
7120 *) enable_vtable_verify=no;;
7121 esac
7122else
7123 enable_vtable_verify=no
7124fi
7125
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7127$as_echo "$enable_vtable_verify" >&6; }
7128
671aa708
NN
7129# Record target_configdirs and the configure arguments for target and
7130# build configuration in Makefile.
7131target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7132build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7133bootstrap_fixincludes=no
671aa708 7134
ad1e5170
JR
7135# If we are building libgomp, bootstrap it.
7136if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7137 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7138fi
7139
beeda1d9
JJ
7140# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7141# or bootstrap-ubsan, bootstrap it.
7142if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7143 case "$BUILD_CONFIG" in
7144 *bootstrap-asan* | *bootstrap-ubsan* )
7145 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7146 bootstrap_fixincludes=yes
beeda1d9
JJ
7147 ;;
7148 esac
ac8701fe
L
7149fi
7150
beeda1d9
JJ
7151# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7152if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7153 test "$enable_vtable_verify" != no; then
2077db1b
CT
7154 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7155fi
7156
5373cd33
IE
7157# If we are building libmpx, bootstrap it.
7158if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7159 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7160fi
7161
671aa708
NN
7162# Determine whether gdb needs tk/tcl or not.
7163# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7164# and in that case we want gdb to be built without tk. Ugh!
7165# In fact I believe gdb is the *only* package directly dependent on tk,
7166# so we should be able to put the 'maybe's in unconditionally and
7167# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7168# 100% sure that that's safe though.
e914a571 7169
b4f96efe 7170gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7171case "$enable_gdbtk" in
7172 no)
7173 GDB_TK="" ;;
e914a571
AC
7174 yes)
7175 GDB_TK="${gdb_tk}" ;;
671aa708 7176 *)
e914a571
AC
7177 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7178 # distro. Eventually someone will fix this and move Insight, nee
7179 # gdbtk to a separate directory.
7180 if test -d ${srcdir}/gdb/gdbtk ; then
7181 GDB_TK="${gdb_tk}"
7182 else
7183 GDB_TK=""
7184 fi
7185 ;;
671aa708 7186esac
ef9db8d5
DJ
7187CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7188INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7189
60975492 7190# Strip out unwanted targets.
8b87bb96
NN
7191
7192# While at that, we remove Makefiles if we were started for recursive
7193# configuration, so that the top-level Makefile reconfigures them,
7194# like we used to do when configure itself was recursive.
8b87bb96 7195
3e54529c
RW
7196# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7197# but now we're fixing up the Makefile ourselves with the additional
7198# commands passed to AC_CONFIG_FILES. Use separate variables
7199# extrasub-{build,host,target} not because there is any reason to split
7200# the substitutions up that way, but only to remain below the limit of
7201# 99 commands in a script, for HP-UX sed.
7202# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7203
79cd2b23
RW
7204case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7205 yes:yes:*\ gold\ *:*,c++,*) ;;
7206 yes:yes:*\ gold\ *:*)
7207 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7208 ;;
7209esac
7210
3e54529c 7211extrasub_build=
23f6b2f9 7212for module in ${build_configdirs} ; do
5607edfd
PB
7213 if test -z "${no_recursion}" \
7214 && test -f ${build_subdir}/${module}/Makefile; then
7215 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7216 rm -f ${build_subdir}/${module}/Makefile
7217 fi
3e54529c 7218 extrasub_build="$extrasub_build
5607edfd
PB
7219/^@if build-$module\$/d
7220/^@endif build-$module\$/d
7221/^@if build-$module-$bootstrap_suffix\$/d
7222/^@endif build-$module-$bootstrap_suffix\$/d"
7223done
3e54529c 7224extrasub_host=
5607edfd 7225for module in ${configdirs} ; do
a6fbc1e2 7226 if test -z "${no_recursion}"; then
f063a9ed 7227 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7228 if test -f ${file}; then
7229 echo 1>&2 "*** removing ${file} to force reconfigure"
7230 rm -f ${file}
7231 fi
7232 done
5607edfd 7233 fi
9e1c8fc1
JJ
7234 case ${module},${bootstrap_fixincludes} in
7235 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7236 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7237 esac
3e54529c 7238 extrasub_host="$extrasub_host
5607edfd
PB
7239/^@if $module\$/d
7240/^@endif $module\$/d
9e1c8fc1
JJ
7241/^@if $module-$host_bootstrap_suffix\$/d
7242/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7243done
3e54529c 7244extrasub_target=
5607edfd
PB
7245for module in ${target_configdirs} ; do
7246 if test -z "${no_recursion}" \
7247 && test -f ${target_subdir}/${module}/Makefile; then
7248 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7249 rm -f ${target_subdir}/${module}/Makefile
7250 fi
00020c16
ILT
7251
7252 # We only bootstrap target libraries listed in bootstrap_target_libs.
7253 case $bootstrap_target_libs in
7254 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7255 *) target_bootstrap_suffix=no-bootstrap ;;
7256 esac
7257
3e54529c 7258 extrasub_target="$extrasub_target
5607edfd
PB
7259/^@if target-$module\$/d
7260/^@endif target-$module\$/d
00020c16
ILT
7261/^@if target-$module-$target_bootstrap_suffix\$/d
7262/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7263done
7264
3e54529c
RW
7265# Do the final fixup along with target modules.
7266extrasub_target="$extrasub_target
60975492 7267/^@if /,/^@endif /d"
671aa708
NN
7268
7269# Create the serialization dependencies. This uses a temporary file.
7270
5213506e
RW
7271# Check whether --enable-serial-configure was given.
7272if test "${enable_serial_configure+set}" = set; then :
7273 enableval=$enable_serial_configure;
7274fi
ade82b16
AO
7275
7276
bf1d3e81
NN
7277case ${enable_serial_configure} in
7278 yes)
7279 enable_serial_build_configure=yes
7280 enable_serial_host_configure=yes
7281 enable_serial_target_configure=yes
7282 ;;
7283esac
7284
671aa708
NN
7285# These force 'configure's to be done one at a time, to avoid problems
7286# with contention over a shared config.cache.
7287rm -f serdep.tmp
ade82b16 7288echo '# serdep.tmp' > serdep.tmp
671aa708 7289olditem=
bf1d3e81 7290test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7291for item in ${build_configdirs} ; do
7292 case ${olditem} in
7293 "") ;;
ade82b16 7294 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7295 esac
7296 olditem=${item}
7297done
7298olditem=
bf1d3e81 7299test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7300for item in ${configdirs} ; do
7301 case ${olditem} in
7302 "") ;;
ade82b16 7303 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7304 esac
7305 olditem=${item}
7306done
7307olditem=
bf1d3e81 7308test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7309for item in ${target_configdirs} ; do
7310 case ${olditem} in
7311 "") ;;
ade82b16 7312 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7313 esac
7314 olditem=${item}
7315done
7316serialization_dependencies=serdep.tmp
7317
7318
ade82b16 7319# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7320# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7321# might not want to pass down to subconfigures. The exception being
7322# --cache-file=/dev/null, which is used to turn off the use of cache
7323# files altogether, and which should be passed on to subconfigures.
7324# Also strip program-prefix, program-suffix, and program-transform-name,
7325# so that we can pass down a consistent program-transform-name.
1c710c3c 7326baseargs=
29a63921 7327tbaseargs=
1c710c3c
DJ
7328keep_next=no
7329skip_next=no
7330eval "set -- $ac_configure_args"
44bfc3ac
DJ
7331for ac_arg
7332do
1c710c3c
DJ
7333 if test X"$skip_next" = X"yes"; then
7334 skip_next=no
7335 continue
7336 fi
7337 if test X"$keep_next" = X"yes"; then
7338 case $ac_arg in
7339 *\'*)
7340 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7341 esac
7342 baseargs="$baseargs '$ac_arg'"
29a63921 7343 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7344 keep_next=no
7345 continue
7346 fi
7347
7348 # Handle separated arguments. Based on the logic generated by
7349 # autoconf 2.59.
7350 case $ac_arg in
7351 *=* | --config-cache | -C | -disable-* | --disable-* \
7352 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7353 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7354 | -with-* | --with-* | -without-* | --without-* | --x)
7355 separate_arg=no
7356 ;;
7357 -*)
7358 separate_arg=yes
7359 ;;
7360 *)
7361 separate_arg=no
7362 ;;
7363 esac
7364
29a63921
AO
7365 skip_targ=no
7366 case $ac_arg in
7367
7368 --with-* | --without-*)
7369 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7370
7371 case $libopt in
7372 *[-_]include)
7373 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7374 ;;
7375 *[-_]lib)
7376 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7377 ;;
7378 *)
7379 lib=$libopt
7380 ;;
7381 esac
7382
7383
7384 case $lib in
4a9bb2aa 7385 mpc | mpfr | gmp | isl)
29a63921
AO
7386 # If we're processing --with-$lib, --with-$lib-include or
7387 # --with-$lib-lib, for one of the libs above, and target is
7388 # different from host, don't pass the current argument to any
7389 # target library's configure.
7390 if test x$is_cross_compiler = xyes; then
7391 skip_targ=yes
7392 fi
7393 ;;
7394 esac
7395 ;;
7396 esac
7397
1c710c3c 7398 case "$ac_arg" in
f1a036e4
NC
7399 --cache-file=/dev/null | \
7400 -cache-file=/dev/null )
7401 # Handled here to avoid the test to skip args below.
7402 baseargs="$baseargs '$ac_arg'"
29a63921 7403 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7404 # Assert: $separate_arg should always be no.
7405 keep_next=$separate_arg
7406 ;;
1c710c3c
DJ
7407 --no*)
7408 continue
7409 ;;
7410 --c* | \
7411 --sr* | \
7412 --ho* | \
7413 --bu* | \
7414 --t* | \
7415 --program-* | \
7416 -cache_file* | \
7417 -srcdir* | \
7418 -host* | \
7419 -build* | \
7420 -target* | \
7421 -program-prefix* | \
7422 -program-suffix* | \
7423 -program-transform-name* )
7424 skip_next=$separate_arg
7425 continue
7426 ;;
7427 -*)
7428 # An option. Add it.
7429 case $ac_arg in
7430 *\'*)
7431 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7432 esac
7433 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7434 if test X"$skip_targ" = Xno; then
7435 tbaseargs="$tbaseargs '$ac_arg'"
7436 fi
1c710c3c
DJ
7437 keep_next=$separate_arg
7438 ;;
7439 *)
7440 # Either a variable assignment, or a nonopt (triplet). Don't
7441 # pass it down; let the Makefile handle this.
7442 continue
7443 ;;
7444 esac
7445done
7446# Remove the initial space we just introduced and, as these will be
7447# expanded by make, quote '$'.
7448baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7449
43bb47c2
DJ
7450# Add in --program-transform-name, after --program-prefix and
7451# --program-suffix have been applied to it. Autoconf has already
7452# doubled dollar signs and backslashes in program_transform_name; we want
7453# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7454# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7455# Also, because we want to override the logic in subdir configure scripts to
7456# choose program_transform_name, replace any s,x,x, with s,y,y,.
7457sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7458${program_transform_name}
7459EOF_SED
7460gcc_transform_name=`cat conftestsed.out`
7461rm -f conftestsed.out
7462baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7463tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7464if test "$silent" = yes; then
7465 baseargs="$baseargs --silent"
29a63921 7466 tbaseargs="$tbaseargs --silent"
d9acb717 7467fi
0115d4a3 7468baseargs="$baseargs --disable-option-checking"
29a63921 7469tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7470
ffedf511
RW
7471# Record and document user additions to sub configure arguments.
7472
7473
7474
7475
671aa708
NN
7476# For the build-side libraries, we just need to pretend we're native,
7477# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7478# desired. We can't even use the same cache file for all build-side
7479# libraries, as they're compiled differently; some with C, some with
7480# C++ or with different feature-enabling options.
7481build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7482
7483# For host modules, accept cache file option, or specification as blank.
7484case "${cache_file}" in
7485"") # empty
7486 cache_file_option="" ;;
7487/* | [A-Za-z]:[\\/]* ) # absolute path
7488 cache_file_option="--cache-file=${cache_file}" ;;
7489*) # relative path
7490 cache_file_option="--cache-file=../${cache_file}" ;;
7491esac
7492
09438bde
NN
7493# Host dirs don't like to share a cache file either, horribly enough.
7494# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7495host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7496
29a63921 7497target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7498
7499# Passing a --with-cross-host argument lets the target libraries know
7500# whether they are being built with a cross-compiler or being built
7501# native. However, it would be better to use other mechanisms to make the
7502# sorts of decisions they want to make on this basis. Please consider
7503# this option to be deprecated. FIXME.
7504if test x${is_cross_compiler} = xyes ; then
1c710c3c 7505 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7506fi
7507
79e0604d
FXC
7508# Special user-friendly check for native x86_64-linux build, if
7509# multilib is not explicitly enabled.
7510case "$target:$have_compiler:$host:$target:$enable_multilib" in
7511 x86_64-*linux*:yes:$build:$build:)
e640447c 7512 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7513 dev64=no
7514 echo "int main () { return 0; }" > conftest.c
7515 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7516 if test $? = 0 ; then
7517 if test -s conftest || test -s conftest.exe ; then
7518 dev64=yes
7519 fi
7520 fi
7521 rm -f conftest*
7522 if test x${dev64} != xyes ; then
e640447c 7523 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
7524 fi
7525 ;;
7526esac
7527
dc683a3f
RW
7528# Default to --enable-multilib.
7529if test x${enable_multilib} = x ; then
671aa708 7530 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7531fi
671aa708
NN
7532
7533# Pass --with-newlib if appropriate. Note that target_configdirs has
7534# changed from the earlier setting of with_newlib.
7535if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7536 target_configargs="--with-newlib ${target_configargs}"
7537fi
7538
6b9eb62c
NN
7539# Different target subdirs use different values of certain variables
7540# (notably CXX). Worse, multilibs use *lots* of different values.
7541# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7542# it doesn't automatically accept command-line overrides of them.
7543# This means it's not safe for target subdirs to share a cache file,
7544# which is disgusting, but there you have it. Hopefully this can be
7545# fixed in future. It's still worthwhile to use a cache file for each
7546# directory. I think.
7547
bebcd931
MS
7548# Pass the appropriate --build, --host, --target and --cache-file arguments.
7549# We need to pass --target, as newer autoconf's requires consistency
7550# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7551target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7552
671aa708
NN
7553FLAGS_FOR_TARGET=
7554case " $target_configdirs " in
7555 *" newlib "*)
7556 case " $target_configargs " in
7557 *" --with-newlib "*)
7558 case "$target" in
5d571eaa 7559 *-cygwin*)
443e6238 7560 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7561 ;;
671aa708
NN
7562 esac
7563
7564 # If we're not building GCC, don't discard standard headers.
7565 if test -d ${srcdir}/gcc; then
7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7567
7568 if test "${build}" != "${host}"; then
7569 # On Canadian crosses, CC_FOR_TARGET will have already been set
7570 # by `configure', so we won't have an opportunity to add -Bgcc/
7571 # to it. This is right: we don't want to search that directory
7572 # for binaries, but we want the header files in there, so add
7573 # them explicitly.
0463992b 7574 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7575
7576 # Someone might think of using the pre-installed headers on
7577 # Canadian crosses, in case the installed compiler is not fully
7578 # compatible with the compiler being built. In this case, it
7579 # would be better to flag an error than risking having
7580 # incompatible object files being constructed. We can't
7581 # guarantee that an error will be flagged, but let's hope the
7582 # compiler will do it, when presented with incompatible header
7583 # files.
7584 fi
7585 fi
7586
7587 case "${target}-${is_cross_compiler}" in
f2a0e225 7588 i[3456789]86-*-linux*-no)
671aa708
NN
7589 # Here host == target, so we don't need to build gcc,
7590 # so we don't want to discard standard headers.
7591 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7592 ;;
7593 *)
7594 # If we're building newlib, use its generic headers last, but search
7595 # for any libc-related directories first (so make it the last -B
7596 # switch).
7597 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
7598
7599 # If we're building libgloss, find the startup file, simulator library
7600 # and linker script.
7601 case " $target_configdirs " in
7602 *" libgloss "*)
7603 # Look for startup file, simulator library and maybe linker script.
7604 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7605 # Look for libnosys.a in case the target needs it.
7606 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7607 # Most targets have the linker script in the source directory.
7608 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7609 ;;
7610 esac
671aa708
NN
7611 ;;
7612 esac
7613 ;;
7614 esac
7615 ;;
7616esac
5d571eaa 7617
b91f0a41 7618case "$target" in
5d571eaa
OS
7619 x86_64-*mingw* | *-w64-mingw*)
7620 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7621 # however, use a symlink named 'mingw' in ${prefix} .
7622 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7623 ;;
7624 *-mingw*)
7625 # MinGW can't be handled as Cygwin above since it does not use newlib.
7626 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'
7627 ;;
b91f0a41 7628esac
671aa708 7629
6691a79e
ME
7630# Allow the user to override the flags for
7631# our build compiler if desired.
f019adc1
MF
7632if test x"${build}" = x"${host}" ; then
7633 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7634 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7635 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7636fi
6691a79e 7637
671aa708
NN
7638# On Canadian crosses, we'll be searching the right directories for
7639# the previously-installed cross compiler, so don't bother to add
7640# flags for directories within the install tree of the compiler
7641# being built; programs in there won't even run.
7642if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7643 # Search for pre-installed headers if nothing else fits.
9124bc53 7644 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
7645fi
7646
7647if test "x${use_gnu_ld}" = x &&
7648 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7649 # Arrange for us to find uninstalled linker scripts.
215c351a 7650 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7651fi
7652
e88a2c09
DD
7653# Search for other target-specific linker scripts and such.
7654case "${target}" in
3e19841a
PB
7655 mep*)
7656 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7657 ;;
e88a2c09
DD
7658esac
7659
671aa708 7660# Makefile fragments.
7b61653a
PE
7661for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7662do
7663 eval fragval=\$$frag
7664 if test $fragval != /dev/null; then
7665 eval $frag=${srcdir}/$fragval
7666 fi
7667done
671aa708
NN
7668
7669
7670
7671
7672
7673# Miscellanea: directories, flags, etc.
7674
7675
7676
7677
7678
7679
7680
d89f0ad6 7681
23f6b2f9 7682# Build module lists & subconfigure args.
671aa708
NN
7683
7684
7685
2abefe3d
PB
7686# Host module lists & subconfigure args.
7687
7688
7689
aae29963 7690
2abefe3d
PB
7691# Target module lists & subconfigure args.
7692
7693
7694
7695# Build tools.
7696
7697
7698
0999159b
PB
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
2abefe3d
PB
7713# Generate default definitions for YACC, M4, LEX and other programs that run
7714# on the build machine. These are used if the Makefile can't locate these
7715# programs in objdir.
7716MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7717
7718for ac_prog in 'bison -y' byacc yacc
7719do
1c710c3c 7720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7721set dummy $ac_prog; ac_word=$2
5213506e
RW
7722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7723$as_echo_n "checking for $ac_word... " >&6; }
7724if test "${ac_cv_prog_YACC+set}" = set; then :
7725 $as_echo_n "(cached) " >&6
2abefe3d
PB
7726else
7727 if test -n "$YACC"; then
7728 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7729else
1c710c3c
DJ
7730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731for as_dir in $PATH
7732do
7733 IFS=$as_save_IFS
7734 test -z "$as_dir" && as_dir=.
5213506e
RW
7735 for ac_exec_ext in '' $ac_executable_extensions; do
7736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7737 ac_cv_prog_YACC="$ac_prog"
5213506e 7738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7739 break 2
7740 fi
7741done
5213506e
RW
7742 done
7743IFS=$as_save_IFS
1c710c3c 7744
2abefe3d
PB
7745fi
7746fi
1c710c3c 7747YACC=$ac_cv_prog_YACC
2abefe3d 7748if test -n "$YACC"; then
5213506e
RW
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7750$as_echo "$YACC" >&6; }
2abefe3d 7751else
5213506e
RW
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; }
2abefe3d
PB
7754fi
7755
5213506e 7756
1c710c3c 7757 test -n "$YACC" && break
2abefe3d
PB
7758done
7759test -n "$YACC" || YACC="$MISSING bison -y"
7760
7761case " $build_configdirs " in
7762 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7763esac
7764
7765for ac_prog in bison
7766do
1c710c3c 7767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7768set dummy $ac_prog; ac_word=$2
5213506e
RW
7769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770$as_echo_n "checking for $ac_word... " >&6; }
7771if test "${ac_cv_prog_BISON+set}" = set; then :
7772 $as_echo_n "(cached) " >&6
2abefe3d
PB
7773else
7774 if test -n "$BISON"; then
7775 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7776else
1c710c3c
DJ
7777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7778for as_dir in $PATH
7779do
7780 IFS=$as_save_IFS
7781 test -z "$as_dir" && as_dir=.
5213506e
RW
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7784 ac_cv_prog_BISON="$ac_prog"
5213506e 7785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7786 break 2
7787 fi
7788done
5213506e
RW
7789 done
7790IFS=$as_save_IFS
1c710c3c 7791
2abefe3d
PB
7792fi
7793fi
1c710c3c 7794BISON=$ac_cv_prog_BISON
2abefe3d 7795if test -n "$BISON"; then
5213506e
RW
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7797$as_echo "$BISON" >&6; }
2abefe3d 7798else
5213506e
RW
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800$as_echo "no" >&6; }
2abefe3d
PB
7801fi
7802
5213506e 7803
1c710c3c 7804 test -n "$BISON" && break
2abefe3d
PB
7805done
7806test -n "$BISON" || BISON="$MISSING bison"
7807
7808case " $build_configdirs " in
7809 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7810esac
7811
7812for ac_prog in gm4 gnum4 m4
7813do
1c710c3c 7814 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7815set dummy $ac_prog; ac_word=$2
5213506e
RW
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817$as_echo_n "checking for $ac_word... " >&6; }
7818if test "${ac_cv_prog_M4+set}" = set; then :
7819 $as_echo_n "(cached) " >&6
2abefe3d
PB
7820else
7821 if test -n "$M4"; then
7822 ac_cv_prog_M4="$M4" # Let the user override the test.
7823else
1c710c3c
DJ
7824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825for as_dir in $PATH
7826do
7827 IFS=$as_save_IFS
7828 test -z "$as_dir" && as_dir=.
5213506e
RW
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7831 ac_cv_prog_M4="$ac_prog"
5213506e 7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7833 break 2
7834 fi
7835done
5213506e
RW
7836 done
7837IFS=$as_save_IFS
1c710c3c 7838
2abefe3d
PB
7839fi
7840fi
1c710c3c 7841M4=$ac_cv_prog_M4
2abefe3d 7842if test -n "$M4"; then
5213506e
RW
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7844$as_echo "$M4" >&6; }
2abefe3d 7845else
5213506e
RW
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847$as_echo "no" >&6; }
2abefe3d
PB
7848fi
7849
5213506e 7850
1c710c3c 7851 test -n "$M4" && break
2abefe3d
PB
7852done
7853test -n "$M4" || M4="$MISSING m4"
7854
7855case " $build_configdirs " in
7856 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7857esac
7858
7859for ac_prog in flex lex
7860do
1c710c3c 7861 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7862set dummy $ac_prog; ac_word=$2
5213506e
RW
7863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864$as_echo_n "checking for $ac_word... " >&6; }
7865if test "${ac_cv_prog_LEX+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
2abefe3d
PB
7867else
7868 if test -n "$LEX"; then
7869 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7870else
1c710c3c
DJ
7871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7872for as_dir in $PATH
7873do
7874 IFS=$as_save_IFS
7875 test -z "$as_dir" && as_dir=.
5213506e
RW
7876 for ac_exec_ext in '' $ac_executable_extensions; do
7877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7878 ac_cv_prog_LEX="$ac_prog"
5213506e 7879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7880 break 2
7881 fi
7882done
5213506e
RW
7883 done
7884IFS=$as_save_IFS
1c710c3c 7885
2abefe3d
PB
7886fi
7887fi
1c710c3c 7888LEX=$ac_cv_prog_LEX
2abefe3d 7889if test -n "$LEX"; then
5213506e
RW
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7891$as_echo "$LEX" >&6; }
2abefe3d 7892else
5213506e
RW
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894$as_echo "no" >&6; }
2abefe3d
PB
7895fi
7896
5213506e 7897
1c710c3c 7898 test -n "$LEX" && break
2abefe3d
PB
7899done
7900test -n "$LEX" || LEX="$MISSING flex"
7901
7902case " $build_configdirs " in
7903 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7904 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7905esac
7906
7907for ac_prog in flex
7908do
1c710c3c 7909 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7910set dummy $ac_prog; ac_word=$2
5213506e
RW
7911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7912$as_echo_n "checking for $ac_word... " >&6; }
7913if test "${ac_cv_prog_FLEX+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
2abefe3d
PB
7915else
7916 if test -n "$FLEX"; then
7917 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7918else
1c710c3c
DJ
7919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920for as_dir in $PATH
7921do
7922 IFS=$as_save_IFS
7923 test -z "$as_dir" && as_dir=.
5213506e
RW
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7926 ac_cv_prog_FLEX="$ac_prog"
5213506e 7927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7928 break 2
7929 fi
7930done
5213506e
RW
7931 done
7932IFS=$as_save_IFS
1c710c3c 7933
2abefe3d
PB
7934fi
7935fi
1c710c3c 7936FLEX=$ac_cv_prog_FLEX
2abefe3d 7937if test -n "$FLEX"; then
5213506e
RW
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7939$as_echo "$FLEX" >&6; }
2abefe3d 7940else
5213506e
RW
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7942$as_echo "no" >&6; }
2abefe3d
PB
7943fi
7944
5213506e 7945
1c710c3c 7946 test -n "$FLEX" && break
2abefe3d
PB
7947done
7948test -n "$FLEX" || FLEX="$MISSING flex"
7949
7950case " $build_configdirs " in
7951 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7952esac
7953
7954for ac_prog in makeinfo
7955do
1c710c3c 7956 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7957set dummy $ac_prog; ac_word=$2
5213506e
RW
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7959$as_echo_n "checking for $ac_word... " >&6; }
7960if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
2abefe3d
PB
7962else
7963 if test -n "$MAKEINFO"; then
7964 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7965else
1c710c3c
DJ
7966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967for as_dir in $PATH
7968do
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
5213506e
RW
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7973 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7975 break 2
7976 fi
7977done
5213506e
RW
7978 done
7979IFS=$as_save_IFS
1c710c3c 7980
2abefe3d
PB
7981fi
7982fi
1c710c3c 7983MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7984if test -n "$MAKEINFO"; then
5213506e
RW
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7986$as_echo "$MAKEINFO" >&6; }
2abefe3d 7987else
5213506e
RW
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989$as_echo "no" >&6; }
2abefe3d
PB
7990fi
7991
5213506e 7992
1c710c3c 7993 test -n "$MAKEINFO" && break
2abefe3d
PB
7994done
7995test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7996
7997case " $build_configdirs " in
7998 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7999 *)
8000
d18ff35a 8001 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
8002 # higher, else we use the "missing" dummy.
8003 if ${MAKEINFO} --version \
d18ff35a 8004 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
8005 :
8006 else
8007 MAKEINFO="$MISSING makeinfo"
8008 fi
8009 ;;
8010
8011esac
671aa708 8012
2abefe3d 8013# FIXME: expect and dejagnu may become build tools?
671aa708 8014
2abefe3d
PB
8015for ac_prog in expect
8016do
1c710c3c 8017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8018set dummy $ac_prog; ac_word=$2
5213506e
RW
8019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020$as_echo_n "checking for $ac_word... " >&6; }
8021if test "${ac_cv_prog_EXPECT+set}" = set; then :
8022 $as_echo_n "(cached) " >&6
2abefe3d
PB
8023else
8024 if test -n "$EXPECT"; then
8025 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8026else
1c710c3c
DJ
8027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
5213506e
RW
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8034 ac_cv_prog_EXPECT="$ac_prog"
5213506e 8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8036 break 2
8037 fi
8038done
5213506e
RW
8039 done
8040IFS=$as_save_IFS
1c710c3c 8041
2abefe3d
PB
8042fi
8043fi
1c710c3c 8044EXPECT=$ac_cv_prog_EXPECT
2abefe3d 8045if test -n "$EXPECT"; then
5213506e
RW
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8047$as_echo "$EXPECT" >&6; }
2abefe3d 8048else
5213506e
RW
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050$as_echo "no" >&6; }
2abefe3d 8051fi
671aa708 8052
5213506e 8053
1c710c3c 8054 test -n "$EXPECT" && break
2abefe3d
PB
8055done
8056test -n "$EXPECT" || EXPECT="expect"
671aa708 8057
2abefe3d
PB
8058case " $configdirs " in
8059 *" expect "*)
8060 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8061 ;;
8062esac
671aa708 8063
2abefe3d
PB
8064for ac_prog in runtest
8065do
1c710c3c 8066 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 8067set dummy $ac_prog; ac_word=$2
5213506e
RW
8068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8069$as_echo_n "checking for $ac_word... " >&6; }
8070if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8071 $as_echo_n "(cached) " >&6
2abefe3d
PB
8072else
8073 if test -n "$RUNTEST"; then
8074 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8075else
1c710c3c
DJ
8076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077for as_dir in $PATH
8078do
8079 IFS=$as_save_IFS
8080 test -z "$as_dir" && as_dir=.
5213506e
RW
8081 for ac_exec_ext in '' $ac_executable_extensions; do
8082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8083 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8085 break 2
8086 fi
8087done
5213506e
RW
8088 done
8089IFS=$as_save_IFS
1c710c3c 8090
2abefe3d
PB
8091fi
8092fi
1c710c3c 8093RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8094if test -n "$RUNTEST"; then
5213506e
RW
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8096$as_echo "$RUNTEST" >&6; }
2abefe3d 8097else
5213506e
RW
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8099$as_echo "no" >&6; }
2abefe3d 8100fi
671aa708 8101
5213506e 8102
1c710c3c 8103 test -n "$RUNTEST" && break
2abefe3d
PB
8104done
8105test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8106
2abefe3d
PB
8107case " $configdirs " in
8108 *" dejagnu "*)
c394e891 8109 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8110 ;;
8111esac
671aa708
NN
8112
8113
671aa708 8114# Host tools.
ca9f4b81
AO
8115ncn_tool_prefix=
8116test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8117ncn_target_tool_prefix=
8118test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8119
278a7a38
AO
8120
8121
8122if test -n "$AR"; then
8123 ac_cv_prog_AR=$AR
8124elif test -n "$ac_cv_prog_AR"; then
8125 AR=$ac_cv_prog_AR
8126fi
8127
8128if test -n "$ac_cv_prog_AR"; then
8129 for ncn_progname in ar; do
8130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8131set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133$as_echo_n "checking for $ac_word... " >&6; }
8134if test "${ac_cv_prog_AR+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
278a7a38
AO
8136else
8137 if test -n "$AR"; then
8138 ac_cv_prog_AR="$AR" # Let the user override the test.
8139else
8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141for as_dir in $PATH
8142do
8143 IFS=$as_save_IFS
8144 test -z "$as_dir" && as_dir=.
5213506e
RW
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8147 ac_cv_prog_AR="${ncn_progname}"
5213506e 8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8149 break 2
8150 fi
8151done
5213506e
RW
8152 done
8153IFS=$as_save_IFS
278a7a38
AO
8154
8155fi
8156fi
8157AR=$ac_cv_prog_AR
8158if test -n "$AR"; then
5213506e
RW
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8160$as_echo "$AR" >&6; }
278a7a38 8161else
5213506e
RW
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163$as_echo "no" >&6; }
278a7a38
AO
8164fi
8165
5213506e 8166
278a7a38
AO
8167 done
8168fi
8169
8170for ncn_progname in ar; do
2693c0b0
PB
8171 if test -n "$ncn_tool_prefix"; then
8172 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8173set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175$as_echo_n "checking for $ac_word... " >&6; }
8176if test "${ac_cv_prog_AR+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8178else
8179 if test -n "$AR"; then
8180 ac_cv_prog_AR="$AR" # Let the user override the test.
8181else
1c710c3c
DJ
8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
5213506e
RW
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8189 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8191 break 2
8192 fi
8193done
5213506e
RW
8194 done
8195IFS=$as_save_IFS
1c710c3c 8196
ca9f4b81
AO
8197fi
8198fi
1c710c3c 8199AR=$ac_cv_prog_AR
ca9f4b81 8200if test -n "$AR"; then
5213506e
RW
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8202$as_echo "$AR" >&6; }
ca9f4b81 8203else
5213506e
RW
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205$as_echo "no" >&6; }
ca9f4b81
AO
8206fi
8207
5213506e 8208
2693c0b0
PB
8209 fi
8210 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8212set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214$as_echo_n "checking for $ac_word... " >&6; }
8215if test "${ac_cv_prog_AR+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
ca9f4b81 8217else
2693c0b0 8218 if test -n "$AR"; then
af71363e
AS
8219 ac_cv_prog_AR="$AR" # Let the user override the test.
8220else
1c710c3c
DJ
8221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8222for as_dir in $PATH
8223do
8224 IFS=$as_save_IFS
8225 test -z "$as_dir" && as_dir=.
5213506e
RW
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8228 ac_cv_prog_AR="${ncn_progname}"
5213506e 8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8230 break 2
8231 fi
8232done
5213506e
RW
8233 done
8234IFS=$as_save_IFS
1c710c3c 8235
ca9f4b81
AO
8236fi
8237fi
1c710c3c 8238AR=$ac_cv_prog_AR
2693c0b0 8239if test -n "$AR"; then
5213506e
RW
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8241$as_echo "$AR" >&6; }
ca9f4b81 8242else
5213506e
RW
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244$as_echo "no" >&6; }
ca9f4b81 8245fi
1c710c3c 8246
5213506e 8247
2693c0b0
PB
8248 fi
8249 test -n "$ac_cv_prog_AR" && break
8250done
8251
8252if test -z "$ac_cv_prog_AR" ; then
8253 set dummy ar
8254 if test $build = $host ; then
8255 AR="$2"
ca9f4b81 8256 else
2693c0b0 8257 AR="${ncn_tool_prefix}$2"
ca9f4b81 8258 fi
ca9f4b81
AO
8259fi
8260
278a7a38
AO
8261
8262
8263if test -n "$AS"; then
8264 ac_cv_prog_AS=$AS
8265elif test -n "$ac_cv_prog_AS"; then
8266 AS=$ac_cv_prog_AS
8267fi
8268
8269if test -n "$ac_cv_prog_AS"; then
8270 for ncn_progname in as; do
8271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8272set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8274$as_echo_n "checking for $ac_word... " >&6; }
8275if test "${ac_cv_prog_AS+set}" = set; then :
8276 $as_echo_n "(cached) " >&6
278a7a38
AO
8277else
8278 if test -n "$AS"; then
8279 ac_cv_prog_AS="$AS" # Let the user override the test.
8280else
8281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282for as_dir in $PATH
8283do
8284 IFS=$as_save_IFS
8285 test -z "$as_dir" && as_dir=.
5213506e
RW
8286 for ac_exec_ext in '' $ac_executable_extensions; do
8287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8288 ac_cv_prog_AS="${ncn_progname}"
5213506e 8289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8290 break 2
8291 fi
8292done
5213506e
RW
8293 done
8294IFS=$as_save_IFS
278a7a38
AO
8295
8296fi
8297fi
8298AS=$ac_cv_prog_AS
8299if test -n "$AS"; then
5213506e
RW
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8301$as_echo "$AS" >&6; }
278a7a38 8302else
5213506e
RW
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304$as_echo "no" >&6; }
278a7a38
AO
8305fi
8306
5213506e 8307
278a7a38
AO
8308 done
8309fi
8310
8311for ncn_progname in as; do
2693c0b0
PB
8312 if test -n "$ncn_tool_prefix"; then
8313 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8314set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316$as_echo_n "checking for $ac_word... " >&6; }
8317if test "${ac_cv_prog_AS+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8319else
8320 if test -n "$AS"; then
8321 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8322else
1c710c3c
DJ
8323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324for as_dir in $PATH
8325do
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
5213506e
RW
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8330 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8332 break 2
8333 fi
8334done
5213506e
RW
8335 done
8336IFS=$as_save_IFS
1c710c3c 8337
ca9f4b81
AO
8338fi
8339fi
1c710c3c 8340AS=$ac_cv_prog_AS
ca9f4b81 8341if test -n "$AS"; then
5213506e
RW
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8343$as_echo "$AS" >&6; }
ca9f4b81 8344else
5213506e
RW
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346$as_echo "no" >&6; }
ca9f4b81
AO
8347fi
8348
5213506e 8349
2693c0b0
PB
8350 fi
8351 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8353set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if test "${ac_cv_prog_AS+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
ca9f4b81 8358else
2693c0b0
PB
8359 if test -n "$AS"; then
8360 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8361else
1c710c3c
DJ
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
5213506e
RW
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8369 ac_cv_prog_AS="${ncn_progname}"
5213506e 8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8371 break 2
8372 fi
8373done
5213506e
RW
8374 done
8375IFS=$as_save_IFS
1c710c3c 8376
ca9f4b81
AO
8377fi
8378fi
1c710c3c 8379AS=$ac_cv_prog_AS
2693c0b0 8380if test -n "$AS"; then
5213506e
RW
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8382$as_echo "$AS" >&6; }
ca9f4b81 8383else
5213506e
RW
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
ca9f4b81 8386fi
1c710c3c 8387
5213506e 8388
2693c0b0
PB
8389 fi
8390 test -n "$ac_cv_prog_AS" && break
8391done
8392
8393if test -z "$ac_cv_prog_AS" ; then
8394 set dummy as
8395 if test $build = $host ; then
8396 AS="$2"
ca9f4b81 8397 else
2693c0b0 8398 AS="${ncn_tool_prefix}$2"
ca9f4b81 8399 fi
ca9f4b81
AO
8400fi
8401
278a7a38
AO
8402
8403
8404if test -n "$DLLTOOL"; then
8405 ac_cv_prog_DLLTOOL=$DLLTOOL
8406elif test -n "$ac_cv_prog_DLLTOOL"; then
8407 DLLTOOL=$ac_cv_prog_DLLTOOL
8408fi
8409
8410if test -n "$ac_cv_prog_DLLTOOL"; then
8411 for ncn_progname in dlltool; do
8412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8413set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415$as_echo_n "checking for $ac_word... " >&6; }
8416if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
278a7a38
AO
8418else
8419 if test -n "$DLLTOOL"; then
8420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8421else
8422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423for as_dir in $PATH
8424do
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
5213506e
RW
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8429 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8431 break 2
8432 fi
8433done
5213506e
RW
8434 done
8435IFS=$as_save_IFS
278a7a38
AO
8436
8437fi
8438fi
8439DLLTOOL=$ac_cv_prog_DLLTOOL
8440if test -n "$DLLTOOL"; then
5213506e
RW
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8442$as_echo "$DLLTOOL" >&6; }
278a7a38 8443else
5213506e
RW
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445$as_echo "no" >&6; }
278a7a38
AO
8446fi
8447
5213506e 8448
278a7a38
AO
8449 done
8450fi
8451
8452for ncn_progname in dlltool; do
2693c0b0
PB
8453 if test -n "$ncn_tool_prefix"; then
8454 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8455set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457$as_echo_n "checking for $ac_word... " >&6; }
8458if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8460else
8461 if test -n "$DLLTOOL"; then
8462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8463else
1c710c3c
DJ
8464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465for as_dir in $PATH
8466do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
5213506e
RW
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8471 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8473 break 2
8474 fi
8475done
5213506e
RW
8476 done
8477IFS=$as_save_IFS
1c710c3c 8478
ca9f4b81
AO
8479fi
8480fi
1c710c3c 8481DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8482if test -n "$DLLTOOL"; then
5213506e
RW
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8484$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8485else
5213506e
RW
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
ca9f4b81
AO
8488fi
8489
5213506e 8490
2693c0b0
PB
8491 fi
8492 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8494set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496$as_echo_n "checking for $ac_word... " >&6; }
8497if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8498 $as_echo_n "(cached) " >&6
ca9f4b81 8499else
2693c0b0
PB
8500 if test -n "$DLLTOOL"; then
8501 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8502else
1c710c3c
DJ
8503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504for as_dir in $PATH
8505do
8506 IFS=$as_save_IFS
8507 test -z "$as_dir" && as_dir=.
5213506e
RW
8508 for ac_exec_ext in '' $ac_executable_extensions; do
8509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8510 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8512 break 2
8513 fi
8514done
5213506e
RW
8515 done
8516IFS=$as_save_IFS
1c710c3c 8517
ca9f4b81
AO
8518fi
8519fi
1c710c3c 8520DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8521if test -n "$DLLTOOL"; then
5213506e
RW
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8523$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8524else
5213506e
RW
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526$as_echo "no" >&6; }
ca9f4b81 8527fi
1c710c3c 8528
5213506e 8529
2693c0b0
PB
8530 fi
8531 test -n "$ac_cv_prog_DLLTOOL" && break
8532done
8533
8534if test -z "$ac_cv_prog_DLLTOOL" ; then
8535 set dummy dlltool
8536 if test $build = $host ; then
8537 DLLTOOL="$2"
ca9f4b81 8538 else
2693c0b0 8539 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8540 fi
ca9f4b81
AO
8541fi
8542
278a7a38
AO
8543
8544
8545if test -n "$LD"; then
8546 ac_cv_prog_LD=$LD
8547elif test -n "$ac_cv_prog_LD"; then
8548 LD=$ac_cv_prog_LD
8549fi
8550
8551if test -n "$ac_cv_prog_LD"; then
8552 for ncn_progname in ld; do
8553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8554set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556$as_echo_n "checking for $ac_word... " >&6; }
8557if test "${ac_cv_prog_LD+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
278a7a38
AO
8559else
8560 if test -n "$LD"; then
8561 ac_cv_prog_LD="$LD" # Let the user override the test.
8562else
8563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564for as_dir in $PATH
8565do
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
5213506e
RW
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8570 ac_cv_prog_LD="${ncn_progname}"
5213506e 8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8572 break 2
8573 fi
8574done
5213506e
RW
8575 done
8576IFS=$as_save_IFS
278a7a38
AO
8577
8578fi
8579fi
8580LD=$ac_cv_prog_LD
8581if test -n "$LD"; then
5213506e
RW
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8583$as_echo "$LD" >&6; }
278a7a38 8584else
5213506e
RW
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586$as_echo "no" >&6; }
278a7a38
AO
8587fi
8588
5213506e 8589
278a7a38
AO
8590 done
8591fi
8592
8593for ncn_progname in ld; do
2693c0b0
PB
8594 if test -n "$ncn_tool_prefix"; then
8595 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8596set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598$as_echo_n "checking for $ac_word... " >&6; }
8599if test "${ac_cv_prog_LD+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8601else
8602 if test -n "$LD"; then
8603 ac_cv_prog_LD="$LD" # Let the user override the test.
8604else
1c710c3c
DJ
8605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
5213506e
RW
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8612 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8614 break 2
8615 fi
8616done
5213506e
RW
8617 done
8618IFS=$as_save_IFS
1c710c3c 8619
ca9f4b81
AO
8620fi
8621fi
1c710c3c 8622LD=$ac_cv_prog_LD
ca9f4b81 8623if test -n "$LD"; then
5213506e
RW
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8625$as_echo "$LD" >&6; }
ca9f4b81 8626else
5213506e
RW
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
ca9f4b81
AO
8629fi
8630
5213506e 8631
2693c0b0
PB
8632 fi
8633 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8634 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8635set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637$as_echo_n "checking for $ac_word... " >&6; }
8638if test "${ac_cv_prog_LD+set}" = set; then :
8639 $as_echo_n "(cached) " >&6
ca9f4b81 8640else
2693c0b0
PB
8641 if test -n "$LD"; then
8642 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8643else
1c710c3c
DJ
8644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645for as_dir in $PATH
8646do
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
5213506e
RW
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8651 ac_cv_prog_LD="${ncn_progname}"
5213506e 8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8653 break 2
8654 fi
8655done
5213506e
RW
8656 done
8657IFS=$as_save_IFS
1c710c3c 8658
ca9f4b81
AO
8659fi
8660fi
1c710c3c 8661LD=$ac_cv_prog_LD
2693c0b0 8662if test -n "$LD"; then
5213506e
RW
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8664$as_echo "$LD" >&6; }
ca9f4b81 8665else
5213506e
RW
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667$as_echo "no" >&6; }
ca9f4b81 8668fi
1c710c3c 8669
5213506e 8670
2693c0b0
PB
8671 fi
8672 test -n "$ac_cv_prog_LD" && break
8673done
8674
8675if test -z "$ac_cv_prog_LD" ; then
8676 set dummy ld
8677 if test $build = $host ; then
8678 LD="$2"
ca9f4b81 8679 else
2693c0b0 8680 LD="${ncn_tool_prefix}$2"
ca9f4b81 8681 fi
ca9f4b81
AO
8682fi
8683
278a7a38
AO
8684
8685
8686if test -n "$LIPO"; then
8687 ac_cv_prog_LIPO=$LIPO
8688elif test -n "$ac_cv_prog_LIPO"; then
8689 LIPO=$ac_cv_prog_LIPO
8690fi
8691
8692if test -n "$ac_cv_prog_LIPO"; then
8693 for ncn_progname in lipo; do
8694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8695set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697$as_echo_n "checking for $ac_word... " >&6; }
8698if test "${ac_cv_prog_LIPO+set}" = set; then :
8699 $as_echo_n "(cached) " >&6
278a7a38
AO
8700else
8701 if test -n "$LIPO"; then
8702 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8703else
8704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705for as_dir in $PATH
8706do
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
5213506e
RW
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8711 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8713 break 2
8714 fi
8715done
5213506e
RW
8716 done
8717IFS=$as_save_IFS
278a7a38
AO
8718
8719fi
8720fi
8721LIPO=$ac_cv_prog_LIPO
8722if test -n "$LIPO"; then
5213506e
RW
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8724$as_echo "$LIPO" >&6; }
278a7a38 8725else
5213506e
RW
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727$as_echo "no" >&6; }
278a7a38
AO
8728fi
8729
5213506e 8730
278a7a38
AO
8731 done
8732fi
8733
8734for ncn_progname in lipo; do
2abefe3d
PB
8735 if test -n "$ncn_tool_prefix"; then
8736 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8737set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739$as_echo_n "checking for $ac_word... " >&6; }
8740if test "${ac_cv_prog_LIPO+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
2abefe3d
PB
8742else
8743 if test -n "$LIPO"; then
8744 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8745else
1c710c3c
DJ
8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
5213506e
RW
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8753 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8755 break 2
8756 fi
8757done
5213506e
RW
8758 done
8759IFS=$as_save_IFS
1c710c3c 8760
2abefe3d
PB
8761fi
8762fi
1c710c3c 8763LIPO=$ac_cv_prog_LIPO
2abefe3d 8764if test -n "$LIPO"; then
5213506e
RW
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8766$as_echo "$LIPO" >&6; }
2abefe3d 8767else
5213506e
RW
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
2abefe3d
PB
8770fi
8771
5213506e 8772
2abefe3d
PB
8773 fi
8774 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8776set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8778$as_echo_n "checking for $ac_word... " >&6; }
8779if test "${ac_cv_prog_LIPO+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
2abefe3d
PB
8781else
8782 if test -n "$LIPO"; then
8783 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8784else
1c710c3c
DJ
8785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786for as_dir in $PATH
8787do
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
5213506e
RW
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8792 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8794 break 2
8795 fi
8796done
5213506e
RW
8797 done
8798IFS=$as_save_IFS
1c710c3c 8799
2abefe3d
PB
8800fi
8801fi
1c710c3c 8802LIPO=$ac_cv_prog_LIPO
2abefe3d 8803if test -n "$LIPO"; then
5213506e
RW
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8805$as_echo "$LIPO" >&6; }
2abefe3d 8806else
5213506e
RW
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8808$as_echo "no" >&6; }
2abefe3d 8809fi
1c710c3c 8810
5213506e 8811
2abefe3d
PB
8812 fi
8813 test -n "$ac_cv_prog_LIPO" && break
8814done
8815
8816if test -z "$ac_cv_prog_LIPO" ; then
8817 set dummy lipo
8818 if test $build = $host ; then
8819 LIPO="$2"
8820 else
8821 LIPO="${ncn_tool_prefix}$2"
8822 fi
8823fi
8824
278a7a38
AO
8825
8826
8827if test -n "$NM"; then
8828 ac_cv_prog_NM=$NM
8829elif test -n "$ac_cv_prog_NM"; then
8830 NM=$ac_cv_prog_NM
8831fi
8832
8833if test -n "$ac_cv_prog_NM"; then
8834 for ncn_progname in nm; do
8835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8836set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8838$as_echo_n "checking for $ac_word... " >&6; }
8839if test "${ac_cv_prog_NM+set}" = set; then :
8840 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8841else
8842 if test -n "$NM"; then
8843 ac_cv_prog_NM="$NM" # Let the user override the test.
8844else
1c710c3c
DJ
8845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8846for as_dir in $PATH
8847do
8848 IFS=$as_save_IFS
8849 test -z "$as_dir" && as_dir=.
5213506e
RW
8850 for ac_exec_ext in '' $ac_executable_extensions; do
8851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8852 ac_cv_prog_NM="${ncn_progname}"
5213506e 8853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8854 break 2
8855 fi
8856done
5213506e
RW
8857 done
8858IFS=$as_save_IFS
1c710c3c 8859
ca9f4b81
AO
8860fi
8861fi
1c710c3c 8862NM=$ac_cv_prog_NM
ca9f4b81 8863if test -n "$NM"; then
5213506e
RW
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8865$as_echo "$NM" >&6; }
ca9f4b81 8866else
5213506e
RW
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868$as_echo "no" >&6; }
ca9f4b81
AO
8869fi
8870
5213506e 8871
278a7a38
AO
8872 done
8873fi
8874
8875for ncn_progname in nm; do
8876 if test -n "$ncn_tool_prefix"; then
8877 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8878set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880$as_echo_n "checking for $ac_word... " >&6; }
8881if test "${ac_cv_prog_NM+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
ca9f4b81 8883else
2693c0b0
PB
8884 if test -n "$NM"; then
8885 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8886else
1c710c3c
DJ
8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
5213506e
RW
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8894 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8896 break 2
8897 fi
8898done
5213506e
RW
8899 done
8900IFS=$as_save_IFS
1c710c3c 8901
ca9f4b81
AO
8902fi
8903fi
1c710c3c 8904NM=$ac_cv_prog_NM
2693c0b0 8905if test -n "$NM"; then
5213506e
RW
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8907$as_echo "$NM" >&6; }
ca9f4b81 8908else
5213506e
RW
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
ca9f4b81 8911fi
1c710c3c 8912
5213506e 8913
2693c0b0 8914 fi
278a7a38
AO
8915 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8917set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8919$as_echo_n "checking for $ac_word... " >&6; }
8920if test "${ac_cv_prog_NM+set}" = set; then :
8921 $as_echo_n "(cached) " >&6
278a7a38
AO
8922else
8923 if test -n "$NM"; then
8924 ac_cv_prog_NM="$NM" # Let the user override the test.
8925else
8926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8927for as_dir in $PATH
8928do
8929 IFS=$as_save_IFS
8930 test -z "$as_dir" && as_dir=.
5213506e
RW
8931 for ac_exec_ext in '' $ac_executable_extensions; do
8932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8933 ac_cv_prog_NM="${ncn_progname}"
5213506e 8934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8935 break 2
8936 fi
8937done
5213506e
RW
8938 done
8939IFS=$as_save_IFS
278a7a38
AO
8940
8941fi
8942fi
8943NM=$ac_cv_prog_NM
8944if test -n "$NM"; then
5213506e
RW
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8946$as_echo "$NM" >&6; }
278a7a38 8947else
5213506e
RW
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8949$as_echo "no" >&6; }
278a7a38
AO
8950fi
8951
5213506e 8952
278a7a38
AO
8953 fi
8954 test -n "$ac_cv_prog_NM" && break
8955done
8956
8957if test -z "$ac_cv_prog_NM" ; then
8958 set dummy nm
8959 if test $build = $host ; then
8960 NM="$2"
8961 else
8962 NM="${ncn_tool_prefix}$2"
8963 fi
8964fi
8965
8966
8967
8968if test -n "$RANLIB"; then
8969 ac_cv_prog_RANLIB=$RANLIB
8970elif test -n "$ac_cv_prog_RANLIB"; then
8971 RANLIB=$ac_cv_prog_RANLIB
8972fi
8973
8974if test -n "$ac_cv_prog_RANLIB"; then
8975 for ncn_progname in ranlib; do
8976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8977set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979$as_echo_n "checking for $ac_word... " >&6; }
8980if test "${ac_cv_prog_RANLIB+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
278a7a38
AO
8982else
8983 if test -n "$RANLIB"; then
8984 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8985else
8986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987for as_dir in $PATH
8988do
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
5213506e
RW
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8993 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8995 break 2
8996 fi
8997done
5213506e
RW
8998 done
8999IFS=$as_save_IFS
278a7a38
AO
9000
9001fi
9002fi
9003RANLIB=$ac_cv_prog_RANLIB
9004if test -n "$RANLIB"; then
5213506e
RW
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9006$as_echo "$RANLIB" >&6; }
278a7a38 9007else
5213506e
RW
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009$as_echo "no" >&6; }
278a7a38
AO
9010fi
9011
5213506e 9012
278a7a38
AO
9013 done
9014fi
ca9f4b81 9015
278a7a38 9016for ncn_progname in ranlib; do
2693c0b0
PB
9017 if test -n "$ncn_tool_prefix"; then
9018 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9019set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021$as_echo_n "checking for $ac_word... " >&6; }
9022if test "${ac_cv_prog_RANLIB+set}" = set; then :
9023 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9024else
9025 if test -n "$RANLIB"; then
9026 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9027else
1c710c3c
DJ
9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029for as_dir in $PATH
9030do
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
5213506e
RW
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9035 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9037 break 2
9038 fi
9039done
5213506e
RW
9040 done
9041IFS=$as_save_IFS
1c710c3c 9042
ca9f4b81
AO
9043fi
9044fi
1c710c3c 9045RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 9046if test -n "$RANLIB"; then
5213506e
RW
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9048$as_echo "$RANLIB" >&6; }
ca9f4b81 9049else
5213506e
RW
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051$as_echo "no" >&6; }
ca9f4b81
AO
9052fi
9053
5213506e 9054
2693c0b0
PB
9055 fi
9056 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9058set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9060$as_echo_n "checking for $ac_word... " >&6; }
9061if test "${ac_cv_prog_RANLIB+set}" = set; then :
9062 $as_echo_n "(cached) " >&6
ca9f4b81 9063else
2693c0b0
PB
9064 if test -n "$RANLIB"; then
9065 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 9066else
1c710c3c
DJ
9067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9068for as_dir in $PATH
9069do
9070 IFS=$as_save_IFS
9071 test -z "$as_dir" && as_dir=.
5213506e
RW
9072 for ac_exec_ext in '' $ac_executable_extensions; do
9073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9074 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9076 break 2
9077 fi
9078done
5213506e
RW
9079 done
9080IFS=$as_save_IFS
1c710c3c 9081
ca9f4b81
AO
9082fi
9083fi
1c710c3c 9084RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9085if test -n "$RANLIB"; then
5213506e
RW
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9087$as_echo "$RANLIB" >&6; }
ca9f4b81 9088else
5213506e
RW
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9090$as_echo "no" >&6; }
ca9f4b81 9091fi
1c710c3c 9092
5213506e 9093
ca9f4b81 9094 fi
2693c0b0
PB
9095 test -n "$ac_cv_prog_RANLIB" && break
9096done
9097
9098if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9099 RANLIB="true"
ca9f4b81
AO
9100fi
9101
278a7a38
AO
9102
9103
9104if test -n "$STRIP"; then
9105 ac_cv_prog_STRIP=$STRIP
9106elif test -n "$ac_cv_prog_STRIP"; then
9107 STRIP=$ac_cv_prog_STRIP
9108fi
9109
9110if test -n "$ac_cv_prog_STRIP"; then
9111 for ncn_progname in strip; do
9112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9113set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115$as_echo_n "checking for $ac_word... " >&6; }
9116if test "${ac_cv_prog_STRIP+set}" = set; then :
9117 $as_echo_n "(cached) " >&6
278a7a38
AO
9118else
9119 if test -n "$STRIP"; then
9120 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9121else
9122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123for as_dir in $PATH
9124do
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
5213506e
RW
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9129 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9131 break 2
9132 fi
9133done
5213506e
RW
9134 done
9135IFS=$as_save_IFS
278a7a38
AO
9136
9137fi
9138fi
9139STRIP=$ac_cv_prog_STRIP
9140if test -n "$STRIP"; then
5213506e
RW
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9142$as_echo "$STRIP" >&6; }
278a7a38 9143else
5213506e
RW
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145$as_echo "no" >&6; }
278a7a38
AO
9146fi
9147
5213506e 9148
278a7a38
AO
9149 done
9150fi
9151
9152for ncn_progname in strip; do
2abefe3d
PB
9153 if test -n "$ncn_tool_prefix"; then
9154 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9155set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157$as_echo_n "checking for $ac_word... " >&6; }
9158if test "${ac_cv_prog_STRIP+set}" = set; then :
9159 $as_echo_n "(cached) " >&6
2abefe3d
PB
9160else
9161 if test -n "$STRIP"; then
9162 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9163else
1c710c3c
DJ
9164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165for as_dir in $PATH
9166do
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
5213506e
RW
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9171 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9173 break 2
9174 fi
9175done
5213506e
RW
9176 done
9177IFS=$as_save_IFS
1c710c3c 9178
2abefe3d
PB
9179fi
9180fi
1c710c3c 9181STRIP=$ac_cv_prog_STRIP
2abefe3d 9182if test -n "$STRIP"; then
5213506e
RW
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9184$as_echo "$STRIP" >&6; }
2abefe3d 9185else
5213506e
RW
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187$as_echo "no" >&6; }
2abefe3d
PB
9188fi
9189
5213506e 9190
2abefe3d
PB
9191 fi
9192 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9193 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9194set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196$as_echo_n "checking for $ac_word... " >&6; }
9197if test "${ac_cv_prog_STRIP+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
2abefe3d
PB
9199else
9200 if test -n "$STRIP"; then
9201 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9202else
1c710c3c
DJ
9203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9204for as_dir in $PATH
9205do
9206 IFS=$as_save_IFS
9207 test -z "$as_dir" && as_dir=.
5213506e
RW
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9210 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9212 break 2
9213 fi
9214done
5213506e
RW
9215 done
9216IFS=$as_save_IFS
1c710c3c 9217
2abefe3d
PB
9218fi
9219fi
1c710c3c 9220STRIP=$ac_cv_prog_STRIP
2abefe3d 9221if test -n "$STRIP"; then
5213506e
RW
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9223$as_echo "$STRIP" >&6; }
2abefe3d 9224else
5213506e
RW
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226$as_echo "no" >&6; }
2abefe3d 9227fi
1c710c3c 9228
5213506e 9229
2abefe3d
PB
9230 fi
9231 test -n "$ac_cv_prog_STRIP" && break
9232done
9233
9234if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9235 STRIP="true"
2abefe3d
PB
9236fi
9237
278a7a38
AO
9238
9239
9240if test -n "$WINDRES"; then
9241 ac_cv_prog_WINDRES=$WINDRES
9242elif test -n "$ac_cv_prog_WINDRES"; then
9243 WINDRES=$ac_cv_prog_WINDRES
9244fi
9245
9246if test -n "$ac_cv_prog_WINDRES"; then
9247 for ncn_progname in windres; do
9248 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9249set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251$as_echo_n "checking for $ac_word... " >&6; }
9252if test "${ac_cv_prog_WINDRES+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
278a7a38
AO
9254else
9255 if test -n "$WINDRES"; then
9256 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9257else
9258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259for as_dir in $PATH
9260do
9261 IFS=$as_save_IFS
9262 test -z "$as_dir" && as_dir=.
5213506e
RW
9263 for ac_exec_ext in '' $ac_executable_extensions; do
9264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9265 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9267 break 2
9268 fi
9269done
5213506e
RW
9270 done
9271IFS=$as_save_IFS
278a7a38
AO
9272
9273fi
9274fi
9275WINDRES=$ac_cv_prog_WINDRES
9276if test -n "$WINDRES"; then
5213506e
RW
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9278$as_echo "$WINDRES" >&6; }
278a7a38 9279else
5213506e
RW
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9281$as_echo "no" >&6; }
278a7a38
AO
9282fi
9283
5213506e 9284
278a7a38
AO
9285 done
9286fi
9287
9288for ncn_progname in windres; do
2693c0b0
PB
9289 if test -n "$ncn_tool_prefix"; then
9290 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9291set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293$as_echo_n "checking for $ac_word... " >&6; }
9294if test "${ac_cv_prog_WINDRES+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9296else
9297 if test -n "$WINDRES"; then
9298 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9299else
1c710c3c
DJ
9300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301for as_dir in $PATH
9302do
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
5213506e
RW
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9307 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9309 break 2
9310 fi
9311done
5213506e
RW
9312 done
9313IFS=$as_save_IFS
1c710c3c 9314
ca9f4b81
AO
9315fi
9316fi
1c710c3c 9317WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9318if test -n "$WINDRES"; then
5213506e
RW
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9320$as_echo "$WINDRES" >&6; }
ca9f4b81 9321else
5213506e
RW
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323$as_echo "no" >&6; }
ca9f4b81
AO
9324fi
9325
5213506e 9326
2693c0b0
PB
9327 fi
9328 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9329 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9330set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9332$as_echo_n "checking for $ac_word... " >&6; }
9333if test "${ac_cv_prog_WINDRES+set}" = set; then :
9334 $as_echo_n "(cached) " >&6
ca9f4b81 9335else
2693c0b0
PB
9336 if test -n "$WINDRES"; then
9337 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9338else
1c710c3c
DJ
9339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9340for as_dir in $PATH
9341do
9342 IFS=$as_save_IFS
9343 test -z "$as_dir" && as_dir=.
5213506e
RW
9344 for ac_exec_ext in '' $ac_executable_extensions; do
9345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9346 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9348 break 2
9349 fi
9350done
5213506e
RW
9351 done
9352IFS=$as_save_IFS
1c710c3c 9353
ca9f4b81
AO
9354fi
9355fi
1c710c3c 9356WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9357if test -n "$WINDRES"; then
5213506e
RW
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9359$as_echo "$WINDRES" >&6; }
ca9f4b81 9360else
5213506e
RW
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9362$as_echo "no" >&6; }
ca9f4b81 9363fi
1c710c3c 9364
5213506e 9365
2693c0b0
PB
9366 fi
9367 test -n "$ac_cv_prog_WINDRES" && break
9368done
9369
9370if test -z "$ac_cv_prog_WINDRES" ; then
9371 set dummy windres
9372 if test $build = $host ; then
9373 WINDRES="$2"
ca9f4b81 9374 else
2693c0b0 9375 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9376 fi
ca9f4b81
AO
9377fi
9378
278a7a38
AO
9379
9380
901119ae
KT
9381if test -n "$WINDMC"; then
9382 ac_cv_prog_WINDMC=$WINDMC
9383elif test -n "$ac_cv_prog_WINDMC"; then
9384 WINDMC=$ac_cv_prog_WINDMC
9385fi
9386
9387if test -n "$ac_cv_prog_WINDMC"; then
9388 for ncn_progname in windmc; do
9389 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9390set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392$as_echo_n "checking for $ac_word... " >&6; }
9393if test "${ac_cv_prog_WINDMC+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
901119ae
KT
9395else
9396 if test -n "$WINDMC"; then
9397 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9398else
9399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400for as_dir in $PATH
9401do
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
5213506e
RW
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9406 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9408 break 2
9409 fi
9410done
5213506e
RW
9411 done
9412IFS=$as_save_IFS
901119ae
KT
9413
9414fi
9415fi
9416WINDMC=$ac_cv_prog_WINDMC
9417if test -n "$WINDMC"; then
5213506e
RW
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9419$as_echo "$WINDMC" >&6; }
901119ae 9420else
5213506e
RW
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9422$as_echo "no" >&6; }
901119ae
KT
9423fi
9424
5213506e 9425
901119ae
KT
9426 done
9427fi
9428
9429for ncn_progname in windmc; do
9430 if test -n "$ncn_tool_prefix"; then
9431 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9432set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434$as_echo_n "checking for $ac_word... " >&6; }
9435if test "${ac_cv_prog_WINDMC+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
901119ae
KT
9437else
9438 if test -n "$WINDMC"; then
9439 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9440else
9441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442for as_dir in $PATH
9443do
9444 IFS=$as_save_IFS
9445 test -z "$as_dir" && as_dir=.
5213506e
RW
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9448 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9450 break 2
9451 fi
9452done
5213506e
RW
9453 done
9454IFS=$as_save_IFS
901119ae
KT
9455
9456fi
9457fi
9458WINDMC=$ac_cv_prog_WINDMC
9459if test -n "$WINDMC"; then
5213506e
RW
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9461$as_echo "$WINDMC" >&6; }
901119ae 9462else
5213506e
RW
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464$as_echo "no" >&6; }
901119ae
KT
9465fi
9466
5213506e 9467
901119ae
KT
9468 fi
9469 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9471set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9473$as_echo_n "checking for $ac_word... " >&6; }
9474if test "${ac_cv_prog_WINDMC+set}" = set; then :
9475 $as_echo_n "(cached) " >&6
901119ae
KT
9476else
9477 if test -n "$WINDMC"; then
9478 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9479else
9480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
5213506e
RW
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9487 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9489 break 2
9490 fi
9491done
5213506e
RW
9492 done
9493IFS=$as_save_IFS
901119ae
KT
9494
9495fi
9496fi
9497WINDMC=$ac_cv_prog_WINDMC
9498if test -n "$WINDMC"; then
5213506e
RW
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9500$as_echo "$WINDMC" >&6; }
901119ae 9501else
5213506e
RW
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503$as_echo "no" >&6; }
901119ae
KT
9504fi
9505
5213506e 9506
901119ae
KT
9507 fi
9508 test -n "$ac_cv_prog_WINDMC" && break
9509done
9510
9511if test -z "$ac_cv_prog_WINDMC" ; then
9512 set dummy windmc
9513 if test $build = $host ; then
9514 WINDMC="$2"
9515 else
9516 WINDMC="${ncn_tool_prefix}$2"
9517 fi
9518fi
9519
9520
9521
278a7a38
AO
9522if test -n "$OBJCOPY"; then
9523 ac_cv_prog_OBJCOPY=$OBJCOPY
9524elif test -n "$ac_cv_prog_OBJCOPY"; then
9525 OBJCOPY=$ac_cv_prog_OBJCOPY
9526fi
9527
9528if test -n "$ac_cv_prog_OBJCOPY"; then
9529 for ncn_progname in objcopy; do
9530 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9531set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9533$as_echo_n "checking for $ac_word... " >&6; }
9534if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
278a7a38
AO
9536else
9537 if test -n "$OBJCOPY"; then
9538 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9539else
9540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541for as_dir in $PATH
9542do
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
5213506e
RW
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9547 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9549 break 2
9550 fi
9551done
5213506e
RW
9552 done
9553IFS=$as_save_IFS
278a7a38
AO
9554
9555fi
9556fi
9557OBJCOPY=$ac_cv_prog_OBJCOPY
9558if test -n "$OBJCOPY"; then
5213506e
RW
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9560$as_echo "$OBJCOPY" >&6; }
278a7a38 9561else
5213506e
RW
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563$as_echo "no" >&6; }
278a7a38
AO
9564fi
9565
5213506e 9566
278a7a38
AO
9567 done
9568fi
9569
9570for ncn_progname in objcopy; do
2693c0b0
PB
9571 if test -n "$ncn_tool_prefix"; then
9572 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9573set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575$as_echo_n "checking for $ac_word... " >&6; }
9576if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9578else
9579 if test -n "$OBJCOPY"; then
9580 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9581else
1c710c3c
DJ
9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
5213506e
RW
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9589 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9591 break 2
9592 fi
9593done
5213506e
RW
9594 done
9595IFS=$as_save_IFS
1c710c3c 9596
ca9f4b81
AO
9597fi
9598fi
1c710c3c 9599OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9600if test -n "$OBJCOPY"; then
5213506e
RW
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9602$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9603else
5213506e
RW
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605$as_echo "no" >&6; }
ca9f4b81
AO
9606fi
9607
5213506e 9608
2693c0b0
PB
9609 fi
9610 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9612set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614$as_echo_n "checking for $ac_word... " >&6; }
9615if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
ca9f4b81 9617else
2693c0b0
PB
9618 if test -n "$OBJCOPY"; then
9619 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9620else
1c710c3c
DJ
9621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622for as_dir in $PATH
9623do
9624 IFS=$as_save_IFS
9625 test -z "$as_dir" && as_dir=.
5213506e
RW
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9628 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9630 break 2
9631 fi
9632done
5213506e
RW
9633 done
9634IFS=$as_save_IFS
1c710c3c 9635
ca9f4b81
AO
9636fi
9637fi
1c710c3c 9638OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9639if test -n "$OBJCOPY"; then
5213506e
RW
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9641$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9642else
5213506e
RW
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644$as_echo "no" >&6; }
ca9f4b81 9645fi
1c710c3c 9646
5213506e 9647
2693c0b0
PB
9648 fi
9649 test -n "$ac_cv_prog_OBJCOPY" && break
9650done
9651
9652if test -z "$ac_cv_prog_OBJCOPY" ; then
9653 set dummy objcopy
9654 if test $build = $host ; then
9655 OBJCOPY="$2"
ca9f4b81 9656 else
2693c0b0 9657 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9658 fi
ca9f4b81
AO
9659fi
9660
278a7a38
AO
9661
9662
9663if test -n "$OBJDUMP"; then
9664 ac_cv_prog_OBJDUMP=$OBJDUMP
9665elif test -n "$ac_cv_prog_OBJDUMP"; then
9666 OBJDUMP=$ac_cv_prog_OBJDUMP
9667fi
9668
9669if test -n "$ac_cv_prog_OBJDUMP"; then
9670 for ncn_progname in objdump; do
9671 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9672set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674$as_echo_n "checking for $ac_word... " >&6; }
9675if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9676 $as_echo_n "(cached) " >&6
278a7a38
AO
9677else
9678 if test -n "$OBJDUMP"; then
9679 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9680else
9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $PATH
9683do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
5213506e
RW
9686 for ac_exec_ext in '' $ac_executable_extensions; do
9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9688 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9690 break 2
9691 fi
9692done
5213506e
RW
9693 done
9694IFS=$as_save_IFS
278a7a38
AO
9695
9696fi
9697fi
9698OBJDUMP=$ac_cv_prog_OBJDUMP
9699if test -n "$OBJDUMP"; then
5213506e
RW
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9701$as_echo "$OBJDUMP" >&6; }
278a7a38 9702else
5213506e
RW
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9704$as_echo "no" >&6; }
278a7a38
AO
9705fi
9706
5213506e 9707
278a7a38
AO
9708 done
9709fi
9710
9711for ncn_progname in objdump; do
2693c0b0
PB
9712 if test -n "$ncn_tool_prefix"; then
9713 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9714set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716$as_echo_n "checking for $ac_word... " >&6; }
9717if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9719else
9720 if test -n "$OBJDUMP"; then
9721 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9722else
1c710c3c
DJ
9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
5213506e
RW
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9730 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9732 break 2
9733 fi
9734done
5213506e
RW
9735 done
9736IFS=$as_save_IFS
1c710c3c 9737
ca9f4b81
AO
9738fi
9739fi
1c710c3c 9740OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9741if test -n "$OBJDUMP"; then
5213506e
RW
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9743$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9744else
5213506e
RW
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746$as_echo "no" >&6; }
ca9f4b81
AO
9747fi
9748
5213506e 9749
2693c0b0
PB
9750 fi
9751 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9753set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755$as_echo_n "checking for $ac_word... " >&6; }
9756if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
ca9f4b81 9758else
2693c0b0
PB
9759 if test -n "$OBJDUMP"; then
9760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9761else
1c710c3c
DJ
9762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763for as_dir in $PATH
9764do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
5213506e
RW
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9769 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9771 break 2
9772 fi
9773done
5213506e
RW
9774 done
9775IFS=$as_save_IFS
1c710c3c 9776
ca9f4b81
AO
9777fi
9778fi
1c710c3c 9779OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9780if test -n "$OBJDUMP"; then
5213506e
RW
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9782$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9783else
5213506e
RW
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785$as_echo "no" >&6; }
ca9f4b81 9786fi
1c710c3c 9787
5213506e 9788
2693c0b0
PB
9789 fi
9790 test -n "$ac_cv_prog_OBJDUMP" && break
9791done
9792
9793if test -z "$ac_cv_prog_OBJDUMP" ; then
9794 set dummy objdump
9795 if test $build = $host ; then
9796 OBJDUMP="$2"
ca9f4b81 9797 else
2693c0b0 9798 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9799 fi
ca9f4b81
AO
9800fi
9801
671aa708
NN
9802
9803
e7a82751
RM
9804if test -n "$READELF"; then
9805 ac_cv_prog_READELF=$READELF
9806elif test -n "$ac_cv_prog_READELF"; then
9807 READELF=$ac_cv_prog_READELF
9808fi
9809
9810if test -n "$ac_cv_prog_READELF"; then
9811 for ncn_progname in readelf; do
9812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9813set dummy ${ncn_progname}; ac_word=$2
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815$as_echo_n "checking for $ac_word... " >&6; }
9816if test "${ac_cv_prog_READELF+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
9818else
9819 if test -n "$READELF"; then
9820 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9821else
9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9829 ac_cv_prog_READELF="${ncn_progname}"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833done
9834 done
9835IFS=$as_save_IFS
9836
9837fi
9838fi
9839READELF=$ac_cv_prog_READELF
9840if test -n "$READELF"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9842$as_echo "$READELF" >&6; }
9843else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845$as_echo "no" >&6; }
9846fi
9847
9848
9849 done
9850fi
9851
9852for ncn_progname in readelf; do
9853 if test -n "$ncn_tool_prefix"; then
9854 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9855set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9857$as_echo_n "checking for $ac_word... " >&6; }
9858if test "${ac_cv_prog_READELF+set}" = set; then :
9859 $as_echo_n "(cached) " >&6
9860else
9861 if test -n "$READELF"; then
9862 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9863else
9864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9865for as_dir in $PATH
9866do
9867 IFS=$as_save_IFS
9868 test -z "$as_dir" && as_dir=.
9869 for ac_exec_ext in '' $ac_executable_extensions; do
9870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9871 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 break 2
9874 fi
9875done
9876 done
9877IFS=$as_save_IFS
9878
9879fi
9880fi
9881READELF=$ac_cv_prog_READELF
9882if test -n "$READELF"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9884$as_echo "$READELF" >&6; }
9885else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887$as_echo "no" >&6; }
9888fi
9889
9890
9891 fi
9892 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9893 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9894set dummy ${ncn_progname}; ac_word=$2
9895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9896$as_echo_n "checking for $ac_word... " >&6; }
9897if test "${ac_cv_prog_READELF+set}" = set; then :
9898 $as_echo_n "(cached) " >&6
9899else
9900 if test -n "$READELF"; then
9901 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9902else
9903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9904for as_dir in $PATH
9905do
9906 IFS=$as_save_IFS
9907 test -z "$as_dir" && as_dir=.
9908 for ac_exec_ext in '' $ac_executable_extensions; do
9909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9910 ac_cv_prog_READELF="${ncn_progname}"
9911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9912 break 2
9913 fi
9914done
9915 done
9916IFS=$as_save_IFS
9917
9918fi
9919fi
9920READELF=$ac_cv_prog_READELF
9921if test -n "$READELF"; then
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9923$as_echo "$READELF" >&6; }
9924else
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926$as_echo "no" >&6; }
9927fi
9928
9929
9930 fi
9931 test -n "$ac_cv_prog_READELF" && break
9932done
9933
9934if test -z "$ac_cv_prog_READELF" ; then
9935 set dummy readelf
9936 if test $build = $host ; then
9937 READELF="$2"
9938 else
9939 READELF="${ncn_tool_prefix}$2"
9940 fi
9941fi
9942
9943
9944
671aa708
NN
9945
9946
9947
2abefe3d 9948# Target tools.
1c710c3c 9949
5213506e
RW
9950# Check whether --with-build-time-tools was given.
9951if test "${with_build_time_tools+set}" = set; then :
9952 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9953 x/*) ;;
9954 *)
9955 with_build_time_tools=
5213506e
RW
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9957$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9958 ;;
9959 esac
ca9f4b81 9960else
e8b05380 9961 with_build_time_tools=
5213506e
RW
9962fi
9963
ca9f4b81 9964
278a7a38
AO
9965
9966
9967if test -n "$CC_FOR_TARGET"; then
9968 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9969elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9970 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9971fi
9972
9973if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9974 for ncn_progname in cc gcc; do
9975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9976set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978$as_echo_n "checking for $ac_word... " >&6; }
9979if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9980 $as_echo_n "(cached) " >&6
278a7a38
AO
9981else
9982 if test -n "$CC_FOR_TARGET"; then
9983 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9984else
9985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986for as_dir in $PATH
9987do
9988 IFS=$as_save_IFS
9989 test -z "$as_dir" && as_dir=.
5213506e
RW
9990 for ac_exec_ext in '' $ac_executable_extensions; do
9991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9992 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9994 break 2
9995 fi
9996done
5213506e
RW
9997 done
9998IFS=$as_save_IFS
278a7a38
AO
9999
10000fi
10001fi
10002CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
10003if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10005$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 10006else
5213506e
RW
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
278a7a38
AO
10009fi
10010
5213506e 10011
278a7a38
AO
10012 done
10013fi
10014
10015if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10016 for ncn_progname in cc gcc; do
5213506e
RW
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10018$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10019 if test -x $with_build_time_tools/${ncn_progname}; then
10020 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10022$as_echo "yes" >&6; }
72a7ab82 10023 break
e8b05380 10024 else
5213506e
RW
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10026$as_echo "no" >&6; }
72a7ab82
AP
10027 fi
10028 done
4de997d1
PB
10029fi
10030
e8b05380
PB
10031if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
10032 for ncn_progname in cc gcc; do
10033 if test -n "$ncn_target_tool_prefix"; then
10034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10035set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037$as_echo_n "checking for $ac_word... " >&6; }
10038if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
4de997d1
PB
10040else
10041 if test -n "$CC_FOR_TARGET"; then
10042 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
10043else
1c710c3c
DJ
10044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045for as_dir in $PATH
10046do
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
5213506e
RW
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10051 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10053 break 2
10054 fi
10055done
5213506e
RW
10056 done
10057IFS=$as_save_IFS
1c710c3c 10058
4de997d1
PB
10059fi
10060fi
1c710c3c 10061CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 10062if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10064$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10065else
5213506e
RW
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067$as_echo "no" >&6; }
4de997d1
PB
10068fi
10069
5213506e 10070
e8b05380
PB
10071 fi
10072 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10074set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10076$as_echo_n "checking for $ac_word... " >&6; }
10077if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10078 $as_echo_n "(cached) " >&6
4de997d1 10079else
2693c0b0
PB
10080 if test -n "$CC_FOR_TARGET"; then
10081 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10082else
1c710c3c
DJ
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
5213506e
RW
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10090 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10092 break 2
10093 fi
10094done
5213506e
RW
10095 done
10096IFS=$as_save_IFS
1c710c3c 10097
4de997d1
PB
10098fi
10099fi
1c710c3c 10100CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10101if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10103$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10104else
5213506e
RW
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10106$as_echo "no" >&6; }
4de997d1 10107fi
1c710c3c 10108
5213506e 10109
e8b05380
PB
10110 fi
10111 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10112 done
10113fi
1c710c3c 10114
2693c0b0
PB
10115if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10116 set dummy cc gcc
10117 if test $build = $target ; then
10118 CC_FOR_TARGET="$2"
4de997d1 10119 else
2693c0b0 10120 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10121 fi
1c00b503
PB
10122else
10123 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10124fi
10125
278a7a38
AO
10126
10127
10128if test -n "$CXX_FOR_TARGET"; then
10129 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10130elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10131 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10132fi
10133
10134if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10135 for ncn_progname in c++ g++ cxx gxx; do
10136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10137set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10139$as_echo_n "checking for $ac_word... " >&6; }
10140if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10141 $as_echo_n "(cached) " >&6
278a7a38
AO
10142else
10143 if test -n "$CXX_FOR_TARGET"; then
10144 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10145else
10146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147for as_dir in $PATH
10148do
10149 IFS=$as_save_IFS
10150 test -z "$as_dir" && as_dir=.
5213506e
RW
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10153 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10155 break 2
10156 fi
10157done
5213506e
RW
10158 done
10159IFS=$as_save_IFS
278a7a38
AO
10160
10161fi
10162fi
10163CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10164if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10166$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10167else
5213506e
RW
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169$as_echo "no" >&6; }
278a7a38
AO
10170fi
10171
5213506e 10172
278a7a38
AO
10173 done
10174fi
10175
10176if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10177 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10179$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10180 if test -x $with_build_time_tools/${ncn_progname}; then
10181 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10183$as_echo "yes" >&6; }
e8b05380
PB
10184 break
10185 else
5213506e
RW
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10187$as_echo "no" >&6; }
e8b05380
PB
10188 fi
10189 done
10190fi
10191
10192if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10193 for ncn_progname in c++ g++ cxx gxx; do
10194 if test -n "$ncn_target_tool_prefix"; then
10195 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10196set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10198$as_echo_n "checking for $ac_word... " >&6; }
10199if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10200 $as_echo_n "(cached) " >&6
4de997d1
PB
10201else
10202 if test -n "$CXX_FOR_TARGET"; then
10203 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10204else
1c710c3c
DJ
10205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206for as_dir in $PATH
10207do
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
5213506e
RW
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10212 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10214 break 2
10215 fi
10216done
5213506e
RW
10217 done
10218IFS=$as_save_IFS
1c710c3c 10219
4de997d1
PB
10220fi
10221fi
1c710c3c 10222CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10223if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10225$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10226else
5213506e
RW
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10228$as_echo "no" >&6; }
4de997d1
PB
10229fi
10230
5213506e 10231
e8b05380
PB
10232 fi
10233 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10235set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10237$as_echo_n "checking for $ac_word... " >&6; }
10238if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10239 $as_echo_n "(cached) " >&6
4de997d1 10240else
2693c0b0
PB
10241 if test -n "$CXX_FOR_TARGET"; then
10242 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10243else
1c710c3c
DJ
10244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245for as_dir in $PATH
10246do
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
5213506e
RW
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10251 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10253 break 2
10254 fi
10255done
5213506e
RW
10256 done
10257IFS=$as_save_IFS
1c710c3c 10258
4de997d1
PB
10259fi
10260fi
1c710c3c 10261CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10262if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10264$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10265else
5213506e
RW
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10267$as_echo "no" >&6; }
4de997d1 10268fi
1c710c3c 10269
5213506e 10270
e8b05380
PB
10271 fi
10272 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10273 done
10274fi
1c710c3c 10275
2693c0b0
PB
10276if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10277 set dummy c++ g++ cxx gxx
10278 if test $build = $target ; then
10279 CXX_FOR_TARGET="$2"
4de997d1 10280 else
2693c0b0 10281 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10282 fi
1c00b503
PB
10283else
10284 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10285fi
10286
278a7a38
AO
10287
10288
10289if test -n "$GCC_FOR_TARGET"; then
10290 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10291elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10292 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10293fi
10294
10295if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10296 for ncn_progname in gcc; do
10297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10298set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300$as_echo_n "checking for $ac_word... " >&6; }
10301if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10302 $as_echo_n "(cached) " >&6
278a7a38
AO
10303else
10304 if test -n "$GCC_FOR_TARGET"; then
10305 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10306else
10307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10308for as_dir in $PATH
10309do
10310 IFS=$as_save_IFS
10311 test -z "$as_dir" && as_dir=.
5213506e
RW
10312 for ac_exec_ext in '' $ac_executable_extensions; do
10313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10314 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10316 break 2
10317 fi
10318done
5213506e
RW
10319 done
10320IFS=$as_save_IFS
278a7a38
AO
10321
10322fi
10323fi
10324GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10325if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10327$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10328else
5213506e
RW
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330$as_echo "no" >&6; }
278a7a38
AO
10331fi
10332
5213506e 10333
278a7a38
AO
10334 done
10335fi
10336
10337if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10338 for ncn_progname in gcc; do
5213506e
RW
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10340$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10341 if test -x $with_build_time_tools/${ncn_progname}; then
10342 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10344$as_echo "yes" >&6; }
e8b05380
PB
10345 break
10346 else
5213506e
RW
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10348$as_echo "no" >&6; }
e8b05380
PB
10349 fi
10350 done
10351fi
10352
10353if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10354 for ncn_progname in gcc; do
10355 if test -n "$ncn_target_tool_prefix"; then
10356 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10357set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10359$as_echo_n "checking for $ac_word... " >&6; }
10360if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10361 $as_echo_n "(cached) " >&6
ca9f4b81 10362else
e8b05380
PB
10363 if test -n "$GCC_FOR_TARGET"; then
10364 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10365else
1c710c3c
DJ
10366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10367for as_dir in $PATH
10368do
10369 IFS=$as_save_IFS
10370 test -z "$as_dir" && as_dir=.
5213506e
RW
10371 for ac_exec_ext in '' $ac_executable_extensions; do
10372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10373 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10375 break 2
10376 fi
10377done
5213506e
RW
10378 done
10379IFS=$as_save_IFS
1c710c3c 10380
ca9f4b81
AO
10381fi
10382fi
1c710c3c 10383GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10384if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10386$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10387else
5213506e
RW
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10389$as_echo "no" >&6; }
ca9f4b81
AO
10390fi
10391
5213506e 10392
e8b05380
PB
10393 fi
10394 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10396set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10398$as_echo_n "checking for $ac_word... " >&6; }
10399if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10400 $as_echo_n "(cached) " >&6
ca9f4b81 10401else
e8b05380
PB
10402 if test -n "$GCC_FOR_TARGET"; then
10403 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10404else
1c710c3c
DJ
10405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406for as_dir in $PATH
10407do
10408 IFS=$as_save_IFS
10409 test -z "$as_dir" && as_dir=.
5213506e
RW
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10412 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10414 break 2
10415 fi
10416done
5213506e
RW
10417 done
10418IFS=$as_save_IFS
1c710c3c 10419
ca9f4b81
AO
10420fi
10421fi
1c710c3c 10422GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10423if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10425$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10426else
5213506e
RW
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
ca9f4b81 10429fi
1c710c3c 10430
5213506e 10431
e8b05380
PB
10432 fi
10433 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10434 done
10435fi
1c710c3c 10436
e8b05380
PB
10437if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10438 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10439else
10440 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10441fi
10442
278a7a38
AO
10443
10444
10445if test -n "$GCJ_FOR_TARGET"; then
10446 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10447elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10448 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10449fi
10450
10451if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10452 for ncn_progname in gcj; do
10453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10454set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10456$as_echo_n "checking for $ac_word... " >&6; }
10457if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
278a7a38
AO
10459else
10460 if test -n "$GCJ_FOR_TARGET"; then
10461 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10462else
10463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10464for as_dir in $PATH
10465do
10466 IFS=$as_save_IFS
10467 test -z "$as_dir" && as_dir=.
5213506e
RW
10468 for ac_exec_ext in '' $ac_executable_extensions; do
10469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10470 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10472 break 2
10473 fi
10474done
5213506e
RW
10475 done
10476IFS=$as_save_IFS
278a7a38
AO
10477
10478fi
10479fi
10480GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10481if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10483$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10484else
5213506e
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486$as_echo "no" >&6; }
278a7a38
AO
10487fi
10488
5213506e 10489
278a7a38
AO
10490 done
10491fi
10492
10493if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10494 for ncn_progname in gcj; do
5213506e
RW
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10496$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10497 if test -x $with_build_time_tools/${ncn_progname}; then
10498 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10500$as_echo "yes" >&6; }
e8b05380
PB
10501 break
10502 else
5213506e
RW
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504$as_echo "no" >&6; }
e8b05380
PB
10505 fi
10506 done
10507fi
10508
10509if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10510 for ncn_progname in gcj; do
10511 if test -n "$ncn_target_tool_prefix"; then
10512 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10513set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515$as_echo_n "checking for $ac_word... " >&6; }
10516if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
e8b05380 10518else
fb0103e5
RG
10519 if test -n "$GCJ_FOR_TARGET"; then
10520 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10521else
1c710c3c
DJ
10522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523for as_dir in $PATH
10524do
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
5213506e
RW
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10529 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10531 break 2
10532 fi
10533done
5213506e
RW
10534 done
10535IFS=$as_save_IFS
1c710c3c 10536
e8b05380
PB
10537fi
10538fi
278a7a38
AO
10539GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10540if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10542$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10543else
5213506e
RW
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545$as_echo "no" >&6; }
278a7a38
AO
10546fi
10547
5213506e 10548
278a7a38
AO
10549 fi
10550 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10552set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10554$as_echo_n "checking for $ac_word... " >&6; }
10555if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
278a7a38
AO
10557else
10558 if test -n "$GCJ_FOR_TARGET"; then
10559 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10560else
10561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10562for as_dir in $PATH
10563do
10564 IFS=$as_save_IFS
10565 test -z "$as_dir" && as_dir=.
5213506e
RW
10566 for ac_exec_ext in '' $ac_executable_extensions; do
10567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10568 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10570 break 2
10571 fi
10572done
5213506e
RW
10573 done
10574IFS=$as_save_IFS
278a7a38
AO
10575
10576fi
10577fi
10578GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10579if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10581$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10582else
5213506e
RW
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584$as_echo "no" >&6; }
278a7a38
AO
10585fi
10586
5213506e 10587
278a7a38
AO
10588 fi
10589 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10590 done
10591fi
10592
10593if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10594 set dummy gcj
10595 if test $build = $target ; then
10596 GCJ_FOR_TARGET="$2"
10597 else
10598 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10599 fi
1c00b503
PB
10600else
10601 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10602fi
10603
10604
10605
10606if test -n "$GFORTRAN_FOR_TARGET"; then
10607 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10608elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10609 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10610fi
10611
278a7a38
AO
10612if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10613 for ncn_progname in gfortran; do
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10615set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10617$as_echo_n "checking for $ac_word... " >&6; }
10618if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
e8b05380 10620else
278a7a38
AO
10621 if test -n "$GFORTRAN_FOR_TARGET"; then
10622 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10623else
1c710c3c
DJ
10624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625for as_dir in $PATH
10626do
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
5213506e
RW
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10631 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10633 break 2
10634 fi
10635done
5213506e
RW
10636 done
10637IFS=$as_save_IFS
1c710c3c 10638
e8b05380
PB
10639fi
10640fi
278a7a38
AO
10641GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10642if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10644$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10645else
5213506e
RW
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
e8b05380 10648fi
1c710c3c 10649
5213506e 10650
e8b05380
PB
10651 done
10652fi
1c710c3c 10653
278a7a38 10654if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10655 for ncn_progname in gfortran; do
5213506e
RW
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10657$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10658 if test -x $with_build_time_tools/${ncn_progname}; then
10659 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10661$as_echo "yes" >&6; }
e8b05380
PB
10662 break
10663 else
5213506e
RW
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665$as_echo "no" >&6; }
e8b05380
PB
10666 fi
10667 done
10668fi
10669
10670if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10671 for ncn_progname in gfortran; do
10672 if test -n "$ncn_target_tool_prefix"; then
10673 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10674set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10676$as_echo_n "checking for $ac_word... " >&6; }
10677if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10678 $as_echo_n "(cached) " >&6
e8b05380
PB
10679else
10680 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10681 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10682else
10683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10684for as_dir in $PATH
10685do
10686 IFS=$as_save_IFS
10687 test -z "$as_dir" && as_dir=.
5213506e
RW
10688 for ac_exec_ext in '' $ac_executable_extensions; do
10689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10690 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10692 break 2
10693 fi
10694done
5213506e
RW
10695 done
10696IFS=$as_save_IFS
1c710c3c 10697
e8b05380
PB
10698fi
10699fi
1c710c3c 10700GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10701if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10703$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10704else
5213506e
RW
10705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706$as_echo "no" >&6; }
e8b05380
PB
10707fi
10708
5213506e 10709
e8b05380
PB
10710 fi
10711 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10713set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10715$as_echo_n "checking for $ac_word... " >&6; }
10716if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10717 $as_echo_n "(cached) " >&6
e8b05380
PB
10718else
10719 if test -n "$GFORTRAN_FOR_TARGET"; then
10720 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10721else
1c710c3c
DJ
10722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723for as_dir in $PATH
10724do
10725 IFS=$as_save_IFS
10726 test -z "$as_dir" && as_dir=.
5213506e
RW
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10729 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10731 break 2
10732 fi
10733done
5213506e
RW
10734 done
10735IFS=$as_save_IFS
1c710c3c 10736
e8b05380
PB
10737fi
10738fi
1c710c3c 10739GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10740if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10742$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10743else
5213506e
RW
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10745$as_echo "no" >&6; }
e8b05380 10746fi
1c710c3c 10747
5213506e 10748
e8b05380
PB
10749 fi
10750 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10751 done
10752fi
1c710c3c 10753
e8b05380
PB
10754if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10755 set dummy gfortran
2693c0b0 10756 if test $build = $target ; then
e8b05380 10757 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10758 else
e8b05380
PB
10759 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10760 fi
1c00b503
PB
10761else
10762 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10763fi
10764
10765
10766
632e2a07
ILT
10767if test -n "$GOC_FOR_TARGET"; then
10768 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10769elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10770 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10771fi
10772
10773if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10774 for ncn_progname in gccgo; do
10775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10776set dummy ${ncn_progname}; ac_word=$2
10777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10778$as_echo_n "checking for $ac_word... " >&6; }
10779if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10780 $as_echo_n "(cached) " >&6
10781else
10782 if test -n "$GOC_FOR_TARGET"; then
10783 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10784else
10785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10786for as_dir in $PATH
10787do
10788 IFS=$as_save_IFS
10789 test -z "$as_dir" && as_dir=.
10790 for ac_exec_ext in '' $ac_executable_extensions; do
10791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10792 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10794 break 2
10795 fi
10796done
10797 done
10798IFS=$as_save_IFS
10799
10800fi
10801fi
10802GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10803if test -n "$GOC_FOR_TARGET"; then
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10805$as_echo "$GOC_FOR_TARGET" >&6; }
10806else
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808$as_echo "no" >&6; }
10809fi
10810
10811
10812 done
10813fi
10814
10815if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10816 for ncn_progname in gccgo; do
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10818$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10819 if test -x $with_build_time_tools/${ncn_progname}; then
10820 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10822$as_echo "yes" >&6; }
10823 break
10824 else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826$as_echo "no" >&6; }
10827 fi
10828 done
10829fi
10830
10831if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10832 for ncn_progname in gccgo; do
10833 if test -n "$ncn_target_tool_prefix"; then
10834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10835set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837$as_echo_n "checking for $ac_word... " >&6; }
10838if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10839 $as_echo_n "(cached) " >&6
10840else
10841 if test -n "$GOC_FOR_TARGET"; then
10842 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10843else
10844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845for as_dir in $PATH
10846do
10847 IFS=$as_save_IFS
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10851 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10853 break 2
10854 fi
10855done
10856 done
10857IFS=$as_save_IFS
10858
10859fi
10860fi
10861GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10862if test -n "$GOC_FOR_TARGET"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10864$as_echo "$GOC_FOR_TARGET" >&6; }
10865else
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10867$as_echo "no" >&6; }
10868fi
10869
10870
10871 fi
10872 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10874set dummy ${ncn_progname}; ac_word=$2
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879else
10880 if test -n "$GOC_FOR_TARGET"; then
10881 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10882else
10883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10884for as_dir in $PATH
10885do
10886 IFS=$as_save_IFS
10887 test -z "$as_dir" && as_dir=.
10888 for ac_exec_ext in '' $ac_executable_extensions; do
10889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10890 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10892 break 2
10893 fi
10894done
10895 done
10896IFS=$as_save_IFS
10897
10898fi
10899fi
10900GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10901if test -n "$GOC_FOR_TARGET"; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10903$as_echo "$GOC_FOR_TARGET" >&6; }
10904else
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10906$as_echo "no" >&6; }
10907fi
10908
10909
10910 fi
10911 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10912 done
10913fi
10914
10915if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10916 set dummy gccgo
10917 if test $build = $target ; then
10918 GOC_FOR_TARGET="$2"
10919 else
10920 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10921 fi
10922else
10923 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10924fi
10925
10926
10927
e8b05380
PB
10928cat > conftest.c << \EOF
10929#ifdef __GNUC__
10930 gcc_yay;
10931#endif
10932EOF
10933if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10934 have_gcc_for_target=yes
10935else
10936 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10937 have_gcc_for_target=no
10938fi
10939rm conftest.c
10940
10941
10942
10943
10944if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10945 if test -n "$with_build_time_tools"; then
5213506e
RW
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10947$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10948 if test -x $with_build_time_tools/ar; then
10949 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10950 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10952$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10953 else
5213506e
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955$as_echo "no" >&6; }
d1f8db0c 10956 fi
e8b05380
PB
10957 elif test $build != $host && test $have_gcc_for_target = yes; then
10958 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10959 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10960 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10961 fi
10962fi
3e19841a 10963if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10964 # Extract the first word of "ar", so it can be a program name with args.
10965set dummy ar; ac_word=$2
5213506e
RW
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10967$as_echo_n "checking for $ac_word... " >&6; }
10968if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10969 $as_echo_n "(cached) " >&6
e8b05380 10970else
1c710c3c
DJ
10971 case $AR_FOR_TARGET in
10972 [\\/]* | ?:[\\/]*)
e8b05380
PB
10973 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10974 ;;
e8b05380 10975 *)
1c710c3c
DJ
10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10977for as_dir in $gcc_cv_tool_dirs
10978do
10979 IFS=$as_save_IFS
10980 test -z "$as_dir" && as_dir=.
5213506e
RW
10981 for ac_exec_ext in '' $ac_executable_extensions; do
10982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10983 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10985 break 2
10986 fi
10987done
5213506e
RW
10988 done
10989IFS=$as_save_IFS
1c710c3c 10990
e8b05380
PB
10991 ;;
10992esac
10993fi
1c710c3c 10994AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10995if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10997$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10998else
5213506e
RW
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11000$as_echo "no" >&6; }
4de997d1
PB
11001fi
11002
5213506e 11003
e8b05380
PB
11004fi
11005if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
11006
11007
11008if test -n "$AR_FOR_TARGET"; then
11009 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
11010elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11011 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11012fi
11013
11014if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
11015 for ncn_progname in ar; do
11016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11017set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11019$as_echo_n "checking for $ac_word... " >&6; }
11020if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
278a7a38
AO
11022else
11023 if test -n "$AR_FOR_TARGET"; then
11024 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11025else
11026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027for as_dir in $PATH
11028do
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
5213506e
RW
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11033 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11035 break 2
11036 fi
11037done
5213506e
RW
11038 done
11039IFS=$as_save_IFS
278a7a38
AO
11040
11041fi
11042fi
11043AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
11044if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11046$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 11047else
5213506e
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11049$as_echo "no" >&6; }
278a7a38
AO
11050fi
11051
5213506e 11052
278a7a38
AO
11053 done
11054fi
11055
11056if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11057 for ncn_progname in ar; do
5213506e
RW
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11059$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11060 if test -x $with_build_time_tools/${ncn_progname}; then
11061 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11063$as_echo "yes" >&6; }
e8b05380
PB
11064 break
11065 else
5213506e
RW
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067$as_echo "no" >&6; }
e8b05380
PB
11068 fi
11069 done
11070fi
11071
11072if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11073 for ncn_progname in ar; do
11074 if test -n "$ncn_target_tool_prefix"; then
11075 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11076set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078$as_echo_n "checking for $ac_word... " >&6; }
11079if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11080 $as_echo_n "(cached) " >&6
4de997d1 11081else
e8b05380
PB
11082 if test -n "$AR_FOR_TARGET"; then
11083 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 11084else
1c710c3c
DJ
11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086for as_dir in $PATH
11087do
11088 IFS=$as_save_IFS
11089 test -z "$as_dir" && as_dir=.
5213506e
RW
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11092 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11094 break 2
11095 fi
11096done
5213506e
RW
11097 done
11098IFS=$as_save_IFS
1c710c3c 11099
4de997d1
PB
11100fi
11101fi
1c710c3c 11102AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11103if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11105$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 11106else
5213506e
RW
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108$as_echo "no" >&6; }
4de997d1
PB
11109fi
11110
5213506e 11111
e8b05380
PB
11112 fi
11113 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11114 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11115set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117$as_echo_n "checking for $ac_word... " >&6; }
11118if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11119 $as_echo_n "(cached) " >&6
e8b05380
PB
11120else
11121 if test -n "$AR_FOR_TARGET"; then
11122 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
11123else
1c710c3c
DJ
11124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11125for as_dir in $PATH
11126do
11127 IFS=$as_save_IFS
11128 test -z "$as_dir" && as_dir=.
5213506e
RW
11129 for ac_exec_ext in '' $ac_executable_extensions; do
11130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11131 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11133 break 2
11134 fi
11135done
5213506e
RW
11136 done
11137IFS=$as_save_IFS
1c710c3c 11138
e8b05380
PB
11139fi
11140fi
1c710c3c 11141AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11142if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11144$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11145else
5213506e
RW
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11147$as_echo "no" >&6; }
e8b05380 11148fi
1c710c3c 11149
5213506e 11150
e8b05380
PB
11151 fi
11152 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11153 done
11154fi
1c710c3c 11155
e8b05380
PB
11156if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11157 set dummy ar
11158 if test $build = $target ; then
11159 AR_FOR_TARGET="$2"
11160 else
11161 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11162 fi
1c00b503
PB
11163else
11164 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11165fi
11166
d1f8db0c
PB
11167else
11168 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11169fi
11170
11171
11172
11173
11174if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11175 if test -n "$with_build_time_tools"; then
5213506e
RW
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11177$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11178 if test -x $with_build_time_tools/as; then
11179 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11180 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11182$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11183 else
5213506e
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185$as_echo "no" >&6; }
d1f8db0c 11186 fi
e8b05380
PB
11187 elif test $build != $host && test $have_gcc_for_target = yes; then
11188 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11189 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11190 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11191 fi
11192fi
3e19841a 11193if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11194 # Extract the first word of "as", so it can be a program name with args.
11195set dummy as; ac_word=$2
5213506e
RW
11196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11197$as_echo_n "checking for $ac_word... " >&6; }
11198if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11199 $as_echo_n "(cached) " >&6
e8b05380 11200else
1c710c3c
DJ
11201 case $AS_FOR_TARGET in
11202 [\\/]* | ?:[\\/]*)
e8b05380
PB
11203 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11204 ;;
e8b05380 11205 *)
1c710c3c
DJ
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207for as_dir in $gcc_cv_tool_dirs
11208do
11209 IFS=$as_save_IFS
11210 test -z "$as_dir" && as_dir=.
5213506e
RW
11211 for ac_exec_ext in '' $ac_executable_extensions; do
11212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11213 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11215 break 2
11216 fi
11217done
5213506e
RW
11218 done
11219IFS=$as_save_IFS
1c710c3c 11220
e8b05380
PB
11221 ;;
11222esac
11223fi
1c710c3c 11224AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11225if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11227$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11228else
5213506e
RW
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11230$as_echo "no" >&6; }
e8b05380
PB
11231fi
11232
5213506e 11233
e8b05380
PB
11234fi
11235if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11236
11237
11238if test -n "$AS_FOR_TARGET"; then
11239 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11240elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11241 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11242fi
11243
11244if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11245 for ncn_progname in as; do
11246 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11247set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11249$as_echo_n "checking for $ac_word... " >&6; }
11250if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11251 $as_echo_n "(cached) " >&6
278a7a38
AO
11252else
11253 if test -n "$AS_FOR_TARGET"; then
11254 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11255else
11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257for as_dir in $PATH
11258do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
5213506e
RW
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11263 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11265 break 2
11266 fi
11267done
5213506e
RW
11268 done
11269IFS=$as_save_IFS
278a7a38
AO
11270
11271fi
11272fi
11273AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11274if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11276$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11277else
5213506e
RW
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11279$as_echo "no" >&6; }
278a7a38
AO
11280fi
11281
5213506e 11282
278a7a38
AO
11283 done
11284fi
11285
11286if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11287 for ncn_progname in as; do
5213506e
RW
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11289$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11290 if test -x $with_build_time_tools/${ncn_progname}; then
11291 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11293$as_echo "yes" >&6; }
e8b05380
PB
11294 break
11295 else
5213506e
RW
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297$as_echo "no" >&6; }
e8b05380
PB
11298 fi
11299 done
11300fi
11301
11302if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11303 for ncn_progname in as; do
11304 if test -n "$ncn_target_tool_prefix"; then
11305 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11306set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11308$as_echo_n "checking for $ac_word... " >&6; }
11309if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11310 $as_echo_n "(cached) " >&6
e8b05380
PB
11311else
11312 if test -n "$AS_FOR_TARGET"; then
11313 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11314else
1c710c3c
DJ
11315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11316for as_dir in $PATH
11317do
11318 IFS=$as_save_IFS
11319 test -z "$as_dir" && as_dir=.
5213506e
RW
11320 for ac_exec_ext in '' $ac_executable_extensions; do
11321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11322 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11324 break 2
11325 fi
11326done
5213506e
RW
11327 done
11328IFS=$as_save_IFS
1c710c3c 11329
e8b05380
PB
11330fi
11331fi
1c710c3c 11332AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11333if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11335$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11336else
5213506e
RW
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11338$as_echo "no" >&6; }
e8b05380
PB
11339fi
11340
5213506e 11341
e8b05380
PB
11342 fi
11343 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11345set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347$as_echo_n "checking for $ac_word... " >&6; }
11348if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
4de997d1 11350else
e8b05380
PB
11351 if test -n "$AS_FOR_TARGET"; then
11352 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11353else
1c710c3c
DJ
11354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355for as_dir in $PATH
11356do
11357 IFS=$as_save_IFS
11358 test -z "$as_dir" && as_dir=.
5213506e
RW
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11361 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11363 break 2
11364 fi
11365done
5213506e
RW
11366 done
11367IFS=$as_save_IFS
1c710c3c 11368
4de997d1
PB
11369fi
11370fi
1c710c3c 11371AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11372if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11374$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11375else
5213506e
RW
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377$as_echo "no" >&6; }
4de997d1 11378fi
1c710c3c 11379
5213506e 11380
e8b05380
PB
11381 fi
11382 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11383 done
11384fi
1c710c3c 11385
e8b05380
PB
11386if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11387 set dummy as
11388 if test $build = $target ; then
11389 AS_FOR_TARGET="$2"
11390 else
11391 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11392 fi
1c00b503
PB
11393else
11394 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11395fi
2693c0b0 11396
d1f8db0c
PB
11397else
11398 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11399fi
11400
e8b05380
PB
11401
11402
11403
11404if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11405 if test -n "$with_build_time_tools"; then
5213506e
RW
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11407$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11408 if test -x $with_build_time_tools/dlltool; then
11409 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11410 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11412$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11413 else
5213506e
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415$as_echo "no" >&6; }
d1f8db0c 11416 fi
e8b05380
PB
11417 elif test $build != $host && test $have_gcc_for_target = yes; then
11418 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11419 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11420 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11421 fi
11422fi
3e19841a 11423if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11424 # Extract the first word of "dlltool", so it can be a program name with args.
11425set dummy dlltool; ac_word=$2
5213506e
RW
11426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427$as_echo_n "checking for $ac_word... " >&6; }
11428if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
4de997d1 11430else
1c710c3c
DJ
11431 case $DLLTOOL_FOR_TARGET in
11432 [\\/]* | ?:[\\/]*)
e8b05380
PB
11433 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11434 ;;
e8b05380 11435 *)
1c710c3c
DJ
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437for as_dir in $gcc_cv_tool_dirs
11438do
11439 IFS=$as_save_IFS
11440 test -z "$as_dir" && as_dir=.
5213506e
RW
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11443 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11445 break 2
11446 fi
11447done
5213506e
RW
11448 done
11449IFS=$as_save_IFS
1c710c3c 11450
e8b05380
PB
11451 ;;
11452esac
4de997d1 11453fi
1c710c3c 11454DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11455if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11457$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11458else
5213506e
RW
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460$as_echo "no" >&6; }
4de997d1
PB
11461fi
11462
5213506e 11463
e8b05380
PB
11464fi
11465if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11466
11467
11468if test -n "$DLLTOOL_FOR_TARGET"; then
11469 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11470elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11471 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11472fi
11473
11474if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11475 for ncn_progname in dlltool; do
11476 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11477set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479$as_echo_n "checking for $ac_word... " >&6; }
11480if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11481 $as_echo_n "(cached) " >&6
278a7a38
AO
11482else
11483 if test -n "$DLLTOOL_FOR_TARGET"; then
11484 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11485else
11486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
5213506e
RW
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11493 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11495 break 2
11496 fi
11497done
5213506e
RW
11498 done
11499IFS=$as_save_IFS
278a7a38
AO
11500
11501fi
11502fi
11503DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11504if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11506$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11507else
5213506e
RW
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
278a7a38
AO
11510fi
11511
5213506e 11512
278a7a38
AO
11513 done
11514fi
11515
11516if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11517 for ncn_progname in dlltool; do
5213506e
RW
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11519$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11520 if test -x $with_build_time_tools/${ncn_progname}; then
11521 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11523$as_echo "yes" >&6; }
e8b05380
PB
11524 break
11525 else
5213506e
RW
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527$as_echo "no" >&6; }
e8b05380
PB
11528 fi
11529 done
11530fi
11531
11532if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11533 for ncn_progname in dlltool; do
11534 if test -n "$ncn_target_tool_prefix"; then
11535 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11536set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11538$as_echo_n "checking for $ac_word... " >&6; }
11539if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11540 $as_echo_n "(cached) " >&6
4de997d1 11541else
e8b05380
PB
11542 if test -n "$DLLTOOL_FOR_TARGET"; then
11543 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11544else
1c710c3c
DJ
11545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11546for as_dir in $PATH
11547do
11548 IFS=$as_save_IFS
11549 test -z "$as_dir" && as_dir=.
5213506e
RW
11550 for ac_exec_ext in '' $ac_executable_extensions; do
11551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11552 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11554 break 2
11555 fi
11556done
5213506e
RW
11557 done
11558IFS=$as_save_IFS
1c710c3c 11559
4de997d1
PB
11560fi
11561fi
1c710c3c 11562DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11563if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11565$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11566else
5213506e
RW
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568$as_echo "no" >&6; }
4de997d1 11569fi
4de997d1 11570
5213506e 11571
e8b05380
PB
11572 fi
11573 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11575set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11577$as_echo_n "checking for $ac_word... " >&6; }
11578if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11579 $as_echo_n "(cached) " >&6
4de997d1 11580else
e8b05380
PB
11581 if test -n "$DLLTOOL_FOR_TARGET"; then
11582 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11583else
1c710c3c
DJ
11584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11585for as_dir in $PATH
11586do
11587 IFS=$as_save_IFS
11588 test -z "$as_dir" && as_dir=.
5213506e
RW
11589 for ac_exec_ext in '' $ac_executable_extensions; do
11590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11591 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11593 break 2
11594 fi
11595done
5213506e
RW
11596 done
11597IFS=$as_save_IFS
1c710c3c 11598
4de997d1
PB
11599fi
11600fi
1c710c3c 11601DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11602if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11604$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11605else
5213506e
RW
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607$as_echo "no" >&6; }
4de997d1 11608fi
1c710c3c 11609
5213506e 11610
e8b05380
PB
11611 fi
11612 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11613 done
11614fi
1c710c3c 11615
e8b05380
PB
11616if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11617 set dummy dlltool
11618 if test $build = $target ; then
11619 DLLTOOL_FOR_TARGET="$2"
11620 else
11621 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11622 fi
1c00b503
PB
11623else
11624 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11625fi
11626
d1f8db0c
PB
11627else
11628 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11629fi
11630
4de997d1 11631
e8b05380
PB
11632
11633
11634if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11635 if test -n "$with_build_time_tools"; then
5213506e
RW
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11637$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11638 if test -x $with_build_time_tools/ld; then
11639 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11640 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11642$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11643 else
5213506e
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
d1f8db0c 11646 fi
e8b05380
PB
11647 elif test $build != $host && test $have_gcc_for_target = yes; then
11648 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11649 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11650 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11651 fi
e8b05380 11652fi
3e19841a 11653if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11654 # Extract the first word of "ld", so it can be a program name with args.
11655set dummy ld; ac_word=$2
5213506e
RW
11656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11657$as_echo_n "checking for $ac_word... " >&6; }
11658if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11659 $as_echo_n "(cached) " >&6
4de997d1 11660else
1c710c3c
DJ
11661 case $LD_FOR_TARGET in
11662 [\\/]* | ?:[\\/]*)
e8b05380
PB
11663 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11664 ;;
e8b05380 11665 *)
1c710c3c
DJ
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667for as_dir in $gcc_cv_tool_dirs
11668do
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
5213506e
RW
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11673 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11675 break 2
11676 fi
11677done
5213506e
RW
11678 done
11679IFS=$as_save_IFS
1c710c3c 11680
e8b05380
PB
11681 ;;
11682esac
4de997d1 11683fi
1c710c3c 11684LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11685if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11687$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11688else
5213506e
RW
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690$as_echo "no" >&6; }
4de997d1 11691fi
2693c0b0 11692
5213506e 11693
e8b05380
PB
11694fi
11695if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11696
11697
11698if test -n "$LD_FOR_TARGET"; then
11699 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11700elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11701 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11702fi
11703
11704if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11705 for ncn_progname in ld; do
11706 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11707set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11709$as_echo_n "checking for $ac_word... " >&6; }
11710if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
278a7a38
AO
11712else
11713 if test -n "$LD_FOR_TARGET"; then
11714 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11715else
11716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11717for as_dir in $PATH
11718do
11719 IFS=$as_save_IFS
11720 test -z "$as_dir" && as_dir=.
5213506e
RW
11721 for ac_exec_ext in '' $ac_executable_extensions; do
11722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11723 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11725 break 2
11726 fi
11727done
5213506e
RW
11728 done
11729IFS=$as_save_IFS
278a7a38
AO
11730
11731fi
11732fi
11733LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11734if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11736$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11737else
5213506e
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11739$as_echo "no" >&6; }
278a7a38
AO
11740fi
11741
5213506e 11742
278a7a38
AO
11743 done
11744fi
11745
11746if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11747 for ncn_progname in ld; do
5213506e
RW
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11749$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11750 if test -x $with_build_time_tools/${ncn_progname}; then
11751 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11753$as_echo "yes" >&6; }
e8b05380
PB
11754 break
11755 else
5213506e
RW
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757$as_echo "no" >&6; }
e8b05380
PB
11758 fi
11759 done
ca9f4b81
AO
11760fi
11761
e8b05380
PB
11762if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11763 for ncn_progname in ld; do
11764 if test -n "$ncn_target_tool_prefix"; then
11765 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11766set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768$as_echo_n "checking for $ac_word... " >&6; }
11769if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11770 $as_echo_n "(cached) " >&6
ca9f4b81 11771else
4de997d1
PB
11772 if test -n "$LD_FOR_TARGET"; then
11773 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11774else
1c710c3c
DJ
11775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776for as_dir in $PATH
11777do
11778 IFS=$as_save_IFS
11779 test -z "$as_dir" && as_dir=.
5213506e
RW
11780 for ac_exec_ext in '' $ac_executable_extensions; do
11781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11782 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11784 break 2
11785 fi
11786done
5213506e
RW
11787 done
11788IFS=$as_save_IFS
1c710c3c 11789
ca9f4b81
AO
11790fi
11791fi
1c710c3c 11792LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11793if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11795$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11796else
5213506e
RW
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798$as_echo "no" >&6; }
ca9f4b81
AO
11799fi
11800
5213506e 11801
e8b05380
PB
11802 fi
11803 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11804 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11805set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11807$as_echo_n "checking for $ac_word... " >&6; }
11808if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11809 $as_echo_n "(cached) " >&6
ca9f4b81 11810else
2693c0b0
PB
11811 if test -n "$LD_FOR_TARGET"; then
11812 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11813else
1c710c3c
DJ
11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815for as_dir in $PATH
11816do
11817 IFS=$as_save_IFS
11818 test -z "$as_dir" && as_dir=.
5213506e
RW
11819 for ac_exec_ext in '' $ac_executable_extensions; do
11820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11821 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11823 break 2
11824 fi
11825done
5213506e
RW
11826 done
11827IFS=$as_save_IFS
1c710c3c 11828
ca9f4b81
AO
11829fi
11830fi
1c710c3c 11831LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11832if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11834$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11835else
5213506e
RW
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837$as_echo "no" >&6; }
ca9f4b81 11838fi
1c710c3c 11839
5213506e 11840
e8b05380
PB
11841 fi
11842 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11843 done
11844fi
1c710c3c 11845
2693c0b0
PB
11846if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11847 set dummy ld
11848 if test $build = $target ; then
11849 LD_FOR_TARGET="$2"
ca9f4b81 11850 else
2693c0b0 11851 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11852 fi
1c00b503
PB
11853else
11854 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11855fi
11856
d1f8db0c
PB
11857else
11858 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11859fi
11860
11861
11862
11863
11864if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11865 if test -n "$with_build_time_tools"; then
5213506e
RW
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11867$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11868 if test -x $with_build_time_tools/lipo; then
11869 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11870 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11872$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11873 else
5213506e
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875$as_echo "no" >&6; }
d1f8db0c 11876 fi
e8b05380
PB
11877 elif test $build != $host && test $have_gcc_for_target = yes; then
11878 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11879 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11880 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11881 fi
11882fi
278a7a38
AO
11883if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11884 # Extract the first word of "lipo", so it can be a program name with args.
11885set dummy lipo; ac_word=$2
5213506e
RW
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887$as_echo_n "checking for $ac_word... " >&6; }
11888if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
278a7a38
AO
11890else
11891 case $LIPO_FOR_TARGET in
11892 [\\/]* | ?:[\\/]*)
11893 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11894 ;;
11895 *)
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $gcc_cv_tool_dirs
11898do
11899 IFS=$as_save_IFS
11900 test -z "$as_dir" && as_dir=.
5213506e
RW
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11903 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11905 break 2
11906 fi
11907done
5213506e
RW
11908 done
11909IFS=$as_save_IFS
278a7a38
AO
11910
11911 ;;
11912esac
11913fi
11914LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11915if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11917$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11918else
5213506e
RW
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11920$as_echo "no" >&6; }
278a7a38
AO
11921fi
11922
5213506e 11923
278a7a38
AO
11924fi
11925if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11926
11927
11928if test -n "$LIPO_FOR_TARGET"; then
11929 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11930elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11931 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11932fi
11933
11934if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11935 for ncn_progname in lipo; do
11936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11937set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11939$as_echo_n "checking for $ac_word... " >&6; }
11940if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
e8b05380 11942else
278a7a38
AO
11943 if test -n "$LIPO_FOR_TARGET"; then
11944 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11945else
11946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947for as_dir in $PATH
1c710c3c
DJ
11948do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
5213506e
RW
11951 for ac_exec_ext in '' $ac_executable_extensions; do
11952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11953 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11955 break 2
11956 fi
11957done
5213506e
RW
11958 done
11959IFS=$as_save_IFS
1c710c3c 11960
e8b05380 11961fi
278a7a38
AO
11962fi
11963LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11964if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11966$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11967else
5213506e
RW
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11969$as_echo "no" >&6; }
e8b05380
PB
11970fi
11971
5213506e 11972
278a7a38 11973 done
e8b05380 11974fi
278a7a38
AO
11975
11976if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11977 for ncn_progname in lipo; do
5213506e
RW
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11979$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11980 if test -x $with_build_time_tools/${ncn_progname}; then
11981 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11983$as_echo "yes" >&6; }
e8b05380
PB
11984 break
11985 else
5213506e
RW
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987$as_echo "no" >&6; }
e8b05380
PB
11988 fi
11989 done
11990fi
11991
11992if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11993 for ncn_progname in lipo; do
11994 if test -n "$ncn_target_tool_prefix"; then
11995 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11996set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11998$as_echo_n "checking for $ac_word... " >&6; }
11999if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
040b1c5a
GK
12001else
12002 if test -n "$LIPO_FOR_TARGET"; then
12003 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12004else
1c710c3c
DJ
12005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
5213506e
RW
12010 for ac_exec_ext in '' $ac_executable_extensions; do
12011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12012 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12014 break 2
12015 fi
12016done
5213506e
RW
12017 done
12018IFS=$as_save_IFS
1c710c3c 12019
040b1c5a
GK
12020fi
12021fi
1c710c3c 12022LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12023if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12025$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12026else
5213506e
RW
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12028$as_echo "no" >&6; }
040b1c5a
GK
12029fi
12030
5213506e 12031
e8b05380
PB
12032 fi
12033 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
12034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12035set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12037$as_echo_n "checking for $ac_word... " >&6; }
12038if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
040b1c5a
GK
12040else
12041 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
12042 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
12043else
1c710c3c
DJ
12044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
5213506e
RW
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12051 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12053 break 2
12054 fi
12055done
5213506e
RW
12056 done
12057IFS=$as_save_IFS
1c710c3c 12058
040b1c5a
GK
12059fi
12060fi
1c710c3c 12061LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 12062if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12064$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 12065else
5213506e
RW
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12067$as_echo "no" >&6; }
040b1c5a 12068fi
1c710c3c 12069
5213506e 12070
e8b05380
PB
12071 fi
12072 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12073 done
12074fi
1c710c3c 12075
040b1c5a
GK
12076if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12077 set dummy lipo
12078 if test $build = $target ; then
12079 LIPO_FOR_TARGET="$2"
12080 else
12081 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12082 fi
1c00b503
PB
12083else
12084 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
12085fi
12086
d1f8db0c
PB
12087else
12088 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
12089fi
12090
12091
12092
12093
12094if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12095 if test -n "$with_build_time_tools"; then
5213506e
RW
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12097$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12098 if test -x $with_build_time_tools/nm; then
12099 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12100 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12102$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 12103 else
5213506e
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
d1f8db0c 12106 fi
e8b05380
PB
12107 elif test $build != $host && test $have_gcc_for_target = yes; then
12108 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
12109 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12110 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
12111 fi
12112fi
3e19841a 12113if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12114 # Extract the first word of "nm", so it can be a program name with args.
12115set dummy nm; ac_word=$2
5213506e
RW
12116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12117$as_echo_n "checking for $ac_word... " >&6; }
12118if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12119 $as_echo_n "(cached) " >&6
e8b05380 12120else
1c710c3c
DJ
12121 case $NM_FOR_TARGET in
12122 [\\/]* | ?:[\\/]*)
e8b05380
PB
12123 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12124 ;;
e8b05380 12125 *)
1c710c3c
DJ
12126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12127for as_dir in $gcc_cv_tool_dirs
12128do
12129 IFS=$as_save_IFS
12130 test -z "$as_dir" && as_dir=.
5213506e
RW
12131 for ac_exec_ext in '' $ac_executable_extensions; do
12132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12133 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12135 break 2
12136 fi
12137done
5213506e
RW
12138 done
12139IFS=$as_save_IFS
1c710c3c 12140
e8b05380
PB
12141 ;;
12142esac
12143fi
1c710c3c 12144NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12145if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12147$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12148else
5213506e
RW
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12150$as_echo "no" >&6; }
e8b05380
PB
12151fi
12152
5213506e 12153
e8b05380
PB
12154fi
12155if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12156
12157
12158if test -n "$NM_FOR_TARGET"; then
12159 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12160elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12161 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12162fi
12163
12164if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12165 for ncn_progname in nm; do
12166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12167set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12169$as_echo_n "checking for $ac_word... " >&6; }
12170if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12171 $as_echo_n "(cached) " >&6
278a7a38
AO
12172else
12173 if test -n "$NM_FOR_TARGET"; then
12174 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12175else
12176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12177for as_dir in $PATH
12178do
12179 IFS=$as_save_IFS
12180 test -z "$as_dir" && as_dir=.
5213506e
RW
12181 for ac_exec_ext in '' $ac_executable_extensions; do
12182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12183 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12185 break 2
12186 fi
12187done
5213506e
RW
12188 done
12189IFS=$as_save_IFS
278a7a38
AO
12190
12191fi
12192fi
12193NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12194if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12196$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12197else
5213506e
RW
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199$as_echo "no" >&6; }
278a7a38
AO
12200fi
12201
5213506e 12202
278a7a38
AO
12203 done
12204fi
12205
12206if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12207 for ncn_progname in nm; do
5213506e
RW
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12209$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12210 if test -x $with_build_time_tools/${ncn_progname}; then
12211 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12213$as_echo "yes" >&6; }
e8b05380
PB
12214 break
12215 else
5213506e
RW
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12217$as_echo "no" >&6; }
e8b05380
PB
12218 fi
12219 done
12220fi
12221
12222if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12223 for ncn_progname in nm; do
12224 if test -n "$ncn_target_tool_prefix"; then
12225 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12226set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12228$as_echo_n "checking for $ac_word... " >&6; }
12229if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
ca9f4b81 12231else
4de997d1
PB
12232 if test -n "$NM_FOR_TARGET"; then
12233 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12234else
1c710c3c
DJ
12235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
5213506e
RW
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12242 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12244 break 2
12245 fi
12246done
5213506e
RW
12247 done
12248IFS=$as_save_IFS
1c710c3c 12249
ca9f4b81
AO
12250fi
12251fi
1c710c3c 12252NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12253if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12255$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12256else
5213506e
RW
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12258$as_echo "no" >&6; }
ca9f4b81
AO
12259fi
12260
5213506e 12261
e8b05380
PB
12262 fi
12263 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12265set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12267$as_echo_n "checking for $ac_word... " >&6; }
12268if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12269 $as_echo_n "(cached) " >&6
ca9f4b81 12270else
2693c0b0
PB
12271 if test -n "$NM_FOR_TARGET"; then
12272 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12273else
1c710c3c
DJ
12274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12275for as_dir in $PATH
12276do
12277 IFS=$as_save_IFS
12278 test -z "$as_dir" && as_dir=.
5213506e
RW
12279 for ac_exec_ext in '' $ac_executable_extensions; do
12280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12281 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12283 break 2
12284 fi
12285done
5213506e
RW
12286 done
12287IFS=$as_save_IFS
1c710c3c 12288
ca9f4b81
AO
12289fi
12290fi
1c710c3c 12291NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12292if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12294$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12295else
5213506e
RW
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297$as_echo "no" >&6; }
ca9f4b81 12298fi
1c710c3c 12299
5213506e 12300
e8b05380
PB
12301 fi
12302 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12303 done
12304fi
1c710c3c 12305
2693c0b0
PB
12306if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12307 set dummy nm
12308 if test $build = $target ; then
12309 NM_FOR_TARGET="$2"
ca9f4b81 12310 else
2693c0b0 12311 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12312 fi
1c00b503
PB
12313else
12314 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12315fi
12316
d1f8db0c
PB
12317else
12318 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12319fi
12320
12321
12322
12323
9bccfdf5
AP
12324if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12325 if test -n "$with_build_time_tools"; then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12327$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12328 if test -x $with_build_time_tools/objcopy; then
12329 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12330 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12332$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12333 else
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335$as_echo "no" >&6; }
12336 fi
12337 elif test $build != $host && test $have_gcc_for_target = yes; then
12338 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12339 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12340 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12341 fi
12342fi
12343if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12344 # Extract the first word of "objcopy", so it can be a program name with args.
12345set dummy objcopy; ac_word=$2
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12347$as_echo_n "checking for $ac_word... " >&6; }
12348if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12350else
12351 case $OBJCOPY_FOR_TARGET in
12352 [\\/]* | ?:[\\/]*)
12353 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12354 ;;
12355 *)
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357for as_dir in $gcc_cv_tool_dirs
12358do
12359 IFS=$as_save_IFS
12360 test -z "$as_dir" && as_dir=.
12361 for ac_exec_ext in '' $ac_executable_extensions; do
12362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365 break 2
12366 fi
12367done
12368 done
12369IFS=$as_save_IFS
12370
12371 ;;
12372esac
12373fi
12374OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12375if test -n "$OBJCOPY_FOR_TARGET"; then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12377$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12378else
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12380$as_echo "no" >&6; }
12381fi
12382
12383
12384fi
12385if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12386
12387
12388if test -n "$OBJCOPY_FOR_TARGET"; then
12389 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12390elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12391 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12392fi
12393
12394if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12395 for ncn_progname in objcopy; do
12396 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12397set dummy ${ncn_progname}; ac_word=$2
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12399$as_echo_n "checking for $ac_word... " >&6; }
12400if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12401 $as_echo_n "(cached) " >&6
12402else
12403 if test -n "$OBJCOPY_FOR_TARGET"; then
12404 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12405else
12406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12407for as_dir in $PATH
12408do
12409 IFS=$as_save_IFS
12410 test -z "$as_dir" && as_dir=.
12411 for ac_exec_ext in '' $ac_executable_extensions; do
12412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12413 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12415 break 2
12416 fi
12417done
12418 done
12419IFS=$as_save_IFS
12420
12421fi
12422fi
12423OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12424if test -n "$OBJCOPY_FOR_TARGET"; then
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12426$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12427else
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12429$as_echo "no" >&6; }
12430fi
12431
12432
12433 done
12434fi
12435
12436if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12437 for ncn_progname in objcopy; do
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12439$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12440 if test -x $with_build_time_tools/${ncn_progname}; then
12441 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12443$as_echo "yes" >&6; }
12444 break
12445 else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447$as_echo "no" >&6; }
12448 fi
12449 done
12450fi
12451
12452if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12453 for ncn_progname in objcopy; do
12454 if test -n "$ncn_target_tool_prefix"; then
12455 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12456set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458$as_echo_n "checking for $ac_word... " >&6; }
12459if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12460 $as_echo_n "(cached) " >&6
12461else
12462 if test -n "$OBJCOPY_FOR_TARGET"; then
12463 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12464else
12465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466for as_dir in $PATH
12467do
12468 IFS=$as_save_IFS
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12474 break 2
12475 fi
12476done
12477 done
12478IFS=$as_save_IFS
12479
12480fi
12481fi
12482OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12483if test -n "$OBJCOPY_FOR_TARGET"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12485$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12486else
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488$as_echo "no" >&6; }
12489fi
12490
12491
12492 fi
12493 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12495set dummy ${ncn_progname}; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
12498if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12499 $as_echo_n "(cached) " >&6
12500else
12501 if test -n "$OBJCOPY_FOR_TARGET"; then
12502 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12511 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516 done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12522if test -n "$OBJCOPY_FOR_TARGET"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12524$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12525else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530
12531 fi
12532 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12533 done
12534fi
12535
12536if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12537 set dummy objcopy
12538 if test $build = $target ; then
12539 OBJCOPY_FOR_TARGET="$2"
12540 else
12541 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12542 fi
12543else
12544 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12545fi
12546
12547else
12548 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12549fi
12550
12551
12552
12553
e8b05380
PB
12554if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12555 if test -n "$with_build_time_tools"; then
5213506e
RW
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12557$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12558 if test -x $with_build_time_tools/objdump; then
12559 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12560 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12562$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12563 else
5213506e
RW
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565$as_echo "no" >&6; }
d1f8db0c 12566 fi
e8b05380
PB
12567 elif test $build != $host && test $have_gcc_for_target = yes; then
12568 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12569 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12570 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12571 fi
12572fi
3e19841a 12573if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12574 # Extract the first word of "objdump", so it can be a program name with args.
12575set dummy objdump; ac_word=$2
5213506e
RW
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12577$as_echo_n "checking for $ac_word... " >&6; }
12578if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
e8b05380 12580else
1c710c3c
DJ
12581 case $OBJDUMP_FOR_TARGET in
12582 [\\/]* | ?:[\\/]*)
e8b05380
PB
12583 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12584 ;;
e8b05380 12585 *)
1c710c3c
DJ
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587for as_dir in $gcc_cv_tool_dirs
12588do
12589 IFS=$as_save_IFS
12590 test -z "$as_dir" && as_dir=.
5213506e
RW
12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12593 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12595 break 2
12596 fi
12597done
5213506e
RW
12598 done
12599IFS=$as_save_IFS
1c710c3c 12600
e8b05380
PB
12601 ;;
12602esac
12603fi
1c710c3c 12604OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12605if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12607$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12608else
5213506e
RW
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610$as_echo "no" >&6; }
e8b05380
PB
12611fi
12612
5213506e 12613
e8b05380
PB
12614fi
12615if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12616
12617
12618if test -n "$OBJDUMP_FOR_TARGET"; then
12619 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12620elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12621 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12622fi
12623
12624if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12625 for ncn_progname in objdump; do
12626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12627set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629$as_echo_n "checking for $ac_word... " >&6; }
12630if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12631 $as_echo_n "(cached) " >&6
278a7a38
AO
12632else
12633 if test -n "$OBJDUMP_FOR_TARGET"; then
12634 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12635else
12636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637for as_dir in $PATH
12638do
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
5213506e
RW
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12643 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12645 break 2
12646 fi
12647done
5213506e
RW
12648 done
12649IFS=$as_save_IFS
278a7a38
AO
12650
12651fi
12652fi
12653OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12654if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12656$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12657else
5213506e
RW
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659$as_echo "no" >&6; }
278a7a38
AO
12660fi
12661
5213506e 12662
278a7a38
AO
12663 done
12664fi
12665
12666if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12667 for ncn_progname in objdump; do
5213506e
RW
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12669$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12670 if test -x $with_build_time_tools/${ncn_progname}; then
12671 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12673$as_echo "yes" >&6; }
e8b05380
PB
12674 break
12675 else
5213506e
RW
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12677$as_echo "no" >&6; }
e8b05380
PB
12678 fi
12679 done
12680fi
12681
12682if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12683 for ncn_progname in objdump; do
12684 if test -n "$ncn_target_tool_prefix"; then
12685 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12686set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688$as_echo_n "checking for $ac_word... " >&6; }
12689if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12690 $as_echo_n "(cached) " >&6
d739199a
DJ
12691else
12692 if test -n "$OBJDUMP_FOR_TARGET"; then
12693 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12694else
1c710c3c
DJ
12695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696for as_dir in $PATH
12697do
12698 IFS=$as_save_IFS
12699 test -z "$as_dir" && as_dir=.
5213506e
RW
12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12702 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12704 break 2
12705 fi
12706done
5213506e
RW
12707 done
12708IFS=$as_save_IFS
1c710c3c 12709
d739199a
DJ
12710fi
12711fi
1c710c3c 12712OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12713if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12715$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12716else
5213506e
RW
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718$as_echo "no" >&6; }
d739199a
DJ
12719fi
12720
5213506e 12721
e8b05380
PB
12722 fi
12723 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12725set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727$as_echo_n "checking for $ac_word... " >&6; }
12728if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12729 $as_echo_n "(cached) " >&6
d739199a
DJ
12730else
12731 if test -n "$OBJDUMP_FOR_TARGET"; then
12732 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12733else
1c710c3c
DJ
12734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735for as_dir in $PATH
12736do
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
5213506e
RW
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12741 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12743 break 2
12744 fi
12745done
5213506e
RW
12746 done
12747IFS=$as_save_IFS
1c710c3c 12748
d739199a
DJ
12749fi
12750fi
1c710c3c 12751OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12752if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12754$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12755else
5213506e
RW
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
d739199a 12758fi
1c710c3c 12759
5213506e 12760
e8b05380
PB
12761 fi
12762 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12763 done
12764fi
1c710c3c 12765
d739199a
DJ
12766if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12767 set dummy objdump
12768 if test $build = $target ; then
12769 OBJDUMP_FOR_TARGET="$2"
12770 else
12771 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12772 fi
1c00b503
PB
12773else
12774 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12775fi
12776
d1f8db0c
PB
12777else
12778 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12779fi
12780
12781
12782
12783
12784if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12785 if test -n "$with_build_time_tools"; then
5213506e
RW
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12787$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12788 if test -x $with_build_time_tools/ranlib; then
12789 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12790 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12792$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12793 else
5213506e
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795$as_echo "no" >&6; }
d1f8db0c 12796 fi
e8b05380
PB
12797 elif test $build != $host && test $have_gcc_for_target = yes; then
12798 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12799 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12800 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12801 fi
12802fi
3e19841a 12803if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12804 # Extract the first word of "ranlib", so it can be a program name with args.
12805set dummy ranlib; ac_word=$2
5213506e
RW
12806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12807$as_echo_n "checking for $ac_word... " >&6; }
12808if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12809 $as_echo_n "(cached) " >&6
e8b05380 12810else
1c710c3c
DJ
12811 case $RANLIB_FOR_TARGET in
12812 [\\/]* | ?:[\\/]*)
e8b05380
PB
12813 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12814 ;;
e8b05380 12815 *)
1c710c3c
DJ
12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12817for as_dir in $gcc_cv_tool_dirs
12818do
12819 IFS=$as_save_IFS
12820 test -z "$as_dir" && as_dir=.
5213506e
RW
12821 for ac_exec_ext in '' $ac_executable_extensions; do
12822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12823 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12825 break 2
12826 fi
12827done
5213506e
RW
12828 done
12829IFS=$as_save_IFS
1c710c3c 12830
e8b05380
PB
12831 ;;
12832esac
12833fi
1c710c3c 12834RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12835if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12837$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12838else
5213506e
RW
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12840$as_echo "no" >&6; }
e8b05380
PB
12841fi
12842
5213506e 12843
e8b05380
PB
12844fi
12845if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12846
12847
12848if test -n "$RANLIB_FOR_TARGET"; then
12849 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12850elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12851 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12852fi
12853
12854if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12855 for ncn_progname in ranlib; do
12856 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12857set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12859$as_echo_n "checking for $ac_word... " >&6; }
12860if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
278a7a38
AO
12862else
12863 if test -n "$RANLIB_FOR_TARGET"; then
12864 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12865else
12866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867for as_dir in $PATH
12868do
12869 IFS=$as_save_IFS
12870 test -z "$as_dir" && as_dir=.
5213506e
RW
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12873 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12875 break 2
12876 fi
12877done
5213506e
RW
12878 done
12879IFS=$as_save_IFS
278a7a38
AO
12880
12881fi
12882fi
12883RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12884if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12886$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12887else
5213506e
RW
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12889$as_echo "no" >&6; }
278a7a38
AO
12890fi
12891
5213506e 12892
278a7a38
AO
12893 done
12894fi
12895
12896if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12897 for ncn_progname in ranlib; do
5213506e
RW
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12899$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12900 if test -x $with_build_time_tools/${ncn_progname}; then
12901 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12903$as_echo "yes" >&6; }
e8b05380
PB
12904 break
12905 else
5213506e
RW
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12907$as_echo "no" >&6; }
e8b05380
PB
12908 fi
12909 done
12910fi
12911
12912if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12913 for ncn_progname in ranlib; do
12914 if test -n "$ncn_target_tool_prefix"; then
12915 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12916set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12918$as_echo_n "checking for $ac_word... " >&6; }
12919if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12920 $as_echo_n "(cached) " >&6
ca9f4b81 12921else
4de997d1
PB
12922 if test -n "$RANLIB_FOR_TARGET"; then
12923 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12924else
1c710c3c
DJ
12925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926for as_dir in $PATH
12927do
12928 IFS=$as_save_IFS
12929 test -z "$as_dir" && as_dir=.
5213506e
RW
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12932 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12934 break 2
12935 fi
12936done
5213506e
RW
12937 done
12938IFS=$as_save_IFS
1c710c3c 12939
ca9f4b81
AO
12940fi
12941fi
1c710c3c 12942RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12943if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12945$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12946else
5213506e
RW
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12948$as_echo "no" >&6; }
ca9f4b81
AO
12949fi
12950
5213506e 12951
e8b05380
PB
12952 fi
12953 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12954 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12955set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12957$as_echo_n "checking for $ac_word... " >&6; }
12958if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12959 $as_echo_n "(cached) " >&6
ca9f4b81 12960else
2693c0b0
PB
12961 if test -n "$RANLIB_FOR_TARGET"; then
12962 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12963else
1c710c3c
DJ
12964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12965for as_dir in $PATH
12966do
12967 IFS=$as_save_IFS
12968 test -z "$as_dir" && as_dir=.
5213506e
RW
12969 for ac_exec_ext in '' $ac_executable_extensions; do
12970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12971 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12973 break 2
12974 fi
12975done
5213506e
RW
12976 done
12977IFS=$as_save_IFS
1c710c3c 12978
ca9f4b81
AO
12979fi
12980fi
1c710c3c 12981RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12982if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12984$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12985else
5213506e
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12987$as_echo "no" >&6; }
ca9f4b81 12988fi
1c710c3c 12989
5213506e 12990
e8b05380
PB
12991 fi
12992 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12993 done
12994fi
1c710c3c 12995
e8b05380
PB
12996if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12997 set dummy ranlib
12998 if test $build = $target ; then
12999 RANLIB_FOR_TARGET="$2"
13000 else
13001 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13002 fi
1c00b503
PB
13003else
13004 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 13005fi
2693c0b0 13006
d1f8db0c
PB
13007else
13008 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
13009fi
13010
e8b05380
PB
13011
13012
13013
e7a82751
RM
13014if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13015 if test -n "$with_build_time_tools"; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
13017$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
13018 if test -x $with_build_time_tools/readelf; then
13019 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
13020 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
13022$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
13023 else
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
13026 fi
13027 elif test $build != $host && test $have_gcc_for_target = yes; then
13028 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
13029 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
13030 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
13031 fi
13032fi
13033if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13034 # Extract the first word of "readelf", so it can be a program name with args.
13035set dummy readelf; ac_word=$2
13036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037$as_echo_n "checking for $ac_word... " >&6; }
13038if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
13039 $as_echo_n "(cached) " >&6
13040else
13041 case $READELF_FOR_TARGET in
13042 [\\/]* | ?:[\\/]*)
13043 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
13044 ;;
13045 *)
13046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13047for as_dir in $gcc_cv_tool_dirs
13048do
13049 IFS=$as_save_IFS
13050 test -z "$as_dir" && as_dir=.
13051 for ac_exec_ext in '' $ac_executable_extensions; do
13052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13053 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13055 break 2
13056 fi
13057done
13058 done
13059IFS=$as_save_IFS
13060
13061 ;;
13062esac
13063fi
13064READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13065if test -n "$READELF_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13067$as_echo "$READELF_FOR_TARGET" >&6; }
13068else
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13070$as_echo "no" >&6; }
13071fi
13072
13073
13074fi
13075if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
13076
13077
13078if test -n "$READELF_FOR_TARGET"; then
13079 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
13080elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13081 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13082fi
13083
13084if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
13085 for ncn_progname in readelf; do
13086 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13087set dummy ${ncn_progname}; ac_word=$2
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089$as_echo_n "checking for $ac_word... " >&6; }
13090if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13091 $as_echo_n "(cached) " >&6
13092else
13093 if test -n "$READELF_FOR_TARGET"; then
13094 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13095else
13096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13097for as_dir in $PATH
13098do
13099 IFS=$as_save_IFS
13100 test -z "$as_dir" && as_dir=.
13101 for ac_exec_ext in '' $ac_executable_extensions; do
13102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13103 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 break 2
13106 fi
13107done
13108 done
13109IFS=$as_save_IFS
13110
13111fi
13112fi
13113READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13114if test -n "$READELF_FOR_TARGET"; then
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13116$as_echo "$READELF_FOR_TARGET" >&6; }
13117else
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119$as_echo "no" >&6; }
13120fi
13121
13122
13123 done
13124fi
13125
13126if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13127 for ncn_progname in readelf; do
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13129$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13130 if test -x $with_build_time_tools/${ncn_progname}; then
13131 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13133$as_echo "yes" >&6; }
13134 break
13135 else
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13137$as_echo "no" >&6; }
13138 fi
13139 done
13140fi
13141
13142if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13143 for ncn_progname in readelf; do
13144 if test -n "$ncn_target_tool_prefix"; then
13145 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13146set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13148$as_echo_n "checking for $ac_word... " >&6; }
13149if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13150 $as_echo_n "(cached) " >&6
13151else
13152 if test -n "$READELF_FOR_TARGET"; then
13153 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13154else
13155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13156for as_dir in $PATH
13157do
13158 IFS=$as_save_IFS
13159 test -z "$as_dir" && as_dir=.
13160 for ac_exec_ext in '' $ac_executable_extensions; do
13161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13162 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 break 2
13165 fi
13166done
13167 done
13168IFS=$as_save_IFS
13169
13170fi
13171fi
13172READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13173if test -n "$READELF_FOR_TARGET"; then
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13175$as_echo "$READELF_FOR_TARGET" >&6; }
13176else
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13178$as_echo "no" >&6; }
13179fi
13180
13181
13182 fi
13183 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13184 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13185set dummy ${ncn_progname}; ac_word=$2
13186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13187$as_echo_n "checking for $ac_word... " >&6; }
13188if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13189 $as_echo_n "(cached) " >&6
13190else
13191 if test -n "$READELF_FOR_TARGET"; then
13192 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13193else
13194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195for as_dir in $PATH
13196do
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 break 2
13204 fi
13205done
13206 done
13207IFS=$as_save_IFS
13208
13209fi
13210fi
13211READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13212if test -n "$READELF_FOR_TARGET"; then
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13214$as_echo "$READELF_FOR_TARGET" >&6; }
13215else
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217$as_echo "no" >&6; }
13218fi
13219
13220
13221 fi
13222 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13223 done
13224fi
13225
13226if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13227 set dummy readelf
13228 if test $build = $target ; then
13229 READELF_FOR_TARGET="$2"
13230 else
13231 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13232 fi
13233else
13234 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13235fi
13236
13237else
13238 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13239fi
13240
13241
13242
13243
e8b05380
PB
13244if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13245 if test -n "$with_build_time_tools"; then
5213506e
RW
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13247$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13248 if test -x $with_build_time_tools/strip; then
13249 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13250 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13252$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13253 else
5213506e
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
d1f8db0c 13256 fi
e8b05380
PB
13257 elif test $build != $host && test $have_gcc_for_target = yes; then
13258 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13259 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13260 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13261 fi
13262fi
3e19841a 13263if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13264 # Extract the first word of "strip", so it can be a program name with args.
13265set dummy strip; ac_word=$2
5213506e
RW
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13267$as_echo_n "checking for $ac_word... " >&6; }
13268if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
e8b05380 13270else
1c710c3c
DJ
13271 case $STRIP_FOR_TARGET in
13272 [\\/]* | ?:[\\/]*)
e8b05380
PB
13273 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13274 ;;
e8b05380 13275 *)
1c710c3c
DJ
13276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13277for as_dir in $gcc_cv_tool_dirs
13278do
13279 IFS=$as_save_IFS
13280 test -z "$as_dir" && as_dir=.
5213506e
RW
13281 for ac_exec_ext in '' $ac_executable_extensions; do
13282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13283 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13285 break 2
13286 fi
13287done
5213506e
RW
13288 done
13289IFS=$as_save_IFS
1c710c3c 13290
e8b05380
PB
13291 ;;
13292esac
13293fi
1c710c3c 13294STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13295if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13297$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13298else
5213506e
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13300$as_echo "no" >&6; }
e8b05380
PB
13301fi
13302
5213506e 13303
e8b05380
PB
13304fi
13305if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13306
13307
13308if test -n "$STRIP_FOR_TARGET"; then
13309 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13310elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13311 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13312fi
13313
13314if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13315 for ncn_progname in strip; do
13316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13317set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13319$as_echo_n "checking for $ac_word... " >&6; }
13320if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
278a7a38
AO
13322else
13323 if test -n "$STRIP_FOR_TARGET"; then
13324 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13325else
13326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13327for as_dir in $PATH
13328do
13329 IFS=$as_save_IFS
13330 test -z "$as_dir" && as_dir=.
5213506e
RW
13331 for ac_exec_ext in '' $ac_executable_extensions; do
13332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13333 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13335 break 2
13336 fi
13337done
5213506e
RW
13338 done
13339IFS=$as_save_IFS
278a7a38
AO
13340
13341fi
13342fi
13343STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13344if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13346$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13347else
5213506e
RW
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13349$as_echo "no" >&6; }
278a7a38
AO
13350fi
13351
5213506e 13352
278a7a38
AO
13353 done
13354fi
13355
13356if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13357 for ncn_progname in strip; do
5213506e
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13359$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13360 if test -x $with_build_time_tools/${ncn_progname}; then
13361 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13363$as_echo "yes" >&6; }
e8b05380
PB
13364 break
13365 else
5213506e
RW
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13367$as_echo "no" >&6; }
e8b05380
PB
13368 fi
13369 done
13370fi
13371
13372if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13373 for ncn_progname in strip; do
13374 if test -n "$ncn_target_tool_prefix"; then
13375 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13376set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378$as_echo_n "checking for $ac_word... " >&6; }
13379if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
af71363e
AS
13381else
13382 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13383 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13384else
13385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386for as_dir in $PATH
13387do
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
5213506e
RW
13390 for ac_exec_ext in '' $ac_executable_extensions; do
13391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13392 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13394 break 2
13395 fi
13396done
5213506e
RW
13397 done
13398IFS=$as_save_IFS
1c710c3c 13399
040b1c5a
GK
13400fi
13401fi
1c710c3c 13402STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13403if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13405$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13406else
5213506e
RW
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
040b1c5a
GK
13409fi
13410
5213506e 13411
e8b05380
PB
13412 fi
13413 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13415set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13417$as_echo_n "checking for $ac_word... " >&6; }
13418if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13419 $as_echo_n "(cached) " >&6
040b1c5a
GK
13420else
13421 if test -n "$STRIP_FOR_TARGET"; then
13422 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13423else
1c710c3c
DJ
13424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13425for as_dir in $PATH
13426do
13427 IFS=$as_save_IFS
13428 test -z "$as_dir" && as_dir=.
5213506e
RW
13429 for ac_exec_ext in '' $ac_executable_extensions; do
13430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13431 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13433 break 2
13434 fi
13435done
5213506e
RW
13436 done
13437IFS=$as_save_IFS
1c710c3c 13438
040b1c5a
GK
13439fi
13440fi
1c710c3c 13441STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13442if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13444$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13445else
5213506e
RW
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13447$as_echo "no" >&6; }
040b1c5a 13448fi
1c710c3c 13449
5213506e 13450
e8b05380
PB
13451 fi
13452 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13453 done
13454fi
1c710c3c 13455
040b1c5a
GK
13456if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13457 set dummy strip
13458 if test $build = $target ; then
13459 STRIP_FOR_TARGET="$2"
13460 else
13461 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13462 fi
1c00b503
PB
13463else
13464 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13465fi
13466
d1f8db0c
PB
13467else
13468 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13469fi
13470
13471
13472
13473
13474if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13475 if test -n "$with_build_time_tools"; then
5213506e
RW
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13477$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13478 if test -x $with_build_time_tools/windres; then
13479 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13480 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13482$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13483 else
5213506e
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485$as_echo "no" >&6; }
d1f8db0c 13486 fi
e8b05380
PB
13487 elif test $build != $host && test $have_gcc_for_target = yes; then
13488 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13489 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13490 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13491 fi
13492fi
3e19841a 13493if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13494 # Extract the first word of "windres", so it can be a program name with args.
13495set dummy windres; ac_word=$2
5213506e
RW
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13497$as_echo_n "checking for $ac_word... " >&6; }
13498if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
e8b05380 13500else
1c710c3c
DJ
13501 case $WINDRES_FOR_TARGET in
13502 [\\/]* | ?:[\\/]*)
e8b05380
PB
13503 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13504 ;;
e8b05380 13505 *)
1c710c3c
DJ
13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507for as_dir in $gcc_cv_tool_dirs
13508do
13509 IFS=$as_save_IFS
13510 test -z "$as_dir" && as_dir=.
5213506e
RW
13511 for ac_exec_ext in '' $ac_executable_extensions; do
13512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13513 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13515 break 2
13516 fi
13517done
5213506e
RW
13518 done
13519IFS=$as_save_IFS
1c710c3c 13520
e8b05380
PB
13521 ;;
13522esac
13523fi
1c710c3c 13524WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13525if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13527$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13528else
5213506e
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13530$as_echo "no" >&6; }
e8b05380
PB
13531fi
13532
5213506e 13533
e8b05380
PB
13534fi
13535if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13536
13537
13538if test -n "$WINDRES_FOR_TARGET"; then
13539 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13540elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13541 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13542fi
13543
13544if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13545 for ncn_progname in windres; do
13546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13547set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13549$as_echo_n "checking for $ac_word... " >&6; }
13550if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13551 $as_echo_n "(cached) " >&6
278a7a38
AO
13552else
13553 if test -n "$WINDRES_FOR_TARGET"; then
13554 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13555else
13556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13557for as_dir in $PATH
13558do
13559 IFS=$as_save_IFS
13560 test -z "$as_dir" && as_dir=.
5213506e
RW
13561 for ac_exec_ext in '' $ac_executable_extensions; do
13562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13563 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13565 break 2
13566 fi
13567done
5213506e
RW
13568 done
13569IFS=$as_save_IFS
278a7a38
AO
13570
13571fi
13572fi
13573WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13574if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13576$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13577else
5213506e
RW
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13579$as_echo "no" >&6; }
278a7a38
AO
13580fi
13581
5213506e 13582
278a7a38
AO
13583 done
13584fi
13585
13586if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13587 for ncn_progname in windres; do
5213506e
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13589$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13590 if test -x $with_build_time_tools/${ncn_progname}; then
13591 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13593$as_echo "yes" >&6; }
e8b05380
PB
13594 break
13595 else
5213506e
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13597$as_echo "no" >&6; }
e8b05380
PB
13598 fi
13599 done
13600fi
13601
13602if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13603 for ncn_progname in windres; do
13604 if test -n "$ncn_target_tool_prefix"; then
13605 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13606set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13608$as_echo_n "checking for $ac_word... " >&6; }
13609if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13610 $as_echo_n "(cached) " >&6
ca9f4b81 13611else
4de997d1
PB
13612 if test -n "$WINDRES_FOR_TARGET"; then
13613 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13614else
1c710c3c
DJ
13615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13616for as_dir in $PATH
13617do
13618 IFS=$as_save_IFS
13619 test -z "$as_dir" && as_dir=.
5213506e
RW
13620 for ac_exec_ext in '' $ac_executable_extensions; do
13621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13622 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13624 break 2
13625 fi
13626done
5213506e
RW
13627 done
13628IFS=$as_save_IFS
1c710c3c 13629
ca9f4b81
AO
13630fi
13631fi
1c710c3c 13632WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13633if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13635$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13636else
5213506e
RW
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13638$as_echo "no" >&6; }
ca9f4b81
AO
13639fi
13640
5213506e 13641
e8b05380
PB
13642 fi
13643 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13645set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13647$as_echo_n "checking for $ac_word... " >&6; }
13648if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13649 $as_echo_n "(cached) " >&6
ca9f4b81 13650else
2693c0b0
PB
13651 if test -n "$WINDRES_FOR_TARGET"; then
13652 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13653else
1c710c3c
DJ
13654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13655for as_dir in $PATH
13656do
13657 IFS=$as_save_IFS
13658 test -z "$as_dir" && as_dir=.
5213506e
RW
13659 for ac_exec_ext in '' $ac_executable_extensions; do
13660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13661 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13663 break 2
13664 fi
13665done
5213506e
RW
13666 done
13667IFS=$as_save_IFS
1c710c3c 13668
ca9f4b81
AO
13669fi
13670fi
1c710c3c 13671WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13672if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13674$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13675else
5213506e
RW
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13677$as_echo "no" >&6; }
ca9f4b81 13678fi
1c710c3c 13679
5213506e 13680
e8b05380
PB
13681 fi
13682 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13683 done
13684fi
1c710c3c 13685
2693c0b0
PB
13686if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13687 set dummy windres
13688 if test $build = $target ; then
13689 WINDRES_FOR_TARGET="$2"
ca9f4b81 13690 else
2693c0b0 13691 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13692 fi
1c00b503
PB
13693else
13694 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13695fi
13696
d1f8db0c
PB
13697else
13698 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13699fi
13700
4977bab6 13701
901119ae
KT
13702
13703
13704if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13705 if test -n "$with_build_time_tools"; then
5213506e
RW
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13707$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13708 if test -x $with_build_time_tools/windmc; then
13709 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13710 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13712$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13713 else
5213506e
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13715$as_echo "no" >&6; }
901119ae
KT
13716 fi
13717 elif test $build != $host && test $have_gcc_for_target = yes; then
13718 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13719 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13720 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13721 fi
13722fi
13723if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13724 # Extract the first word of "windmc", so it can be a program name with args.
13725set dummy windmc; ac_word=$2
5213506e
RW
13726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13727$as_echo_n "checking for $ac_word... " >&6; }
13728if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13729 $as_echo_n "(cached) " >&6
901119ae
KT
13730else
13731 case $WINDMC_FOR_TARGET in
13732 [\\/]* | ?:[\\/]*)
13733 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13734 ;;
13735 *)
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737for as_dir in $gcc_cv_tool_dirs
13738do
13739 IFS=$as_save_IFS
13740 test -z "$as_dir" && as_dir=.
5213506e
RW
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13743 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13745 break 2
13746 fi
13747done
5213506e
RW
13748 done
13749IFS=$as_save_IFS
901119ae
KT
13750
13751 ;;
13752esac
13753fi
13754WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13755if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13757$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13758else
5213506e
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13760$as_echo "no" >&6; }
901119ae
KT
13761fi
13762
5213506e 13763
901119ae
KT
13764fi
13765if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13766
13767
13768if test -n "$WINDMC_FOR_TARGET"; then
13769 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13770elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13771 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13772fi
13773
13774if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13775 for ncn_progname in windmc; do
13776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13777set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13779$as_echo_n "checking for $ac_word... " >&6; }
13780if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13781 $as_echo_n "(cached) " >&6
901119ae
KT
13782else
13783 if test -n "$WINDMC_FOR_TARGET"; then
13784 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13785else
13786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13787for as_dir in $PATH
13788do
13789 IFS=$as_save_IFS
13790 test -z "$as_dir" && as_dir=.
5213506e
RW
13791 for ac_exec_ext in '' $ac_executable_extensions; do
13792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13793 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13795 break 2
13796 fi
13797done
5213506e
RW
13798 done
13799IFS=$as_save_IFS
901119ae
KT
13800
13801fi
13802fi
13803WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13804if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13806$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13807else
5213506e
RW
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13809$as_echo "no" >&6; }
901119ae
KT
13810fi
13811
5213506e 13812
901119ae
KT
13813 done
13814fi
13815
13816if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13817 for ncn_progname in windmc; do
5213506e
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13819$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13820 if test -x $with_build_time_tools/${ncn_progname}; then
13821 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13823$as_echo "yes" >&6; }
901119ae
KT
13824 break
13825 else
5213506e
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13827$as_echo "no" >&6; }
901119ae
KT
13828 fi
13829 done
13830fi
13831
13832if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13833 for ncn_progname in windmc; do
13834 if test -n "$ncn_target_tool_prefix"; then
13835 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13836set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13838$as_echo_n "checking for $ac_word... " >&6; }
13839if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13840 $as_echo_n "(cached) " >&6
901119ae
KT
13841else
13842 if test -n "$WINDMC_FOR_TARGET"; then
13843 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13844else
13845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846for as_dir in $PATH
13847do
13848 IFS=$as_save_IFS
13849 test -z "$as_dir" && as_dir=.
5213506e
RW
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13852 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13854 break 2
13855 fi
13856done
5213506e
RW
13857 done
13858IFS=$as_save_IFS
901119ae
KT
13859
13860fi
13861fi
13862WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13863if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13865$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13866else
5213506e
RW
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13868$as_echo "no" >&6; }
901119ae
KT
13869fi
13870
5213506e 13871
901119ae
KT
13872 fi
13873 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13875set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13877$as_echo_n "checking for $ac_word... " >&6; }
13878if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13879 $as_echo_n "(cached) " >&6
901119ae
KT
13880else
13881 if test -n "$WINDMC_FOR_TARGET"; then
13882 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13883else
13884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13885for as_dir in $PATH
13886do
13887 IFS=$as_save_IFS
13888 test -z "$as_dir" && as_dir=.
5213506e
RW
13889 for ac_exec_ext in '' $ac_executable_extensions; do
13890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13891 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13893 break 2
13894 fi
13895done
5213506e
RW
13896 done
13897IFS=$as_save_IFS
901119ae
KT
13898
13899fi
13900fi
13901WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13902if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13904$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13905else
5213506e
RW
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13907$as_echo "no" >&6; }
901119ae
KT
13908fi
13909
5213506e 13910
901119ae
KT
13911 fi
13912 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13913 done
13914fi
13915
13916if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13917 set dummy windmc
13918 if test $build = $target ; then
13919 WINDMC_FOR_TARGET="$2"
13920 else
13921 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13922 fi
1c00b503
PB
13923else
13924 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13925fi
13926
13927else
13928 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13929fi
13930
13931
2abefe3d
PB
13932RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13933
5213506e
RW
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13935$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13936if test "x${build}" != "x${host}" ; then
e8b05380
PB
13937 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13938 # We already found the complete path
172e41aa 13939 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13941$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13942 else
13943 # Canadian cross, just use what we found
5213506e
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945$as_echo "pre-installed" >&6; }
e8b05380 13946 fi
2abefe3d
PB
13947else
13948 ok=yes
13949 case " ${configdirs} " in
13950 *" binutils "*) ;;
13951 *) ok=no ;;
13952 esac
1c710c3c 13953
2abefe3d
PB
13954 if test $ok = yes; then
13955 # An in-tree tool is available and we can use it
13956 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13958$as_echo "just compiled" >&6; }
e8b05380
PB
13959 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13960 # We already found the complete path
172e41aa 13961 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13963$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13964 elif test "x$target" = "x$host"; then
13965 # We can use an host tool
13966 AR_FOR_TARGET='$(AR)'
5213506e
RW
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13968$as_echo "host tool" >&6; }
2abefe3d
PB
13969 else
13970 # We need a cross tool
5213506e
RW
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13972$as_echo "pre-installed" >&6; }
2abefe3d
PB
13973 fi
13974fi
0b0dc272 13975
5213506e
RW
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13977$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13978if test "x${build}" != "x${host}" ; then
e8b05380
PB
13979 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13980 # We already found the complete path
172e41aa 13981 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13983$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13984 else
13985 # Canadian cross, just use what we found
5213506e
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13987$as_echo "pre-installed" >&6; }
e8b05380 13988 fi
2abefe3d
PB
13989else
13990 ok=yes
13991 case " ${configdirs} " in
13992 *" gas "*) ;;
13993 *) ok=no ;;
13994 esac
1c710c3c 13995
2abefe3d
PB
13996 if test $ok = yes; then
13997 # An in-tree tool is available and we can use it
13998 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14000$as_echo "just compiled" >&6; }
e8b05380
PB
14001 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
14002 # We already found the complete path
172e41aa 14003 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14005$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14006 elif test "x$target" = "x$host"; then
14007 # We can use an host tool
14008 AS_FOR_TARGET='$(AS)'
5213506e
RW
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14010$as_echo "host tool" >&6; }
2abefe3d
PB
14011 else
14012 # We need a cross tool
5213506e
RW
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14014$as_echo "pre-installed" >&6; }
2abefe3d
PB
14015 fi
14016fi
0b0dc272 14017
5213506e
RW
14018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
14019$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 14020if test "x${build}" != "x${host}" ; then
e8b05380
PB
14021 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14022 # We already found the complete path
172e41aa 14023 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14025$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14026 else
14027 # Canadian cross, just use what we found
5213506e
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14029$as_echo "pre-installed" >&6; }
e8b05380 14030 fi
2abefe3d
PB
14031else
14032 ok=yes
14033 case " ${configdirs} " in
14034 *" gcc "*) ;;
14035 *) ok=no ;;
14036 esac
1c710c3c 14037
2abefe3d
PB
14038 if test $ok = yes; then
14039 # An in-tree tool is available and we can use it
14040 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14042$as_echo "just compiled" >&6; }
e8b05380
PB
14043 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
14044 # We already found the complete path
172e41aa 14045 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14047$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14048 elif test "x$target" = "x$host"; then
14049 # We can use an host tool
14050 CC_FOR_TARGET='$(CC)'
5213506e
RW
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14052$as_echo "host tool" >&6; }
2abefe3d
PB
14053 else
14054 # We need a cross tool
5213506e
RW
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14056$as_echo "pre-installed" >&6; }
2abefe3d
PB
14057 fi
14058fi
0b0dc272 14059
5213506e
RW
14060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
14061$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 14062if test "x${build}" != "x${host}" ; then
e8b05380
PB
14063 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14064 # We already found the complete path
172e41aa 14065 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14067$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14068 else
14069 # Canadian cross, just use what we found
5213506e
RW
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14071$as_echo "pre-installed" >&6; }
e8b05380 14072 fi
2abefe3d
PB
14073else
14074 ok=yes
14075 case " ${configdirs} " in
14076 *" gcc "*) ;;
14077 *) ok=no ;;
14078 esac
14079 case ,${enable_languages}, in
14080 *,c++,*) ;;
14081 *) ok=no ;;
14082 esac
14083 if test $ok = yes; then
14084 # An in-tree tool is available and we can use it
2077db1b 14085 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
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14087$as_echo "just compiled" >&6; }
e8b05380
PB
14088 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
14089 # We already found the complete path
172e41aa 14090 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14092$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14093 elif test "x$target" = "x$host"; then
14094 # We can use an host tool
14095 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14097$as_echo "host tool" >&6; }
2abefe3d
PB
14098 else
14099 # We need a cross tool
5213506e
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14101$as_echo "pre-installed" >&6; }
2abefe3d
PB
14102 fi
14103fi
0b0dc272 14104
5213506e
RW
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
14106$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 14107if test "x${build}" != "x${host}" ; then
e8b05380
PB
14108 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14109 # We already found the complete path
172e41aa 14110 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14112$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14113 else
14114 # Canadian cross, just use what we found
5213506e
RW
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14116$as_echo "pre-installed" >&6; }
e8b05380 14117 fi
2abefe3d
PB
14118else
14119 ok=yes
14120 case " ${configdirs} " in
14121 *" gcc "*) ;;
14122 *) ok=no ;;
14123 esac
14124 case ,${enable_languages}, in
14125 *,c++,*) ;;
14126 *) ok=no ;;
14127 esac
14128 if test $ok = yes; then
14129 # An in-tree tool is available and we can use it
2077db1b 14130 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
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14132$as_echo "just compiled" >&6; }
e8b05380
PB
14133 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14134 # We already found the complete path
172e41aa 14135 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14137$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14138 elif test "x$target" = "x$host"; then
14139 # We can use an host tool
14140 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14142$as_echo "host tool" >&6; }
2abefe3d
PB
14143 else
14144 # We need a cross tool
5213506e
RW
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14146$as_echo "pre-installed" >&6; }
2abefe3d
PB
14147 fi
14148fi
0b0dc272 14149
5213506e
RW
14150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14151$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14152if test "x${build}" != "x${host}" ; then
e8b05380
PB
14153 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14154 # We already found the complete path
172e41aa 14155 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14157$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14158 else
14159 # Canadian cross, just use what we found
5213506e
RW
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14161$as_echo "pre-installed" >&6; }
e8b05380 14162 fi
2abefe3d
PB
14163else
14164 ok=yes
14165 case " ${configdirs} " in
14166 *" binutils "*) ;;
14167 *) ok=no ;;
14168 esac
1c710c3c 14169
2abefe3d
PB
14170 if test $ok = yes; then
14171 # An in-tree tool is available and we can use it
14172 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14174$as_echo "just compiled" >&6; }
e8b05380
PB
14175 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14176 # We already found the complete path
172e41aa 14177 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14179$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14180 elif test "x$target" = "x$host"; then
14181 # We can use an host tool
14182 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14184$as_echo "host tool" >&6; }
2abefe3d
PB
14185 else
14186 # We need a cross tool
5213506e
RW
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14188$as_echo "pre-installed" >&6; }
2abefe3d
PB
14189 fi
14190fi
0b0dc272 14191
5213506e
RW
14192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14193$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14194if test "x${build}" != "x${host}" ; then
e8b05380
PB
14195 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14196 # We already found the complete path
172e41aa 14197 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14199$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14200 else
14201 # Canadian cross, just use what we found
5213506e
RW
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14203$as_echo "pre-installed" >&6; }
e8b05380 14204 fi
2abefe3d
PB
14205else
14206 ok=yes
14207 case " ${configdirs} " in
14208 *" gcc "*) ;;
14209 *) ok=no ;;
14210 esac
1c710c3c 14211
2abefe3d
PB
14212 if test $ok = yes; then
14213 # An in-tree tool is available and we can use it
14214 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14216$as_echo "just compiled" >&6; }
e8b05380
PB
14217 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14218 # We already found the complete path
172e41aa 14219 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14221$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14222 elif test "x$target" = "x$host"; then
14223 # We can use an host tool
14224 GCC_FOR_TARGET='$()'
5213506e
RW
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14226$as_echo "host tool" >&6; }
2abefe3d
PB
14227 else
14228 # We need a cross tool
5213506e
RW
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14230$as_echo "pre-installed" >&6; }
2abefe3d
PB
14231 fi
14232fi
0b0dc272 14233
5213506e
RW
14234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
14235$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 14236if test "x${build}" != "x${host}" ; then
e8b05380
PB
14237 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14238 # We already found the complete path
172e41aa 14239 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14241$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14242 else
14243 # Canadian cross, just use what we found
5213506e
RW
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14245$as_echo "pre-installed" >&6; }
e8b05380 14246 fi
2abefe3d
PB
14247else
14248 ok=yes
14249 case " ${configdirs} " in
14250 *" gcc "*) ;;
14251 *) ok=no ;;
14252 esac
14253 case ,${enable_languages}, in
14254 *,java,*) ;;
14255 *) ok=no ;;
14256 esac
14257 if test $ok = yes; then
14258 # An in-tree tool is available and we can use it
14259 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14261$as_echo "just compiled" >&6; }
e8b05380
PB
14262 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
14263 # We already found the complete path
172e41aa 14264 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14266$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14267 elif test "x$target" = "x$host"; then
14268 # We can use an host tool
14269 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14271$as_echo "host tool" >&6; }
2abefe3d
PB
14272 else
14273 # We need a cross tool
5213506e
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275$as_echo "pre-installed" >&6; }
2abefe3d
PB
14276 fi
14277fi
0b0dc272 14278
5213506e
RW
14279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14280$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14281if test "x${build}" != "x${host}" ; then
e8b05380
PB
14282 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14283 # We already found the complete path
172e41aa 14284 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14286$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14287 else
14288 # Canadian cross, just use what we found
5213506e
RW
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14290$as_echo "pre-installed" >&6; }
e8b05380 14291 fi
2abefe3d
PB
14292else
14293 ok=yes
14294 case " ${configdirs} " in
14295 *" gcc "*) ;;
14296 *) ok=no ;;
14297 esac
14298 case ,${enable_languages}, in
14299 *,fortran,*) ;;
14300 *) ok=no ;;
14301 esac
14302 if test $ok = yes; then
14303 # An in-tree tool is available and we can use it
14304 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14306$as_echo "just compiled" >&6; }
e8b05380
PB
14307 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14308 # We already found the complete path
172e41aa 14309 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14311$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14312 elif test "x$target" = "x$host"; then
14313 # We can use an host tool
14314 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14316$as_echo "host tool" >&6; }
2abefe3d
PB
14317 else
14318 # We need a cross tool
5213506e
RW
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14320$as_echo "pre-installed" >&6; }
2abefe3d
PB
14321 fi
14322fi
0b0dc272 14323
632e2a07
ILT
14324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14325$as_echo_n "checking where to find the target gccgo... " >&6; }
14326if test "x${build}" != "x${host}" ; then
14327 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14328 # We already found the complete path
14329 ac_dir=`dirname $GOC_FOR_TARGET`
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14331$as_echo "pre-installed in $ac_dir" >&6; }
14332 else
14333 # Canadian cross, just use what we found
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14335$as_echo "pre-installed" >&6; }
14336 fi
14337else
14338 ok=yes
14339 case " ${configdirs} " in
14340 *" gcc "*) ;;
14341 *) ok=no ;;
14342 esac
14343 case ,${enable_languages}, in
14344 *,go,*) ;;
14345 *) ok=no ;;
14346 esac
14347 if test $ok = yes; then
14348 # An in-tree tool is available and we can use it
14349 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14351$as_echo "just compiled" >&6; }
14352 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14353 # We already found the complete path
14354 ac_dir=`dirname $GOC_FOR_TARGET`
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14356$as_echo "pre-installed in $ac_dir" >&6; }
14357 elif test "x$target" = "x$host"; then
14358 # We can use an host tool
14359 GOC_FOR_TARGET='$(GOC)'
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14361$as_echo "host tool" >&6; }
14362 else
14363 # We need a cross tool
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14365$as_echo "pre-installed" >&6; }
14366 fi
14367fi
14368
5213506e
RW
14369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14370$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14371if test "x${build}" != "x${host}" ; then
e8b05380
PB
14372 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14373 # We already found the complete path
172e41aa 14374 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14376$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14377 else
14378 # Canadian cross, just use what we found
5213506e
RW
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14380$as_echo "pre-installed" >&6; }
e8b05380 14381 fi
2abefe3d
PB
14382else
14383 ok=yes
14384 case " ${configdirs} " in
14385 *" ld "*) ;;
14386 *) ok=no ;;
14387 esac
1c710c3c 14388
2abefe3d
PB
14389 if test $ok = yes; then
14390 # An in-tree tool is available and we can use it
14391 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14393$as_echo "just compiled" >&6; }
e8b05380
PB
14394 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14395 # We already found the complete path
172e41aa 14396 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14398$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14399 elif test "x$target" = "x$host"; then
14400 # We can use an host tool
14401 LD_FOR_TARGET='$(LD)'
5213506e
RW
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14403$as_echo "host tool" >&6; }
2abefe3d
PB
14404 else
14405 # We need a cross tool
5213506e
RW
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14407$as_echo "pre-installed" >&6; }
2abefe3d
PB
14408 fi
14409fi
0b0dc272 14410
5213506e
RW
14411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14412$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14413if test "x${build}" != "x${host}" ; then
e8b05380
PB
14414 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14415 # We already found the complete path
172e41aa 14416 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14418$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14419 else
14420 # Canadian cross, just use what we found
5213506e
RW
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14422$as_echo "pre-installed" >&6; }
e8b05380 14423 fi
2abefe3d 14424else
e8b05380
PB
14425 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14426 # We already found the complete path
172e41aa 14427 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14429$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14430 elif test "x$target" = "x$host"; then
2abefe3d
PB
14431 # We can use an host tool
14432 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14434$as_echo "host tool" >&6; }
2abefe3d
PB
14435 else
14436 # We need a cross tool
5213506e
RW
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14438$as_echo "pre-installed" >&6; }
2abefe3d
PB
14439 fi
14440fi
0b0dc272 14441
5213506e
RW
14442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14443$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14444if test "x${build}" != "x${host}" ; then
e8b05380
PB
14445 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14446 # We already found the complete path
172e41aa 14447 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14449$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14450 else
14451 # Canadian cross, just use what we found
5213506e
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14453$as_echo "pre-installed" >&6; }
e8b05380 14454 fi
2abefe3d
PB
14455else
14456 ok=yes
14457 case " ${configdirs} " in
14458 *" binutils "*) ;;
14459 *) ok=no ;;
14460 esac
1c710c3c 14461
2abefe3d
PB
14462 if test $ok = yes; then
14463 # An in-tree tool is available and we can use it
14464 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14466$as_echo "just compiled" >&6; }
e8b05380
PB
14467 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14468 # We already found the complete path
172e41aa 14469 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14471$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14472 elif test "x$target" = "x$host"; then
14473 # We can use an host tool
14474 NM_FOR_TARGET='$(NM)'
5213506e
RW
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14476$as_echo "host tool" >&6; }
2abefe3d
PB
14477 else
14478 # We need a cross tool
5213506e
RW
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14480$as_echo "pre-installed" >&6; }
2abefe3d
PB
14481 fi
14482fi
0b0dc272 14483
9bccfdf5
AP
14484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14485$as_echo_n "checking where to find the target objcopy... " >&6; }
14486if test "x${build}" != "x${host}" ; then
14487 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14488 # We already found the complete path
14489 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14491$as_echo "pre-installed in $ac_dir" >&6; }
14492 else
14493 # Canadian cross, just use what we found
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14495$as_echo "pre-installed" >&6; }
14496 fi
14497else
14498 ok=yes
14499 case " ${configdirs} " in
14500 *" binutils "*) ;;
14501 *) ok=no ;;
14502 esac
14503
14504 if test $ok = yes; then
14505 # An in-tree tool is available and we can use it
14506 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14508$as_echo "just compiled" >&6; }
14509 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14510 # We already found the complete path
14511 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14513$as_echo "pre-installed in $ac_dir" >&6; }
14514 elif test "x$target" = "x$host"; then
14515 # We can use an host tool
ec8fd1c0 14516 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14518$as_echo "host tool" >&6; }
14519 else
14520 # We need a cross tool
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14522$as_echo "pre-installed" >&6; }
14523 fi
14524fi
14525
5213506e
RW
14526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14527$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14528if test "x${build}" != "x${host}" ; then
e8b05380
PB
14529 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14530 # We already found the complete path
172e41aa 14531 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14533$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14534 else
14535 # Canadian cross, just use what we found
5213506e
RW
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14537$as_echo "pre-installed" >&6; }
e8b05380 14538 fi
2abefe3d
PB
14539else
14540 ok=yes
14541 case " ${configdirs} " in
14542 *" binutils "*) ;;
14543 *) ok=no ;;
14544 esac
1c710c3c 14545
2abefe3d
PB
14546 if test $ok = yes; then
14547 # An in-tree tool is available and we can use it
14548 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14550$as_echo "just compiled" >&6; }
e8b05380
PB
14551 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14552 # We already found the complete path
172e41aa 14553 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14555$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14556 elif test "x$target" = "x$host"; then
14557 # We can use an host tool
14558 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14560$as_echo "host tool" >&6; }
2abefe3d
PB
14561 else
14562 # We need a cross tool
5213506e
RW
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14564$as_echo "pre-installed" >&6; }
2abefe3d
PB
14565 fi
14566fi
0b0dc272 14567
5213506e
RW
14568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14569$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14570if test "x${build}" != "x${host}" ; then
e8b05380
PB
14571 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14572 # We already found the complete path
172e41aa 14573 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14575$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14576 else
14577 # Canadian cross, just use what we found
5213506e
RW
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14579$as_echo "pre-installed" >&6; }
e8b05380 14580 fi
2abefe3d
PB
14581else
14582 ok=yes
14583 case " ${configdirs} " in
14584 *" binutils "*) ;;
14585 *) ok=no ;;
14586 esac
1c710c3c 14587
2abefe3d
PB
14588 if test $ok = yes; then
14589 # An in-tree tool is available and we can use it
14590 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14592$as_echo "just compiled" >&6; }
e8b05380
PB
14593 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14594 # We already found the complete path
172e41aa 14595 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14597$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14598 elif test "x$target" = "x$host"; then
14599 # We can use an host tool
14600 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14602$as_echo "host tool" >&6; }
2abefe3d
PB
14603 else
14604 # We need a cross tool
5213506e
RW
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14606$as_echo "pre-installed" >&6; }
2abefe3d
PB
14607 fi
14608fi
0b0dc272 14609
e7a82751
RM
14610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14611$as_echo_n "checking where to find the target readelf... " >&6; }
14612if test "x${build}" != "x${host}" ; then
14613 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14614 # We already found the complete path
14615 ac_dir=`dirname $READELF_FOR_TARGET`
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14617$as_echo "pre-installed in $ac_dir" >&6; }
14618 else
14619 # Canadian cross, just use what we found
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14621$as_echo "pre-installed" >&6; }
14622 fi
14623else
14624 ok=yes
14625 case " ${configdirs} " in
14626 *" binutils "*) ;;
14627 *) ok=no ;;
14628 esac
14629
14630 if test $ok = yes; then
14631 # An in-tree tool is available and we can use it
14632 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14634$as_echo "just compiled" >&6; }
14635 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14636 # We already found the complete path
14637 ac_dir=`dirname $READELF_FOR_TARGET`
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14639$as_echo "pre-installed in $ac_dir" >&6; }
14640 elif test "x$target" = "x$host"; then
14641 # We can use an host tool
14642 READELF_FOR_TARGET='$(READELF)'
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14644$as_echo "host tool" >&6; }
14645 else
14646 # We need a cross tool
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14648$as_echo "pre-installed" >&6; }
14649 fi
14650fi
14651
5213506e
RW
14652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14653$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14654if test "x${build}" != "x${host}" ; then
e8b05380
PB
14655 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14656 # We already found the complete path
172e41aa 14657 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14659$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14660 else
14661 # Canadian cross, just use what we found
5213506e
RW
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14663$as_echo "pre-installed" >&6; }
e8b05380 14664 fi
2abefe3d
PB
14665else
14666 ok=yes
14667 case " ${configdirs} " in
14668 *" binutils "*) ;;
14669 *) ok=no ;;
14670 esac
1c710c3c 14671
2abefe3d
PB
14672 if test $ok = yes; then
14673 # An in-tree tool is available and we can use it
455c8f48 14674 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14676$as_echo "just compiled" >&6; }
e8b05380
PB
14677 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14678 # We already found the complete path
172e41aa 14679 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14681$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14682 elif test "x$target" = "x$host"; then
14683 # We can use an host tool
14684 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14686$as_echo "host tool" >&6; }
2abefe3d
PB
14687 else
14688 # We need a cross tool
5213506e
RW
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14690$as_echo "pre-installed" >&6; }
2abefe3d
PB
14691 fi
14692fi
0b0dc272 14693
5213506e
RW
14694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14695$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14696if test "x${build}" != "x${host}" ; then
e8b05380
PB
14697 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14698 # We already found the complete path
172e41aa 14699 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14701$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14702 else
14703 # Canadian cross, just use what we found
5213506e
RW
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14705$as_echo "pre-installed" >&6; }
e8b05380 14706 fi
2abefe3d
PB
14707else
14708 ok=yes
14709 case " ${configdirs} " in
14710 *" binutils "*) ;;
14711 *) ok=no ;;
14712 esac
1c710c3c 14713
2abefe3d
PB
14714 if test $ok = yes; then
14715 # An in-tree tool is available and we can use it
14716 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14718$as_echo "just compiled" >&6; }
e8b05380
PB
14719 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14720 # We already found the complete path
172e41aa 14721 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14723$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14724 elif test "x$target" = "x$host"; then
14725 # We can use an host tool
14726 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14728$as_echo "host tool" >&6; }
2abefe3d
PB
14729 else
14730 # We need a cross tool
5213506e
RW
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14732$as_echo "pre-installed" >&6; }
2abefe3d 14733 fi
671aa708 14734fi
be912515 14735
5213506e
RW
14736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14737$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14738if test "x${build}" != "x${host}" ; then
14739 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14740 # We already found the complete path
14741 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14743$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14744 else
14745 # Canadian cross, just use what we found
5213506e
RW
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14747$as_echo "pre-installed" >&6; }
901119ae
KT
14748 fi
14749else
14750 ok=yes
14751 case " ${configdirs} " in
14752 *" binutils "*) ;;
14753 *) ok=no ;;
14754 esac
14755
14756 if test $ok = yes; then
14757 # An in-tree tool is available and we can use it
14758 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14760$as_echo "just compiled" >&6; }
901119ae
KT
14761 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14762 # We already found the complete path
14763 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14765$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14766 elif test "x$target" = "x$host"; then
14767 # We can use an host tool
14768 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14770$as_echo "host tool" >&6; }
901119ae
KT
14771 else
14772 # We need a cross tool
5213506e
RW
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14774$as_echo "pre-installed" >&6; }
901119ae
KT
14775 fi
14776fi
14777
be912515
NN
14778
14779
2abefe3d 14780
0b0dc272 14781
671aa708
NN
14782# Certain tools may need extra flags.
14783AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14784RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14785NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14786
2abefe3d
PB
14787# When building target libraries, except in a Canadian cross, we use
14788# the same toolchain as the compiler we just built.
14789COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14790COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14791COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14792if test $host = $build; then
14793 case " $configdirs " in
14794 *" gcc "*)
14795 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14796 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14797 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14798 ;;
14799 esac
14800fi
14801
14802
14803
14804
14805
5213506e
RW
14806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14807$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14808# Check whether --enable-maintainer-mode was given.
14809if test "${enable_maintainer_mode+set}" = set; then :
14810 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14811else
14812 USE_MAINTAINER_MODE=no
5213506e
RW
14813fi
14814
14815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14816$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14817
14818
14819if test "$USE_MAINTAINER_MODE" = yes; then
14820 MAINTAINER_MODE_TRUE=
14821 MAINTAINER_MODE_FALSE='#'
14822else
14823 MAINTAINER_MODE_TRUE='#'
14824 MAINTAINER_MODE_FALSE=
1c710c3c 14825fi
ee03dc5e
AO
14826MAINT=$MAINTAINER_MODE_TRUE
14827
2805b53a
NN
14828# ---------------------
14829# GCC bootstrap support
14830# ---------------------
14831
14832# Stage specific cflags for build.
14833stage1_cflags="-g"
14834case $build in
14835 vax-*-*)
14836 case ${GCC} in
14837 yes) stage1_cflags="-g -Wa,-J" ;;
14838 *) stage1_cflags="-g -J" ;;
14839 esac ;;
2805b53a
NN
14840esac
14841
0b50988a 14842
2805b53a 14843
8efea775 14844# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14845# Check whether --enable-stage1-checking was given.
14846if test "${enable_stage1_checking+set}" = set; then :
14847 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14848else
e643dc23 14849 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14850 # For --disable-checking or implicit --enable-checking=release, avoid
14851 # setting --enable-checking=gc in the default stage1 checking for LTO
14852 # bootstraps. See PR62077.
14853 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types
14854 case $BUILD_CONFIG in
14855 *lto*)
14856 if test "x$enable_checking" = x && \
14857 test -d ${srcdir}/gcc && \
14858 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
14859 stage1_checking=--enable-checking=yes,types
14860 fi;;
14861 *) stage1_checking=--enable-checking=yes,types;;
14862 esac
8efea775 14863else
e643dc23 14864 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14865fi
5213506e 14866fi
8efea775
PB
14867
14868
2aeb72e9 14869
5213506e
RW
14870# Enable -Werror in bootstrap stage2 and later.
14871# Check whether --enable-werror was given.
14872if test "${enable_werror+set}" = set; then :
14873 enableval=$enable_werror;
2805b53a 14874else
416cfb5e 14875 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14876 enable_werror=yes
88fceb68
PB
14877else
14878 enable_werror=no
14879fi
5213506e
RW
14880fi
14881
09a9c095
NN
14882case ${enable_werror} in
14883 yes) stage2_werror_flag="--enable-werror-always" ;;
14884 *) stage2_werror_flag="" ;;
2805b53a
NN
14885esac
14886
14887
459260ec
DM
14888# Enable --enable-host-shared.
14889# Check whether --enable-host-shared was given.
14890if test "${enable_host_shared+set}" = set; then :
14891 enableval=$enable_host_shared; host_shared=$enableval
14892else
14893 host_shared=no
14894fi
14895
14896
14897
231d020b
DM
14898# PR jit/64780: Require the user to explicitly specify
14899# --enable-host-shared if the jit is enabled, hinting
14900# that they might want to do a separate configure/build of
14901# the jit, to avoid users from slowing down the rest of the
14902# compiler by enabling the jit.
14903if test ${host_shared} = "no" ; then
14904 case "${enable_languages}" in
14905 *jit*)
14906 as_fn_error "
14907Enabling language \"jit\" requires --enable-host-shared.
14908
14909--enable-host-shared typically slows the rest of the compiler down by
14910a few %, so you must explicitly enable it.
14911
14912If you want to build both the jit and the regular compiler, it is often
14913best to do this via two separate configure/builds, in separate
14914directories, to avoid imposing the performance cost of
14915--enable-host-shared on the regular compiler." "$LINENO" 5
14916 ;;
14917 *)
14918 ;;
14919 esac
14920fi
14921
f2689b09
SE
14922# Specify what files to not compare during bootstrap.
14923
14924compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14925case "$target" in
14926 hppa*64*-*-hpux*) ;;
14927 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14928 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14929esac
14930
14931
5213506e
RW
14932ac_config_files="$ac_config_files Makefile"
14933
1c710c3c 14934cat >confcache <<\_ACEOF
671aa708
NN
14935# This file is a shell script that caches the results of configure
14936# tests run on this system so they can be shared between configure
1c710c3c
DJ
14937# scripts and configure runs, see configure's option --config-cache.
14938# It is not useful on other systems. If it contains results you don't
14939# want to keep, you may remove or edit it.
671aa708 14940#
1c710c3c
DJ
14941# config.status only pays attention to the cache file if you give it
14942# the --recheck option to rerun configure.
671aa708 14943#
1c710c3c
DJ
14944# `ac_cv_env_foo' variables (set or unset) will be overridden when
14945# loading this file, other *unset* `ac_cv_foo' will be assigned the
14946# following values.
14947
14948_ACEOF
14949
671aa708
NN
14950# The following way of writing the cache mishandles newlines in values,
14951# but we know of no workaround that is simple, portable, and efficient.
5213506e 14952# So, we kill variables containing newlines.
671aa708
NN
14953# Ultrix sh set writes to stderr and can't be redirected directly,
14954# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14955(
14956 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14957 eval ac_val=\$$ac_var
14958 case $ac_val in #(
14959 *${as_nl}*)
14960 case $ac_var in #(
14961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14962$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14963 esac
14964 case $ac_var in #(
14965 _ | IFS | as_nl) ;; #(
14966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14967 *) { eval $ac_var=; unset $ac_var;} ;;
14968 esac ;;
14969 esac
14970 done
14971
1c710c3c 14972 (set) 2>&1 |
5213506e
RW
14973 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14974 *${as_nl}ac_space=\ *)
14975 # `set' does not quote correctly, so add quotes: double-quote
14976 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14977 sed -n \
14978 "s/'/'\\\\''/g;
14979 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14980 ;; #(
1c710c3c
DJ
14981 *)
14982 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14983 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14984 ;;
5213506e
RW
14985 esac |
14986 sort
14987) |
1c710c3c 14988 sed '
5213506e 14989 /^ac_cv_env_/b end
1c710c3c 14990 t clear
5213506e 14991 :clear
1c710c3c
DJ
14992 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14993 t end
5213506e
RW
14994 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14995 :end' >>confcache
14996if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14997 if test -w "$cache_file"; then
14998 test "x$cache_file" != "x/dev/null" &&
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15000$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 15001 cat confcache >$cache_file
671aa708 15002 else
5213506e
RW
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15004$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 15005 fi
4977bab6 15006fi
671aa708 15007rm -f confcache
79c06341 15008
671aa708
NN
15009test "x$prefix" = xNONE && prefix=$ac_default_prefix
15010# Let make expand exec_prefix.
15011test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 15012
671aa708
NN
15013# Transform confdefs.h into DEFS.
15014# Protect against shell expansion while executing Makefile rules.
15015# Protect against Makefile macro expansion.
1c710c3c
DJ
15016#
15017# If the first sed substitution is executed (which looks for macros that
5213506e 15018# take arguments), then branch to the quote section. Otherwise,
1c710c3c 15019# look for a macro that doesn't take arguments.
5213506e
RW
15020ac_script='
15021:mline
15022/\\$/{
15023 N
15024 s,\\\n,,
15025 b mline
15026}
1c710c3c 15027t clear
5213506e
RW
15028:clear
15029s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15030t quote
5213506e 15031s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 15032t quote
5213506e
RW
15033b any
15034:quote
15035s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15036s/\[/\\&/g
15037s/\]/\\&/g
15038s/\$/$$/g
15039H
15040:any
15041${
15042 g
15043 s/^\n//
15044 s/\n/ /g
15045 p
15046}
15047'
15048DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
15049
15050
15051ac_libobjs=
15052ac_ltlibobjs=
15053for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15054 # 1. Remove the extension, and $U if already installed.
5213506e
RW
15055 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15056 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15057 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15058 # will be set to the directory where LIBOBJS objects are built.
15059 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15060 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
15061done
15062LIBOBJS=$ac_libobjs
fb0103e5 15063
1c710c3c 15064LTLIBOBJS=$ac_ltlibobjs
0b0dc272 15065
af71363e 15066
1c710c3c
DJ
15067
15068: ${CONFIG_STATUS=./config.status}
5213506e 15069ac_write_fail=0
1c710c3c
DJ
15070ac_clean_files_save=$ac_clean_files
15071ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
15072{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15073$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15074as_write_fail=0
15075cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
15076#! $SHELL
15077# Generated by $as_me.
671aa708 15078# Run this file to recreate the current configuration.
671aa708 15079# Compiler output produced by configure, useful for debugging
1c710c3c 15080# configure, is in config.log if it exists.
0b0dc272 15081
1c710c3c
DJ
15082debug=false
15083ac_cs_recheck=false
15084ac_cs_silent=false
1c710c3c 15085
5213506e
RW
15086SHELL=\${CONFIG_SHELL-$SHELL}
15087export SHELL
15088_ASEOF
15089cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15090## -------------------- ##
15091## M4sh Initialization. ##
15092## -------------------- ##
15093
15094# Be more Bourne compatible
15095DUALCASE=1; export DUALCASE # for MKS sh
15096if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
15097 emulate sh
15098 NULLCMD=:
5213506e 15099 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
15100 # is contrary to our usage. Disable this feature.
15101 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
15102 setopt NO_GLOB_SUBST
15103else
15104 case `(set -o) 2>/dev/null` in #(
15105 *posix*) :
15106 set -o posix ;; #(
15107 *) :
15108 ;;
15109esac
1c710c3c 15110fi
1c710c3c 15111
5213506e
RW
15112
15113as_nl='
15114'
15115export as_nl
15116# Printing a long string crashes Solaris 7 /usr/bin/printf.
15117as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15118as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15119as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15120# Prefer a ksh shell builtin over an external printf program on Solaris,
15121# but without wasting forks for bash or zsh.
15122if test -z "$BASH_VERSION$ZSH_VERSION" \
15123 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15124 as_echo='print -r --'
15125 as_echo_n='print -rn --'
15126elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15127 as_echo='printf %s\n'
15128 as_echo_n='printf %s'
15129else
15130 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15131 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15132 as_echo_n='/usr/ucb/echo -n'
15133 else
15134 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15135 as_echo_n_body='eval
15136 arg=$1;
15137 case $arg in #(
15138 *"$as_nl"*)
15139 expr "X$arg" : "X\\(.*\\)$as_nl";
15140 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15141 esac;
15142 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15143 '
15144 export as_echo_n_body
15145 as_echo_n='sh -c $as_echo_n_body as_echo'
15146 fi
15147 export as_echo_body
15148 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
15149fi
15150
5213506e
RW
15151# The user is always right.
15152if test "${PATH_SEPARATOR+set}" != set; then
15153 PATH_SEPARATOR=:
15154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15156 PATH_SEPARATOR=';'
15157 }
15158fi
15159
15160
15161# IFS
15162# We need space, tab and new line, in precisely that order. Quoting is
15163# there to prevent editors from complaining about space-tab.
15164# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15165# splitting by setting IFS to empty value.)
15166IFS=" "" $as_nl"
15167
15168# Find who we are. Look in the path if we contain no directory separator.
15169case $0 in #((
15170 *[\\/]* ) as_myself=$0 ;;
15171 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172for as_dir in $PATH
15173do
15174 IFS=$as_save_IFS
15175 test -z "$as_dir" && as_dir=.
15176 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15177 done
15178IFS=$as_save_IFS
15179
15180 ;;
15181esac
15182# We did not find ourselves, most probably we were run as `sh COMMAND'
15183# in which case we are not to be found in the path.
15184if test "x$as_myself" = x; then
15185 as_myself=$0
15186fi
15187if test ! -f "$as_myself"; then
15188 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15189 exit 1
15190fi
1c710c3c 15191
5213506e
RW
15192# Unset variables that we do not need and which cause bugs (e.g. in
15193# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15194# suppresses any "Segmentation fault" message there. '((' could
15195# trigger a bug in pdksh 5.2.14.
15196for as_var in BASH_ENV ENV MAIL MAILPATH
15197do eval test x\${$as_var+set} = xset \
15198 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15199done
1c710c3c
DJ
15200PS1='$ '
15201PS2='> '
15202PS4='+ '
15203
15204# NLS nuisances.
5213506e
RW
15205LC_ALL=C
15206export LC_ALL
15207LANGUAGE=C
15208export LANGUAGE
15209
15210# CDPATH.
15211(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15212
15213
15214# as_fn_error ERROR [LINENO LOG_FD]
15215# ---------------------------------
15216# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15217# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15218# script with status $?, using 1 if that was 0.
15219as_fn_error ()
15220{
15221 as_status=$?; test $as_status -eq 0 && as_status=1
15222 if test "$3"; then
15223 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15224 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 15225 fi
5213506e
RW
15226 $as_echo "$as_me: error: $1" >&2
15227 as_fn_exit $as_status
15228} # as_fn_error
15229
15230
15231# as_fn_set_status STATUS
15232# -----------------------
15233# Set $? to STATUS, without forking.
15234as_fn_set_status ()
15235{
15236 return $1
15237} # as_fn_set_status
15238
15239# as_fn_exit STATUS
15240# -----------------
15241# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15242as_fn_exit ()
15243{
15244 set +e
15245 as_fn_set_status $1
15246 exit $1
15247} # as_fn_exit
15248
15249# as_fn_unset VAR
15250# ---------------
15251# Portably unset VAR.
15252as_fn_unset ()
15253{
15254 { eval $1=; unset $1;}
15255}
15256as_unset=as_fn_unset
15257# as_fn_append VAR VALUE
15258# ----------------------
15259# Append the text in VALUE to the end of the definition contained in VAR. Take
15260# advantage of any shell optimizations that allow amortized linear growth over
15261# repeated appends, instead of the typical quadratic growth present in naive
15262# implementations.
15263if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15264 eval 'as_fn_append ()
15265 {
15266 eval $1+=\$2
15267 }'
15268else
15269 as_fn_append ()
15270 {
15271 eval $1=\$$1\$2
15272 }
15273fi # as_fn_append
15274
15275# as_fn_arith ARG...
15276# ------------------
15277# Perform arithmetic evaluation on the ARGs, and store the result in the
15278# global $as_val. Take advantage of shells that can avoid forks. The arguments
15279# must be portable across $(()) and expr.
15280if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15281 eval 'as_fn_arith ()
15282 {
15283 as_val=$(( $* ))
15284 }'
15285else
15286 as_fn_arith ()
15287 {
15288 as_val=`expr "$@" || test $? -eq 1`
15289 }
15290fi # as_fn_arith
15291
1c710c3c 15292
5213506e
RW
15293if expr a : '\(a\)' >/dev/null 2>&1 &&
15294 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15295 as_expr=expr
15296else
15297 as_expr=false
15298fi
15299
5213506e 15300if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15301 as_basename=basename
15302else
15303 as_basename=false
15304fi
15305
5213506e
RW
15306if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15307 as_dirname=dirname
15308else
15309 as_dirname=false
15310fi
1c710c3c 15311
5213506e 15312as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15313$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15314 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15315 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15316$as_echo X/"$0" |
15317 sed '/^.*\/\([^/][^/]*\)\/*$/{
15318 s//\1/
15319 q
15320 }
15321 /^X\/\(\/\/\)$/{
15322 s//\1/
15323 q
15324 }
15325 /^X\/\(\/\).*/{
15326 s//\1/
15327 q
15328 }
15329 s/.*/./; q'`
2aeb72e9 15330
2aeb72e9
DD
15331# Avoid depending upon Character Ranges.
15332as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15333as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15334as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15335as_cr_digits='0123456789'
15336as_cr_alnum=$as_cr_Letters$as_cr_digits
15337
5213506e
RW
15338ECHO_C= ECHO_N= ECHO_T=
15339case `echo -n x` in #(((((
15340-n*)
15341 case `echo 'xy\c'` in
15342 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15343 xy) ECHO_C='\c';;
15344 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15345 ECHO_T=' ';;
15346 esac;;
15347*)
15348 ECHO_N='-n';;
1c710c3c
DJ
15349esac
15350
5213506e
RW
15351rm -f conf$$ conf$$.exe conf$$.file
15352if test -d conf$$.dir; then
15353 rm -f conf$$.dir/conf$$.file
1c710c3c 15354else
5213506e
RW
15355 rm -f conf$$.dir
15356 mkdir conf$$.dir 2>/dev/null
1c710c3c 15357fi
5213506e
RW
15358if (echo >conf$$.file) 2>/dev/null; then
15359 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15360 as_ln_s='ln -s'
5213506e
RW
15361 # ... but there are two gotchas:
15362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15364 # In both cases, we have to default to `cp -p'.
15365 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15366 as_ln_s='cp -p'
15367 elif ln conf$$.file conf$$ 2>/dev/null; then
15368 as_ln_s=ln
15369 else
15370 as_ln_s='cp -p'
2aeb72e9 15371 fi
1c710c3c
DJ
15372else
15373 as_ln_s='cp -p'
15374fi
5213506e
RW
15375rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15376rmdir conf$$.dir 2>/dev/null
15377
15378
15379# as_fn_mkdir_p
15380# -------------
15381# Create "$as_dir" as a directory, including parents if necessary.
15382as_fn_mkdir_p ()
15383{
15384
15385 case $as_dir in #(
15386 -*) as_dir=./$as_dir;;
15387 esac
15388 test -d "$as_dir" || eval $as_mkdir_p || {
15389 as_dirs=
15390 while :; do
15391 case $as_dir in #(
15392 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15393 *) as_qdir=$as_dir;;
15394 esac
15395 as_dirs="'$as_qdir' $as_dirs"
15396 as_dir=`$as_dirname -- "$as_dir" ||
15397$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15398 X"$as_dir" : 'X\(//\)[^/]' \| \
15399 X"$as_dir" : 'X\(//\)$' \| \
15400 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15401$as_echo X"$as_dir" |
15402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15403 s//\1/
15404 q
15405 }
15406 /^X\(\/\/\)[^/].*/{
15407 s//\1/
15408 q
15409 }
15410 /^X\(\/\/\)$/{
15411 s//\1/
15412 q
15413 }
15414 /^X\(\/\).*/{
15415 s//\1/
15416 q
15417 }
15418 s/.*/./; q'`
15419 test -d "$as_dir" && break
15420 done
15421 test -z "$as_dirs" || eval "mkdir $as_dirs"
15422 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15423
1c710c3c 15424
5213506e 15425} # as_fn_mkdir_p
1c710c3c 15426if mkdir -p . 2>/dev/null; then
5213506e 15427 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15428else
15429 test -d ./-p && rmdir ./-p
15430 as_mkdir_p=false
15431fi
15432
5213506e
RW
15433if test -x / >/dev/null 2>&1; then
15434 as_test_x='test -x'
15435else
15436 if ls -dL / >/dev/null 2>&1; then
15437 as_ls_L_option=L
15438 else
15439 as_ls_L_option=
15440 fi
15441 as_test_x='
15442 eval sh -c '\''
15443 if test -d "$1"; then
15444 test -d "$1/.";
15445 else
15446 case $1 in #(
15447 -*)set "./$1";;
15448 esac;
15449 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15450 ???[sx]*):;;*)false;;esac;fi
15451 '\'' sh
15452 '
15453fi
15454as_executable_p=$as_test_x
1c710c3c
DJ
15455
15456# Sed expression to map a string onto a valid CPP name.
15457as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15458
15459# Sed expression to map a string onto a valid variable name.
15460as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15461
15462
1c710c3c 15463exec 6>&1
5213506e
RW
15464## ----------------------------------- ##
15465## Main body of $CONFIG_STATUS script. ##
15466## ----------------------------------- ##
15467_ASEOF
15468test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15469
15470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15471# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15472# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15473# values after options handling.
15474ac_log="
1c710c3c 15475This file was extended by $as_me, which was
5213506e 15476generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15477
15478 CONFIG_FILES = $CONFIG_FILES
15479 CONFIG_HEADERS = $CONFIG_HEADERS
15480 CONFIG_LINKS = $CONFIG_LINKS
15481 CONFIG_COMMANDS = $CONFIG_COMMANDS
15482 $ $0 $@
15483
5213506e
RW
15484on `(hostname || uname -n) 2>/dev/null | sed 1q`
15485"
15486
1c710c3c
DJ
15487_ACEOF
15488
5213506e
RW
15489case $ac_config_files in *"
15490"*) set x $ac_config_files; shift; ac_config_files=$*;;
15491esac
1c710c3c 15492
2aeb72e9 15493
2aeb72e9 15494
5213506e
RW
15495cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496# Files that config.status was made for.
15497config_files="$ac_config_files"
1c710c3c 15498
5213506e 15499_ACEOF
2aeb72e9 15500
5213506e 15501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15502ac_cs_usage="\
5213506e
RW
15503\`$as_me' instantiates files and other configuration actions
15504from templates according to the current configuration. Unless the files
15505and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15506
5213506e 15507Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15508
15509 -h, --help print this help, then exit
5213506e
RW
15510 -V, --version print version number and configuration settings, then exit
15511 -q, --quiet, --silent
15512 do not print progress messages
1c710c3c
DJ
15513 -d, --debug don't remove temporary files
15514 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15515 --file=FILE[:TEMPLATE]
15516 instantiate the configuration file FILE
1c710c3c
DJ
15517
15518Configuration files:
15519$config_files
15520
5213506e 15521Report bugs to the package provider."
2aeb72e9 15522
5213506e
RW
15523_ACEOF
15524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15525ac_cs_version="\\
15526config.status
5213506e
RW
15527configured by $0, generated by GNU Autoconf 2.64,
15528 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15529
5213506e 15530Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15531This config.status script is free software; the Free Software Foundation
15532gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15533
15534ac_pwd='$ac_pwd'
15535srcdir='$srcdir'
15536INSTALL='$INSTALL'
87264276 15537AWK='$AWK'
5213506e 15538test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15539_ACEOF
15540
5213506e
RW
15541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15542# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15543ac_need_defaults=:
15544while test $# != 0
a4b9e93e 15545do
1c710c3c
DJ
15546 case $1 in
15547 --*=*)
5213506e
RW
15548 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15549 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15550 ac_shift=:
15551 ;;
5213506e 15552 *)
1c710c3c
DJ
15553 ac_option=$1
15554 ac_optarg=$2
15555 ac_shift=shift
15556 ;;
1c710c3c
DJ
15557 esac
15558
15559 case $ac_option in
15560 # Handling of the options.
671aa708 15561 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15562 ac_cs_recheck=: ;;
5213506e
RW
15563 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15564 $as_echo "$ac_cs_version"; exit ;;
15565 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15566 debug=: ;;
15567 --file | --fil | --fi | --f )
15568 $ac_shift
5213506e
RW
15569 case $ac_optarg in
15570 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15571 esac
15572 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15573 ac_need_defaults=false;;
5213506e
RW
15574 --he | --h | --help | --hel | -h )
15575 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15577 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15578 ac_cs_silent=: ;;
15579
15580 # This is an error.
5213506e
RW
15581 -*) as_fn_error "unrecognized option: \`$1'
15582Try \`$0 --help' for more information." ;;
1c710c3c 15583
5213506e
RW
15584 *) as_fn_append ac_config_targets " $1"
15585 ac_need_defaults=false ;;
1c710c3c 15586
0b0dc272 15587 esac
1c710c3c 15588 shift
0b0dc272
AM
15589done
15590
1c710c3c 15591ac_configure_extra_args=
0b0dc272 15592
1c710c3c
DJ
15593if $ac_cs_silent; then
15594 exec 6>/dev/null
15595 ac_configure_extra_args="$ac_configure_extra_args --silent"
15596fi
0b0dc272 15597
1c710c3c 15598_ACEOF
5213506e 15599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15600if \$ac_cs_recheck; then
5213506e
RW
15601 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15602 shift
15603 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15604 CONFIG_SHELL='$SHELL'
15605 export CONFIG_SHELL
15606 exec "\$@"
1c710c3c
DJ
15607fi
15608
15609_ACEOF
5213506e
RW
15610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15611exec 5>>config.log
15612{
15613 echo
15614 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15615## Running $as_me. ##
15616_ASBOX
15617 $as_echo "$ac_log"
15618} >&5
1c710c3c 15619
5213506e
RW
15620_ACEOF
15621cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15622#
15623# INIT-COMMANDS
15624#
15625extrasub_build="$extrasub_build"
15626 extrasub_host="$extrasub_host"
15627 extrasub_target="$extrasub_target"
15628
5213506e 15629_ACEOF
1c710c3c 15630
5213506e 15631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15632
5213506e 15633# Handling of arguments.
1c710c3c
DJ
15634for ac_config_target in $ac_config_targets
15635do
5213506e
RW
15636 case $ac_config_target in
15637 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15638
15639 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15640 esac
15641done
15642
5213506e 15643
1c710c3c
DJ
15644# If the user did not use the arguments to specify the items to instantiate,
15645# then the envvar interface is used. Set only those that are not.
15646# We use the long form for the default assignment because of an extremely
15647# bizarre bug on SunOS 4.1.3.
15648if $ac_need_defaults; then
15649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15650fi
15651
15652# Have a temporary directory for convenience. Make it in the build tree
5213506e 15653# simply because there is no reason against having it here, and in addition,
1c710c3c 15654# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15655# Hook for its removal unless debugging.
15656# Note that there is a small window in which the directory will not be cleaned:
15657# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15658$debug ||
15659{
5213506e
RW
15660 tmp=
15661 trap 'exit_status=$?
15662 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15663' 0
15664 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15665}
1c710c3c
DJ
15666# Create a (secure) tmp directory for tmp files.
15667
15668{
5213506e 15669 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15670 test -n "$tmp" && test -d "$tmp"
15671} ||
15672{
5213506e
RW
15673 tmp=./conf$$-$RANDOM
15674 (umask 077 && mkdir "$tmp")
15675} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15676
15677# Set up the scripts for CONFIG_FILES section.
15678# No need to generate them if there are no CONFIG_FILES.
15679# This happens for instance with `./config.status config.h'.
15680if test -n "$CONFIG_FILES"; then
15681
15682if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15683 ac_cs_awk_getline=:
15684 ac_cs_awk_pipe_init=
15685 ac_cs_awk_read_file='
15686 while ((getline aline < (F[key])) > 0)
15687 print(aline)
15688 close(F[key])'
15689 ac_cs_awk_pipe_fini=
15690else
15691 ac_cs_awk_getline=false
15692 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15693 ac_cs_awk_read_file='
15694 print "|#_!!_#|"
15695 print "cat " F[key] " &&"
15696 '$ac_cs_awk_pipe_init
15697 # The final `:' finishes the AND list.
15698 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15699fi
15700ac_cr=`echo X | tr X '\015'`
15701# On cygwin, bash can eat \r inside `` if the user requested igncr.
15702# But we know of no other shell where ac_cr would be empty at this
15703# point, so we can use a bashism as a fallback.
15704if test "x$ac_cr" = x; then
15705 eval ac_cr=\$\'\\r\'
15706fi
15707ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15708if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15709 ac_cs_awk_cr='\r'
15710else
15711 ac_cs_awk_cr=$ac_cr
15712fi
15713
15714echo 'BEGIN {' >"$tmp/subs1.awk" &&
15715_ACEOF
15716
15717# Create commands to substitute file output variables.
1c710c3c 15718{
5213506e
RW
15719 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15720 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15721 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15722 echo "_ACAWK" &&
15723 echo "_ACEOF"
15724} >conf$$files.sh &&
15725. ./conf$$files.sh ||
15726 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15727rm -f conf$$files.sh
1c710c3c 15728
5213506e
RW
15729{
15730 echo "cat >conf$$subs.awk <<_ACEOF" &&
15731 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15732 echo "_ACEOF"
15733} >conf$$subs.sh ||
15734 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15735ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15736ac_delim='%!_!# '
15737for ac_last_try in false false false false false :; do
15738 . ./conf$$subs.sh ||
15739 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15740
15741 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15742 if test $ac_delim_n = $ac_delim_num; then
15743 break
15744 elif $ac_last_try; then
15745 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15746 else
15747 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15748 fi
15749done
15750rm -f conf$$subs.sh
15751
15752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15753cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15754_ACEOF
5213506e
RW
15755sed -n '
15756h
15757s/^/S["/; s/!.*/"]=/
15758p
15759g
15760s/^[^!]*!//
15761:repl
15762t repl
15763s/'"$ac_delim"'$//
15764t delim
15765:nl
15766h
15767s/\(.\{148\}\).*/\1/
15768t more1
15769s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15770p
15771n
15772b repl
15773:more1
15774s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15775p
15776g
15777s/.\{148\}//
15778t nl
15779:delim
15780h
15781s/\(.\{148\}\).*/\1/
15782t more2
15783s/["\\]/\\&/g; s/^/"/; s/$/"/
15784p
15785b
15786:more2
15787s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15788p
15789g
15790s/.\{148\}//
15791t delim
15792' <conf$$subs.awk | sed '
15793/^[^""]/{
15794 N
15795 s/\n//
15796}
15797' >>$CONFIG_STATUS || ac_write_fail=1
15798rm -f conf$$subs.awk
15799cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15800_ACAWK
15801cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15802 for (key in S) S_is_set[key] = 1
15803 FS = "\a"
15804 \$ac_cs_awk_pipe_init
15805}
15806{
15807 line = $ 0
15808 nfields = split(line, field, "@")
15809 substed = 0
15810 len = length(field[1])
15811 for (i = 2; i < nfields; i++) {
15812 key = field[i]
15813 keylen = length(key)
15814 if (S_is_set[key]) {
15815 value = S[key]
15816 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15817 len += length(value) + length(field[++i])
15818 substed = 1
15819 } else
15820 len += 1 + keylen
15821 }
15822 if (nfields == 3 && !substed) {
15823 key = field[2]
15824 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15825 \$ac_cs_awk_read_file
15826 next
15827 }
15828 }
15829 print line
15830}
15831\$ac_cs_awk_pipe_fini
15832_ACAWK
15833_ACEOF
15834cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15835if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15836 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15837else
15838 cat
15839fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15840 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15841_ACEOF
15842
15843# VPATH may cause trouble with some makes, so we remove $(srcdir),
15844# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15845# trailing colons and then remove the whole line if VPATH becomes empty
15846# (actually we leave an empty line to preserve line numbers).
15847if test "x$srcdir" = x.; then
15848 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15849s/:*\$(srcdir):*/:/
15850s/:*\${srcdir}:*/:/
15851s/:*@srcdir@:*/:/
15852s/^\([^=]*=[ ]*\):*/\1/
15853s/:*$//
15854s/^[^=]*=[ ]*$//
15855}'
15856fi
2aeb72e9 15857
5213506e
RW
15858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15859fi # test -n "$CONFIG_FILES"
2aeb72e9 15860
1c710c3c 15861
5213506e
RW
15862eval set X " :F $CONFIG_FILES "
15863shift
15864for ac_tag
15865do
15866 case $ac_tag in
15867 :[FHLC]) ac_mode=$ac_tag; continue;;
15868 esac
15869 case $ac_mode$ac_tag in
15870 :[FHL]*:*);;
15871 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15872 :[FH]-) ac_tag=-:-;;
15873 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15874 esac
15875 ac_save_IFS=$IFS
15876 IFS=:
15877 set x $ac_tag
15878 IFS=$ac_save_IFS
15879 shift
15880 ac_file=$1
15881 shift
79c06341 15882
5213506e
RW
15883 case $ac_mode in
15884 :L) ac_source=$1;;
15885 :[FH])
15886 ac_file_inputs=
15887 for ac_f
15888 do
15889 case $ac_f in
15890 -) ac_f="$tmp/stdin";;
15891 *) # Look for the file first in the build tree, then in the source tree
15892 # (if the path is not absolute). The absolute path cannot be DOS-style,
15893 # because $ac_f cannot contain `:'.
15894 test -f "$ac_f" ||
15895 case $ac_f in
15896 [\\/$]*) false;;
15897 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15898 esac ||
15899 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15900 esac
15901 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15902 as_fn_append ac_file_inputs " '$ac_f'"
15903 done
1c710c3c 15904
5213506e
RW
15905 # Let's still pretend it is `configure' which instantiates (i.e., don't
15906 # use $as_me), people would be surprised to read:
15907 # /* config.h. Generated by config.status. */
15908 configure_input='Generated from '`
15909 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15910 `' by configure.'
15911 if test x"$ac_file" != x-; then
15912 configure_input="$ac_file. $configure_input"
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15914$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15915 fi
5213506e
RW
15916 # Neutralize special characters interpreted by sed in replacement strings.
15917 case $configure_input in #(
15918 *\&* | *\|* | *\\* )
15919 ac_sed_conf_input=`$as_echo "$configure_input" |
15920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15921 *) ac_sed_conf_input=$configure_input;;
15922 esac
11a67599 15923
5213506e
RW
15924 case $ac_tag in
15925 *:-:* | *:-) cat >"$tmp/stdin" \
15926 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15927 esac
15928 ;;
11a67599
ZW
15929 esac
15930
5213506e 15931 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15932$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15933 X"$ac_file" : 'X\(//\)[^/]' \| \
15934 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15936$as_echo X"$ac_file" |
15937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15938 s//\1/
15939 q
15940 }
15941 /^X\(\/\/\)[^/].*/{
15942 s//\1/
15943 q
15944 }
15945 /^X\(\/\/\)$/{
15946 s//\1/
15947 q
15948 }
15949 /^X\(\/\).*/{
15950 s//\1/
15951 q
15952 }
15953 s/.*/./; q'`
15954 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15955 ac_builddir=.
0b0dc272 15956
5213506e
RW
15957case "$ac_dir" in
15958.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15959*)
15960 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15961 # A ".." for each directory in $ac_dir_suffix.
15962 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15963 case $ac_top_builddir_sub in
15964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15966 esac ;;
15967esac
15968ac_abs_top_builddir=$ac_pwd
15969ac_abs_builddir=$ac_pwd$ac_dir_suffix
15970# for backward compatibility:
15971ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15972
15973case $srcdir in
5213506e 15974 .) # We are building in place.
1c710c3c 15975 ac_srcdir=.
5213506e
RW
15976 ac_top_srcdir=$ac_top_builddir_sub
15977 ac_abs_top_srcdir=$ac_pwd ;;
15978 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15979 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15980 ac_top_srcdir=$srcdir
15981 ac_abs_top_srcdir=$srcdir ;;
15982 *) # Relative name.
15983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15984 ac_top_srcdir=$ac_top_build_prefix$srcdir
15985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15986esac
5213506e 15987ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15988
0b0dc272 15989
5213506e
RW
15990 case $ac_mode in
15991 :F)
15992 #
15993 # CONFIG_FILE
15994 #
1c710c3c
DJ
15995
15996 case $INSTALL in
15997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15998 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15999 esac
5213506e 16000_ACEOF
11a67599 16001
5213506e
RW
16002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16003# If the template does not know about datarootdir, expand it.
16004# FIXME: This hack should be removed a few years after 2.60.
16005ac_datarootdir_hack=; ac_datarootdir_seen=
16006ac_sed_dataroot='
16007/datarootdir/ {
16008 p
16009 q
16010}
16011/@datadir@/p
16012/@docdir@/p
16013/@infodir@/p
16014/@localedir@/p
16015/@mandir@/p'
16016case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16017*datarootdir*) ac_datarootdir_seen=yes;;
16018*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16020$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 16021_ACEOF
5213506e
RW
16022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16023 ac_datarootdir_hack='
16024 s&@datadir@&$datadir&g
16025 s&@docdir@&$docdir&g
16026 s&@infodir@&$infodir&g
16027 s&@localedir@&$localedir&g
16028 s&@mandir@&$mandir&g
16029 s&\\\${datarootdir}&$datarootdir&g' ;;
16030esac
16031_ACEOF
16032
16033# Neutralize VPATH when `$srcdir' = `.'.
16034# Shell code in configure.ac might set extrasub.
16035# FIXME: do we really want to maintain this feature?
16036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16037ac_sed_extra="$ac_vpsub
1c710c3c
DJ
16038$extrasub
16039_ACEOF
5213506e 16040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
16041:t
16042/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
16043s|@configure_input@|$ac_sed_conf_input|;t t
16044s&@top_builddir@&$ac_top_builddir_sub&;t t
16045s&@top_build_prefix@&$ac_top_build_prefix&;t t
16046s&@srcdir@&$ac_srcdir&;t t
16047s&@abs_srcdir@&$ac_abs_srcdir&;t t
16048s&@top_srcdir@&$ac_top_srcdir&;t t
16049s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16050s&@builddir@&$ac_builddir&;t t
16051s&@abs_builddir@&$ac_abs_builddir&;t t
16052s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16053s&@INSTALL@&$ac_INSTALL&;t t
16054$ac_datarootdir_hack
16055"
16056eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16057if $ac_cs_awk_getline; then
16058 $AWK -f "$tmp/subs.awk"
16059else
16060 $AWK -f "$tmp/subs.awk" | $SHELL
16061fi >$tmp/out \
16062 || as_fn_error "could not create $ac_file" "$LINENO" 5
16063
16064test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16065 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16066 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16068which seems to be undefined. Please make sure it is defined." >&5
16069$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16070which seems to be undefined. Please make sure it is defined." >&2;}
16071
16072 rm -f "$tmp/stdin"
16073 case $ac_file in
16074 -) cat "$tmp/out" && rm -f "$tmp/out";;
16075 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16076 esac \
16077 || as_fn_error "could not create $ac_file" "$LINENO" 5
16078 ;;
11a67599 16079
11a67599 16080
79c06341 16081
5213506e
RW
16082 esac
16083
3e54529c
RW
16084
16085 case $ac_file$ac_mode in
16086 "Makefile":F) sed "$extrasub_build" Makefile |
16087 sed "$extrasub_host" |
16088 sed "$extrasub_target" > mf$$
16089 mv -f mf$$ Makefile ;;
16090
16091 esac
5213506e
RW
16092done # for ac_tag
16093
16094
16095as_fn_exit 0
1c710c3c 16096_ACEOF
1c710c3c
DJ
16097ac_clean_files=$ac_clean_files_save
16098
5213506e
RW
16099test $ac_write_fail = 0 ||
16100 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16101
1c710c3c
DJ
16102
16103# configure is writing to config.log, and then calls config.status.
16104# config.status does its own redirection, appending to config.log.
16105# Unfortunately, on DOS this fails, as config.log is still kept open
16106# by configure, so config.status won't be able to write to it; its
16107# output is simply discarded. So we exec the FD to /dev/null,
16108# effectively closing config.log, so it can be properly (re)opened and
16109# appended to by config.status. When coming back to configure, we
16110# need to make the FD available again.
16111if test "$no_create" != yes; then
16112 ac_cs_success=:
16113 ac_config_status_args=
16114 test "$silent" = yes &&
16115 ac_config_status_args="$ac_config_status_args --quiet"
16116 exec 5>/dev/null
16117 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16118 exec 5>>config.log
16119 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16120 # would make configure fail if this is the last instruction.
5213506e
RW
16121 $ac_cs_success || as_fn_exit $?
16122fi
16123if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16125$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 16126fi
79c06341 16127