]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
acx.m4: Change "tail +16c" to "tail -c +17".
[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 585GFORTRAN_FOR_TARGET
5213506e
RW
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
e7a82751 589READELF
5213506e
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
5213506e
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
632e2a07 616GOC_FOR_BUILD
5213506e 617GFORTRAN_FOR_BUILD
5213506e
RW
618DLLTOOL_FOR_BUILD
619CXX_FOR_BUILD
620CXXFLAGS_FOR_BUILD
621CFLAGS_FOR_BUILD
622CC_FOR_BUILD
623AS_FOR_BUILD
624AR_FOR_BUILD
aae29963 625target_configdirs
5213506e 626configdirs
5213506e 627build_configdirs
5213506e
RW
628INSTALL_GDB_TK
629GDB_TK
630CONFIGURE_GDB_TK
631build_tooldir
632tooldir
633GCC_SHLIB_SUBDIR
634RPATH_ENVVAR
ffedf511
RW
635target_configargs
636host_configargs
637build_configargs
e12c4094 638BUILD_CONFIG
6f57bdf6 639LDFLAGS_FOR_TARGET
5213506e
RW
640CXXFLAGS_FOR_TARGET
641CFLAGS_FOR_TARGET
642DEBUG_PREFIX_CFLAGS_FOR_TARGET
643SYSROOT_CFLAGS_FOR_TARGET
1c01ebf6 644extra_host_zlib_configure_flags
d7f09764 645extra_host_libiberty_configure_flags
fca38047 646stage1_languages
45b3824d
TS
647extra_linker_plugin_flags
648extra_linker_plugin_configure_flags
33ad93b9 649islinc
eae1a5d4 650isllibs
1e050c90 651islver
5213506e 652poststage1_ldflags
ed2eaa9f 653poststage1_libs
5213506e 654stage1_ldflags
0b21f5d3 655stage1_libs
0ff2d841 656extra_isl_gmp_configure_flags
5213506e
RW
657extra_mpc_mpfr_configure_flags
658extra_mpc_gmp_configure_flags
659extra_mpfr_configure_flags
660gmpinc
661gmplibs
662do_compare
663GNATMAKE
664GNATBIND
665ac_ct_CXX
666CXXFLAGS
667CXX
668OBJEXT
669EXEEXT
670ac_ct_CC
671CPPFLAGS
672LDFLAGS
673CFLAGS
674CC
5f520819 675extra_liboffloadmic_configure_flags
5213506e
RW
676target_subdir
677host_subdir
678build_subdir
679build_libsubdir
87264276
PB
680AWK
681SED
5213506e
RW
682LN_S
683LN
684INSTALL_DATA
685INSTALL_SCRIPT
686INSTALL_PROGRAM
687target_os
688target_vendor
689target_cpu
690target
691host_os
692host_vendor
693host_cpu
694host
695target_noncanonical
696host_noncanonical
697build_noncanonical
698build_os
699build_vendor
700build_cpu
701build
702TOPLEVEL_CONFIGURE_ARGUMENTS
703target_alias
704host_alias
705build_alias
706LIBS
707ECHO_T
708ECHO_N
709ECHO_C
710DEFS
711mandir
712localedir
713libdir
714psdir
715pdfdir
716dvidir
717htmldir
718infodir
719docdir
720oldincludedir
721includedir
722localstatedir
723sharedstatedir
724sysconfdir
725datadir
726datarootdir
727libexecdir
728sbindir
729bindir
730program_transform_name
731prefix
732exec_prefix
733PACKAGE_URL
734PACKAGE_BUGREPORT
735PACKAGE_STRING
736PACKAGE_VERSION
737PACKAGE_TARNAME
738PACKAGE_NAME
739PATH_SEPARATOR
740SHELL'
741ac_subst_files='serialization_dependencies
742host_makefile_frag
743target_makefile_frag
744alphaieee_frag
745ospace_frag'
746ac_user_opts='
747enable_option_checking
748with_build_libsubdir
a05c2c75 749with_system_zlib
85c64bbe
BS
750enable_as_accelerator_for
751enable_offload_targets
5213506e 752enable_gold
21539e2e 753enable_ld
78edb32f 754enable_compressed_debug_sections
87e6d9dc
TB
755enable_libquadmath
756enable_libquadmath_support
5213506e
RW
757enable_libada
758enable_libssp
1873ec0c 759enable_libstdcxx
5f520819 760enable_liboffloadmic
ff3ac0f4 761enable_bootstrap
5213506e
RW
762with_mpc
763with_mpc_include
764with_mpc_lib
765with_mpfr_dir
766with_mpfr
767with_mpfr_include
768with_mpfr_lib
769with_gmp_dir
770with_gmp
771with_gmp_include
772with_gmp_lib
5213506e 773with_stage1_libs
0b21f5d3 774with_stage1_ldflags
5213506e 775with_boot_libs
ed2eaa9f 776with_boot_ldflags
33ad93b9
RG
777with_isl
778with_isl_include
779with_isl_lib
780enable_isl_version_check
d7f09764 781enable_lto
45b3824d
TS
782enable_linker_plugin_configure_flags
783enable_linker_plugin_flags
5213506e 784enable_stage1_languages
43c40f3e 785enable_objc_gc
114bf3f1
MK
786with_target_bdw_gc
787with_target_bdw_gc_include
788with_target_bdw_gc_lib
5213506e
RW
789with_build_sysroot
790with_debug_prefix_map
5646b7b9 791with_build_config
beeda1d9 792enable_vtable_verify
5213506e
RW
793enable_serial_configure
794with_build_time_tools
795enable_maintainer_mode
796enable_stage1_checking
797enable_werror
459260ec 798enable_host_shared
5213506e
RW
799'
800 ac_precious_vars='build_alias
801host_alias
802target_alias
803CC
804CFLAGS
805LDFLAGS
806LIBS
807CPPFLAGS
808CXX
809CXXFLAGS
810CCC
ffedf511
RW
811build_configargs
812host_configargs
813target_configargs
5213506e
RW
814AR
815AS
816DLLTOOL
817LD
818LIPO
819NM
820RANLIB
821STRIP
822WINDRES
823WINDMC
824OBJCOPY
825OBJDUMP
e7a82751 826READELF
5213506e
RW
827CC_FOR_TARGET
828CXX_FOR_TARGET
829GCC_FOR_TARGET
5213506e 830GFORTRAN_FOR_TARGET
632e2a07 831GOC_FOR_TARGET
5213506e
RW
832AR_FOR_TARGET
833AS_FOR_TARGET
834DLLTOOL_FOR_TARGET
835LD_FOR_TARGET
836LIPO_FOR_TARGET
837NM_FOR_TARGET
9bccfdf5 838OBJCOPY_FOR_TARGET
5213506e
RW
839OBJDUMP_FOR_TARGET
840RANLIB_FOR_TARGET
e7a82751 841READELF_FOR_TARGET
5213506e
RW
842STRIP_FOR_TARGET
843WINDRES_FOR_TARGET
844WINDMC_FOR_TARGET'
845
671aa708
NN
846
847# Initialize some variables set by options.
1c710c3c
DJ
848ac_init_help=
849ac_init_version=false
5213506e
RW
850ac_unrecognized_opts=
851ac_unrecognized_sep=
671aa708
NN
852# The variables have the same names as the options, with
853# dashes changed to underlines.
1c710c3c 854cache_file=/dev/null
671aa708 855exec_prefix=NONE
671aa708 856no_create=
671aa708
NN
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
671aa708
NN
865verbose=
866x_includes=NONE
867x_libraries=NONE
1c710c3c
DJ
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 874# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
5213506e
RW
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
671aa708
NN
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
671aa708
NN
883includedir='${prefix}/include'
884oldincludedir='/usr/include'
5213506e
RW
885docdir='${datarootdir}/doc/${PACKAGE}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
79c06341 894
671aa708 895ac_prev=
5213506e 896ac_dashdash=
671aa708
NN
897for ac_option
898do
671aa708
NN
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
5213506e 901 eval $ac_prev=\$ac_option
671aa708
NN
902 ac_prev=
903 continue
904 fi
79c06341 905
5213506e
RW
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
671aa708
NN
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
5213506e
RW
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
671aa708
NN
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 920 bindir=$ac_optarg ;;
671aa708
NN
921
922 -build | --build | --buil | --bui | --bu)
1c710c3c 923 ac_prev=build_alias ;;
671aa708 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 925 build_alias=$ac_optarg ;;
671aa708
NN
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
671aa708 936
5213506e 937 -datadir | --datadir | --datadi | --datad)
671aa708 938 ac_prev=datadir ;;
5213506e 939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 940 datadir=$ac_optarg ;;
671aa708 941
5213506e
RW
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
671aa708 949 -disable-* | --disable-*)
5213506e 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 951 # Reject names that are not valid shell variable names.
5213506e
RW
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958"enable_$ac_useropt"
959"*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
671aa708
NN
974
975 -enable-* | --enable-*)
5213506e 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 977 # Reject names that are not valid shell variable names.
5213506e
RW
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
2aeb72e9 988 esac
5213506e 989 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
1c710c3c 998 exec_prefix=$ac_optarg ;;
671aa708
NN
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1c710c3c
DJ
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
671aa708
NN
1010
1011 -host | --host | --hos | --ho)
1c710c3c 1012 ac_prev=host_alias ;;
671aa708 1013 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1014 host_alias=$ac_optarg ;;
671aa708 1015
5213506e
RW
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
671aa708
NN
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1027 includedir=$ac_optarg ;;
671aa708
NN
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1032 infodir=$ac_optarg ;;
671aa708
NN
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1037 libdir=$ac_optarg ;;
671aa708
NN
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1044 libexecdir=$ac_optarg ;;
671aa708 1045
5213506e
RW
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
671aa708 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1052 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1056 localstatedir=$ac_optarg ;;
671aa708
NN
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1061 mandir=$ac_optarg ;;
671aa708
NN
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1068 | --no-cr | --no-c | -n)
671aa708
NN
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1082 oldincludedir=$ac_optarg ;;
671aa708
NN
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1087 prefix=$ac_optarg ;;
671aa708
NN
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1094 program_prefix=$ac_optarg ;;
671aa708
NN
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1101 program_suffix=$ac_optarg ;;
671aa708
NN
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1118 program_transform_name=$ac_optarg ;;
671aa708 1119
5213506e
RW
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
671aa708
NN
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1c710c3c 1138 sbindir=$ac_optarg ;;
671aa708
NN
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1c710c3c 1149 sharedstatedir=$ac_optarg ;;
671aa708
NN
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1c710c3c 1154 site=$ac_optarg ;;
671aa708
NN
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1159 srcdir=$ac_optarg ;;
671aa708
NN
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1166 sysconfdir=$ac_optarg ;;
671aa708
NN
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1169 ac_prev=target_alias ;;
671aa708 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1171 target_alias=$ac_optarg ;;
671aa708
NN
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
1c710c3c
DJ
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
671aa708
NN
1178
1179 -with-* | --with-*)
5213506e 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1181 # Reject names that are not valid shell variable names.
5213506e
RW
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
2aeb72e9 1192 esac
5213506e 1193 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1194
1195 -without-* | --without-*)
5213506e 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1197 # Reject names that are not valid shell variable names.
5213506e
RW
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204"with_$ac_useropt"
1205"*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
671aa708
NN
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1220 x_includes=$ac_optarg ;;
671aa708
NN
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1227 x_libraries=$ac_optarg ;;
671aa708 1228
5213506e
RW
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information."
671aa708
NN
1231 ;;
1232
1c710c3c
DJ
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
5213506e
RW
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1241 export $ac_envvar ;;
1242
671aa708 1243 *)
1c710c3c 1244 # FIXME: should be removed in autoconf 3.0.
5213506e 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1249 ;;
1250
1251 esac
1252done
1253
1254if test -n "$ac_prev"; then
1c710c3c 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1256 as_fn_error "missing argument to $ac_option"
af71363e 1257fi
af71363e 1258
5213506e
RW
1259if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1264 esac
5213506e 1265fi
2aeb72e9 1266
5213506e
RW
1267# Check all directory arguments for consistency.
1268for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
2aeb72e9 1272do
5213506e
RW
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
2aeb72e9 1281 case $ac_val in
5213506e
RW
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1284 esac
5213506e 1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1286done
1287
1c710c3c
DJ
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
0b0dc272 1294
1c710c3c
DJ
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
5213506e 1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
671aa708 1310
671aa708 1311
5213506e
RW
1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1318
1319
671aa708
NN
1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
5213506e
RW
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329$as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
671aa708 1347 srcdir=$ac_confdir
5213506e 1348 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1349 srcdir=..
1350 fi
1351else
1352 ac_srcdir_defaulted=no
1353fi
5213506e
RW
1354if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357fi
1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
87841584
AM
1372case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1375 ;;
1376esac
ac9e6043
RW
1377ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
5213506e
RW
1379for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
1c710c3c
DJ
1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393\`configure' configures this package to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1c710c3c
DJ
1413Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1415 [$ac_default_prefix]
1c710c3c 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1417 [PREFIX]
1c710c3c
DJ
1418
1419By default, \`make install' will install all the files in
1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422for instance \`--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
5213506e
RW
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1446_ACEOF
1447
1448 cat <<\_ACEOF
1449
1450Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463
1464 cat <<\_ACEOF
1465
1466Optional Features:
5213506e 1467 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
21539e2e 1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1480 Enable compressed debug sections for gas, gold or ld
1481 by default
87e6d9dc
TB
1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
30b74385
RW
1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
1873ec0c 1487 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1490 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1491 --disable-isl-version-check
560d18d3 1492 disable check for isl version
d7f09764 1493 --enable-lto enable link time optimization support
45b3824d
TS
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
33e39b66
AS
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
43c40f3e
RO
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
318a4e6d 1505 --enable-vtable-verify Enable vtable verification feature
30b74385 1506 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
1c710c3c 1516 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1517 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1523 --with-system-zlib use installed libz
33e39b66
AS
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
1c710c3c 1533 --with-mpfr-include=PATH
30b74385
RW
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
30b74385
RW
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1543 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
33e39b66
AS
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
e357a5e0 1549 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1550 package. Equivalent to
33ad93b9
RG
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
560d18d3
AK
1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1555 --with-target-bdw-gc=PATHLIST
1556 specify prefix directory for installed bdw-gc
1557 package. Equivalent to
1558 --with-target-bdw-gc-include=PATH/include plus
1559 --with-target-bdw-gc-lib=PATH/lib
1560 --with-target-bdw-gc-include=PATHLIST
1561 specify directories for installed bdw-gc include
1562 files
1563 --with-target-bdw-gc-lib=PATHLIST
1564 specify directories for installed bdw-gc library
30b74385 1565 --with-build-sysroot=SYSROOT
1c710c3c 1566 use sysroot as the system root during the build
c8aea42c 1567 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1568 map A to B, C to D ... in debug information
1569 --with-build-config='NAME NAME2...'
1570 use config/NAME.mk build configuration
30b74385 1571 --with-build-time-tools=PATH
1c710c3c 1572 use given path to find target tools during the build
1c710c3c
DJ
1573
1574Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
5213506e
RW
1579 LIBS libraries to pass to the linker, e.g. -l<library>
1580 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1581 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
ffedf511
RW
1584 build_configargs
1585 additional configure arguments for build directories
1586 host_configargs
1587 additional configure arguments for host directories
1588 target_configargs
1589 additional configure arguments for target directories
278a7a38
AO
1590 AR AR for the host
1591 AS AS for the host
1592 DLLTOOL DLLTOOL for the host
1593 LD LD for the host
1594 LIPO LIPO for the host
1595 NM NM for the host
1596 RANLIB RANLIB for the host
1597 STRIP STRIP for the host
1598 WINDRES WINDRES for the host
901119ae 1599 WINDMC WINDMC for the host
278a7a38
AO
1600 OBJCOPY OBJCOPY for the host
1601 OBJDUMP OBJDUMP for the host
e7a82751 1602 READELF READELF for the host
278a7a38
AO
1603 CC_FOR_TARGET
1604 CC for the target
1605 CXX_FOR_TARGET
1606 CXX for the target
1607 GCC_FOR_TARGET
1608 GCC for the target
278a7a38
AO
1609 GFORTRAN_FOR_TARGET
1610 GFORTRAN for the target
632e2a07
ILT
1611 GOC_FOR_TARGET
1612 GOC for the target
278a7a38
AO
1613 AR_FOR_TARGET
1614 AR for the target
1615 AS_FOR_TARGET
1616 AS for the target
1617 DLLTOOL_FOR_TARGET
1618 DLLTOOL for the target
1619 LD_FOR_TARGET
1620 LD for the target
1621 LIPO_FOR_TARGET
1622 LIPO for the target
1623 NM_FOR_TARGET
1624 NM for the target
9bccfdf5
AP
1625 OBJCOPY_FOR_TARGET
1626 OBJCOPY for the target
278a7a38
AO
1627 OBJDUMP_FOR_TARGET
1628 OBJDUMP for the target
1629 RANLIB_FOR_TARGET
1630 RANLIB for the target
e7a82751
RM
1631 READELF_FOR_TARGET
1632 READELF for the target
278a7a38
AO
1633 STRIP_FOR_TARGET
1634 STRIP for the target
1635 WINDRES_FOR_TARGET
1636 WINDRES for the target
901119ae
KT
1637 WINDMC_FOR_TARGET
1638 WINDMC for the target
1c710c3c
DJ
1639
1640Use these variables to override the choices made by `configure' or to help
1641it to find libraries and programs with nonstandard names/locations.
1642
5213506e 1643Report bugs to the package provider.
1c710c3c 1644_ACEOF
5213506e 1645ac_status=$?
1c710c3c
DJ
1646fi
1647
1648if test "$ac_init_help" = "recursive"; then
1649 # If there are subdirs, report their specific --help.
1c710c3c 1650 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1651 test -d "$ac_dir" ||
1652 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 continue
1c710c3c
DJ
1654 ac_builddir=.
1655
5213506e
RW
1656case "$ac_dir" in
1657.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658*)
1659 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1660 # A ".." for each directory in $ac_dir_suffix.
1661 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1662 case $ac_top_builddir_sub in
1663 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 esac ;;
1666esac
1667ac_abs_top_builddir=$ac_pwd
1668ac_abs_builddir=$ac_pwd$ac_dir_suffix
1669# for backward compatibility:
1670ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1671
1672case $srcdir in
5213506e 1673 .) # We are building in place.
1c710c3c 1674 ac_srcdir=.
5213506e
RW
1675 ac_top_srcdir=$ac_top_builddir_sub
1676 ac_abs_top_srcdir=$ac_pwd ;;
1677 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1678 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1679 ac_top_srcdir=$srcdir
1680 ac_abs_top_srcdir=$srcdir ;;
1681 *) # Relative name.
1682 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1683 ac_top_srcdir=$ac_top_build_prefix$srcdir
1684 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1685esac
5213506e
RW
1686ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1687
1688 cd "$ac_dir" || { ac_status=$?; continue; }
1689 # Check for guested configure.
1690 if test -f "$ac_srcdir/configure.gnu"; then
1691 echo &&
1692 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1693 elif test -f "$ac_srcdir/configure"; then
1694 echo &&
1695 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1696 else
5213506e
RW
1697 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1698 fi || ac_status=$?
1699 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1700 done
1701fi
1702
5213506e 1703test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1704if $ac_init_version; then
1705 cat <<\_ACEOF
5213506e
RW
1706configure
1707generated by GNU Autoconf 2.64
1c710c3c 1708
5213506e 1709Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1710This configure script is free software; the Free Software Foundation
1711gives unlimited permission to copy, distribute and modify it.
1712_ACEOF
5213506e 1713 exit
0b0dc272 1714fi
5213506e
RW
1715
1716## ------------------------ ##
1717## Autoconf initialization. ##
1718## ------------------------ ##
1719
1720# ac_fn_c_try_compile LINENO
1721# --------------------------
1722# Try to compile conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_compile ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext
1727 if { { ac_try="$ac_compile"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_compile") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest.$ac_objext; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754 return $ac_retval
1755
1756} # ac_fn_c_try_compile
1757
1758# ac_fn_cxx_try_compile LINENO
1759# ----------------------------
1760# Try to compile conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_cxx_try_compile ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 rm -f conftest.$ac_objext
1765 if { { ac_try="$ac_compile"
1766case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769esac
1770eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771$as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_compile") 2>conftest.err
1773 ac_status=$?
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1778 fi
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_cxx_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest.$ac_objext; then :
1784 ac_retval=0
1785else
1786 $as_echo "$as_me: failed program was:" >&5
1787sed 's/^/| /' conftest.$ac_ext >&5
1788
1789 ac_retval=1
1790fi
1791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 return $ac_retval
1793
1794} # ac_fn_cxx_try_compile
1795
0b21f5d3
EB
1796# ac_fn_cxx_try_link LINENO
1797# -------------------------
1798# Try to link conftest.$ac_ext, and return whether this succeeded.
1799ac_fn_cxx_try_link ()
1800{
1801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1802 rm -f conftest.$ac_objext conftest$ac_exeext
1803 if { { ac_try="$ac_link"
1804case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807esac
1808eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809$as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_link") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1816 fi
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } && {
1819 test -z "$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 } && test -s conftest$ac_exeext && {
1822 test "$cross_compiling" = yes ||
1823 $as_test_x conftest$ac_exeext
1824 }; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
1829
1830 ac_retval=1
1831fi
1832 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1833 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1834 # interfere with the next link command; also delete a directory that is
1835 # left behind by Apple's compiler. We do this before executing the actions.
1836 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1838 return $ac_retval
1839
1840} # ac_fn_cxx_try_link
1841
5213506e
RW
1842# ac_fn_c_try_link LINENO
1843# -----------------------
1844# Try to link conftest.$ac_ext, and return whether this succeeded.
1845ac_fn_c_try_link ()
1846{
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext conftest$ac_exeext
1849 if { { ac_try="$ac_link"
1850case "(($ac_try" in
1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852 *) ac_try_echo=$ac_try;;
1853esac
1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855$as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_link") 2>conftest.err
1857 ac_status=$?
1858 if test -s conftest.err; then
1859 grep -v '^ *+' conftest.err >conftest.er1
1860 cat conftest.er1 >&5
1861 mv -f conftest.er1 conftest.err
1862 fi
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_c_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest$ac_exeext && {
1868 test "$cross_compiling" = yes ||
1869 $as_test_x conftest$ac_exeext
1870 }; then :
1871 ac_retval=0
1872else
1873 $as_echo "$as_me: failed program was:" >&5
1874sed 's/^/| /' conftest.$ac_ext >&5
1875
1876 ac_retval=1
1877fi
1878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1880 # interfere with the next link command; also delete a directory that is
1881 # left behind by Apple's compiler. We do this before executing the actions.
1882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884 return $ac_retval
1885
1886} # ac_fn_c_try_link
1887cat >config.log <<_ACEOF
1c710c3c
DJ
1888This file contains any messages produced by compilers while
1889running configure, to aid debugging if configure makes a mistake.
1890
1891It was created by $as_me, which was
5213506e 1892generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1893
1894 $ $0 $@
1895
1896_ACEOF
5213506e 1897exec 5>>config.log
1c710c3c
DJ
1898{
1899cat <<_ASUNAME
1900## --------- ##
1901## Platform. ##
1902## --------- ##
1903
1904hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1905uname -m = `(uname -m) 2>/dev/null || echo unknown`
1906uname -r = `(uname -r) 2>/dev/null || echo unknown`
1907uname -s = `(uname -s) 2>/dev/null || echo unknown`
1908uname -v = `(uname -v) 2>/dev/null || echo unknown`
1909
1910/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1911/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1912
1913/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1914/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1915/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1916/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1917/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1918/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1919/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1920
1921_ASUNAME
1922
1923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924for as_dir in $PATH
1925do
1926 IFS=$as_save_IFS
1927 test -z "$as_dir" && as_dir=.
5213506e
RW
1928 $as_echo "PATH: $as_dir"
1929 done
1930IFS=$as_save_IFS
1c710c3c
DJ
1931
1932} >&5
1933
1934cat >&5 <<_ACEOF
1935
1936
1937## ----------- ##
1938## Core tests. ##
1939## ----------- ##
1940
1941_ACEOF
1942
1943
1944# Keep a trace of the command line.
1945# Strip out --no-create and --no-recursion so they do not pile up.
1946# Strip out --silent because we don't want to record it for future runs.
1947# Also quote any args containing shell meta-characters.
1948# Make two passes to allow for proper duplicate-argument suppression.
1949ac_configure_args=
1950ac_configure_args0=
1951ac_configure_args1=
1c710c3c
DJ
1952ac_must_keep_next=false
1953for ac_pass in 1 2
1954do
1955 for ac_arg
1956 do
1957 case $ac_arg in
1958 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1960 | -silent | --silent | --silen | --sile | --sil)
1961 continue ;;
5213506e
RW
1962 *\'*)
1963 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1964 esac
1965 case $ac_pass in
5213506e 1966 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1967 2)
5213506e 1968 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1969 if test $ac_must_keep_next = true; then
1970 ac_must_keep_next=false # Got value, back to normal.
1971 else
1972 case $ac_arg in
1973 *=* | --config-cache | -C | -disable-* | --disable-* \
1974 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1975 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1976 | -with-* | --with-* | -without-* | --without-* | --x)
1977 case "$ac_configure_args0 " in
1978 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1979 esac
1980 ;;
1981 -* ) ac_must_keep_next=true ;;
1982 esac
1983 fi
5213506e 1984 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1985 ;;
1986 esac
1987 done
1988done
5213506e
RW
1989{ ac_configure_args0=; unset ac_configure_args0;}
1990{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1991
1992# When interrupted or exit'd, cleanup temporary files, and complete
1993# config.log. We remove comments because anyway the quotes in there
1994# would cause problems or look ugly.
5213506e
RW
1995# WARNING: Use '\'' to represent an apostrophe within the trap.
1996# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1997trap 'exit_status=$?
1998 # Save into config.log some information that might help in debugging.
1999 {
2000 echo
2001
2002 cat <<\_ASBOX
2003## ---------------- ##
2004## Cache variables. ##
2005## ---------------- ##
2006_ASBOX
2007 echo
2008 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2009(
2010 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2011 eval ac_val=\$$ac_var
2012 case $ac_val in #(
2013 *${as_nl}*)
2014 case $ac_var in #(
2015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2016$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2017 esac
2018 case $ac_var in #(
2019 _ | IFS | as_nl) ;; #(
2020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2021 *) { eval $ac_var=; unset $ac_var;} ;;
2022 esac ;;
2023 esac
2024 done
1c710c3c 2025 (set) 2>&1 |
5213506e
RW
2026 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2027 *${as_nl}ac_space=\ *)
1c710c3c 2028 sed -n \
5213506e
RW
2029 "s/'\''/'\''\\\\'\'''\''/g;
2030 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2031 ;; #(
1c710c3c 2032 *)
5213506e 2033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2034 ;;
5213506e
RW
2035 esac |
2036 sort
2037)
1c710c3c
DJ
2038 echo
2039
2040 cat <<\_ASBOX
2041## ----------------- ##
2042## Output variables. ##
2043## ----------------- ##
2044_ASBOX
2045 echo
2046 for ac_var in $ac_subst_vars
2047 do
5213506e
RW
2048 eval ac_val=\$$ac_var
2049 case $ac_val in
2050 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2051 esac
2052 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2053 done | sort
2054 echo
2055
2056 if test -n "$ac_subst_files"; then
2057 cat <<\_ASBOX
5213506e
RW
2058## ------------------- ##
2059## File substitutions. ##
2060## ------------------- ##
1c710c3c
DJ
2061_ASBOX
2062 echo
2063 for ac_var in $ac_subst_files
2064 do
5213506e
RW
2065 eval ac_val=\$$ac_var
2066 case $ac_val in
2067 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 esac
2069 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2070 done | sort
2071 echo
2072 fi
2073
2074 if test -s confdefs.h; then
2075 cat <<\_ASBOX
2076## ----------- ##
2077## confdefs.h. ##
2078## ----------- ##
2079_ASBOX
2080 echo
5213506e 2081 cat confdefs.h
1c710c3c
DJ
2082 echo
2083 fi
2084 test "$ac_signal" != 0 &&
5213506e
RW
2085 $as_echo "$as_me: caught signal $ac_signal"
2086 $as_echo "$as_me: exit $exit_status"
1c710c3c 2087 } >&5
5213506e
RW
2088 rm -f core *.core core.conftest.* &&
2089 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2090 exit $exit_status
5213506e 2091' 0
1c710c3c 2092for ac_signal in 1 2 13 15; do
5213506e 2093 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2094done
2095ac_signal=0
2096
2097# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2098rm -f -r conftest* confdefs.h
2099
2100$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2101
2102# Predefined preprocessor variables.
2103
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_NAME "$PACKAGE_NAME"
2106_ACEOF
2107
1c710c3c
DJ
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2110_ACEOF
2111
1c710c3c
DJ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_VERSION "$PACKAGE_VERSION"
2114_ACEOF
0b0dc272 2115
1c710c3c
DJ
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_STRING "$PACKAGE_STRING"
2118_ACEOF
2119
1c710c3c
DJ
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2122_ACEOF
2123
5213506e
RW
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_URL "$PACKAGE_URL"
2126_ACEOF
2127
1c710c3c
DJ
2128
2129# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2130# Prefer an explicitly selected file to automatically selected ones.
2131ac_site_file1=NONE
2132ac_site_file2=NONE
2133if test -n "$CONFIG_SITE"; then
2134 ac_site_file1=$CONFIG_SITE
2135elif test "x$prefix" != xNONE; then
2136 ac_site_file1=$prefix/share/config.site
2137 ac_site_file2=$prefix/etc/config.site
2138else
2139 ac_site_file1=$ac_default_prefix/share/config.site
2140 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2141fi
5213506e
RW
2142for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2143do
2144 test "x$ac_site_file" = xNONE && continue
671aa708 2145 if test -r "$ac_site_file"; then
5213506e
RW
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2147$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2148 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2149 . "$ac_site_file"
2150 fi
2151done
2152
2153if test -r "$cache_file"; then
1c710c3c
DJ
2154 # Some versions of bash will fail to source /dev/null (special
2155 # files actually), so we avoid doing that.
2156 if test -f "$cache_file"; then
5213506e
RW
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2158$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2159 case $cache_file in
5213506e
RW
2160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2161 *) . "./$cache_file";;
1c710c3c
DJ
2162 esac
2163 fi
671aa708 2164else
5213506e
RW
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2166$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2167 >$cache_file
2168fi
2169
2170# Check that the precious variables saved in the cache have kept the same
2171# value.
2172ac_cache_corrupted=false
5213506e 2173for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2174 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2175 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2176 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2177 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2178 case $ac_old_set,$ac_new_set in
2179 set,)
5213506e
RW
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2181$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2182 ac_cache_corrupted=: ;;
2183 ,set)
5213506e
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2186 ac_cache_corrupted=: ;;
2187 ,);;
2188 *)
2189 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2190 # differences in whitespace do not lead to failure.
2191 ac_old_val_w=`echo x $ac_old_val`
2192 ac_new_val_w=`echo x $ac_new_val`
2193 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2195$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2196 ac_cache_corrupted=:
2197 else
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2199$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2200 eval $ac_var=\$ac_old_val
2201 fi
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2203$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2205$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2206 fi;;
2207 esac
2208 # Pass precious variables to config.status.
2209 if test "$ac_new_set" = set; then
2210 case $ac_new_val in
5213506e 2211 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2212 *) ac_arg=$ac_var=$ac_new_val ;;
2213 esac
2214 case " $ac_configure_args " in
2215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2216 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2217 esac
2218 fi
2219done
2220if $ac_cache_corrupted; then
5213506e
RW
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2222$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2224$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2225 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2226fi
5213506e
RW
2227## -------------------- ##
2228## Main body of script. ##
2229## -------------------- ##
671aa708 2230
2aeb72e9
DD
2231ac_ext=c
2232ac_cpp='$CPP $CPPFLAGS'
2233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2235ac_compiler_gnu=$ac_cv_c_compiler_gnu
2236
1c710c3c
DJ
2237
2238
2239
1c710c3c
DJ
2240
2241
0115d4a3 2242
1c710c3c 2243
ad33ff57
RW
2244
2245progname=$0
2246# if PWD already has a value, it is probably wrong.
2247if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2248
2249# Export original configure arguments for use by sub-configures.
2250# Quote arguments with shell meta charatcers.
2251TOPLEVEL_CONFIGURE_ARGUMENTS=
2252set -- "$progname" "$@"
2253for ac_arg
2254do
2255 case "$ac_arg" in
2256 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2257 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2258 # if the argument is of the form -foo=baz, quote the baz part only
2259 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2260 *) ;;
2261 esac
2262 # Add the quoted argument to the list.
2263 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2264done
2265if test "$silent" = yes; then
2266 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2267fi
2268# Remove the initial space we just introduced and, as these will be
2269# expanded by make, quote '$'.
2270TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2271
1c710c3c
DJ
2272
2273# Find the build, host, and target systems.
671aa708 2274ac_aux_dir=
5213506e
RW
2275for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2276 for ac_t in install-sh install.sh shtool; do
2277 if test -f "$ac_dir/$ac_t"; then
2278 ac_aux_dir=$ac_dir
2279 ac_install_sh="$ac_aux_dir/$ac_t -c"
2280 break 2
2281 fi
2282 done
671aa708
NN
2283done
2284if test -z "$ac_aux_dir"; then
5213506e 2285 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2286fi
5213506e
RW
2287
2288# These three variables are undocumented and unsupported,
2289# and are intended to be withdrawn in a future Autoconf release.
2290# They can cause serious problems if a builder's source tree is in a directory
2291# whose full name contains unusual characters.
2292ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2293ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2294ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2295
671aa708 2296
1c710c3c 2297# Make sure we can run config.sub.
5213506e
RW
2298$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2299 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2300
2301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2302$as_echo_n "checking build system type... " >&6; }
2303if test "${ac_cv_build+set}" = set; then :
2304 $as_echo_n "(cached) " >&6
2305else
2306 ac_build_alias=$build_alias
2307test "x$ac_build_alias" = x &&
2308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2309test "x$ac_build_alias" = x &&
2310 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2311ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2312 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2313
2314fi
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2316$as_echo "$ac_cv_build" >&6; }
2317case $ac_cv_build in
2318*-*-*) ;;
2319*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2320esac
1c710c3c 2321build=$ac_cv_build
5213506e
RW
2322ac_save_IFS=$IFS; IFS='-'
2323set x $ac_cv_build
2324shift
2325build_cpu=$1
2326build_vendor=$2
2327shift; shift
2328# Remember, the first character of IFS is used to create $*,
2329# except with old shells:
2330build_os=$*
2331IFS=$ac_save_IFS
2332case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2333
671aa708 2334
1c710c3c
DJ
2335 case ${build_alias} in
2336 "") build_noncanonical=${build} ;;
2337 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2338esac
2339
2340
af71363e 2341
1c710c3c
DJ
2342 case ${host_alias} in
2343 "") host_noncanonical=${build_noncanonical} ;;
2344 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2345esac
2346
af71363e 2347
1c710c3c
DJ
2348
2349 case ${target_alias} in
2350 "") target_noncanonical=${host_noncanonical} ;;
2351 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2352esac
2353
af71363e 2354
1c710c3c
DJ
2355
2356
2357test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2358 test "$program_prefix$program_suffix$program_transform_name" = \
2359 NONENONEs,x,x, &&
1c710c3c 2360 program_transform_name=s,y,y,
af71363e 2361
5213506e
RW
2362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2363$as_echo_n "checking host system type... " >&6; }
2364if test "${ac_cv_host+set}" = set; then :
2365 $as_echo_n "(cached) " >&6
af71363e 2366else
5213506e
RW
2367 if test "x$host_alias" = x; then
2368 ac_cv_host=$ac_cv_build
2369else
2370 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2372fi
1c710c3c 2373
af71363e 2374fi
5213506e
RW
2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2376$as_echo "$ac_cv_host" >&6; }
2377case $ac_cv_host in
2378*-*-*) ;;
2379*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2380esac
1c710c3c 2381host=$ac_cv_host
5213506e
RW
2382ac_save_IFS=$IFS; IFS='-'
2383set x $ac_cv_host
2384shift
2385host_cpu=$1
2386host_vendor=$2
2387shift; shift
2388# Remember, the first character of IFS is used to create $*,
2389# except with old shells:
2390host_os=$*
2391IFS=$ac_save_IFS
2392case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2393
2394
5213506e
RW
2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2396$as_echo_n "checking target system type... " >&6; }
2397if test "${ac_cv_target+set}" = set; then :
2398 $as_echo_n "(cached) " >&6
1c710c3c 2399else
5213506e
RW
2400 if test "x$target_alias" = x; then
2401 ac_cv_target=$ac_cv_host
2402else
2403 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2404 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2405fi
1c710c3c
DJ
2406
2407fi
5213506e
RW
2408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2409$as_echo "$ac_cv_target" >&6; }
2410case $ac_cv_target in
2411*-*-*) ;;
2412*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2413esac
1c710c3c 2414target=$ac_cv_target
5213506e
RW
2415ac_save_IFS=$IFS; IFS='-'
2416set x $ac_cv_target
2417shift
2418target_cpu=$1
2419target_vendor=$2
2420shift; shift
2421# Remember, the first character of IFS is used to create $*,
2422# except with old shells:
2423target_os=$*
2424IFS=$ac_save_IFS
2425case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2426
2427
2428# The aliases save the names the user supplied, while $host etc.
2429# will get canonicalized.
2430test -n "$target_alias" &&
2431 test "$program_prefix$program_suffix$program_transform_name" = \
2432 NONENONEs,x,x, &&
2433 program_prefix=${target_alias}-
5213506e 2434
671aa708 2435test "$program_prefix" != NONE &&
5213506e 2436 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2437# Use a double $ so make ignores it.
2438test "$program_suffix" != NONE &&
5213506e
RW
2439 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2440# Double any \ or $.
1c710c3c 2441# By default was `s,x,x', remove it if useless.
5213506e
RW
2442ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2443program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2444
671aa708
NN
2445
2446
775956d0
NN
2447# Get 'install' or 'install-sh' and its variants.
2448# Find a good install program. We prefer a C program (faster),
2449# so one script is as good as another. But avoid the broken or
2450# incompatible versions:
2451# SysV /etc/install, /usr/sbin/install
2452# SunOS /usr/etc/install
2453# IRIX /sbin/install
2454# AIX /bin/install
1c710c3c 2455# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2456# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2457# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2458# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2459# OS/2's system install, which has a completely different semantic
775956d0 2460# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2461# Reject install programs that cannot install multiple files.
5213506e
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2463$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2464if test -z "$INSTALL"; then
5213506e
RW
2465if test "${ac_cv_path_install+set}" = set; then :
2466 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2467else
2468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469for as_dir in $PATH
2470do
2471 IFS=$as_save_IFS
2472 test -z "$as_dir" && as_dir=.
5213506e
RW
2473 # Account for people who put trailing slashes in PATH elements.
2474case $as_dir/ in #((
2475 ./ | .// | /[cC]/* | \
1c710c3c 2476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2478 /usr/ucb/* ) ;;
2479 *)
2480 # OSF1 and SCO ODT 3.0 have their own names for install.
2481 # Don't use installbsd from OSF since it installs stuff as root
2482 # by default.
2483 for ac_prog in ginstall scoinst install; do
2484 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2485 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2486 if test $ac_prog = install &&
1c710c3c 2487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2488 # AIX install. It has an incompatible calling convention.
2489 :
1c710c3c
DJ
2490 elif test $ac_prog = install &&
2491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2492 # program-specific install script used by HP pwplus--don't use.
2493 :
775956d0 2494 else
38d24731
RW
2495 rm -rf conftest.one conftest.two conftest.dir
2496 echo one > conftest.one
2497 echo two > conftest.two
2498 mkdir conftest.dir
2499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2500 test -s conftest.one && test -s conftest.two &&
2501 test -s conftest.dir/conftest.one &&
2502 test -s conftest.dir/conftest.two
2503 then
2504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2505 break 3
2506 fi
775956d0
NN
2507 fi
2508 fi
2509 done
1c710c3c
DJ
2510 done
2511 ;;
2512esac
5213506e
RW
2513
2514 done
2515IFS=$as_save_IFS
1c710c3c 2516
38d24731 2517rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2518
2519fi
2520 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2521 INSTALL=$ac_cv_path_install
775956d0 2522 else
38d24731
RW
2523 # As a last resort, use the slow shell script. Don't cache a
2524 # value for INSTALL within a source directory, because that will
775956d0 2525 # break other packages using the cache if that directory is
38d24731 2526 # removed, or if the value is a relative name.
1c710c3c 2527 INSTALL=$ac_install_sh
775956d0
NN
2528 fi
2529fi
5213506e
RW
2530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2531$as_echo "$INSTALL" >&6; }
775956d0
NN
2532
2533# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2534# It thinks the first close brace ends the variable substitution.
2535test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2536
1c710c3c 2537test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2538
2539test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2540
5213506e
RW
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2542$as_echo_n "checking whether ln works... " >&6; }
2543if test "${acx_cv_prog_LN+set}" = set; then :
2544 $as_echo_n "(cached) " >&6
ad6717df
PB
2545else
2546 rm -f conftestdata_t
2547echo >conftestdata_f
2548if ln conftestdata_f conftestdata_t 2>/dev/null
2549then
2550 acx_cv_prog_LN=ln
2551else
2552 acx_cv_prog_LN=no
2553fi
2554rm -f conftestdata_f conftestdata_t
2555
2556fi
2557if test $acx_cv_prog_LN = no; then
2558 LN="cp"
5213506e
RW
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2560$as_echo "no, using $LN" >&6; }
ad6717df
PB
2561else
2562 LN="$acx_cv_prog_LN"
5213506e
RW
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564$as_echo "yes" >&6; }
ad6717df
PB
2565fi
2566
5213506e
RW
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2568$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2569LN_S=$as_ln_s
2570if test "$LN_S" = "ln -s"; then
5213506e
RW
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2572$as_echo "yes" >&6; }
fb0103e5 2573else
5213506e
RW
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2575$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2576fi
2577
87264276
PB
2578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2579$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2580if test "${ac_cv_path_SED+set}" = set; then :
2581 $as_echo_n "(cached) " >&6
2582else
2583 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2584 for ac_i in 1 2 3 4 5 6 7; do
2585 ac_script="$ac_script$as_nl$ac_script"
2586 done
2587 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2588 { ac_script=; unset ac_script;}
2589 if test -z "$SED"; then
2590 ac_path_SED_found=false
2591 # Loop through the user's path and test for each of PROGNAME-LIST
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593for as_dir in $PATH
2594do
2595 IFS=$as_save_IFS
2596 test -z "$as_dir" && as_dir=.
2597 for ac_prog in sed gsed; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2600 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2601# Check for GNU ac_path_SED and select it if it is found.
2602 # Check for GNU $ac_path_SED
2603case `"$ac_path_SED" --version 2>&1` in
2604*GNU*)
2605 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2606*)
2607 ac_count=0
2608 $as_echo_n 0123456789 >"conftest.in"
2609 while :
2610 do
2611 cat "conftest.in" "conftest.in" >"conftest.tmp"
2612 mv "conftest.tmp" "conftest.in"
2613 cp "conftest.in" "conftest.nl"
2614 $as_echo '' >> "conftest.nl"
2615 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2617 as_fn_arith $ac_count + 1 && ac_count=$as_val
2618 if test $ac_count -gt ${ac_path_SED_max-0}; then
2619 # Best one so far, save it but keep looking for a better one
2620 ac_cv_path_SED="$ac_path_SED"
2621 ac_path_SED_max=$ac_count
2622 fi
2623 # 10*(2^10) chars as input seems more than enough
2624 test $ac_count -gt 10 && break
2625 done
2626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2627esac
2628
2629 $ac_path_SED_found && break 3
2630 done
2631 done
2632 done
2633IFS=$as_save_IFS
2634 if test -z "$ac_cv_path_SED"; then
2635 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2636 fi
2637else
2638 ac_cv_path_SED=$SED
2639fi
2640
2641fi
2642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2643$as_echo "$ac_cv_path_SED" >&6; }
2644 SED="$ac_cv_path_SED"
2645 rm -f conftest.sed
2646
2647for ac_prog in gawk mawk nawk awk
2648do
2649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2650set dummy $ac_prog; ac_word=$2
2651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652$as_echo_n "checking for $ac_word... " >&6; }
2653if test "${ac_cv_prog_AWK+set}" = set; then :
2654 $as_echo_n "(cached) " >&6
2655else
2656 if test -n "$AWK"; then
2657 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2658else
2659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2660for as_dir in $PATH
2661do
2662 IFS=$as_save_IFS
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_AWK="$ac_prog"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 break 2
2669 fi
2670done
2671 done
2672IFS=$as_save_IFS
2673
2674fi
2675fi
2676AWK=$ac_cv_prog_AWK
2677if test -n "$AWK"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2679$as_echo "$AWK" >&6; }
2680else
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682$as_echo "no" >&6; }
2683fi
2684
2685
2686 test -n "$AWK" && break
2687done
2688
775956d0 2689
ee6a22df
L
2690srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2691
2692# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2693# a relative path.
2694if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2695 INSTALL="${srcpwd}/install-sh -c"
2696fi
2697
671aa708
NN
2698# Set srcdir to "." if that's what it is.
2699# This is important for multilib support.
2700pwd=`${PWDCMD-pwd}`
671aa708
NN
2701if test "${pwd}" = "${srcpwd}" ; then
2702 srcdir=.
79c06341
JL
2703fi
2704
671aa708 2705topsrcdir=$srcpwd
5d4a5ee6 2706
671aa708 2707extra_host_args=
afabd8e6 2708
671aa708
NN
2709### To add a new directory to the tree, first choose whether it is a target
2710### or a host dependent tool. Then put it into the appropriate list
2711### (library or tools, host or target), doing a dependency sort.
79c06341 2712
1c710c3c 2713# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2714# configdirs, or target_configdirs; see the serialization section below.
79c06341 2715
1c710c3c
DJ
2716# Dependency sorting is only needed when *configuration* must be done in
2717# a particular order. In all cases a dependency should be specified in
671aa708 2718# the Makefile, whether or not it's implicitly specified here.
79c06341 2719
671aa708
NN
2720# Double entries in build_configdirs, configdirs, or target_configdirs may
2721# cause circular dependencies and break everything horribly.
79c06341 2722
23f6b2f9
PB
2723# these library is used by various programs built for the build
2724# environment
2725#
929315a9 2726build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2727
2728# these tools are built for the build environment
85bfb75e 2729build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2730
671aa708 2731# these libraries are used by various programs built for the host environment
eae1a5d4 2732#f
4a9bb2aa 2733host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2734
671aa708
NN
2735# these tools are built for the host environment
2736# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2737# know that we are building the simulator.
2738# binutils, gas and ld appear in that order because it makes sense to run
2739# "make check" in that particular order.
38e3d868 2740# If --enable-gold is used, "gold" may replace "ld".
bf1de3f0 2741host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools"
671aa708 2742
671aa708
NN
2743# these libraries are built for the target environment, and are built after
2744# the host libraries and the host tools (which may be a cross compiler)
8499116a 2745# Note that libiberty is not a target library.
291f172e 2746target_libraries="target-libgcc \
eff02e4f 2747 target-libbacktrace \
671aa708
NN
2748 target-libgloss \
2749 target-newlib \
6d3b5aea 2750 target-libgomp \
3038054c 2751 target-libcilkrts \
5f520819 2752 target-liboffloadmic \
48310492 2753 target-libatomic \
0a35513e 2754 target-libitm \
cb543528 2755 target-libstdc++-v3 \
f35db108 2756 target-libsanitizer \
2077db1b 2757 target-libvtv \
5373cd33 2758 target-libmpx \
77008252 2759 target-libssp \
1ec601bf 2760 target-libquadmath \
6de9cd9a 2761 target-libgfortran \
012447ea 2762 target-libffi \
d9cdb878 2763 target-libobjc \
632e2a07
ILT
2764 target-libada \
2765 target-libgo"
671aa708 2766
4dbda6f0
NN
2767# these tools are built using the target libraries, and are intended to
2768# run only in the target environment
671aa708 2769#
4dbda6f0 2770# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2771# list belongs in this list.
671aa708 2772#
85bfb75e 2773target_tools="target-rda"
79c06341 2774
671aa708 2775################################################################################
79c06341 2776
671aa708
NN
2777## All tools belong in one of the four categories, and are assigned above
2778## We assign ${configdirs} this way to remove all embedded newlines. This
2779## is important because configure will choke if they ever get through.
2780## ${configdirs} is directories we build using the host tools.
2781## ${target_configdirs} is directories we build using the target tools.
671aa708 2782configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2783target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2784build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2785
ac9e6043
RW
2786
2787
671aa708 2788################################################################################
79c06341 2789
671aa708 2790srcname="gnu development package"
79c06341 2791
671aa708
NN
2792# This gets set non-empty for some net releases of packages.
2793appdirs=""
79c06341 2794
671aa708
NN
2795# Define is_cross_compiler to save on calls to 'test'.
2796is_cross_compiler=
2797if test x"${host}" = x"${target}" ; then
2798 is_cross_compiler=no
79c06341 2799else
671aa708 2800 is_cross_compiler=yes
1c710c3c 2801fi
79c06341 2802
b4acb5ef 2803# Find the build and target subdir names.
8b87bb96 2804
2e9e6f68
DJ
2805# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2806# have matching libraries, they should use host libraries: Makefile.tpl
2807# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2808# However, they still use the build modules, because the corresponding
2809# host modules (e.g. bison) are only built for the host when bootstrap
2810# finishes. So:
2811# - build_subdir is where we find build modules, and never changes.
2812# - build_libsubdir is where we find build libraries, and can be overridden.
2813
2814# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2815build_subdir="build-${build_noncanonical}"
1c710c3c 2816
5213506e
RW
2817# Check whether --with-build-libsubdir was given.
2818if test "${with_build_libsubdir+set}" = set; then :
2819 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2820else
2821 build_libsubdir="$build_subdir"
5213506e
RW
2822fi
2823
215c351a
PB
2824# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2825if ( test $srcdir = . && test -d gcc ) \
2826 || test -d $srcdir/../host-${host_noncanonical}; then
2827 host_subdir="host-${host_noncanonical}"
2828else
2829 host_subdir=.
2830fi
8b87bb96
NN
2831# No prefix.
2832target_subdir=${target_noncanonical}
1c710c3c 2833
0db770bd
RW
2834# Be sure to cover against remnants of an in-tree build.
2835if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2836 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2837Use a pristine source tree when building in a separate tree" "$LINENO" 5
2838fi
79c06341 2839
671aa708
NN
2840# Skipdirs are removed silently.
2841skipdirs=
2842# Noconfigdirs are removed loudly.
2843noconfigdirs=""
79c06341 2844
671aa708
NN
2845use_gnu_ld=
2846# Make sure we don't let GNU ld be added if we didn't want it.
2847if test x$with_gnu_ld = xno ; then
2848 use_gnu_ld=no
5afab7ad 2849 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2850fi
2851
671aa708
NN
2852use_gnu_as=
2853# Make sure we don't let GNU as be added if we didn't want it.
2854if test x$with_gnu_as = xno ; then
2855 use_gnu_as=no
2856 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2857fi
2858
d7f09764 2859use_included_zlib=
a05c2c75
L
2860
2861# Check whether --with-system-zlib was given.
2862if test "${with_system_zlib+set}" = set; then :
2863 withval=$with_system_zlib;
2864fi
2865
d7f09764
DN
2866# Make sure we don't let ZLIB be added if we didn't want it.
2867if test x$with_system_zlib = xyes ; then
2868 use_included_zlib=no
2869 noconfigdirs="$noconfigdirs zlib"
2870fi
2871
1c710c3c 2872# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2873# it's not even worth trying to configure, much less build, that tool.
79c06341 2874
671aa708
NN
2875case ${with_x} in
2876 yes | "") ;; # the default value for this tree is that X11 is available
2877 no)
b4f96efe 2878 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2879 # We won't be able to build gdbtk without X.
1c710c3c 2880 enable_gdbtk=no
671aa708
NN
2881 ;;
2882 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2883esac
79c06341 2884
1bcce263 2885# Some are only suitable for cross toolchains.
671aa708
NN
2886# Remove these if host=target.
2887cross_only="target-libgloss target-newlib target-opcodes"
2888
2889case $is_cross_compiler in
2890 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2891esac
79c06341 2892
671aa708
NN
2893# If both --with-headers and --with-libs are specified, default to
2894# --without-newlib.
ee6a22df
L
2895if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2896 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2897 if test x"${with_newlib}" = x ; then
2898 with_newlib=no
2899 fi
79c06341
JL
2900fi
2901
671aa708
NN
2902# Recognize --with-newlib/--without-newlib.
2903case ${with_newlib} in
2904 no) skipdirs="${skipdirs} target-newlib" ;;
2905 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2906esac
79c06341 2907
85c64bbe
BS
2908# Check whether --enable-as-accelerator-for was given.
2909if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2910 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2911fi
2912
2913
2914# Check whether --enable-offload-targets was given.
2915if test "${enable_offload_targets+set}" = set; then :
2916 enableval=$enable_offload_targets;
2917 if test x"$enable_offload_targets" = x; then
2918 as_fn_error "no offload targets specified" "$LINENO" 5
2919 fi
2920
2921else
2922 enable_offload_targets=
2923fi
2924
2925
21539e2e
MK
2926# Handle --enable-gold, --enable-ld.
2927# --disable-gold [--enable-ld]
2928# Build only ld. Default option.
9580395f
L
2929# --enable-gold [--enable-ld]
2930# Build both gold and ld. Install gold as "ld.gold", install ld
2931# as "ld.bfd" and "ld".
2932# --enable-gold=default [--enable-ld]
21539e2e
MK
2933# Build both gold and ld. Install gold as "ld.gold" and "ld",
2934# install ld as "ld.bfd".
2935# --enable-gold[=default] --disable-ld
2936# Build only gold, which is then installed as both "ld.gold" and "ld".
2937# --enable-gold --enable-ld=default
9580395f
L
2938# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2939# and ld.bfd).
21539e2e
MK
2940# In other words, ld is default
2941# --enable-gold=default --enable-ld=default
2942# Error.
2943
2944default_ld=
5213506e
RW
2945# Check whether --enable-gold was given.
2946if test "${enable_gold+set}" = set; then :
2947 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2948else
2949 ENABLE_GOLD=no
5213506e
RW
2950fi
2951
21539e2e
MK
2952case "${ENABLE_GOLD}" in
2953 yes|default)
38e3d868
RM
2954 # Check for ELF target.
2955 is_elf=no
2956 case "${target}" in
2957 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2958 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2959 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2960 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2961 case "${target}" in
2962 *-*-linux*aout* | *-*-linux*oldld*)
2963 ;;
2964 *)
2965 is_elf=yes
2966 ;;
2967 esac
2968 esac
2969
2970 if test "$is_elf" = "yes"; then
2971 # Check for target supported by gold.
5afab7ad 2972 case "${target}" in
7705dfd1 2973 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 2974 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
2975 configdirs="$configdirs gold"
2976 if test x${ENABLE_GOLD} = xdefault; then
2977 default_ld=gold
2978 fi
38e3d868 2979 ENABLE_GOLD=yes
5afab7ad
ILT
2980 ;;
2981 esac
38e3d868
RM
2982 fi
2983 ;;
2984 no)
2985 ;;
2986 *)
2987 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2988 ;;
21539e2e
MK
2989esac
2990
2991# Check whether --enable-ld was given.
2992if test "${enable_ld+set}" = set; then :
2993 enableval=$enable_ld; ENABLE_LD=$enableval
2994else
2995 ENABLE_LD=yes
2996fi
2997
2998
2999case "${ENABLE_LD}" in
3000 default)
9580395f 3001 if test x${default_ld} != x; then
21539e2e
MK
3002 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3003 fi
3004 ;;
3005 yes)
3006 ;;
3007 no)
3008 if test x${ENABLE_GOLD} != xyes; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3010$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3011 fi
3012 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3013 ;;
3014 *)
3015 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3016 ;;
3017esac
5afab7ad 3018
78edb32f
L
3019# PR gas/19109
3020# Decide the default method for compressing debug sections.
3021# Provide a configure time option to override our default.
3022# Check whether --enable-compressed_debug_sections was given.
3023if test "${enable_compressed_debug_sections+set}" = set; then :
3024 enableval=$enable_compressed_debug_sections;
3025 if test x"$enable_compressed_debug_sections" = xyes; then
3026 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3027 fi
3028
3029else
3030 enable_compressed_debug_sections=
3031fi
3032
3033
671aa708 3034# Configure extra directories which are host specific
79c06341 3035
671aa708
NN
3036case "${host}" in
3037 *-cygwin*)
3038 configdirs="$configdirs libtermcap" ;;
3039esac
79c06341 3040
4fab7234
HPN
3041# A target can indicate whether a language isn't supported for some reason.
3042# Only spaces may be used in this macro; not newlines or tabs.
3043unsupported_languages=
3044
1c710c3c 3045# Remove more programs from consideration, based on the host or
671aa708
NN
3046# target this usually means that a port of the program doesn't
3047# exist yet.
ec8d6ddc 3048
671aa708 3049case "${host}" in
111eeb6e 3050 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3051 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3052 ;;
671aa708 3053esac
ec8d6ddc 3054
6de9cd9a 3055
87e6d9dc
TB
3056# Check whether --enable-libquadmath was given.
3057if test "${enable_libquadmath+set}" = set; then :
3058 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3059else
3060 ENABLE_LIBQUADMATH=yes
3061fi
3062
3063if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3064 noconfigdirs="$noconfigdirs target-libquadmath"
3065fi
3066
3067
3068# Check whether --enable-libquadmath-support was given.
3069if test "${enable_libquadmath_support+set}" = set; then :
3070 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3071else
3072 ENABLE_LIBQUADMATH_SUPPORT=yes
3073fi
3074
3075enable_libquadmath_support=
3076if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3077 enable_libquadmath_support=no
3078fi
3079
3080
5213506e
RW
3081# Check whether --enable-libada was given.
3082if test "${enable_libada+set}" = set; then :
3083 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3084else
3085 ENABLE_LIBADA=yes
5213506e
RW
3086fi
3087
d9cdb878 3088if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3089 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3090fi
3091
5213506e
RW
3092# Check whether --enable-libssp was given.
3093if test "${enable_libssp+set}" = set; then :
3094 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3095else
3096 ENABLE_LIBSSP=yes
5213506e
RW
3097fi
3098
ef0087a7 3099
1873ec0c
L
3100# Check whether --enable-libstdcxx was given.
3101if test "${enable_libstdcxx+set}" = set; then :
3102 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3103else
3104 ENABLE_LIBSTDCXX=default
3105fi
3106
3107if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3108 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3109fi
3110
5f520819
KY
3111# If this is accelerator compiler and its target is intelmic we enable
3112# target liboffloadmic by default. If this is compiler with offloading
3113# for intelmic we enable host liboffloadmic by default. Otherwise
3114# liboffloadmic is disabled by default.
3115# Check whether --enable-liboffloadmic was given.
3116if test "${enable_liboffloadmic+set}" = set; then :
3117 enableval=$enable_liboffloadmic; case "$enableval" in
3118 no | host | target)
3119 enable_liboffloadmic=$enableval ;;
3120 *)
3121 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3122esac
3123else
4b4f2e35 3124 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3125 case "${target}" in
3126 *-intelmic-* | *-intelmicemul-*)
3127 enable_liboffloadmic=target
3128 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3129 ;;
3130 *)
3131 enable_liboffloadmic=no
3132 ;;
3133 esac
3134else
3135 case "${enable_offload_targets}" in
3136 *-intelmic-* | *-intelmicemul-*)
3137 enable_liboffloadmic=host
3138 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3139 ;;
3140 *)
3141 enable_liboffloadmic=no
3142 ;;
3143 esac
3144fi
3145fi
3146
3147
3148
44a7d18d 3149# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3150if test x$enable_libgomp = x ; then
953ff289 3151 case "${target}" in
416ac4d4 3152 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3153 ;;
8c6d158a 3154 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3155 ;;
b24513a1 3156 *-*-solaris2* | *-*-hpux11*)
953ff289 3157 ;;
cac90078 3158 *-*-darwin* | *-*-aix*)
953ff289 3159 ;;
44a7d18d
TS
3160 nvptx*-*-*)
3161 ;;
953ff289
DN
3162 *)
3163 noconfigdirs="$noconfigdirs target-libgomp"
3164 ;;
3165 esac
27079765 3166fi
953ff289 3167
48310492
RH
3168# Disable libatomic on unsupported systems.
3169if test -d ${srcdir}/libatomic; then
3170 if test x$enable_libatomic = x; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3172$as_echo_n "checking for libatomic support... " >&6; }
3173 if (srcdir=${srcdir}/libatomic; \
3174 . ${srcdir}/configure.tgt; \
3175 test -n "$UNSUPPORTED")
3176 then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178$as_echo "no" >&6; }
3179 noconfigdirs="$noconfigdirs target-libatomic"
3180 else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3182$as_echo "yes" >&6; }
3183 fi
3184 fi
3185fi
3186
3038054c
BI
3187# Disable libcilkrts on unsupported systems.
3188if test -d ${srcdir}/libcilkrts; then
3189 if test x$enable_libcilkrts = x; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3191$as_echo_n "checking for libcilkrts support... " >&6; }
3192 if (srcdir=${srcdir}/libcilkrts; \
3193 . ${srcdir}/configure.tgt; \
3194 test -n "$UNSUPPORTED")
3195 then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198 noconfigdirs="$noconfigdirs target-libcilkrts"
3199 else
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3201$as_echo "yes" >&6; }
3202 fi
3203 fi
3204fi
3205
5f520819
KY
3206# Disable liboffloadmic on unsupported systems.
3207if test -d ${srcdir}/liboffloadmic; then
3208 if test x$enable_liboffloadmic != xno; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3210$as_echo_n "checking for liboffloadmic support... " >&6; }
3211 if (srcdir=${srcdir}/liboffloadmic; \
3212 . ${srcdir}/configure.tgt; \
3213 test -n "$UNSUPPORTED")
3214 then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217 noconfigdirs="$noconfigdirs target-liboffloadmic"
3218 else
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220$as_echo "yes" >&6; }
3221 fi
3222 fi
3223fi
3224
e948157d
RH
3225# Disable libitm on unsupported systems.
3226if test -d ${srcdir}/libitm; then
3227 if test x$enable_libitm = x; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3229$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3230 if (srcdir=${srcdir}/libitm; \
3231 . ${srcdir}/configure.tgt; \
3232 test -n "$UNSUPPORTED")
3233 then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3235$as_echo "no" >&6; }
e948157d
RH
3236 noconfigdirs="$noconfigdirs target-libitm"
3237 else
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3239$as_echo "yes" >&6; }
e948157d
RH
3240 fi
3241 fi
0a35513e
AH
3242fi
3243
93bf5390
RH
3244# Disable libsanitizer on unsupported systems.
3245if test -d ${srcdir}/libsanitizer; then
3246 if test x$enable_libsanitizer = x; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3248$as_echo_n "checking for libsanitizer support... " >&6; }
3249 if (srcdir=${srcdir}/libsanitizer; \
3250 . ${srcdir}/configure.tgt; \
3251 test -n "$UNSUPPORTED")
3252 then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255 noconfigdirs="$noconfigdirs target-libsanitizer"
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3258$as_echo "yes" >&6; }
3259 fi
3260 fi
3261fi
3262
2077db1b
CT
3263# Disable libvtv on unsupported systems.
3264if test -d ${srcdir}/libvtv; then
3265 if test x$enable_libvtv = x; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3267$as_echo_n "checking for libvtv support... " >&6; }
3268 if (srcdir=${srcdir}/libvtv; \
3269 . ${srcdir}/configure.tgt; \
1e74b850 3270 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3271 then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273$as_echo "no" >&6; }
3274 noconfigdirs="$noconfigdirs target-libvtv"
3275 else
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3277$as_echo "yes" >&6; }
3278 fi
3279 fi
3280fi
3281
5373cd33
IE
3282
3283# Enable libmpx on supported systems by request.
3284if test -d ${srcdir}/libmpx; then
54985c70 3285 if test x$enable_libmpx = x; then
5373cd33
IE
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3287$as_echo_n "checking for libmpx support... " >&6; }
3288 if (srcdir=${srcdir}/libmpx; \
3289 . ${srcdir}/configure.tgt; \
3290 test "$LIBMPX_SUPPORTED" != "yes")
3291 then
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293$as_echo "no" >&6; }
3294 noconfigdirs="$noconfigdirs target-libmpx"
3295 else
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297$as_echo "yes" >&6; }
3298 fi
5373cd33
IE
3299 fi
3300fi
3301
3302
3303
d91491e5
SE
3304# Disable libquadmath for some systems.
3305case "${target}" in
e7fae550
DE
3306 avr-*-*)
3307 noconfigdirs="$noconfigdirs target-libquadmath"
3308 ;;
d91491e5
SE
3309 # libquadmath is unused on AIX and libquadmath build process use of
3310 # LD_LIBRARY_PATH can break AIX bootstrap.
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 noconfigdirs="$noconfigdirs target-libquadmath"
3313 ;;
3314esac
3315
1e9e0e23
JM
3316# Disable libssp for some systems.
3317case "${target}" in
3318 avr-*-*)
b318fb4b 3319 # No hosted I/O support.
1e9e0e23
JM
3320 noconfigdirs="$noconfigdirs target-libssp"
3321 ;;
3322 powerpc-*-aix* | rs6000-*-aix*)
3323 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3324 ;;
3325 rl78-*-*)
7cb62ef1
EB
3326 # libssp uses a misaligned load to trigger a fault, but the RL78
3327 # doesn't fault for those - instead, it gives a build-time error
3328 # for explicit misaligned loads.
85b8555e 3329 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3330 ;;
0969ec7d
EB
3331 visium-*-*)
3332 # No hosted I/O support.
3333 noconfigdirs="$noconfigdirs target-libssp"
3334 ;;
1e9e0e23
JM
3335esac
3336
1e9e0e23 3337# Disable libstdc++-v3 for some systems.
1873ec0c
L
3338# Allow user to override this if they pass --enable-libstdc++-v3
3339if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3340 case "${target}" in
3341 *-*-vxworks*)
3342 # VxWorks uses the Dinkumware C++ library.
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3344 ;;
3345 arm*-wince-pe*)
3346 # the C++ libraries don't build on top of CE's C libraries
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3348 ;;
3349 avr-*-*)
3350 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3351 ;;
fef939d6
JB
3352 ft32-*-*)
3353 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3354 ;;
1873ec0c
L
3355 esac
3356fi
1e9e0e23
JM
3357
3358# Disable Fortran for some systems.
3359case "${target}" in
3360 mmix-*-*)
3361 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3362 unsupported_languages="$unsupported_languages fortran"
3363 ;;
3364esac
3365
012447ea
JJ
3366# Disable libffi for some systems.
3367case "${target}" in
3368 powerpc-*-darwin*)
3369 ;;
3370 i[3456789]86-*-darwin*)
3371 ;;
3372 x86_64-*-darwin[912]*)
3373 ;;
3374 *-*-darwin*)
3375 noconfigdirs="$noconfigdirs target-libffi"
3376 ;;
3377 *-*-netware*)
3378 noconfigdirs="$noconfigdirs target-libffi"
3379 ;;
3380 *-*-phoenix*)
3381 noconfigdirs="$noconfigdirs target-libffi"
3382 ;;
3383 *-*-rtems*)
3384 noconfigdirs="$noconfigdirs target-libffi"
3385 ;;
3386 *-*-tpf*)
3387 noconfigdirs="$noconfigdirs target-libffi"
3388 ;;
3389 *-*-uclinux*)
3390 noconfigdirs="$noconfigdirs target-libffi"
3391 ;;
3392 *-*-vxworks*)
3393 noconfigdirs="$noconfigdirs target-libffi"
3394 ;;
b20e7532
AT
3395 aarch64*-*-freebsd*)
3396 noconfigdirs="$noconfigdirs target-libffi"
3397 ;;
012447ea
JJ
3398 alpha*-*-*vms*)
3399 noconfigdirs="$noconfigdirs target-libffi"
3400 ;;
3401 arm*-*-freebsd*)
3402 noconfigdirs="$noconfigdirs target-libffi"
3403 ;;
3404 arm-wince-pe)
3405 noconfigdirs="$noconfigdirs target-libffi"
3406 ;;
3407 arm*-*-symbianelf*)
3408 noconfigdirs="$noconfigdirs target-libffi"
3409 ;;
3410 cris-*-* | crisv32-*-*)
3411 case "${target}" in
3412 *-*-linux*)
3413 ;;
3414 *) # See PR46792 regarding target-libffi.
3415 noconfigdirs="$noconfigdirs target-libffi";;
3416 esac
3417 ;;
3418 hppa*64*-*-hpux*)
3419 noconfigdirs="$noconfigdirs target-libffi"
3420 ;;
3421 hppa*-hp-hpux11*)
3422 ;;
3423 hppa*-*-hpux*)
3424 noconfigdirs="$noconfigdirs target-libffi"
3425 ;;
3426 ia64*-*-*vms*)
3427 noconfigdirs="$noconfigdirs target-libffi"
3428 ;;
3429 i[3456789]86-w64-mingw*)
3430 noconfigdirs="$noconfigdirs target-libffi"
3431 ;;
3432 i[3456789]86-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libffi"
3434 ;;
3435 x86_64-*-mingw*)
3436 noconfigdirs="$noconfigdirs target-libffi"
3437 ;;
3438 mmix-*-*)
3439 noconfigdirs="$noconfigdirs target-libffi"
3440 ;;
3441 powerpc-*-aix*)
3442 # copied from rs6000-*-* entry
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 rs6000-*-aix*)
3446 noconfigdirs="$noconfigdirs target-libffi"
3447 ;;
3448 ft32-*-*)
3449 noconfigdirs="$noconfigdirs target-libffi"
3450 ;;
3451 *-*-lynxos*)
3452 noconfigdirs="$noconfigdirs target-libffi"
3453 ;;
3454esac
3455
3456# Disable the go frontend on systems where it is known to not work. Please keep
3457# this in sync with contrib/config-list.mk.
3458case "${target}" in
3459*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3460 unsupported_languages="$unsupported_languages go"
3461 ;;
3462esac
3463
cdbc9e92
ILT
3464# Disable libgo for some systems where it is known to not work.
3465# For testing, you can easily override this with --enable-libgo.
3466if test x$enable_libgo = x; then
3467 case "${target}" in
3468 *-*-darwin*)
3469 # PR 46986
3470 noconfigdirs="$noconfigdirs target-libgo"
3471 ;;
3472 *-*-cygwin* | *-*-mingw*)
3473 noconfigdirs="$noconfigdirs target-libgo"
3474 ;;
3475 *-*-aix*)
3476 noconfigdirs="$noconfigdirs target-libgo"
3477 ;;
3478 esac
3479fi
3480
c03353e2
RIL
3481# Default libgloss CPU subdirectory.
3482libgloss_dir="$target_cpu"
6de9cd9a 3483
fbcf0dca
JM
3484case "${target}" in
3485 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3486 libgloss_dir=wince
3487 ;;
4dddfc74
YZ
3488 aarch64*-*-* )
3489 libgloss_dir=aarch64
3490 ;;
fbcf0dca
JM
3491 arm*-*-*)
3492 libgloss_dir=arm
3493 ;;
3494 cris-*-* | crisv32-*-*)
3495 libgloss_dir=cris
3496 ;;
3497 hppa*-*-*)
3498 libgloss_dir=pa
3499 ;;
3500 i[3456789]86-*-*)
3501 libgloss_dir=i386
3502 ;;
3503 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3504 libgloss_dir=m68hc11
3505 ;;
3506 m68*-*-* | fido-*-*)
3507 libgloss_dir=m68k
3508 ;;
3509 mips*-*-*)
3510 libgloss_dir=mips
3511 ;;
3512 powerpc*-*-*)
3513 libgloss_dir=rs6000
3514 ;;
3515 sparc*-*-*)
3516 libgloss_dir=sparc
3517 ;;
3518esac
3519
6a789d5e 3520# Disable newlib and libgloss for various target OSes.
671aa708 3521case "${target}" in
6a789d5e
JM
3522 alpha*-dec-osf*)
3523 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3524 ;;
3525 i[3456789]86-*-linux*)
3526 # This section makes it possible to build newlib natively on linux.
3527 # If we are using a cross compiler then don't configure newlib.
3528 if test x${is_cross_compiler} != xno ; then
3529 noconfigdirs="$noconfigdirs target-newlib"
3530 fi
3531 noconfigdirs="$noconfigdirs target-libgloss"
3532 # If we are not using a cross compiler, do configure newlib.
3533 # Note however, that newlib will only be configured in this situation
3534 # if the --with-newlib option has been given, because otherwise
3535 # 'target-newlib' will appear in skipdirs.
3536 ;;
3537 i[3456789]86-*-rdos*)
3538 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3539 ;;
3540 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3542 ;;
3543 sparc-*-sunos4*)
3544 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3545 ;;
3546 *-*-aix*)
3547 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3548 ;;
3549 *-*-beos*)
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
671aa708 3552 *-*-chorusos)
0036370f 3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3554 ;;
6a789d5e
JM
3555 *-*-dragonfly*)
3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3557 ;;
3558 *-*-freebsd*)
3559 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3560 ;;
3561 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3562 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3563 ;;
3564 *-*-lynxos*)
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 *-*-mingw*)
3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3569 ;;
3570 *-*-netbsd*)
3571 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3572 ;;
3573 *-*-netware*)
3574 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3575 ;;
3576 *-*-tpf*)
3577 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3578 ;;
3579 *-*-uclinux*)
3580 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3581 ;;
3582 *-*-vxworks*)
3583 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3584 ;;
3585esac
3586
3587case "${target}" in
3588 *-*-chorusos)
3589 ;;
3be96231
TG
3590 aarch64-*-darwin*)
3591 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3592 noconfigdirs="$noconfigdirs sim target-rda"
3593 ;;
3594 arm-*-darwin*)
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3597 ;;
75eeae1a 3598 powerpc-*-darwin*)
e1514c3f 3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3600 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3601 ;;
354ebf88
RW
3602 i[3456789]86-*-darwin*)
3603 noconfigdirs="$noconfigdirs ld gprof"
3604 noconfigdirs="$noconfigdirs sim target-rda"
3605 ;;
3606 x86_64-*-darwin[912]*)
0db3a858
TG
3607 noconfigdirs="$noconfigdirs ld gas gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
3609 ;;
42c1cd8a
AT
3610 *-*-darwin*)
3611 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3612 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3613 ;;
8c6d158a 3614 *-*-dragonfly*)
8c6d158a 3615 ;;
c3f84f61 3616 *-*-freebsd*)
6de9cd9a
DN
3617 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3618 && test -f /usr/local/include/gmp.h; then
3619 with_gmp=/usr/local
3620 fi
6de9cd9a 3621 ;;
ef4e7569
US
3622 *-*-kaos*)
3623 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3624 noconfigdirs="$noconfigdirs target-libgloss"
3625 ;;
671aa708 3626 *-*-netbsd*)
671aa708 3627 ;;
61fec9ff 3628 *-*-netware*)
671aa708 3629 ;;
fd6487af
JS
3630 *-*-phoenix*)
3631 noconfigdirs="$noconfigdirs target-libgloss"
3632 ;;
671aa708 3633 *-*-rtems*)
2909494b 3634 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3635 # this is not caught below because this stanza matches earlier
3636 case $target in
3637 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3638 esac
671aa708 3639 ;;
a8ba31f2
EC
3640 # The tpf target doesn't support gdb yet.
3641 *-*-tpf*)
6a789d5e 3642 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3643 ;;
5785c0ed 3644 *-*-uclinux*)
6a789d5e 3645 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3646 ;;
671aa708 3647 *-*-vxworks*)
671aa708
NN
3648 ;;
3649 alpha*-dec-osf*)
3650 # ld works, but does not support shared libraries.
671aa708 3651 # gas doesn't generate exception information.
6a789d5e 3652 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3653 ;;
3654 alpha*-*-*vms*)
2909494b 3655 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3656 ;;
671aa708
NN
3657 alpha*-*-*)
3658 # newlib is not 64 bit ready
2909494b 3659 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3660 ;;
671aa708 3661 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3662 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3663 ;;
2fd88f4f
AK
3664 arc*-*-*)
3665 noconfigdirs="$noconfigdirs sim"
3666 ;;
671aa708 3667 arm-*-pe*)
2909494b 3668 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3669 ;;
671aa708 3670 arm-*-riscix*)
0036370f 3671 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3672 ;;
b588ae30
GJL
3673 avr-*-*)
3674 if test x${with_avrlibc} != xno; then
3675 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3676 fi
3677 ;;
671aa708 3678 c4x-*-* | tic4x-*-*)
0036370f 3679 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3680 ;;
0036370f
JM
3681 tic54x-*-*)
3682 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3683 ;;
671aa708 3684 d10v-*-*)
0036370f 3685 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3686 ;;
3687 d30v-*-*)
0036370f 3688 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3689 ;;
3690 fr30-*-elf*)
2909494b 3691 noconfigdirs="$noconfigdirs gdb"
671aa708 3692 ;;
a05c2c75
L
3693 ft32-*-*)
3694 noconfigdirs="$noconfigdirs target-rda gprof"
3695 ;;
55f2d967 3696 moxie-*-*)
a05c2c75 3697 noconfigdirs="$noconfigdirs"
55f2d967 3698 ;;
671aa708 3699 h8300*-*-*)
2909494b 3700 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3701 ;;
3702 h8500-*-*)
0036370f 3703 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3704 ;;
ee6a22df 3705 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3706 ;;
a05c2c75
L
3707 hppa*64*-*-hpux*)
3708 noconfigdirs="$noconfigdirs gdb"
3709 ;;
3710 hppa*-*-hpux11*)
3711 noconfigdirs="$noconfigdirs gdb ld"
3712 ;;
4569f85e 3713 hppa*64*-*-linux*)
671aa708 3714 ;;
56f8587a 3715 hppa*-*-linux*)
3e732ba0 3716 ;;
671aa708 3717 hppa*-*-*elf* | \
671aa708
NN
3718 hppa*-*-lites* | \
3719 hppa*-*-openbsd* | \
3720 hppa*64*-*-*)
671aa708 3721 ;;
c03353e2 3722 hppa*-*-pro*)
c03353e2 3723 ;;
671aa708 3724 hppa*-*-*)
2909494b 3725 noconfigdirs="$noconfigdirs ld"
671aa708 3726 ;;
fb87ad5d 3727 i960-*-*)
0036370f 3728 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3729 ;;
671aa708
NN
3730 ia64*-*-elf*)
3731 # No gdb support yet.
1bcce263 3732 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3733 ;;
3734 ia64*-**-hpux*)
5a2931d1 3735 # No ld support yet.
a05c2c75 3736 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3737 ;;
52535a64 3738 ia64*-*-*vms*)
091fe9ca
TG
3739 # No ld support yet.
3740 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3741 ;;
ef4c4300 3742 i[3456789]86-w64-mingw*)
ef4c4300
KT
3743 ;;
3744 i[3456789]86-*-mingw*)
b91f0a41 3745 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3746 ;;
671aa708
NN
3747 *-*-cygwin*)
3748 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3749 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3750 # always build newlib if winsup directory is present.
b91f0a41 3751 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3752 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3753 elif test -d "$srcdir/newlib"; then
b91f0a41 3754 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3755 fi
1c710c3c 3756 ;;
f2a0e225 3757 i[3456789]86-*-pe)
ebb9f8b0 3758 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3759 ;;
f2a0e225 3760 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3761 # The linker does not yet know about weak symbols in COFF,
3762 # and is not configured to handle mixed ELF and COFF.
0036370f 3763 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3764 ;;
f2a0e225 3765 i[3456789]86-*-sco*)
0036370f 3766 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3767 ;;
fbdd5d87 3768 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3769 noconfigdirs="$noconfigdirs target-libgloss"
3770 ;;
f2a0e225 3771 i[3456789]86-*-sysv4*)
0036370f 3772 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3773 ;;
f2a0e225 3774 i[3456789]86-*-beos*)
6a789d5e 3775 noconfigdirs="$noconfigdirs gdb"
3aa83176 3776 ;;
d1f8db0c 3777 i[3456789]86-*-rdos*)
6a789d5e 3778 noconfigdirs="$noconfigdirs gdb"
c03353e2 3779 ;;
671aa708 3780 mmix-*-*)
2909494b 3781 noconfigdirs="$noconfigdirs gdb"
671aa708 3782 ;;
ab34901f 3783 mt-*-*)
79dd769c
AH
3784 noconfigdirs="$noconfigdirs sim"
3785 ;;
671aa708
NN
3786 powerpc-*-aix*)
3787 # copied from rs6000-*-* entry
6a789d5e 3788 noconfigdirs="$noconfigdirs gprof"
671aa708 3789 ;;
4569f85e 3790 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3791 target_configdirs="$target_configdirs target-winsup"
0036370f 3792 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3793 # always build newlib.
3794 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3795 ;;
3796 # This is temporary until we can link against shared libraries
3797 powerpcle-*-solaris*)
0036370f 3798 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3799 ;;
3800 powerpc-*-beos*)
6a789d5e 3801 noconfigdirs="$noconfigdirs gdb"
671aa708 3802 ;;
671aa708 3803 rs6000-*-lynxos*)
6a789d5e 3804 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3805 ;;
3806 rs6000-*-aix*)
6a789d5e 3807 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3808 ;;
3809 rs6000-*-*)
2909494b 3810 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3811 ;;
3812 m68k-apollo-*)
0036370f 3813 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3814 ;;
ca9fe997 3815 microblaze*)
2909494b 3816 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3817 ;;
d896cc4d 3818 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3819 if test x$with_newlib = xyes; then
3820 noconfigdirs="$noconfigdirs gprof"
3821 fi
d9dced13 3822 ;;
671aa708 3823 mips*-*-irix5*)
0036370f 3824 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3825 ;;
3826 mips*-*-irix6*)
2909494b 3827 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3828 ;;
671aa708 3829 mips*-*-bsd*)
bc98bcc4 3830 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3831 ;;
671aa708 3832 mips*-*-linux*)
671aa708 3833 ;;
bc98bcc4
JBG
3834 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3835 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3836 noconfigdirs="$noconfigdirs ld gas gprof"
3837 ;;
671aa708 3838 mips*-*-*)
2909494b 3839 noconfigdirs="$noconfigdirs gprof"
671aa708 3840 ;;
738f2522 3841 nvptx*-*-*)
738f2522
BS
3842 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3843 ;;
d896cc4d
JBG
3844 or1k*-*-*)
3845 noconfigdirs="$noconfigdirs gdb"
3846 ;;
bc6d9014 3847 sh-*-*)
ea2002ba
CB
3848 case "${target}" in
3849 sh*-*-elf)
2909494b 3850 ;;
ea2002ba 3851 *)
2909494b 3852 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3853 esac
671aa708 3854 ;;
671aa708 3855 sparc-*-sunos4*)
6a789d5e 3856 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3857 use_gnu_ld=no
3858 fi
3859 ;;
b42f0d7e 3860 tic6x-*-*)
0d557ff8 3861 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3862 ;;
341c653c 3863 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3864 noconfigdirs="$noconfigdirs sim"
3865 ;;
671aa708 3866 v810-*-*)
0036370f 3867 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3868 ;;
3869 vax-*-*)
2909494b 3870 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3871 ;;
671aa708 3872esac
79c06341 3873
671aa708
NN
3874# If we aren't building newlib, then don't build libgloss, since libgloss
3875# depends upon some newlib header files.
3876case "${noconfigdirs}" in
3877 *target-libgloss*) ;;
3878 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3879esac
3880
671aa708 3881# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3882host_makefile_frag=/dev/null
3883if test -d ${srcdir}/config ; then
3884case "${host}" in
f2a0e225 3885 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3886 host_makefile_frag="config/mh-djgpp"
3887 ;;
3888 *-cygwin*)
2a79c47f 3889
5213506e
RW
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3891$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3892echo a >cygwin-cat-check
e25a8c82 3893if test `cat cygwin-cat-check` = a ; then
2a79c47f 3894 rm cygwin-cat-check
5213506e
RW
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3896$as_echo "yes" >&6; }
2a79c47f
NC
3897else
3898 rm cygwin-cat-check
5213506e
RW
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
3901 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3902 Please either mount the build directory in binary mode or run the following
3903 commands before running any configure script:
3904set -o igncr
3905export SHELLOPTS
5213506e 3906 " "$LINENO" 5
2a79c47f
NC
3907fi
3908
671aa708
NN
3909 host_makefile_frag="config/mh-cygwin"
3910 ;;
c53a18d3 3911 *-mingw*)
1f5a6b84 3912 host_makefile_frag="config/mh-mingw"
95af8923 3913 ;;
cabb9d59 3914 alpha*-linux*)
13be44ed
UB
3915 host_makefile_frag="config/mh-alpha-linux"
3916 ;;
efd41714 3917 hppa*-hp-hpux10*)
efd41714 3918 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3919 ;;
111eeb6e 3920 hppa*-hp-hpux*)
efd41714
PB
3921 host_makefile_frag="config/mh-pa"
3922 ;;
3923 hppa*-*)
3924 host_makefile_frag="config/mh-pa"
3925 ;;
d8ed14ce
IS
3926 *-*-darwin*)
3927 host_makefile_frag="config/mh-darwin"
be8fff81 3928 ;;
d19bca38
PB
3929 powerpc-*-aix*)
3930 host_makefile_frag="config/mh-ppc-aix"
3931 ;;
3932 rs6000-*-aix*)
3933 host_makefile_frag="config/mh-ppc-aix"
3934 ;;
671aa708
NN
3935esac
3936fi
3937
55ffb5ed 3938if test "${build}" != "${host}" ; then
0999159b
PB
3939 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3940 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3941 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 3942 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 3943 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3944 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3945 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3946 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3947 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3948 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3949 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3950 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3951else
3952 AR_FOR_BUILD="\$(AR)"
3953 AS_FOR_BUILD="\$(AS)"
fb0103e5 3954 CC_FOR_BUILD="\$(CC)"
0999159b 3955 CXX_FOR_BUILD="\$(CXX)"
0999159b 3956 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3957 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3958 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3959 LD_FOR_BUILD="\$(LD)"
3960 NM_FOR_BUILD="\$(NM)"
3961 RANLIB_FOR_BUILD="\$(RANLIB)"
3962 WINDRES_FOR_BUILD="\$(WINDRES)"
3963 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3964fi
3965
3966ac_ext=c
1c710c3c
DJ
3967ac_cpp='$CPP $CPPFLAGS'
3968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3970ac_compiler_gnu=$ac_cv_c_compiler_gnu
3971if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3973set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975$as_echo_n "checking for $ac_word... " >&6; }
3976if test "${ac_cv_prog_CC+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3978else
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3981else
3982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983for as_dir in $PATH
3984do
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
5213506e
RW
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3989 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3991 break 2
3992 fi
3993done
5213506e
RW
3994 done
3995IFS=$as_save_IFS
1c710c3c
DJ
3996
3997fi
3998fi
3999CC=$ac_cv_prog_CC
4000if test -n "$CC"; then
5213506e
RW
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002$as_echo "$CC" >&6; }
1c710c3c 4003else
5213506e
RW
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005$as_echo "no" >&6; }
1c710c3c
DJ
4006fi
4007
5213506e 4008
1c710c3c
DJ
4009fi
4010if test -z "$ac_cv_prog_CC"; then
4011 ac_ct_CC=$CC
fb0103e5
RG
4012 # Extract the first word of "gcc", so it can be a program name with args.
4013set dummy gcc; ac_word=$2
5213506e
RW
4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015$as_echo_n "checking for $ac_word... " >&6; }
4016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4017 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4018else
4019 if test -n "$ac_ct_CC"; then
4020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4021else
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025 IFS=$as_save_IFS
4026 test -z "$as_dir" && as_dir=.
5213506e
RW
4027 for ac_exec_ext in '' $ac_executable_extensions; do
4028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4029 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4031 break 2
4032 fi
4033done
5213506e
RW
4034 done
4035IFS=$as_save_IFS
1c710c3c
DJ
4036
4037fi
4038fi
4039ac_ct_CC=$ac_cv_prog_ac_ct_CC
4040if test -n "$ac_ct_CC"; then
5213506e
RW
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4042$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4043else
5213506e
RW
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4045$as_echo "no" >&6; }
1c710c3c
DJ
4046fi
4047
5213506e
RW
4048 if test "x$ac_ct_CC" = x; then
4049 CC=""
4050 else
4051 case $cross_compiling:$ac_tool_warned in
4052yes:)
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4054$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4055ac_tool_warned=yes ;;
4056esac
4057 CC=$ac_ct_CC
4058 fi
1c710c3c
DJ
4059else
4060 CC="$ac_cv_prog_CC"
4061fi
4062
4063if test -z "$CC"; then
5213506e
RW
4064 if test -n "$ac_tool_prefix"; then
4065 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4066set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068$as_echo_n "checking for $ac_word... " >&6; }
4069if test "${ac_cv_prog_CC+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4071else
4072 if test -n "$CC"; then
4073 ac_cv_prog_CC="$CC" # Let the user override the test.
4074else
1c710c3c
DJ
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
5213506e
RW
4080 for ac_exec_ext in '' $ac_executable_extensions; do
4081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4082 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4084 break 2
4085 fi
4086done
5213506e
RW
4087 done
4088IFS=$as_save_IFS
1c710c3c 4089
0b0dc272 4090fi
0b0dc272 4091fi
1c710c3c 4092CC=$ac_cv_prog_CC
af71363e 4093if test -n "$CC"; then
5213506e
RW
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095$as_echo "$CC" >&6; }
2aeb72e9 4096else
5213506e
RW
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098$as_echo "no" >&6; }
2aeb72e9
DD
4099fi
4100
2aeb72e9 4101
5213506e 4102 fi
1c710c3c 4103fi
55ffb5ed
NN
4104if test -z "$CC"; then
4105 # Extract the first word of "cc", so it can be a program name with args.
4106set dummy cc; ac_word=$2
5213506e
RW
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108$as_echo_n "checking for $ac_word... " >&6; }
4109if test "${ac_cv_prog_CC+set}" = set; then :
4110 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4111else
4112 if test -n "$CC"; then
4113 ac_cv_prog_CC="$CC" # Let the user override the test.
4114else
0b0dc272 4115 ac_prog_rejected=no
1c710c3c
DJ
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
5213506e
RW
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4123 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4124 ac_prog_rejected=yes
4125 continue
4126 fi
4127 ac_cv_prog_CC="cc"
5213506e 4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4129 break 2
4130 fi
4131done
5213506e
RW
4132 done
4133IFS=$as_save_IFS
1c710c3c 4134
55ffb5ed
NN
4135if test $ac_prog_rejected = yes; then
4136 # We found a bogon in the path, so make sure we never use it.
4137 set dummy $ac_cv_prog_CC
4138 shift
1c710c3c 4139 if test $# != 0; then
55ffb5ed
NN
4140 # We chose a different compiler from the bogus one.
4141 # However, it has the same basename, so the bogon will be chosen
4142 # first if we set CC to just the basename; use the full file name.
4143 shift
1c710c3c 4144 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4145 fi
4146fi
4147fi
4148fi
1c710c3c 4149CC=$ac_cv_prog_CC
55ffb5ed 4150if test -n "$CC"; then
5213506e
RW
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4152$as_echo "$CC" >&6; }
55ffb5ed 4153else
5213506e
RW
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155$as_echo "no" >&6; }
55ffb5ed
NN
4156fi
4157
5213506e 4158
1c710c3c
DJ
4159fi
4160if test -z "$CC"; then
4161 if test -n "$ac_tool_prefix"; then
5213506e 4162 for ac_prog in cl.exe
1c710c3c
DJ
4163 do
4164 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
4168if test "${ac_cv_prog_CC+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4170else
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4173else
1c710c3c
DJ
4174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175for as_dir in $PATH
4176do
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
5213506e
RW
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4181 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4183 break 2
4184 fi
4185done
5213506e
RW
4186 done
4187IFS=$as_save_IFS
1c710c3c 4188
55ffb5ed
NN
4189fi
4190fi
1c710c3c 4191CC=$ac_cv_prog_CC
55ffb5ed 4192if test -n "$CC"; then
5213506e
RW
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194$as_echo "$CC" >&6; }
a4b9e93e 4195else
5213506e
RW
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197$as_echo "no" >&6; }
fb0103e5 4198fi
af71363e 4199
5213506e 4200
1c710c3c
DJ
4201 test -n "$CC" && break
4202 done
af71363e 4203fi
1c710c3c
DJ
4204if test -z "$CC"; then
4205 ac_ct_CC=$CC
5213506e 4206 for ac_prog in cl.exe
1c710c3c
DJ
4207do
4208 # Extract the first word of "$ac_prog", so it can be a program name with args.
4209set dummy $ac_prog; ac_word=$2
5213506e
RW
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211$as_echo_n "checking for $ac_word... " >&6; }
4212if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
0b0dc272 4214else
1c710c3c
DJ
4215 if test -n "$ac_ct_CC"; then
4216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4217else
1c710c3c
DJ
4218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219for as_dir in $PATH
4220do
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
5213506e
RW
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4225 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4227 break 2
4228 fi
4229done
5213506e
RW
4230 done
4231IFS=$as_save_IFS
1c710c3c 4232
af71363e
AS
4233fi
4234fi
1c710c3c
DJ
4235ac_ct_CC=$ac_cv_prog_ac_ct_CC
4236if test -n "$ac_ct_CC"; then
5213506e
RW
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4238$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4239else
5213506e
RW
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241$as_echo "no" >&6; }
af71363e 4242fi
0b0dc272 4243
5213506e 4244
1c710c3c
DJ
4245 test -n "$ac_ct_CC" && break
4246done
4247
5213506e
RW
4248 if test "x$ac_ct_CC" = x; then
4249 CC=""
4250 else
4251 case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257 CC=$ac_ct_CC
4258 fi
1c710c3c
DJ
4259fi
4260
4261fi
4262
4263
5213506e
RW
4264test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4266as_fn_error "no acceptable C compiler found in \$PATH
4267See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4268
4269# Provide some information about the compiler.
5213506e
RW
4270$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4271set X $ac_compile
4272ac_compiler=$2
4273for ac_option in --version -v -V -qversion; do
4274 { { ac_try="$ac_compiler $ac_option >&5"
4275case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278esac
4279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280$as_echo "$ac_try_echo"; } >&5
4281 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4282 ac_status=$?
5213506e
RW
4283 if test -s conftest.err; then
4284 sed '10a\
4285... rest of stderr output deleted ...
4286 10q' conftest.err >conftest.er1
4287 cat conftest.er1 >&5
4288 rm -f conftest.er1 conftest.err
4289 fi
4290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4291 test $ac_status = 0; }
4292done
1c710c3c 4293
5213506e 4294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4295/* end confdefs.h. */
4296
4297int
4298main ()
4299{
4300
4301 ;
4302 return 0;
4303}
4304_ACEOF
4305ac_clean_files_save=$ac_clean_files
5213506e 4306ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4307# Try to create an executable without -o first, disregard a.out.
4308# It will help us diagnose broken compilers, and finding out an intuition
4309# of exeext.
5213506e
RW
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4311$as_echo_n "checking for C compiler default output file name... " >&6; }
4312ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4313
4314# The possible output files:
4315ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4316
4317ac_rmfiles=
4318for ac_file in $ac_files
4319do
4320 case $ac_file in
4321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4323 esac
4324done
4325rm -f $ac_rmfiles
4326
4327if { { ac_try="$ac_link_default"
4328case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331esac
4332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333$as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_link_default") 2>&5
1c710c3c 4335 ac_status=$?
5213506e
RW
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; then :
4338 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4339# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4340# in a Makefile. We should not override ac_cv_exeext if it was cached,
4341# so that the user can short-circuit this test for compilers unknown to
4342# Autoconf.
4343for ac_file in $ac_files ''
1c710c3c
DJ
4344do
4345 test -f "$ac_file" || continue
4346 case $ac_file in
5213506e 4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4348 ;;
4349 [ab].out )
4350 # We found the default executable, but exeext='' is most
4351 # certainly right.
4352 break;;
4353 *.* )
5213506e
RW
4354 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4355 then :; else
4356 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4357 fi
4358 # We set ac_cv_exeext here because the later test for it is not
4359 # safe: cross compilers may not add the suffix if given an `-o'
4360 # argument, so we may need to know it at that point already.
4361 # Even if this section looks crufty: it has the advantage of
4362 # actually working.
1c710c3c
DJ
4363 break;;
4364 * )
4365 break;;
4366 esac
4367done
5213506e
RW
4368test "$ac_cv_exeext" = no && ac_cv_exeext=
4369
1c710c3c 4370else
5213506e
RW
4371 ac_file=''
4372fi
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4374$as_echo "$ac_file" >&6; }
4375if test -z "$ac_file"; then :
4376 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4377sed 's/^/| /' conftest.$ac_ext >&5
4378
5213506e
RW
4379{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4381{ as_fn_set_status 77
4382as_fn_error "C compiler cannot create executables
4383See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4384fi
1c710c3c 4385ac_exeext=$ac_cv_exeext
1c710c3c 4386
5213506e 4387# Check that the compiler produces executables we can run. If not, either
1c710c3c 4388# the compiler is broken, or we cross compile.
5213506e
RW
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4390$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4391# If not cross compiling, check that we can run a simple program.
4392if test "$cross_compiling" != yes; then
4393 if { ac_try='./$ac_file'
5213506e
RW
4394 { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399$as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
1c710c3c 4401 ac_status=$?
5213506e
RW
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; }; }; then
1c710c3c
DJ
4404 cross_compiling=no
4405 else
4406 if test "$cross_compiling" = maybe; then
4407 cross_compiling=yes
4408 else
5213506e
RW
4409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4411as_fn_error "cannot run C compiled programs.
1c710c3c 4412If you meant to cross compile, use \`--host'.
5213506e 4413See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4414 fi
4415 fi
4416fi
5213506e
RW
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4418$as_echo "yes" >&6; }
1c710c3c 4419
5213506e 4420rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4421ac_clean_files=$ac_clean_files_save
5213506e 4422# Check that the compiler produces executables we can run. If not, either
1c710c3c 4423# the compiler is broken, or we cross compile.
5213506e
RW
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4425$as_echo_n "checking whether we are cross compiling... " >&6; }
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4427$as_echo "$cross_compiling" >&6; }
4428
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4430$as_echo_n "checking for suffix of executables... " >&6; }
4431if { { ac_try="$ac_link"
4432case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437$as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_link") 2>&5
1c710c3c 4439 ac_status=$?
5213506e
RW
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; }; then :
1c710c3c
DJ
4442 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4443# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4444# work properly (i.e., refer to `conftest.exe'), while it won't with
4445# `rm'.
4446for ac_file in conftest.exe conftest conftest.*; do
4447 test -f "$ac_file" || continue
4448 case $ac_file in
5213506e 4449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4450 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4451 break;;
4452 * ) break;;
4453 esac
4454done
af71363e 4455else
5213506e
RW
4456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4458as_fn_error "cannot compute suffix of executables: cannot compile and link
4459See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4460fi
1c710c3c 4461rm -f conftest$ac_cv_exeext
5213506e
RW
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4463$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4464
4465rm -f conftest.$ac_ext
4466EXEEXT=$ac_cv_exeext
4467ac_exeext=$EXEEXT
5213506e
RW
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4469$as_echo_n "checking for suffix of object files... " >&6; }
4470if test "${ac_cv_objext+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
1c710c3c 4472else
5213506e 4473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4474/* end confdefs.h. */
4475
4476int
4477main ()
4478{
4479
4480 ;
4481 return 0;
4482}
4483_ACEOF
4484rm -f conftest.o conftest.obj
5213506e
RW
4485if { { ac_try="$ac_compile"
4486case "(($ac_try" in
4487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4488 *) ac_try_echo=$ac_try;;
4489esac
4490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4491$as_echo "$ac_try_echo"; } >&5
4492 (eval "$ac_compile") 2>&5
1c710c3c 4493 ac_status=$?
5213506e
RW
4494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4495 test $ac_status = 0; }; then :
4496 for ac_file in conftest.o conftest.obj conftest.*; do
4497 test -f "$ac_file" || continue;
1c710c3c 4498 case $ac_file in
5213506e 4499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4501 break;;
4502 esac
4503done
4504else
5213506e 4505 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4506sed 's/^/| /' conftest.$ac_ext >&5
4507
5213506e
RW
4508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4510as_fn_error "cannot compute suffix of object files: cannot compile
4511See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4512fi
1c710c3c
DJ
4513rm -f conftest.$ac_cv_objext conftest.$ac_ext
4514fi
5213506e
RW
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4516$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4517OBJEXT=$ac_cv_objext
4518ac_objext=$OBJEXT
5213506e
RW
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4520$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4521if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
1c710c3c 4523else
5213506e 4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4525/* end confdefs.h. */
4526
4527int
4528main ()
4529{
4530#ifndef __GNUC__
4531 choke me
4532#endif
4533
4534 ;
4535 return 0;
4536}
4537_ACEOF
5213506e 4538if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4539 ac_compiler_gnu=yes
4540else
5213506e 4541 ac_compiler_gnu=no
1c710c3c 4542fi
5213506e 4543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4544ac_cv_c_compiler_gnu=$ac_compiler_gnu
4545
4546fi
5213506e
RW
4547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4548$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4549if test $ac_compiler_gnu = yes; then
4550 GCC=yes
4551else
4552 GCC=
4553fi
1c710c3c
DJ
4554ac_test_CFLAGS=${CFLAGS+set}
4555ac_save_CFLAGS=$CFLAGS
5213506e
RW
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4557$as_echo_n "checking whether $CC accepts -g... " >&6; }
4558if test "${ac_cv_prog_cc_g+set}" = set; then :
4559 $as_echo_n "(cached) " >&6
4560else
4561 ac_save_c_werror_flag=$ac_c_werror_flag
4562 ac_c_werror_flag=yes
4563 ac_cv_prog_cc_g=no
4564 CFLAGS="-g"
4565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4566/* end confdefs.h. */
4567
4568int
4569main ()
4570{
4571
4572 ;
4573 return 0;
4574}
4575_ACEOF
5213506e 4576if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4577 ac_cv_prog_cc_g=yes
4578else
5213506e
RW
4579 CFLAGS=""
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581/* end confdefs.h. */
4582
4583int
4584main ()
4585{
4586
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591if ac_fn_c_try_compile "$LINENO"; then :
4592
4593else
4594 ac_c_werror_flag=$ac_save_c_werror_flag
4595 CFLAGS="-g"
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597/* end confdefs.h. */
af71363e 4598
5213506e
RW
4599int
4600main ()
4601{
4602
4603 ;
4604 return 0;
4605}
4606_ACEOF
4607if ac_fn_c_try_compile "$LINENO"; then :
4608 ac_cv_prog_cc_g=yes
4609fi
4610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4611fi
5213506e 4612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4613fi
5213506e
RW
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 ac_c_werror_flag=$ac_save_c_werror_flag
4616fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4618$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4619if test "$ac_test_CFLAGS" = set; then
1c710c3c 4620 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4621elif test $ac_cv_prog_cc_g = yes; then
4622 if test "$GCC" = yes; then
4623 CFLAGS="-g -O2"
4624 else
4625 CFLAGS="-g"
4626 fi
4627else
4628 if test "$GCC" = yes; then
4629 CFLAGS="-O2"
4630 else
4631 CFLAGS=
4632 fi
4633fi
5213506e
RW
4634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4635$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4636if test "${ac_cv_prog_cc_c89+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
1c710c3c 4638else
5213506e 4639 ac_cv_prog_cc_c89=no
1c710c3c 4640ac_save_CC=$CC
5213506e 4641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4642/* end confdefs.h. */
4643#include <stdarg.h>
4644#include <stdio.h>
4645#include <sys/types.h>
4646#include <sys/stat.h>
4647/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4648struct buf { int x; };
4649FILE * (*rcsopen) (struct buf *, struct stat *, int);
4650static char *e (p, i)
4651 char **p;
4652 int i;
4653{
4654 return p[i];
4655}
4656static char *f (char * (*g) (char **, int), char **p, ...)
4657{
4658 char *s;
4659 va_list v;
4660 va_start (v,p);
4661 s = g (p, va_arg (v,int));
4662 va_end (v);
4663 return s;
4664}
4665
4666/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4667 function prototypes and stuff, but not '\xHH' hex character constants.
4668 These don't provoke an error unfortunately, instead are silently treated
5213506e 4669 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4671 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4672 that's true only with -std. */
1c710c3c
DJ
4673int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4674
5213506e
RW
4675/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4676 inside strings and character constants. */
4677#define FOO(x) 'x'
4678int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4679
1c710c3c
DJ
4680int test (int i, double x);
4681struct s1 {int (*f) (int a);};
4682struct s2 {int (*f) (double a);};
4683int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4684int argc;
4685char **argv;
4686int
4687main ()
4688{
4689return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4690 ;
4691 return 0;
4692}
4693_ACEOF
5213506e
RW
4694for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4696do
4697 CC="$ac_save_CC $ac_arg"
5213506e
RW
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4700fi
5213506e
RW
4701rm -f core conftest.err conftest.$ac_objext
4702 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4703done
5213506e 4704rm -f conftest.$ac_ext
1c710c3c
DJ
4705CC=$ac_save_CC
4706
4707fi
5213506e
RW
4708# AC_CACHE_VAL
4709case "x$ac_cv_prog_cc_c89" in
4710 x)
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4712$as_echo "none needed" >&6; } ;;
4713 xno)
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4715$as_echo "unsupported" >&6; } ;;
1c710c3c 4716 *)
5213506e
RW
4717 CC="$CC $ac_cv_prog_cc_c89"
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4719$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4720esac
5213506e 4721if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4722
2aeb72e9
DD
4723fi
4724
2aeb72e9
DD
4725ac_ext=c
4726ac_cpp='$CPP $CPPFLAGS'
4727ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4728ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4729ac_compiler_gnu=$ac_cv_c_compiler_gnu
4730
5213506e 4731ac_ext=cpp
2aeb72e9
DD
4732ac_cpp='$CXXCPP $CPPFLAGS'
4733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4736if test -z "$CXX"; then
4737 if test -n "$CCC"; then
4738 CXX=$CCC
4739 else
4740 if test -n "$ac_tool_prefix"; then
4741 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4742 do
4743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4744set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746$as_echo_n "checking for $ac_word... " >&6; }
4747if test "${ac_cv_prog_CXX+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4749else
4750 if test -n "$CXX"; then
4751 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4752else
4753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754for as_dir in $PATH
4755do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
5213506e
RW
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4760 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4762 break 2
4763 fi
4764done
5213506e
RW
4765 done
4766IFS=$as_save_IFS
55ffb5ed 4767
c3a86da9
DJ
4768fi
4769fi
4770CXX=$ac_cv_prog_CXX
4771if test -n "$CXX"; then
5213506e
RW
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4773$as_echo "$CXX" >&6; }
c3a86da9 4774else
5213506e
RW
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776$as_echo "no" >&6; }
c3a86da9
DJ
4777fi
4778
5213506e 4779
c3a86da9
DJ
4780 test -n "$CXX" && break
4781 done
4782fi
4783if test -z "$CXX"; then
4784 ac_ct_CXX=$CXX
5213506e 4785 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4786do
4787 # Extract the first word of "$ac_prog", so it can be a program name with args.
4788set dummy $ac_prog; ac_word=$2
5213506e
RW
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790$as_echo_n "checking for $ac_word... " >&6; }
4791if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4793else
4794 if test -n "$ac_ct_CXX"; then
4795 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4796else
4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798for as_dir in $PATH
4799do
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
5213506e
RW
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4804 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4806 break 2
4807 fi
4808done
5213506e
RW
4809 done
4810IFS=$as_save_IFS
c3a86da9
DJ
4811
4812fi
4813fi
4814ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4815if test -n "$ac_ct_CXX"; then
5213506e
RW
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4817$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4818else
5213506e
RW
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820$as_echo "no" >&6; }
c3a86da9
DJ
4821fi
4822
5213506e 4823
c3a86da9
DJ
4824 test -n "$ac_ct_CXX" && break
4825done
c3a86da9 4826
5213506e
RW
4827 if test "x$ac_ct_CXX" = x; then
4828 CXX="g++"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831yes:)
4832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834ac_tool_warned=yes ;;
4835esac
4836 CXX=$ac_ct_CXX
4837 fi
c3a86da9
DJ
4838fi
4839
5213506e
RW
4840 fi
4841fi
c3a86da9 4842# Provide some information about the compiler.
5213506e
RW
4843$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4844set X $ac_compile
4845ac_compiler=$2
4846for ac_option in --version -v -V -qversion; do
4847 { { ac_try="$ac_compiler $ac_option >&5"
4848case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851esac
4852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4853$as_echo "$ac_try_echo"; } >&5
4854 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4855 ac_status=$?
5213506e
RW
4856 if test -s conftest.err; then
4857 sed '10a\
4858... rest of stderr output deleted ...
4859 10q' conftest.err >conftest.er1
4860 cat conftest.er1 >&5
4861 rm -f conftest.er1 conftest.err
4862 fi
4863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4864 test $ac_status = 0; }
4865done
c3a86da9 4866
5213506e
RW
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4868$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4869if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
c3a86da9 4871else
5213506e 4872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4873/* end confdefs.h. */
4874
4875int
4876main ()
4877{
4878#ifndef __GNUC__
4879 choke me
4880#endif
4881
4882 ;
4883 return 0;
4884}
4885_ACEOF
5213506e 4886if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4887 ac_compiler_gnu=yes
4888else
5213506e 4889 ac_compiler_gnu=no
c3a86da9 4890fi
5213506e 4891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4892ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4893
4894fi
5213506e
RW
4895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4896$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4897if test $ac_compiler_gnu = yes; then
4898 GXX=yes
4899else
4900 GXX=
4901fi
c3a86da9
DJ
4902ac_test_CXXFLAGS=${CXXFLAGS+set}
4903ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4905$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4906if test "${ac_cv_prog_cxx_g+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908else
4909 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4910 ac_cxx_werror_flag=yes
4911 ac_cv_prog_cxx_g=no
4912 CXXFLAGS="-g"
4913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4914/* end confdefs.h. */
4915
4916int
4917main ()
4918{
4919
4920 ;
4921 return 0;
4922}
4923_ACEOF
5213506e 4924if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4925 ac_cv_prog_cxx_g=yes
4926else
5213506e
RW
4927 CXXFLAGS=""
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4929/* end confdefs.h. */
5213506e 4930
c3a86da9
DJ
4931int
4932main ()
4933{
5213506e 4934
c3a86da9
DJ
4935 ;
4936 return 0;
4937}
4938_ACEOF
5213506e 4939if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4940
5213506e
RW
4941else
4942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4943 CXXFLAGS="-g"
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4945/* end confdefs.h. */
5213506e 4946
c3a86da9
DJ
4947int
4948main ()
4949{
5213506e 4950
c3a86da9
DJ
4951 ;
4952 return 0;
4953}
4954_ACEOF
5213506e
RW
4955if ac_fn_cxx_try_compile "$LINENO"; then :
4956 ac_cv_prog_cxx_g=yes
11a67599 4957fi
5213506e
RW
4958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4959fi
4960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961fi
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4964fi
4965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4966$as_echo "$ac_cv_prog_cxx_g" >&6; }
4967if test "$ac_test_CXXFLAGS" = set; then
4968 CXXFLAGS=$ac_save_CXXFLAGS
4969elif test $ac_cv_prog_cxx_g = yes; then
4970 if test "$GXX" = yes; then
4971 CXXFLAGS="-g -O2"
4972 else
4973 CXXFLAGS="-g"
4974 fi
4975else
4976 if test "$GXX" = yes; then
4977 CXXFLAGS="-O2"
4978 else
4979 CXXFLAGS=
4980 fi
c3a86da9 4981fi
c3a86da9
DJ
4982ac_ext=c
4983ac_cpp='$CPP $CPPFLAGS'
4984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4986ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987
4988
4989# We must set the default linker to the linker used by gcc for the correct
4990# operation of libtool. If LD is not defined and we are using gcc, try to
4991# set the LD default to the ld used by gcc.
4992if test -z "$LD"; then
4993 if test "$GCC" = yes; then
4994 case $build in
4995 *-*-mingw*)
4996 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4997 *)
4998 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4999 esac
5000 case $gcc_prog_ld in
5001 # Accept absolute paths.
5002 [\\/]* | [A-Za-z]:[\\/]*)
5003 LD="$gcc_prog_ld" ;;
5004 esac
5005 fi
23f6b2f9
PB
5006fi
5007
0b21f5d3
EB
5008# Check whether -static-libstdc++ -static-libgcc is supported.
5009have_static_libs=no
5010if test "$GCC" = yes; then
5011 saved_LDFLAGS="$LDFLAGS"
5012
5013 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5015$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5016 ac_ext=cpp
5017ac_cpp='$CXXCPP $CPPFLAGS'
5018ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5021
5022
5023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024/* end confdefs.h. */
0d6414b2
EB
5025
5026#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5027#error -static-libstdc++ not implemented
5028#endif
0b21f5d3
EB
5029int main() {}
5030_ACEOF
5031if ac_fn_cxx_try_link "$LINENO"; then :
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5033$as_echo "yes" >&6; }; have_static_libs=yes
5034else
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5036$as_echo "no" >&6; }
5037fi
5038rm -f core conftest.err conftest.$ac_objext \
5039 conftest$ac_exeext conftest.$ac_ext
5040 ac_ext=c
5041ac_cpp='$CPP $CPPFLAGS'
5042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
5046
5047 LDFLAGS="$saved_LDFLAGS"
5048fi
5049
23f6b2f9
PB
5050
5051
55ffb5ed 5052
1c710c3c
DJ
5053if test -n "$ac_tool_prefix"; then
5054 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5055set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057$as_echo_n "checking for $ac_word... " >&6; }
5058if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5060else
5061 if test -n "$GNATBIND"; then
5062 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5063else
1c710c3c
DJ
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=.
5213506e
RW
5069 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5071 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5073 break 2
5074 fi
5075done
5213506e
RW
5076 done
5077IFS=$as_save_IFS
1c710c3c 5078
55ffb5ed
NN
5079fi
5080fi
1c710c3c 5081GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5082if test -n "$GNATBIND"; then
5213506e
RW
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5084$as_echo "$GNATBIND" >&6; }
55ffb5ed 5085else
5213506e
RW
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
55ffb5ed
NN
5088fi
5089
5213506e 5090
1c710c3c 5091fi
55ffb5ed 5092if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5093 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5094 # Extract the first word of "gnatbind", so it can be a program name with args.
5095set dummy gnatbind; ac_word=$2
5213506e
RW
5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5097$as_echo_n "checking for $ac_word... " >&6; }
5098if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5099 $as_echo_n "(cached) " >&6
55ffb5ed 5100else
1c710c3c
DJ
5101 if test -n "$ac_ct_GNATBIND"; then
5102 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5103else
1c710c3c
DJ
5104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105for as_dir in $PATH
5106do
5107 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=.
5213506e
RW
5109 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5111 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5113 break 2
5114 fi
5115done
5213506e
RW
5116 done
5117IFS=$as_save_IFS
1c710c3c 5118
55ffb5ed
NN
5119fi
5120fi
1c710c3c
DJ
5121ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5122if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5124$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5125else
5213506e
RW
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
55ffb5ed
NN
5128fi
5129
5213506e
RW
5130 if test "x$ac_ct_GNATBIND" = x; then
5131 GNATBIND="no"
5132 else
5133 case $cross_compiling:$ac_tool_warned in
5134yes:)
5135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137ac_tool_warned=yes ;;
5138esac
5139 GNATBIND=$ac_ct_GNATBIND
5140 fi
55ffb5ed 5141else
1c710c3c 5142 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5143fi
5144
1c710c3c
DJ
5145if test -n "$ac_tool_prefix"; then
5146 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5147set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
5150if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5151 $as_echo_n "(cached) " >&6
5305be7e
RG
5152else
5153 if test -n "$GNATMAKE"; then
5154 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5155else
1c710c3c
DJ
5156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157for as_dir in $PATH
5158do
5159 IFS=$as_save_IFS
5160 test -z "$as_dir" && as_dir=.
5213506e
RW
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5163 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5165 break 2
5166 fi
5167done
5213506e
RW
5168 done
5169IFS=$as_save_IFS
1c710c3c 5170
5305be7e
RG
5171fi
5172fi
1c710c3c 5173GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5174if test -n "$GNATMAKE"; then
5213506e
RW
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5176$as_echo "$GNATMAKE" >&6; }
5305be7e 5177else
5213506e
RW
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179$as_echo "no" >&6; }
5305be7e
RG
5180fi
5181
5213506e 5182
1c710c3c 5183fi
5305be7e 5184if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5185 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5186 # Extract the first word of "gnatmake", so it can be a program name with args.
5187set dummy gnatmake; ac_word=$2
5213506e
RW
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189$as_echo_n "checking for $ac_word... " >&6; }
5190if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5305be7e 5192else
1c710c3c
DJ
5193 if test -n "$ac_ct_GNATMAKE"; then
5194 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5195else
1c710c3c
DJ
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199 IFS=$as_save_IFS
5200 test -z "$as_dir" && as_dir=.
5213506e
RW
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5203 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5205 break 2
5206 fi
5207done
5213506e
RW
5208 done
5209IFS=$as_save_IFS
1c710c3c 5210
5305be7e
RG
5211fi
5212fi
1c710c3c
DJ
5213ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5214if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5216$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5217else
5213506e
RW
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219$as_echo "no" >&6; }
5305be7e
RG
5220fi
5221
5213506e
RW
5222 if test "x$ac_ct_GNATMAKE" = x; then
5223 GNATMAKE="no"
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226yes:)
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229ac_tool_warned=yes ;;
5230esac
5231 GNATMAKE=$ac_ct_GNATMAKE
5232 fi
5305be7e 5233else
1c710c3c 5234 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5235fi
5236
5213506e
RW
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5238$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5239if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5240 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5241else
5242 cat >conftest.adb <<EOF
5243procedure conftest is begin null; end conftest;
5244EOF
5245acx_cv_cc_gcc_supports_ada=no
5246# There is a bug in old released versions of GCC which causes the
5247# driver to exit successfully when the appropriate language module
5248# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5249# Therefore we must check for the error message as well as an
5250# unsuccessful exit.
1db673ca
RO
5251# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5252# given a .adb file, but produce no object file. So we must check
5253# if an object file was really produced to guard against this.
55ffb5ed 5254errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5255if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5256 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5257fi
5258rm -f conftest.*
5259fi
5213506e
RW
5260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5261$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5262
7cb62ef1 5263if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5264 have_gnat=yes
5265else
5266 have_gnat=no
5267fi
5268
5213506e
RW
5269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5270$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5271if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5272 $as_echo_n "(cached) " >&6
a76494aa
PB
5273else
5274 echo abfoo >t1
5275 echo cdfoo >t2
b55e6680 5276 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5277 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5278 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5279 :
5280 else
5281 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5282 fi
5283 fi
a76494aa
PB
5284 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5285 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5286 :
a76494aa
PB
5287 else
5288 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5289 fi
5290 fi
5291 rm t1 t2
5292
5293fi
5213506e
RW
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5295$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5296do_compare="$gcc_cv_prog_cmp_skip"
5297
5298
55ffb5ed 5299
ff3ac0f4
ILT
5300# Check whether --enable-bootstrap was given.
5301if test "${enable_bootstrap+set}" = set; then :
5302 enableval=$enable_bootstrap;
5303else
5304 enable_bootstrap=default
5305fi
5306
5307
5308# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5309if test -r $srcdir/gcc/configure; then
5310 have_compiler=yes
5311else
5312 have_compiler=no
5313fi
ff3ac0f4
ILT
5314
5315case "$have_compiler:$host:$target:$enable_bootstrap" in
5316 *:*:*:no) ;;
5317
5318 # Default behavior. Enable bootstrap if we have a compiler
5319 # and we are in a native configuration.
5320 yes:$build:$build:default)
5321 enable_bootstrap=yes ;;
5322
5323 *:*:*:default)
5324 enable_bootstrap=no ;;
5325
5326 # We have a compiler and we are in a native configuration, bootstrap is ok
5327 yes:$build:$build:yes)
5328 ;;
5329
5330 # Other configurations, but we have a compiler. Assume the user knows
5331 # what he's doing.
5332 yes:*:*:yes)
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5334$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5335 ;;
5336
5337 # No compiler: if they passed --enable-bootstrap explicitly, fail
5338 no:*:*:yes)
5339 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5340
5341 # Fail if wrong command line
5342 *)
5343 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5344 ;;
5345esac
5346
46070488
JM
5347# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5348# C++98 compiler can still start the bootstrap.
5349if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5350 CXX="$CXX -std=gnu++98"
46070488
JM
5351fi
5352
592c90ff
KG
5353# Used for setting $lt_cv_objdir
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5355$as_echo_n "checking for objdir... " >&6; }
5356if test "${lt_cv_objdir+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358else
5359 rm -f .libs 2>/dev/null
5360mkdir .libs 2>/dev/null
5361if test -d .libs; then
5362 lt_cv_objdir=.libs
5363else
5364 # MS-DOS does not allow filenames that begin with a dot.
5365 lt_cv_objdir=_libs
5366fi
5367rmdir .libs 2>/dev/null
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5370$as_echo "$lt_cv_objdir" >&6; }
5371objdir=$lt_cv_objdir
5372
5373
5374
5375
5376
5377cat >>confdefs.h <<_ACEOF
5378#define LT_OBJDIR "$lt_cv_objdir/"
5379_ACEOF
5380
5381
5382
acd26225 5383# Check for GMP, MPFR and MPC
3a5729ea 5384gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5385gmpinc=
e69bf64b 5386have_gmp=no
acd26225
KG
5387
5388# Specify a location for mpc
5389# check for this first so it ends up on the link line before mpfr.
5390
5213506e
RW
5391# Check whether --with-mpc was given.
5392if test "${with_mpc+set}" = set; then :
5393 withval=$with_mpc;
5394fi
acd26225 5395
acd26225 5396
9965e3cd 5397# Check whether --with-mpc-include was given.
5213506e
RW
5398if test "${with_mpc_include+set}" = set; then :
5399 withval=$with_mpc_include;
5400fi
acd26225 5401
acd26225 5402
9965e3cd 5403# Check whether --with-mpc-lib was given.
5213506e
RW
5404if test "${with_mpc_lib+set}" = set; then :
5405 withval=$with_mpc_lib;
5406fi
acd26225 5407
acd26225
KG
5408
5409if test "x$with_mpc" != x; then
3a5729ea
KG
5410 gmplibs="-L$with_mpc/lib $gmplibs"
5411 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5412fi
5413if test "x$with_mpc_include" != x; then
3a5729ea 5414 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5415fi
5416if test "x$with_mpc_lib" != x; then
3a5729ea 5417 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5418fi
5419if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5420 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5421 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5422 # Do not test the mpc version. Assume that it is sufficient, since
5423 # it is in the source tree, and the library has not been built yet
5424 # but it would be included on the link line in the version check below
5425 # hence making the test fail.
3a5729ea 5426 have_gmp=yes
acd26225 5427fi
e69bf64b 5428
bebf829d
PB
5429# Specify a location for mpfr
5430# check for this first so it ends up on the link line before gmp.
1c710c3c 5431
5213506e
RW
5432# Check whether --with-mpfr-dir was given.
5433if test "${with_mpfr_dir+set}" = set; then :
5434 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5435Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5436fi
5437
bebf829d
PB
5438
5439
5213506e
RW
5440# Check whether --with-mpfr was given.
5441if test "${with_mpfr+set}" = set; then :
5442 withval=$with_mpfr;
5443fi
1c710c3c 5444
bebf829d 5445
9965e3cd 5446# Check whether --with-mpfr-include was given.
5213506e
RW
5447if test "${with_mpfr_include+set}" = set; then :
5448 withval=$with_mpfr_include;
5449fi
1c710c3c 5450
8a877c9c 5451
9965e3cd 5452# Check whether --with-mpfr-lib was given.
5213506e
RW
5453if test "${with_mpfr_lib+set}" = set; then :
5454 withval=$with_mpfr_lib;
5455fi
8a877c9c 5456
bebf829d
PB
5457
5458if test "x$with_mpfr" != x; then
5459 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5460 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5461fi
8a877c9c 5462if test "x$with_mpfr_include" != x; then
3a5729ea 5463 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5464fi
5465if test "x$with_mpfr_lib" != x; then
5466 gmplibs="-L$with_mpfr_lib $gmplibs"
5467fi
e69bf64b 5468if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5469 # MPFR v3.1.0 moved the sources into a src sub-directory.
5470 if ! test -d ${srcdir}/mpfr/src; then
5471 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5472 fi
00f35794
BE
5473 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5474 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5475 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5476 # Do not test the mpfr version. Assume that it is sufficient, since
5477 # it is in the source tree, and the library has not been built yet
5478 # but it would be included on the link line in the version check below
5479 # hence making the test fail.
5480 have_gmp=yes
5481fi
bebf829d 5482
6de9cd9a 5483# Specify a location for gmp
1c710c3c 5484
5213506e
RW
5485# Check whether --with-gmp-dir was given.
5486if test "${with_gmp_dir+set}" = set; then :
5487 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5488Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5489fi
5490
6de9cd9a 5491
6de9cd9a 5492
5213506e
RW
5493# Check whether --with-gmp was given.
5494if test "${with_gmp+set}" = set; then :
5495 withval=$with_gmp;
5496fi
1c710c3c 5497
6de9cd9a 5498
9965e3cd 5499# Check whether --with-gmp-include was given.
5213506e
RW
5500if test "${with_gmp_include+set}" = set; then :
5501 withval=$with_gmp_include;
5502fi
1c710c3c 5503
8a877c9c 5504
9965e3cd 5505# Check whether --with-gmp-lib was given.
5213506e
RW
5506if test "${with_gmp_lib+set}" = set; then :
5507 withval=$with_gmp_lib;
5508fi
8a877c9c
KG
5509
5510
6de9cd9a 5511
bebf829d
PB
5512if test "x$with_gmp" != x; then
5513 gmplibs="-L$with_gmp/lib $gmplibs"
5514 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5515fi
8a877c9c
KG
5516if test "x$with_gmp_include" != x; then
5517 gmpinc="-I$with_gmp_include $gmpinc"
5518fi
5519if test "x$with_gmp_lib" != x; then
5520 gmplibs="-L$with_gmp_lib $gmplibs"
5521fi
e69bf64b 5522if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5523 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5524 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5525 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5526 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5527 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5528 # Do not test the gmp version. Assume that it is sufficient, since
5529 # it is in the source tree, and the library has not been built yet
5530 # but it would be included on the link line in the version check below
5531 # hence making the test fail.
5532 have_gmp=yes
5533fi
6de9cd9a 5534
d943d7c4 5535if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5536 have_gmp=yes
5537 saved_CFLAGS="$CFLAGS"
5538 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5539 # Check for the recommended and required versions of GMP.
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5541$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5542
5543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5544/* end confdefs.h. */
5545#include "gmp.h"
5546int
5547main ()
5548{
5549
5550 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5551 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5552 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5553 choke me
5554 #endif
5555
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5562/* end confdefs.h. */
362c6d2f 5563#include <gmp.h>
1c710c3c
DJ
5564int
5565main ()
5566{
6de9cd9a 5567
362c6d2f
KG
5568 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5569 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5570 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5571 choke me
5572 #endif
1c710c3c
DJ
5573
5574 ;
5575 return 0;
5576}
5577_ACEOF
5213506e
RW
5578if ac_fn_c_try_compile "$LINENO"; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580$as_echo "yes" >&6; }
362c6d2f
KG
5581else
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5583$as_echo "buggy but acceptable" >&6; }
5584fi
5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5586else
5213506e
RW
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5589fi
5213506e 5590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5591
acd26225 5592 # If we have GMP, check the MPFR version.
e69bf64b 5593 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5594 # Check for the recommended and required versions of MPFR.
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5596$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5598/* end confdefs.h. */
70ec446f 5599#include <gmp.h>
e69bf64b 5600 #include <mpfr.h>
1c710c3c
DJ
5601int
5602main ()
5603{
e48d66a9 5604
f7d6bc01 5605 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5606 choke me
5607 #endif
1c710c3c
DJ
5608
5609 ;
5610 return 0;
5611}
5612_ACEOF
5213506e
RW
5613if ac_fn_c_try_compile "$LINENO"; then :
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5615/* end confdefs.h. */
a3993f33 5616#include <gmp.h>
e69bf64b 5617 #include <mpfr.h>
1c710c3c
DJ
5618int
5619main ()
5620{
a3993f33 5621
362c6d2f 5622 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5623 choke me
5624 #endif
acd26225
KG
5625
5626 ;
5627 return 0;
5628}
5629_ACEOF
5213506e
RW
5630if ac_fn_c_try_compile "$LINENO"; then :
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5632$as_echo "yes" >&6; }
acd26225 5633else
5213506e
RW
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5635$as_echo "buggy but acceptable" >&6; }
acd26225 5636fi
5213506e 5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5638else
5213506e
RW
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640$as_echo "no" >&6; }; have_gmp=no
acd26225 5641fi
5213506e 5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5643 fi
5644
5645 # Check for the MPC header version.
3a5729ea 5646 if test x"$have_gmp" = xyes ; then
362c6d2f 5647 # Check for the recommended and required versions of MPC.
5213506e
RW
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5649$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5651/* end confdefs.h. */
5652#include <mpc.h>
5653int
5654main ()
5655{
5656
362c6d2f
KG
5657 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5658 choke me
5659 #endif
5660
5661 ;
5662 return 0;
5663}
5664_ACEOF
5665if ac_fn_c_try_compile "$LINENO"; then :
5666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h. */
5668#include <mpc.h>
5669int
5670main ()
5671{
5672
5673 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5674 choke me
5675 #endif
5676
5677 ;
5678 return 0;
5679}
5680_ACEOF
5213506e
RW
5681if ac_fn_c_try_compile "$LINENO"; then :
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5683$as_echo "yes" >&6; }
362c6d2f
KG
5684else
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5686$as_echo "buggy but acceptable" >&6; }
5687fi
5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5689else
5213506e 5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5691$as_echo "no" >&6; }; have_gmp=no
acd26225 5692fi
5213506e 5693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5694 fi
5695
5696 # Now check the MPFR library.
5697 if test x"$have_gmp" = xyes; then
5698 saved_LIBS="$LIBS"
5699 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5701$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5703/* end confdefs.h. */
3a5729ea 5704#include <mpc.h>
acd26225
KG
5705int
5706main ()
5707{
5708
5709 mpfr_t n;
5710 mpfr_t x;
3a5729ea 5711 mpc_t c;
acd26225
KG
5712 int t;
5713 mpfr_init (n);
5714 mpfr_init (x);
5715 mpfr_atan2 (n, n, x, GMP_RNDN);
5716 mpfr_erfc (n, x, GMP_RNDN);
5717 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5718 mpfr_clear(n);
5719 mpfr_clear(x);
5720 mpc_init2 (c, 53);
5721 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5722 mpc_cosh (c, c, MPC_RNDNN);
5723 mpc_pow (c, c, c, MPC_RNDNN);
5724 mpc_acosh (c, c, MPC_RNDNN);
5725 mpc_clear (c);
1c710c3c
DJ
5726
5727 ;
5728 return 0;
5729}
5730_ACEOF
5213506e
RW
5731if ac_fn_c_try_link "$LINENO"; then :
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5733$as_echo "yes" >&6; }
1c710c3c 5734else
5213506e
RW
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5737fi
5213506e
RW
5738rm -f core conftest.err conftest.$ac_objext \
5739 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5740 LIBS="$saved_LIBS"
5741 fi
5742
e69bf64b 5743 CFLAGS="$saved_CFLAGS"
6de9cd9a 5744
362c6d2f
KG
5745# The library versions listed in the error message below should match
5746# the HARD-minimums enforced above.
e69bf64b 5747 if test x$have_gmp != xyes; then
f7d6bc01 5748 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5749Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5750their locations. Source code for these libraries can be found at
5751their respective hosting sites as well as at
5752ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5753http://gcc.gnu.org/install/prerequisites.html for additional info. If
5754you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5755make sure that you have installed both the libraries and the header
5756files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5757 fi
70ec446f
KG
5758fi
5759
acd26225
KG
5760# Flags needed for both GMP, MPFR and/or MPC.
5761
5762
6de9cd9a
DN
5763
5764
5765
9e3eba15 5766
0ff2d841 5767
0b21f5d3 5768# Libraries to use for stage1 or when not bootstrapping.
00020c16 5769
0b21f5d3
EB
5770# Check whether --with-stage1-libs was given.
5771if test "${with_stage1_libs+set}" = set; then :
5772 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5773 stage1_libs=
00020c16 5774 else
0b21f5d3 5775 stage1_libs=$withval
00020c16
ILT
5776 fi
5777else
5dc85f7e 5778 stage1_libs=
5213506e
RW
5779fi
5780
00020c16
ILT
5781
5782
0b21f5d3 5783# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5784
0b21f5d3
EB
5785# Check whether --with-stage1-ldflags was given.
5786if test "${with_stage1_ldflags+set}" = set; then :
5787 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5788 stage1_ldflags=
00020c16 5789 else
0b21f5d3 5790 stage1_ldflags=$withval
00020c16
ILT
5791 fi
5792else
0b21f5d3
EB
5793 stage1_ldflags=
5794 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5795 # if supported. But if the user explicitly specified the libraries to use,
5796 # trust that they are doing what they want.
5797 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5798 stage1_ldflags="-static-libstdc++ -static-libgcc"
5799 fi
5213506e
RW
5800fi
5801
00020c16
ILT
5802
5803
5dc85f7e 5804# Libraries to use for stage2 and later builds.
00020c16 5805
5213506e
RW
5806# Check whether --with-boot-libs was given.
5807if test "${with_boot_libs+set}" = set; then :
5808 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5809 poststage1_libs=
5810 else
5811 poststage1_libs=$withval
5812 fi
5813else
5dc85f7e 5814 poststage1_libs=
5213506e
RW
5815fi
5816
00020c16
ILT
5817
5818
ed2eaa9f
ILT
5819# Linker flags to use for stage2 and later builds.
5820
5821# Check whether --with-boot-ldflags was given.
5822if test "${with_boot_ldflags+set}" = set; then :
5823 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5824 poststage1_ldflags=
5825 else
5826 poststage1_ldflags=$withval
5827 fi
5828else
5829 poststage1_ldflags=
bec93d73
ILT
5830 # In stages 2 and 3, default to linking libstdc++ and libgcc
5831 # statically. But if the user explicitly specified the libraries to
5832 # use, trust that they are doing what they want.
5833 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5834 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5835 fi
5836fi
5837
5838
5839
e357a5e0 5840# GCC GRAPHITE dependency isl.
4a9bb2aa 5841# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5842
5843
33ad93b9
RG
5844# Check whether --with-isl was given.
5845if test "${with_isl+set}" = set; then :
5846 withval=$with_isl;
5213506e 5847fi
f8bf9252 5848
f8bf9252 5849
eae1a5d4 5850# Treat --without-isl as a request to disable
625afa23 5851# GRAPHITE support and skip all following checks.
eae1a5d4 5852if test "x$with_isl" != "xno"; then
e357a5e0 5853 # Check for isl
625afa23
RG
5854
5855
33ad93b9
RG
5856# Check whether --with-isl-include was given.
5857if test "${with_isl_include+set}" = set; then :
5858 withval=$with_isl_include;
5213506e
RW
5859fi
5860
f8bf9252 5861
33ad93b9
RG
5862# Check whether --with-isl-lib was given.
5863if test "${with_isl_lib+set}" = set; then :
5864 withval=$with_isl_lib;
5213506e 5865fi
f8bf9252 5866
f8bf9252 5867
33ad93b9
RG
5868 # Check whether --enable-isl-version-check was given.
5869if test "${enable_isl_version_check+set}" = set; then :
5870 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5871else
5872 ENABLE_ISL_CHECK=yes
7d32a440
SP
5873fi
5874
5875
33ad93b9
RG
5876 # Initialize isllibs and islinc.
5877 case $with_isl in
5878 no)
5879 isllibs=
5880 islinc=
5881 ;;
5882 "" | yes)
5883 ;;
5884 *)
5885 isllibs="-L$with_isl/lib"
5886 islinc="-I$with_isl/include"
5887 ;;
5888 esac
5889 if test "x${with_isl_include}" != x ; then
5890 islinc="-I$with_isl_include"
5891 fi
5892 if test "x${with_isl_lib}" != x; then
5893 isllibs="-L$with_isl_lib"
5894 fi
5895 if test "x${islinc}" = x && test "x${isllibs}" = x \
5896 && test -d ${srcdir}/isl; then
5897 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5898 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5899 ENABLE_ISL_CHECK=no
560d18d3
AK
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5901$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 5902 fi
7d32a440 5903
eae1a5d4
RG
5904 isllibs="${isllibs} -lisl"
5905
7d32a440 5906
7d32a440 5907
9847828b
RB
5908 if test "${ENABLE_ISL_CHECK}" = yes ; then
5909 _isl_saved_CFLAGS=$CFLAGS
5910 _isl_saved_LDFLAGS=$LDFLAGS
5911 _isl_saved_LIBS=$LIBS
5912
5913 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
5914 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5915 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 5916
c661a43d
SP
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5918$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
e0c0c325 5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 5920/* end confdefs.h. */
560d18d3 5921#include <isl/ctx.h>
622dbadf
BC
5922int
5923main ()
5924{
560d18d3 5925isl_ctx_get_max_operations (isl_ctx_alloc ());
622dbadf
BC
5926 ;
5927 return 0;
5928}
5929_ACEOF
5930if ac_fn_c_try_link "$LINENO"; then :
9847828b 5931 gcc_cv_isl=yes
622dbadf
BC
5932else
5933 gcc_cv_isl=no
5934fi
5935rm -f core conftest.err conftest.$ac_objext \
5936 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5938$as_echo "$gcc_cv_isl" >&6; }
5939
560d18d3 5940 if test "${gcc_cv_isl}" = no ; then
c661a43d
SP
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&5
5942$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
560d18d3
AK
5943 fi
5944
c661a43d
SP
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5946$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
1e050c90
AK
5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5948/* end confdefs.h. */
5949#include <isl/schedule.h>
5950int
5951main ()
5952{
5953isl_options_set_schedule_serialize_sccs (NULL, 0);
5954 ;
5955 return 0;
5956}
5957_ACEOF
5958if ac_fn_c_try_link "$LINENO"; then :
5959 ac_has_isl_options_set_schedule_serialize_sccs=yes
5960else
5961 ac_has_isl_options_set_schedule_serialize_sccs=no
5962fi
5963rm -f core conftest.err conftest.$ac_objext \
5964 conftest$ac_exeext conftest.$ac_ext
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5966$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5967
5968 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5969 islver="0.15"
5970
5971 fi
5972
9847828b
RB
5973 CFLAGS=$_isl_saved_CFLAGS
5974 LDFLAGS=$_isl_saved_LDFLAGS
5975 LIBS=$_isl_saved_LIBS
5976 fi
5977
5978
f8bf9252 5979
f8bf9252 5980
33ad93b9
RG
5981
5982
33ad93b9
RG
5983 if test "x${with_isl}" = xno; then
5984 graphite_requested=no
5985 elif test "x${with_isl}" != x \
5986 || test "x${with_isl_include}" != x \
5987 || test "x${with_isl_lib}" != x ; then
5988 graphite_requested=yes
5989 else
5990 graphite_requested=no
7d32a440 5991 fi
d789184e 5992
d789184e
SP
5993
5994
33ad93b9
RG
5995 if test "${gcc_cv_isl}" = no ; then
5996 isllibs=
5997 islinc=
5998 fi
5999
6000 if test "${graphite_requested}" = yes \
6001 && test "x${isllibs}" = x \
6002 && test "x${islinc}" = x ; then
f8bf9252 6003
e357a5e0 6004 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6005 fi
f8bf9252 6006
d32ef397 6007
d32ef397
AS
6008fi
6009
e357a5e0 6010# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6011if test "x$with_isl" = xno ||
625afa23 6012 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6013 noconfigdirs="$noconfigdirs isl"
625afa23 6014 islinc=
32d024bf
RG
6015fi
6016
625afa23
RG
6017
6018
6019
d7f09764
DN
6020# Check for LTO support.
6021# Check whether --enable-lto was given.
6022if test "${enable_lto+set}" = set; then :
6023 enableval=$enable_lto; enable_lto=$enableval
6024else
6025 enable_lto=yes; default_enable_lto=yes
6026fi
6027
6028
7413962d 6029
9a02962b
DK
6030
6031
6032target_elf=no
6033case $target in
6034 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6035 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
3e326935 6036 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
8ae12d71 6037 nvptx-*-none)
9a02962b
DK
6038 target_elf=no
6039 ;;
6040 *)
6041 target_elf=yes
6042 ;;
6043esac
6044
6045if test $target_elf = yes; then :
48215350
DK
6046 # ELF platforms build the lto-plugin always.
6047 build_lto_plugin=yes
9a02962b 6048
9a02962b
DK
6049else
6050 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6051 case $target in
9e530bcd 6052 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6053 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6054 *) enable_lto=no ;;
6055 esac
9a02962b 6056 else
db50fe7d
IS
6057 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6058 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6059 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6060 # warn during gcc/ subconfigure; unless you're bootstrapping with
6061 # -flto it won't be needed until after installation anyway.
6062 case $target in
9e530bcd 6063 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b
DK
6064 *) if test x"$enable_lto" = x"yes"; then
6065 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6066 fi
6067 ;;
6068 esac
6069 fi
1cd0b716 6070 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6071 # Build it unless LTO was explicitly disabled.
1cd0b716 6072 case $target in
48215350 6073 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6074 *) ;;
6075 esac
48215350 6076
9a02962b
DK
6077fi
6078
d7f09764 6079
45b3824d
TS
6080# Check whether --enable-linker-plugin-configure-flags was given.
6081if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6082 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6083else
6084 extra_linker_plugin_configure_flags=
6085fi
6086
6087
6088# Check whether --enable-linker-plugin-flags was given.
6089if test "${enable_linker_plugin_flags+set}" = set; then :
6090 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6091else
6092 extra_linker_plugin_flags=
6093fi
6094
6095
6096
f8bf9252 6097
0823efed 6098# By default, C and C++ are the only stage 1 languages.
e1888513 6099stage1_languages=,c,
2805b53a 6100
00020c16 6101# Target libraries that we bootstrap.
ad1e5170 6102bootstrap_target_libs=,target-libgcc,
00020c16 6103
55ffb5ed
NN
6104# Figure out what language subdirectories are present.
6105# Look if the user specified --enable-languages="..."; if not, use
6106# the environment variable $LANGUAGES if defined. $LANGUAGES might
6107# go away some day.
6108# NB: embedded tabs in this IF block -- do not untabify
6109if test -d ${srcdir}/gcc; then
6110 if test x"${enable_languages+set}" != xset; then
6111 if test x"${LANGUAGES+set}" = xset; then
6112 enable_languages="${LANGUAGES}"
6b1786aa 6113 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed
NN
6114 else
6115 enable_languages=all
6116 fi
6117 else
6118 if test x"${enable_languages}" = x ||
6119 test x"${enable_languages}" = xyes;
6120 then
6b1786aa 6121 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6122 exit 1
6123 fi
6124 fi
6125 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6126
7f26dfa3
FXC
6127 # 'f95' is the old name for the 'fortran' language. We issue a warning
6128 # and make the substitution.
6129 case ,${enable_languages}, in
6130 *,f95,*)
6b1786aa 6131 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6132 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6133 ;;
6134 esac
6135
0823efed
DN
6136 # If bootstrapping, C++ must be enabled.
6137 case ",$enable_languages,:$enable_bootstrap" in
6138 *,c++,*:*) ;;
6139 *:yes)
ff3ac0f4
ILT
6140 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6141 enable_languages="${enable_languages},c++"
6142 else
0823efed 6143 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6144 fi
6145 ;;
6146 esac
6147
55ffb5ed
NN
6148 # First scan to see if an enabled language requires some other language.
6149 # We assume that a given config-lang.in will list all the language
6150 # front ends it requires, even if some are required indirectly.
6151 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6152 case ${lang_frag} in
6153 ..) ;;
6154 # The odd quoting in the next line works around
6155 # an apparent bug in bash 1.12 on linux.
6156 ${srcdir}/gcc/[*]/config-lang.in) ;;
6157 *)
69ecd18f
ILT
6158 # From the config-lang.in, get $language, $lang_requires, and
6159 # $lang_requires_boot_languages.
55ffb5ed
NN
6160 language=
6161 lang_requires=
69ecd18f 6162 lang_requires_boot_languages=
55ffb5ed 6163 . ${lang_frag}
69ecd18f 6164 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6165 case ,${enable_languages}, in
6166 *,$other,*) ;;
6167 *,all,*) ;;
6168 *,$language,*)
6169 echo " \`$other' language required by \`$language'; enabling" 1>&2
6170 enable_languages="${enable_languages},${other}"
6171 ;;
6172 esac
6173 done
69ecd18f
ILT
6174 for other in ${lang_requires_boot_languages} ; do
6175 if test "$other" != "c"; then
6176 case ,${enable_stage1_languages}, in
6177 *,$other,*) ;;
6178 *,all,*) ;;
6179 *)
6180 case ,${enable_languages}, in
6181 *,$language,*)
6182 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6183 enable_stage1_languages="$enable_stage1_languages,${other}"
6184 ;;
6185 esac
6186 ;;
6187 esac
6188 fi
6189 done
55ffb5ed
NN
6190 ;;
6191 esac
6192 done
6193
e1888513 6194 new_enable_languages=,c,
d7f09764
DN
6195
6196 # If LTO is enabled, add the LTO front end.
d7f09764 6197 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6198 case ,${enable_languages}, in
6199 *,lto,*) ;;
6200 *) enable_languages="${enable_languages},lto" ;;
6201 esac
1cd0b716 6202 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6203 configdirs="$configdirs lto-plugin"
d7f09764
DN
6204 fi
6205 fi
6206
426c1eb0
TS
6207 # If we're building an offloading compiler, add the LTO front end.
6208 if test x"$enable_as_accelerator_for" != x ; then
6209 case ,${enable_languages}, in
6210 *,lto,*) ;;
6211 *) enable_languages="${enable_languages},lto" ;;
6212 esac
6213 fi
6214
55ffb5ed 6215 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6216 potential_languages=,c,
55ffb5ed 6217
4da3b0f8
ILT
6218 enabled_target_libs=
6219 disabled_target_libs=
6220
55ffb5ed
NN
6221 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6222 case ${lang_frag} in
6223 ..) ;;
6224 # The odd quoting in the next line works around
6225 # an apparent bug in bash 1.12 on linux.
6226 ${srcdir}/gcc/[*]/config-lang.in) ;;
6227 *)
1c710c3c 6228 # From the config-lang.in, get $language, $target_libs,
2805b53a 6229 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6230 language=
6231 target_libs=
6232 lang_dirs=
1546bb64 6233 subdir_requires=
e1888513
PB
6234 boot_language=no
6235 build_by_default=yes
55ffb5ed 6236 . ${lang_frag}
e1888513
PB
6237 if test x${language} = x; then
6238 echo "${lang_frag} doesn't set \$language." 1>&2
6239 exit 1
6240 fi
6241
78767fd9 6242 if test "$language" = "c++"; then
0823efed 6243 boot_language=yes
00020c16
ILT
6244 fi
6245
178f875a 6246 add_this_lang=no
e1888513
PB
6247 case ,${enable_languages}, in
6248 *,${language},*)
d4a10d0a
SB
6249 # Language was explicitly selected; include it
6250 # unless it is C, which is enabled by default.
6251 if test "$language" != "c"; then
6252 add_this_lang=yes
6253 fi
55ffb5ed 6254 ;;
e1888513
PB
6255 *,all,*)
6256 # 'all' was selected, select it if it is a default language
178f875a
JM
6257 if test "$language" != "c"; then
6258 add_this_lang=${build_by_default}
6259 fi
55ffb5ed
NN
6260 ;;
6261 esac
6de9cd9a 6262
1546bb64 6263 # Disable languages that need other directories if these aren't available.
95695ad3 6264 for i in $subdir_requires; do
b6348cb3 6265 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6266 case ,${enable_languages}, in
6267 *,${language},*)
6268 # Specifically requested language; tell them.
5213506e 6269 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6270 ;;
6271 *)
6272 # Silently disable.
e1888513 6273 add_this_lang=unsupported
1546bb64
PB
6274 ;;
6275 esac
6276 done
6277
e1888513
PB
6278 # Disable Ada if no preexisting GNAT is available.
6279 case ,${enable_languages},:${language}:${have_gnat} in
6280 *,${language},*:ada:no)
6281 # Specifically requested language; tell them.
5213506e 6282 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6283 ;;
6284 *:ada:no)
6285 # Silently disable.
6286 add_this_lang=unsupported
6287 ;;
6288 esac
6289
4fab7234
HPN
6290 # Disable a language that is unsupported by the target.
6291 case " $unsupported_languages " in
6292 *" $language "*)
e1888513 6293 add_this_lang=unsupported
4fab7234
HPN
6294 ;;
6295 esac
6296
6de9cd9a 6297 case $add_this_lang in
e1888513 6298 unsupported)
55ffb5ed 6299 # Remove language-dependent dirs.
4da3b0f8
ILT
6300 disabled_target_libs="$disabled_target_libs $target_libs"
6301 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6302 ;;
e1888513
PB
6303 no)
6304 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6305 disabled_target_libs="$disabled_target_libs $target_libs"
6306 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6307 potential_languages="${potential_languages}${language},"
6308 ;;
6309 yes)
6310 new_enable_languages="${new_enable_languages}${language},"
6311 potential_languages="${potential_languages}${language},"
2805b53a 6312 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6313 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6314 case "${boot_language}:,$enable_stage1_languages," in
6315 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6316 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6317 case ",$stage1_languages," in
6318 *,$language,* | ,yes, | ,all,) ;;
6319 *) stage1_languages="${stage1_languages}${language}," ;;
6320 esac
00020c16
ILT
6321 # We need to bootstrap any supporting libraries.
6322 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6323 ;;
6324 esac
6325 ;;
55ffb5ed
NN
6326 esac
6327 ;;
6328 esac
6329 done
6330
4da3b0f8
ILT
6331 # Add target libraries which are only needed for disabled languages
6332 # to noconfigdirs.
6333 if test -n "$disabled_target_libs"; then
6334 for dir in $disabled_target_libs; do
6335 case " $enabled_target_libs " in
6336 *" ${dir} "*) ;;
6337 *) noconfigdirs="$noconfigdirs $dir" ;;
6338 esac
6339 done
6340 fi
6341
5213506e
RW
6342 # Check whether --enable-stage1-languages was given.
6343if test "${enable_stage1_languages+set}" = set; then :
6344 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6345 ,no,|,,)
6346 # Set it to something that will have no effect in the loop below
6347 enable_stage1_languages=c ;;
6348 ,yes,)
6349 enable_stage1_languages=`echo $new_enable_languages | \
6350 sed -e "s/^,//" -e "s/,$//" ` ;;
6351 *,all,*)
6352 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6353 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6354 esac
6355
6356 # Add "good" languages from enable_stage1_languages to stage1_languages,
6357 # while "bad" languages go in missing_languages. Leave no duplicates.
6358 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6359 case $potential_languages in
6360 *,$i,*)
6361 case $stage1_languages in
6362 *,$i,*) ;;
6363 *) stage1_languages="$stage1_languages$i," ;;
6364 esac ;;
6365 *)
6366 case $missing_languages in
6367 *,$i,*) ;;
6368 *) missing_languages="$missing_languages$i," ;;
6369 esac ;;
6370 esac
6371 done
5213506e
RW
6372fi
6373
e1888513
PB
6374
6375 # Remove leading/trailing commas that were added for simplicity
6376 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6377 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6378 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6379 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6380
55ffb5ed 6381 if test "x$missing_languages" != x; then
5213506e 6382 as_fn_error "
0cf085e4 6383The following requested languages could not be built: ${missing_languages}
5213506e 6384Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6385 fi
55ffb5ed
NN
6386 if test "x$new_enable_languages" != "x$enable_languages"; then
6387 echo The following languages will be built: ${new_enable_languages}
e1888513 6388 enable_languages="$new_enable_languages"
55ffb5ed 6389 fi
e1888513 6390
1c710c3c 6391
b2eaac4a 6392 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6393fi
6394
27079765
AH
6395# Handle --disable-<component> generically.
6396for dir in $configdirs $build_configdirs $target_configdirs ; do
6397 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6398 varname=`echo $dirname | sed -e s/+/_/g`
6399 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6400 noconfigdirs="$noconfigdirs $dir"
6401 fi
6402done
6403
43c40f3e
RO
6404# Check for Boehm's garbage collector
6405# Check whether --enable-objc-gc was given.
6406if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6407 enableval=$enable_objc_gc;
6408fi
6409
6410
6411# Check whether --with-target-bdw-gc was given.
6412if test "${with_target_bdw_gc+set}" = set; then :
6413 withval=$with_target_bdw_gc;
6414fi
6415
6416
6417# Check whether --with-target-bdw-gc-include was given.
6418if test "${with_target_bdw_gc_include+set}" = set; then :
6419 withval=$with_target_bdw_gc_include;
6420fi
6421
6422
6423# Check whether --with-target-bdw-gc-lib was given.
6424if test "${with_target_bdw_gc_lib+set}" = set; then :
6425 withval=$with_target_bdw_gc_lib;
6426fi
6427
6428
6429case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6431$as_echo_n "checking for bdw garbage collector... " >&6; }
6432 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6434$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6435 else
6436 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6437 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6438 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6439 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6440 else
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6442$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6443 fi
6444 fi
43c40f3e
RO
6445esac
6446
5f520819 6447# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6448case ,${enable_languages}, in
1007a55c
JW
6449 *,c++,*)
6450 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6451 case "${noconfigdirs}" in
6452 *target-libstdc++-v3*)
6453 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6454 ;;
6455 *) ;;
6456 esac
6457 ;;
99776ebd 6458 *)
5f520819 6459 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6460 ;;
6461esac
6462
ee6a22df
L
6463# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6464# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6465# If we have the source for $noconfigdirs entries, add them to $notsupp.
6466
6467notsupp=""
6468for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6470 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6472 if test -r $srcdir/$dirname/configure ; then
6473 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 true
6475 else
6476 notsupp="$notsupp $dir"
6477 fi
6478 fi
6479 fi
ee6a22df
L
6480 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6482 if test -r $srcdir/$dirname/configure ; then
6483 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 true
6485 else
6486 notsupp="$notsupp $dir"
6487 fi
6488 fi
6489 fi
55ffb5ed
NN
6490 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6492 if test -r $srcdir/$dirname/configure ; then
6493 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494 true
6495 else
6496 notsupp="$notsupp $dir"
6497 fi
6498 fi
6499 fi
6500done
6501
55ffb5ed
NN
6502# Quietly strip out all directories which aren't configurable in this tree.
6503# This relies on all configurable subdirectories being autoconfiscated, which
6504# is now the case.
23f6b2f9
PB
6505build_configdirs_all="$build_configdirs"
6506build_configdirs=
6507for i in ${build_configdirs_all} ; do
1c710c3c 6508 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6509 if test -f ${srcdir}/$j/configure ; then
6510 build_configdirs="${build_configdirs} $i"
6511 fi
6512done
6513
55ffb5ed
NN
6514configdirs_all="$configdirs"
6515configdirs=
6516for i in ${configdirs_all} ; do
6517 if test -f ${srcdir}/$i/configure ; then
6518 configdirs="${configdirs} $i"
6519 fi
6520done
23f6b2f9 6521
55ffb5ed
NN
6522target_configdirs_all="$target_configdirs"
6523target_configdirs=
6524for i in ${target_configdirs_all} ; do
1c710c3c 6525 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6526 if test -f ${srcdir}/$j/configure ; then
6527 target_configdirs="${target_configdirs} $i"
6528 fi
6529done
6530
45b3824d
TS
6531# libiberty-linker-plugin is special: it doesn't have its own source directory,
6532# so we have to add it after the preceding checks.
6533if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6534then
6535 case " $configdirs " in
6536 *" libiberty "*)
6537 # If we can build libiberty, we can also build libiberty-linker-plugin.
6538 configdirs="$configdirs libiberty-linker-plugin"
6539 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6540 --with-libiberty=../libiberty-linker-plugin";;
6541 *)
6542 as_fn_error "libiberty missing" "$LINENO" 5;;
6543 esac
6544fi
6545
fca38047
TS
6546# Sometimes we have special requirements for the host libiberty.
6547extra_host_libiberty_configure_flags=
1c01ebf6 6548extra_host_zlib_configure_flags=
fca38047
TS
6549case " $configdirs " in
6550 *" lto-plugin "* | *" libcc1 "*)
6551 # When these are to be built as shared libraries, the same applies to
6552 # libiberty.
6553 extra_host_libiberty_configure_flags=--enable-shared
6554 ;;
1c01ebf6
L
6555 *" bfd "*)
6556 # When bfd is to be built as a shared library, the same applies to
6557 # zlib.
6558 if test "$enable_shared" = "yes"; then
6559 extra_host_zlib_configure_flags=--enable-host-shared
6560 fi
6561 ;;
fca38047
TS
6562esac
6563
6564
1c01ebf6 6565
55ffb5ed
NN
6566# Produce a warning message for the subdirs we can't configure.
6567# This isn't especially interesting in the Cygnus tree, but in the individual
6568# FSF releases, it's important to let people know when their machine isn't
6569# supported by the one or two programs in a package.
6570
6571if test -n "${notsupp}" && test -z "${norecursion}" ; then
6572 # If $appdirs is non-empty, at least one of those directories must still
6573 # be configured, or we error out. (E.g., if the gas release supports a
6574 # specified target in some subdirs but not the gas subdir, we shouldn't
6575 # pretend that all is well.)
6576 if test -n "$appdirs" ; then
6577 for dir in $appdirs ; do
6578 if test -r $dir/Makefile.in ; then
6579 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6580 appdirs=""
6581 break
6582 fi
23f6b2f9 6583 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6584 appdirs=""
6585 break
6586 fi
6587 fi
6588 done
6589 if test -n "$appdirs" ; then
6590 echo "*** This configuration is not supported by this package." 1>&2
6591 exit 1
6592 fi
6593 fi
6594 # Okay, some application will build, or we don't care to check. Still
6595 # notify of subdirs not getting built.
6596 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6597 echo " ${notsupp}" 1>&2
6598 echo " (Any other directories should still work fine.)" 1>&2
6599fi
6600
6601case "$host" in
6602 *msdosdjgpp*)
6603 enable_gdbtk=no ;;
6604esac
6605
c3a86da9
DJ
6606# To find our prefix, in gcc_cv_tool_prefix.
6607
6608# The user is always right.
6609if test "${PATH_SEPARATOR+set}" != set; then
6610 echo "#! /bin/sh" >conf$$.sh
6611 echo "exit 0" >>conf$$.sh
6612 chmod +x conf$$.sh
6613 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6614 PATH_SEPARATOR=';'
6615 else
6616 PATH_SEPARATOR=:
6617 fi
6618 rm -f conf$$.sh
6619fi
6620
6621
6622
6623if test "x$exec_prefix" = xNONE; then
6624 if test "x$prefix" = xNONE; then
6625 gcc_cv_tool_prefix=$ac_default_prefix
6626 else
6627 gcc_cv_tool_prefix=$prefix
6628 fi
6629else
6630 gcc_cv_tool_prefix=$exec_prefix
6631fi
6632
6633# If there is no compiler in the tree, use the PATH only. In any
6634# case, if there is no compiler in the tree nobody should use
6635# AS_FOR_TARGET and LD_FOR_TARGET.
6636if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6637 gcc_version=`cat $srcdir/gcc/BASE-VER`
6638 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6639 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6640 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6641 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6642 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6643 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6644else
6645 gcc_cv_tool_dirs=
6646fi
6647
6648if test x$build = x$target && test -n "$md_exec_prefix"; then
6649 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6650fi
6651
6652
6653
55ffb5ed
NN
6654copy_dirs=
6655
1c710c3c 6656
5213506e
RW
6657# Check whether --with-build-sysroot was given.
6658if test "${with_build_sysroot+set}" = set; then :
6659 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6660 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6661 fi
6662else
6663 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6664fi
526635cb
MM
6665
6666
c8aea42c 6667
5213506e
RW
6668
6669# Check whether --with-debug-prefix-map was given.
6670if test "${with_debug_prefix_map+set}" = set; then :
6671 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6672 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6673 for debug_map in $withval; do
6674 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6675 done
6676 fi
6677else
6678 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6679fi
6680
c8aea42c
PB
6681
6682
1c8bd6a3
PB
6683# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6684# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6685# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6686# We want to ensure that TARGET libraries (which we know are built with
6687# gcc) are built with "-O2 -g", so include those options when setting
6688# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6689if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6690 if test "x${is_cross_compiler}" = xyes; then
6691 CFLAGS_FOR_TARGET="-g -O2"
6692 else
6693 CFLAGS_FOR_TARGET=$CFLAGS
6694 case " $CFLAGS " in
6695 *" -O2 "*) ;;
6696 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6697 esac
6698 case " $CFLAGS " in
6699 *" -g "* | *" -g3 "*) ;;
6700 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6701 esac
6702 fi
1c8bd6a3
PB
6703fi
6704
6705
6706if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6707 if test "x${is_cross_compiler}" = xyes; then
6708 CXXFLAGS_FOR_TARGET="-g -O2"
6709 else
6710 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6711 case " $CXXFLAGS " in
6712 *" -O2 "*) ;;
6713 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6714 esac
6715 case " $CXXFLAGS " in
6716 *" -g "* | *" -g3 "*) ;;
6717 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6718 esac
6719 fi
1c8bd6a3
PB
6720fi
6721
6722
6f57bdf6
DK
6723
6724
55ffb5ed
NN
6725# Handle --with-headers=XXX. If the value is not "yes", the contents of
6726# the named directory are copied to $(tooldir)/sys-include.
6727if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6728 if test x${is_cross_compiler} = xno ; then
6729 echo 1>&2 '***' --with-headers is only supported when cross compiling
6730 exit 1
6731 fi
6732 if test x"${with_headers}" != xyes ; then
c3a86da9 6733 x=${gcc_cv_tool_prefix}
1c710c3c 6734 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6735 fi
6736fi
6737
6738# Handle --with-libs=XXX. If the value is not "yes", the contents of
6739# the name directories are copied to $(tooldir)/lib. Multiple directories
6740# are permitted.
6741if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6742 if test x${is_cross_compiler} = xno ; then
6743 echo 1>&2 '***' --with-libs is only supported when cross compiling
6744 exit 1
6745 fi
6746 if test x"${with_libs}" != xyes ; then
6747 # Copy the libraries in reverse order, so that files in the first named
6748 # library override files in subsequent libraries.
c3a86da9 6749 x=${gcc_cv_tool_prefix}
55ffb5ed 6750 for l in ${with_libs}; do
1c710c3c 6751 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6752 done
6753 fi
6754fi
6755
d7f09764 6756# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6757#
6758# This is done by determining whether or not the appropriate directory
6759# is available, and by checking whether or not specific configurations
6760# have requested that this magic not happen.
1c710c3c
DJ
6761#
6762# The command line options always override the explicit settings in
6b1786aa 6763# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6764#
1c710c3c 6765# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6766# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6767# --without-gnu-ld options for the configure script. Similarly, if
6768# the default is to use the included zlib and you don't want to do that,
6769# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6770
6771if test x${use_gnu_as} = x &&
6772 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6773 with_gnu_as=yes
6774 extra_host_args="$extra_host_args --with-gnu-as"
6775fi
6776
6777if test x${use_gnu_ld} = x &&
5afab7ad 6778 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6779 with_gnu_ld=yes
6780 extra_host_args="$extra_host_args --with-gnu-ld"
6781fi
6782
d7f09764
DN
6783if test x${use_included_zlib} = x &&
6784 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6785 :
6786else
6787 with_system_zlib=yes
6788 extra_host_args="$extra_host_args --with-system-zlib"
6789fi
6790
e8b05380
PB
6791# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6792# can detect this case.
6793
6794if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6795 with_newlib=yes
6796 extra_host_args="$extra_host_args --with-newlib"
6797fi
6798
55ffb5ed
NN
6799# Handle ${copy_dirs}
6800set fnord ${copy_dirs}
6801shift
6802while test $# != 0 ; do
6803 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6804 :
6805 else
6806 echo Copying $1 to $2
6807
6808 # Use the install script to create the directory and all required
6809 # parent directories.
6810 if test -d $2 ; then
6811 :
6812 else
6813 echo >config.temp
6814 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6815 fi
6816
6817 # Copy the directory, assuming we have tar.
6818 # FIXME: Should we use B in the second tar? Not all systems support it.
6819 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6820
6821 # It is the responsibility of the user to correctly adjust all
6822 # symlinks. If somebody can figure out how to handle them correctly
6823 # here, feel free to add the code.
6824
6825 echo $1 > $2/COPIED
6826 fi
6827 shift; shift
6828done
6829
e8b05380
PB
6830# Determine a target-dependent exec_prefix that the installed
6831# gcc will search in. Keep this list sorted by triplet, with
6832# the *-*-osname triplets last.
6833md_exec_prefix=
6834case "${target}" in
30b74385 6835 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6836 md_exec_prefix=/dev/env/DJDIR/bin
6837 ;;
e8b05380 6838 *-*-hpux* | \
e8b05380 6839 *-*-nto-qnx* | \
6de66370 6840 *-*-solaris2*)
e8b05380
PB
6841 md_exec_prefix=/usr/ccs/bin
6842 ;;
6843esac
6844
671aa708
NN
6845extra_arflags_for_target=
6846extra_nmflags_for_target=
6847extra_ranlibflags_for_target=
6848target_makefile_frag=/dev/null
6849case "${target}" in
58e24147
AM
6850 spu-*-*)
6851 target_makefile_frag="config/mt-spu"
6852 ;;
d896cc4d 6853 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6854 target_makefile_frag="config/mt-sde"
6855 ;;
1ec3b87b
RS
6856 mipsisa*-*-elfoabi*)
6857 target_makefile_frag="config/mt-mips-elfoabi"
6858 ;;
08d0963a
RS
6859 mips*-*-*linux* | mips*-*-gnu*)
6860 target_makefile_frag="config/mt-mips-gnu"
6861 ;;
707f1839
SL
6862 nios2-*-elf*)
6863 target_makefile_frag="config/mt-nios2-elf"
6864 ;;
416ac4d4 6865 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6866 target_makefile_frag="config/mt-gnu"
671aa708
NN
6867 ;;
6868 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6869 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6870 # commands to handle both 32-bit and 64-bit objects. These flags are
6871 # harmless if we're using GNU nm or ar.
6872 extra_arflags_for_target=" -X32_64"
6873 extra_nmflags_for_target=" -B -X32_64"
6874 ;;
671aa708
NN
6875esac
6876
6877alphaieee_frag=/dev/null
6878case $target in
6879 alpha*-*-*)
6880 # This just makes sure to use the -mieee option to build target libs.
6881 # This should probably be set individually by each library.
6882 alphaieee_frag="config/mt-alphaieee"
6883 ;;
6884esac
6885
6886# If --enable-target-optspace always use -Os instead of -O2 to build
6887# the target libraries, similarly if it is not specified, use -Os
6888# on selected platforms.
6889ospace_frag=/dev/null
6890case "${enable_target_optspace}:${target}" in
6891 yes:*)
6892 ospace_frag="config/mt-ospace"
6893 ;;
6894 :d30v-*)
6895 ospace_frag="config/mt-d30v"
6896 ;;
d9063947 6897 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
6898 ospace_frag="config/mt-ospace"
6899 ;;
6900 no:* | :*)
6901 ;;
6902 *)
6903 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6904 ;;
6905esac
6906
671aa708
NN
6907# Some systems (e.g., one of the i386-aix systems the gas testers are
6908# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6909tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6910build_tooldir=${tooldir}
6911
671aa708
NN
6912# Create a .gdbinit file which runs the one in srcdir
6913# and tells GDB to look there for source files.
6914
6915if test -r ${srcdir}/.gdbinit ; then
6916 case ${srcdir} in
6917 .) ;;
6918 *) cat > ./.gdbinit <<EOF
6919# ${NO_EDIT}
6920dir ${srcdir}
6921dir .
6922source ${srcdir}/.gdbinit
6923EOF
6924 ;;
6925 esac
6926fi
6927
671aa708
NN
6928# Make sure that the compiler is able to generate an executable. If it
6929# can't, we are probably in trouble. We don't care whether we can run the
6930# executable--we might be using a cross compiler--we only care whether it
6931# can be created. At this point the main configure script has set CC.
6932we_are_ok=no
6933echo "int main () { return 0; }" > conftest.c
6934${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6935if test $? = 0 ; then
6936 if test -s conftest || test -s conftest.exe ; then
6937 we_are_ok=yes
6938 fi
1c710c3c 6939fi
671aa708
NN
6940case $we_are_ok in
6941 no)
6942 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6943 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6944 rm -f conftest*
6945 exit 1
6946 ;;
6947esac
6948rm -f conftest*
6949
d89f0ad6 6950# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6951case "${host}" in
6952 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6953 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6954 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6955 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6956esac
6957
d89f0ad6
AL
6958# On systems where the dynamic library environment variable is PATH,
6959# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6960# built executables to PATH.
6961if test "$RPATH_ENVVAR" = PATH; then
6962 GCC_SHLIB_SUBDIR=/shlib
6963else
6964 GCC_SHLIB_SUBDIR=
6965fi
6966
beeda1d9
JJ
6967# Adjust the toplevel makefile according to whether bootstrap was selected.
6968case $enable_bootstrap in
6969 yes)
6970 bootstrap_suffix=bootstrap
6971 BUILD_CONFIG=bootstrap-debug
6972 ;;
6973 no)
6974 bootstrap_suffix=no-bootstrap
6975 BUILD_CONFIG=
6976 ;;
6977esac
6978
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6980$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6981
6982
6983# Check whether --with-build-config was given.
6984if test "${with_build_config+set}" = set; then :
6985 withval=$with_build_config; case $with_build_config in
6986 yes) with_build_config= ;;
6987 no) with_build_config= BUILD_CONFIG= ;;
6988 esac
6989fi
6990
6991
6992if test "x${with_build_config}" != x; then
6993 BUILD_CONFIG=$with_build_config
6994else
6995 case $BUILD_CONFIG in
6996 bootstrap-debug)
6997 if echo "int f (void) { return 0; }" > conftest.c &&
6998 ${CC} -c conftest.c &&
6999 mv conftest.o conftest.o.g0 &&
7000 ${CC} -c -g conftest.c &&
7001 mv conftest.o conftest.o.g &&
7002 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7003 :
7004 else
7005 BUILD_CONFIG=
7006 fi
7007 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7008 ;;
7009 esac
7010fi
7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7012$as_echo "$BUILD_CONFIG" >&6; }
7013
7014
7015# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7017$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7018# Check whether --enable-vtable-verify was given.
7019if test "${enable_vtable_verify+set}" = set; then :
7020 enableval=$enable_vtable_verify; case "$enableval" in
7021 yes) enable_vtable_verify=yes ;;
7022 no) enable_vtable_verify=no ;;
7023 *) enable_vtable_verify=no;;
7024 esac
7025else
7026 enable_vtable_verify=no
7027fi
7028
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7030$as_echo "$enable_vtable_verify" >&6; }
7031
671aa708
NN
7032# Record target_configdirs and the configure arguments for target and
7033# build configuration in Makefile.
7034target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7035build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7036bootstrap_fixincludes=no
671aa708 7037
ad1e5170
JR
7038# If we are building libgomp, bootstrap it.
7039if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7040 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7041fi
7042
beeda1d9
JJ
7043# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7044# or bootstrap-ubsan, bootstrap it.
7045if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7046 case "$BUILD_CONFIG" in
7047 *bootstrap-asan* | *bootstrap-ubsan* )
7048 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7049 bootstrap_fixincludes=yes
beeda1d9
JJ
7050 ;;
7051 esac
ac8701fe
L
7052fi
7053
beeda1d9
JJ
7054# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7055if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7056 test "$enable_vtable_verify" != no; then
2077db1b
CT
7057 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7058fi
7059
5373cd33
IE
7060# If we are building libmpx, bootstrap it.
7061if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7062 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7063fi
7064
671aa708
NN
7065# Determine whether gdb needs tk/tcl or not.
7066# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7067# and in that case we want gdb to be built without tk. Ugh!
7068# In fact I believe gdb is the *only* package directly dependent on tk,
7069# so we should be able to put the 'maybe's in unconditionally and
7070# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7071# 100% sure that that's safe though.
e914a571 7072
b4f96efe 7073gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7074case "$enable_gdbtk" in
7075 no)
7076 GDB_TK="" ;;
e914a571
AC
7077 yes)
7078 GDB_TK="${gdb_tk}" ;;
671aa708 7079 *)
e914a571
AC
7080 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7081 # distro. Eventually someone will fix this and move Insight, nee
7082 # gdbtk to a separate directory.
7083 if test -d ${srcdir}/gdb/gdbtk ; then
7084 GDB_TK="${gdb_tk}"
7085 else
7086 GDB_TK=""
7087 fi
7088 ;;
671aa708 7089esac
ef9db8d5
DJ
7090CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7091INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7092
60975492 7093# Strip out unwanted targets.
8b87bb96
NN
7094
7095# While at that, we remove Makefiles if we were started for recursive
7096# configuration, so that the top-level Makefile reconfigures them,
7097# like we used to do when configure itself was recursive.
8b87bb96 7098
3e54529c
RW
7099# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7100# but now we're fixing up the Makefile ourselves with the additional
7101# commands passed to AC_CONFIG_FILES. Use separate variables
7102# extrasub-{build,host,target} not because there is any reason to split
7103# the substitutions up that way, but only to remain below the limit of
7104# 99 commands in a script, for HP-UX sed.
7105# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7106
79cd2b23
RW
7107case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7108 yes:yes:*\ gold\ *:*,c++,*) ;;
7109 yes:yes:*\ gold\ *:*)
7110 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7111 ;;
7112esac
7113
3e54529c 7114extrasub_build=
23f6b2f9 7115for module in ${build_configdirs} ; do
5607edfd
PB
7116 if test -z "${no_recursion}" \
7117 && test -f ${build_subdir}/${module}/Makefile; then
7118 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7119 rm -f ${build_subdir}/${module}/Makefile
7120 fi
3e54529c 7121 extrasub_build="$extrasub_build
5607edfd
PB
7122/^@if build-$module\$/d
7123/^@endif build-$module\$/d
7124/^@if build-$module-$bootstrap_suffix\$/d
7125/^@endif build-$module-$bootstrap_suffix\$/d"
7126done
3e54529c 7127extrasub_host=
5607edfd 7128for module in ${configdirs} ; do
a6fbc1e2 7129 if test -z "${no_recursion}"; then
f063a9ed 7130 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7131 if test -f ${file}; then
7132 echo 1>&2 "*** removing ${file} to force reconfigure"
7133 rm -f ${file}
7134 fi
7135 done
5607edfd 7136 fi
9e1c8fc1
JJ
7137 case ${module},${bootstrap_fixincludes} in
7138 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7139 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7140 esac
3e54529c 7141 extrasub_host="$extrasub_host
5607edfd
PB
7142/^@if $module\$/d
7143/^@endif $module\$/d
9e1c8fc1
JJ
7144/^@if $module-$host_bootstrap_suffix\$/d
7145/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7146done
3e54529c 7147extrasub_target=
5607edfd
PB
7148for module in ${target_configdirs} ; do
7149 if test -z "${no_recursion}" \
7150 && test -f ${target_subdir}/${module}/Makefile; then
7151 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7152 rm -f ${target_subdir}/${module}/Makefile
7153 fi
00020c16
ILT
7154
7155 # We only bootstrap target libraries listed in bootstrap_target_libs.
7156 case $bootstrap_target_libs in
7157 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7158 *) target_bootstrap_suffix=no-bootstrap ;;
7159 esac
7160
3e54529c 7161 extrasub_target="$extrasub_target
5607edfd
PB
7162/^@if target-$module\$/d
7163/^@endif target-$module\$/d
00020c16
ILT
7164/^@if target-$module-$target_bootstrap_suffix\$/d
7165/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7166done
7167
3e54529c
RW
7168# Do the final fixup along with target modules.
7169extrasub_target="$extrasub_target
60975492 7170/^@if /,/^@endif /d"
671aa708
NN
7171
7172# Create the serialization dependencies. This uses a temporary file.
7173
5213506e
RW
7174# Check whether --enable-serial-configure was given.
7175if test "${enable_serial_configure+set}" = set; then :
7176 enableval=$enable_serial_configure;
7177fi
ade82b16
AO
7178
7179
bf1d3e81
NN
7180case ${enable_serial_configure} in
7181 yes)
7182 enable_serial_build_configure=yes
7183 enable_serial_host_configure=yes
7184 enable_serial_target_configure=yes
7185 ;;
7186esac
7187
671aa708
NN
7188# These force 'configure's to be done one at a time, to avoid problems
7189# with contention over a shared config.cache.
7190rm -f serdep.tmp
ade82b16 7191echo '# serdep.tmp' > serdep.tmp
671aa708 7192olditem=
bf1d3e81 7193test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7194for item in ${build_configdirs} ; do
7195 case ${olditem} in
7196 "") ;;
ade82b16 7197 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7198 esac
7199 olditem=${item}
7200done
7201olditem=
bf1d3e81 7202test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7203for item in ${configdirs} ; do
7204 case ${olditem} in
7205 "") ;;
ade82b16 7206 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7207 esac
7208 olditem=${item}
7209done
7210olditem=
bf1d3e81 7211test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7212for item in ${target_configdirs} ; do
7213 case ${olditem} in
7214 "") ;;
ade82b16 7215 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7216 esac
7217 olditem=${item}
7218done
7219serialization_dependencies=serdep.tmp
7220
7221
ade82b16 7222# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7223# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7224# might not want to pass down to subconfigures. The exception being
7225# --cache-file=/dev/null, which is used to turn off the use of cache
7226# files altogether, and which should be passed on to subconfigures.
7227# Also strip program-prefix, program-suffix, and program-transform-name,
7228# so that we can pass down a consistent program-transform-name.
1c710c3c 7229baseargs=
29a63921 7230tbaseargs=
1c710c3c
DJ
7231keep_next=no
7232skip_next=no
7233eval "set -- $ac_configure_args"
44bfc3ac
DJ
7234for ac_arg
7235do
1c710c3c
DJ
7236 if test X"$skip_next" = X"yes"; then
7237 skip_next=no
7238 continue
7239 fi
7240 if test X"$keep_next" = X"yes"; then
7241 case $ac_arg in
7242 *\'*)
7243 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7244 esac
7245 baseargs="$baseargs '$ac_arg'"
29a63921 7246 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7247 keep_next=no
7248 continue
7249 fi
7250
7251 # Handle separated arguments. Based on the logic generated by
7252 # autoconf 2.59.
7253 case $ac_arg in
7254 *=* | --config-cache | -C | -disable-* | --disable-* \
7255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7257 | -with-* | --with-* | -without-* | --without-* | --x)
7258 separate_arg=no
7259 ;;
7260 -*)
7261 separate_arg=yes
7262 ;;
7263 *)
7264 separate_arg=no
7265 ;;
7266 esac
7267
29a63921
AO
7268 skip_targ=no
7269 case $ac_arg in
7270
7271 --with-* | --without-*)
7272 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7273
7274 case $libopt in
7275 *[-_]include)
7276 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7277 ;;
7278 *[-_]lib)
7279 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7280 ;;
7281 *)
7282 lib=$libopt
7283 ;;
7284 esac
7285
7286
7287 case $lib in
4a9bb2aa 7288 mpc | mpfr | gmp | isl)
29a63921
AO
7289 # If we're processing --with-$lib, --with-$lib-include or
7290 # --with-$lib-lib, for one of the libs above, and target is
7291 # different from host, don't pass the current argument to any
7292 # target library's configure.
7293 if test x$is_cross_compiler = xyes; then
7294 skip_targ=yes
7295 fi
7296 ;;
7297 esac
7298 ;;
7299 esac
7300
1c710c3c 7301 case "$ac_arg" in
f1a036e4
NC
7302 --cache-file=/dev/null | \
7303 -cache-file=/dev/null )
7304 # Handled here to avoid the test to skip args below.
7305 baseargs="$baseargs '$ac_arg'"
29a63921 7306 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7307 # Assert: $separate_arg should always be no.
7308 keep_next=$separate_arg
7309 ;;
1c710c3c
DJ
7310 --no*)
7311 continue
7312 ;;
7313 --c* | \
7314 --sr* | \
7315 --ho* | \
7316 --bu* | \
7317 --t* | \
7318 --program-* | \
7319 -cache_file* | \
7320 -srcdir* | \
7321 -host* | \
7322 -build* | \
7323 -target* | \
7324 -program-prefix* | \
7325 -program-suffix* | \
7326 -program-transform-name* )
7327 skip_next=$separate_arg
7328 continue
7329 ;;
7330 -*)
7331 # An option. Add it.
7332 case $ac_arg in
7333 *\'*)
7334 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7335 esac
7336 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7337 if test X"$skip_targ" = Xno; then
7338 tbaseargs="$tbaseargs '$ac_arg'"
7339 fi
1c710c3c
DJ
7340 keep_next=$separate_arg
7341 ;;
7342 *)
7343 # Either a variable assignment, or a nonopt (triplet). Don't
7344 # pass it down; let the Makefile handle this.
7345 continue
7346 ;;
7347 esac
7348done
7349# Remove the initial space we just introduced and, as these will be
7350# expanded by make, quote '$'.
7351baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7352
43bb47c2
DJ
7353# Add in --program-transform-name, after --program-prefix and
7354# --program-suffix have been applied to it. Autoconf has already
7355# doubled dollar signs and backslashes in program_transform_name; we want
7356# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7357# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7358# Also, because we want to override the logic in subdir configure scripts to
7359# choose program_transform_name, replace any s,x,x, with s,y,y,.
7360sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7361${program_transform_name}
7362EOF_SED
7363gcc_transform_name=`cat conftestsed.out`
7364rm -f conftestsed.out
7365baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7366tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7367if test "$silent" = yes; then
7368 baseargs="$baseargs --silent"
29a63921 7369 tbaseargs="$tbaseargs --silent"
d9acb717 7370fi
0115d4a3 7371baseargs="$baseargs --disable-option-checking"
29a63921 7372tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7373
ffedf511
RW
7374# Record and document user additions to sub configure arguments.
7375
7376
7377
7378
671aa708
NN
7379# For the build-side libraries, we just need to pretend we're native,
7380# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7381# desired. We can't even use the same cache file for all build-side
7382# libraries, as they're compiled differently; some with C, some with
7383# C++ or with different feature-enabling options.
7384build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7385
7386# For host modules, accept cache file option, or specification as blank.
7387case "${cache_file}" in
7388"") # empty
7389 cache_file_option="" ;;
7390/* | [A-Za-z]:[\\/]* ) # absolute path
7391 cache_file_option="--cache-file=${cache_file}" ;;
7392*) # relative path
7393 cache_file_option="--cache-file=../${cache_file}" ;;
7394esac
7395
09438bde
NN
7396# Host dirs don't like to share a cache file either, horribly enough.
7397# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7398host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7399
29a63921 7400target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7401
7402# Passing a --with-cross-host argument lets the target libraries know
7403# whether they are being built with a cross-compiler or being built
7404# native. However, it would be better to use other mechanisms to make the
7405# sorts of decisions they want to make on this basis. Please consider
7406# this option to be deprecated. FIXME.
7407if test x${is_cross_compiler} = xyes ; then
1c710c3c 7408 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7409fi
7410
79e0604d
FXC
7411# Special user-friendly check for native x86_64-linux build, if
7412# multilib is not explicitly enabled.
7413case "$target:$have_compiler:$host:$target:$enable_multilib" in
7414 x86_64-*linux*:yes:$build:$build:)
e640447c 7415 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7416 dev64=no
7417 echo "int main () { return 0; }" > conftest.c
7418 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7419 if test $? = 0 ; then
7420 if test -s conftest || test -s conftest.exe ; then
7421 dev64=yes
7422 fi
7423 fi
7424 rm -f conftest*
7425 if test x${dev64} != xyes ; then
e640447c 7426 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
7427 fi
7428 ;;
7429esac
7430
dc683a3f
RW
7431# Default to --enable-multilib.
7432if test x${enable_multilib} = x ; then
671aa708 7433 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7434fi
671aa708
NN
7435
7436# Pass --with-newlib if appropriate. Note that target_configdirs has
7437# changed from the earlier setting of with_newlib.
7438if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7439 target_configargs="--with-newlib ${target_configargs}"
7440fi
7441
6b9eb62c
NN
7442# Different target subdirs use different values of certain variables
7443# (notably CXX). Worse, multilibs use *lots* of different values.
7444# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7445# it doesn't automatically accept command-line overrides of them.
7446# This means it's not safe for target subdirs to share a cache file,
7447# which is disgusting, but there you have it. Hopefully this can be
7448# fixed in future. It's still worthwhile to use a cache file for each
7449# directory. I think.
7450
bebcd931
MS
7451# Pass the appropriate --build, --host, --target and --cache-file arguments.
7452# We need to pass --target, as newer autoconf's requires consistency
7453# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7454target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7455
671aa708
NN
7456FLAGS_FOR_TARGET=
7457case " $target_configdirs " in
7458 *" newlib "*)
7459 case " $target_configargs " in
7460 *" --with-newlib "*)
7461 case "$target" in
5d571eaa 7462 *-cygwin*)
443e6238 7463 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7464 ;;
671aa708
NN
7465 esac
7466
7467 # If we're not building GCC, don't discard standard headers.
7468 if test -d ${srcdir}/gcc; then
7469 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7470
7471 if test "${build}" != "${host}"; then
7472 # On Canadian crosses, CC_FOR_TARGET will have already been set
7473 # by `configure', so we won't have an opportunity to add -Bgcc/
7474 # to it. This is right: we don't want to search that directory
7475 # for binaries, but we want the header files in there, so add
7476 # them explicitly.
0463992b 7477 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7478
7479 # Someone might think of using the pre-installed headers on
7480 # Canadian crosses, in case the installed compiler is not fully
7481 # compatible with the compiler being built. In this case, it
7482 # would be better to flag an error than risking having
7483 # incompatible object files being constructed. We can't
7484 # guarantee that an error will be flagged, but let's hope the
7485 # compiler will do it, when presented with incompatible header
7486 # files.
7487 fi
7488 fi
7489
7490 case "${target}-${is_cross_compiler}" in
f2a0e225 7491 i[3456789]86-*-linux*-no)
671aa708
NN
7492 # Here host == target, so we don't need to build gcc,
7493 # so we don't want to discard standard headers.
7494 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7495 ;;
7496 *)
7497 # If we're building newlib, use its generic headers last, but search
7498 # for any libc-related directories first (so make it the last -B
7499 # switch).
7500 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
7501
7502 # If we're building libgloss, find the startup file, simulator library
7503 # and linker script.
7504 case " $target_configdirs " in
7505 *" libgloss "*)
7506 # Look for startup file, simulator library and maybe linker script.
7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7508 # Look for libnosys.a in case the target needs it.
7509 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7510 # Most targets have the linker script in the source directory.
7511 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7512 ;;
7513 esac
671aa708
NN
7514 ;;
7515 esac
7516 ;;
7517 esac
7518 ;;
7519esac
5d571eaa 7520
b91f0a41 7521case "$target" in
5d571eaa
OS
7522 x86_64-*mingw* | *-w64-mingw*)
7523 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7524 # however, use a symlink named 'mingw' in ${prefix} .
7525 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7526 ;;
7527 *-mingw*)
7528 # MinGW can't be handled as Cygwin above since it does not use newlib.
7529 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'
7530 ;;
b91f0a41 7531esac
671aa708 7532
6691a79e
ME
7533# Allow the user to override the flags for
7534# our build compiler if desired.
f019adc1
MF
7535if test x"${build}" = x"${host}" ; then
7536 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7537 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7538 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7539fi
6691a79e 7540
671aa708
NN
7541# On Canadian crosses, we'll be searching the right directories for
7542# the previously-installed cross compiler, so don't bother to add
7543# flags for directories within the install tree of the compiler
7544# being built; programs in there won't even run.
7545if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7546 # Search for pre-installed headers if nothing else fits.
9124bc53 7547 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
7548fi
7549
7550if test "x${use_gnu_ld}" = x &&
7551 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7552 # Arrange for us to find uninstalled linker scripts.
215c351a 7553 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7554fi
7555
e88a2c09
DD
7556# Search for other target-specific linker scripts and such.
7557case "${target}" in
3e19841a
PB
7558 mep*)
7559 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7560 ;;
e88a2c09
DD
7561esac
7562
671aa708 7563# Makefile fragments.
7b61653a
PE
7564for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7565do
7566 eval fragval=\$$frag
7567 if test $fragval != /dev/null; then
7568 eval $frag=${srcdir}/$fragval
7569 fi
7570done
671aa708
NN
7571
7572
7573
7574
7575
7576# Miscellanea: directories, flags, etc.
7577
7578
7579
7580
7581
7582
7583
d89f0ad6 7584
23f6b2f9 7585# Build module lists & subconfigure args.
671aa708
NN
7586
7587
7588
2abefe3d
PB
7589# Host module lists & subconfigure args.
7590
7591
7592
aae29963 7593
2abefe3d
PB
7594# Target module lists & subconfigure args.
7595
7596
7597
7598# Build tools.
7599
7600
7601
0999159b
PB
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
2abefe3d
PB
7615# Generate default definitions for YACC, M4, LEX and other programs that run
7616# on the build machine. These are used if the Makefile can't locate these
7617# programs in objdir.
7618MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7619
7620for ac_prog in 'bison -y' byacc yacc
7621do
1c710c3c 7622 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7623set dummy $ac_prog; ac_word=$2
5213506e
RW
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625$as_echo_n "checking for $ac_word... " >&6; }
7626if test "${ac_cv_prog_YACC+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
2abefe3d
PB
7628else
7629 if test -n "$YACC"; then
7630 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7631else
1c710c3c
DJ
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
5213506e
RW
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7639 ac_cv_prog_YACC="$ac_prog"
5213506e 7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7641 break 2
7642 fi
7643done
5213506e
RW
7644 done
7645IFS=$as_save_IFS
1c710c3c 7646
2abefe3d
PB
7647fi
7648fi
1c710c3c 7649YACC=$ac_cv_prog_YACC
2abefe3d 7650if test -n "$YACC"; then
5213506e
RW
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7652$as_echo "$YACC" >&6; }
2abefe3d 7653else
5213506e
RW
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
2abefe3d
PB
7656fi
7657
5213506e 7658
1c710c3c 7659 test -n "$YACC" && break
2abefe3d
PB
7660done
7661test -n "$YACC" || YACC="$MISSING bison -y"
7662
7663case " $build_configdirs " in
7664 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7665esac
7666
7667for ac_prog in bison
7668do
1c710c3c 7669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7670set dummy $ac_prog; ac_word=$2
5213506e
RW
7671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672$as_echo_n "checking for $ac_word... " >&6; }
7673if test "${ac_cv_prog_BISON+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
2abefe3d
PB
7675else
7676 if test -n "$BISON"; then
7677 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7678else
1c710c3c
DJ
7679as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680for as_dir in $PATH
7681do
7682 IFS=$as_save_IFS
7683 test -z "$as_dir" && as_dir=.
5213506e
RW
7684 for ac_exec_ext in '' $ac_executable_extensions; do
7685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7686 ac_cv_prog_BISON="$ac_prog"
5213506e 7687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7688 break 2
7689 fi
7690done
5213506e
RW
7691 done
7692IFS=$as_save_IFS
1c710c3c 7693
2abefe3d
PB
7694fi
7695fi
1c710c3c 7696BISON=$ac_cv_prog_BISON
2abefe3d 7697if test -n "$BISON"; then
5213506e
RW
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7699$as_echo "$BISON" >&6; }
2abefe3d 7700else
5213506e
RW
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702$as_echo "no" >&6; }
2abefe3d
PB
7703fi
7704
5213506e 7705
1c710c3c 7706 test -n "$BISON" && break
2abefe3d
PB
7707done
7708test -n "$BISON" || BISON="$MISSING bison"
7709
7710case " $build_configdirs " in
7711 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7712esac
7713
7714for ac_prog in gm4 gnum4 m4
7715do
1c710c3c 7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7717set dummy $ac_prog; ac_word=$2
5213506e
RW
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719$as_echo_n "checking for $ac_word... " >&6; }
7720if test "${ac_cv_prog_M4+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
2abefe3d
PB
7722else
7723 if test -n "$M4"; then
7724 ac_cv_prog_M4="$M4" # Let the user override the test.
7725else
1c710c3c
DJ
7726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
5213506e
RW
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7733 ac_cv_prog_M4="$ac_prog"
5213506e 7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7735 break 2
7736 fi
7737done
5213506e
RW
7738 done
7739IFS=$as_save_IFS
1c710c3c 7740
2abefe3d
PB
7741fi
7742fi
1c710c3c 7743M4=$ac_cv_prog_M4
2abefe3d 7744if test -n "$M4"; then
5213506e
RW
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7746$as_echo "$M4" >&6; }
2abefe3d 7747else
5213506e
RW
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749$as_echo "no" >&6; }
2abefe3d
PB
7750fi
7751
5213506e 7752
1c710c3c 7753 test -n "$M4" && break
2abefe3d
PB
7754done
7755test -n "$M4" || M4="$MISSING m4"
7756
7757case " $build_configdirs " in
7758 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7759esac
7760
7761for ac_prog in flex lex
7762do
1c710c3c 7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7764set dummy $ac_prog; ac_word=$2
5213506e
RW
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
7767if test "${ac_cv_prog_LEX+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
2abefe3d
PB
7769else
7770 if test -n "$LEX"; then
7771 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7772else
1c710c3c
DJ
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
5213506e
RW
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7780 ac_cv_prog_LEX="$ac_prog"
5213506e 7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7782 break 2
7783 fi
7784done
5213506e
RW
7785 done
7786IFS=$as_save_IFS
1c710c3c 7787
2abefe3d
PB
7788fi
7789fi
1c710c3c 7790LEX=$ac_cv_prog_LEX
2abefe3d 7791if test -n "$LEX"; then
5213506e
RW
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7793$as_echo "$LEX" >&6; }
2abefe3d 7794else
5213506e
RW
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
2abefe3d
PB
7797fi
7798
5213506e 7799
1c710c3c 7800 test -n "$LEX" && break
2abefe3d
PB
7801done
7802test -n "$LEX" || LEX="$MISSING flex"
7803
7804case " $build_configdirs " in
7805 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7806 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7807esac
7808
7809for ac_prog in flex
7810do
1c710c3c 7811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7812set dummy $ac_prog; ac_word=$2
5213506e
RW
7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7814$as_echo_n "checking for $ac_word... " >&6; }
7815if test "${ac_cv_prog_FLEX+set}" = set; then :
7816 $as_echo_n "(cached) " >&6
2abefe3d
PB
7817else
7818 if test -n "$FLEX"; then
7819 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7820else
1c710c3c
DJ
7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824 IFS=$as_save_IFS
7825 test -z "$as_dir" && as_dir=.
5213506e
RW
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7828 ac_cv_prog_FLEX="$ac_prog"
5213506e 7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7830 break 2
7831 fi
7832done
5213506e
RW
7833 done
7834IFS=$as_save_IFS
1c710c3c 7835
2abefe3d
PB
7836fi
7837fi
1c710c3c 7838FLEX=$ac_cv_prog_FLEX
2abefe3d 7839if test -n "$FLEX"; then
5213506e
RW
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7841$as_echo "$FLEX" >&6; }
2abefe3d 7842else
5213506e
RW
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844$as_echo "no" >&6; }
2abefe3d
PB
7845fi
7846
5213506e 7847
1c710c3c 7848 test -n "$FLEX" && break
2abefe3d
PB
7849done
7850test -n "$FLEX" || FLEX="$MISSING flex"
7851
7852case " $build_configdirs " in
7853 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7854esac
7855
7856for ac_prog in makeinfo
7857do
1c710c3c 7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7859set dummy $ac_prog; ac_word=$2
5213506e
RW
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861$as_echo_n "checking for $ac_word... " >&6; }
7862if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7863 $as_echo_n "(cached) " >&6
2abefe3d
PB
7864else
7865 if test -n "$MAKEINFO"; then
7866 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7867else
1c710c3c
DJ
7868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869for as_dir in $PATH
7870do
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
5213506e
RW
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7875 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7877 break 2
7878 fi
7879done
5213506e
RW
7880 done
7881IFS=$as_save_IFS
1c710c3c 7882
2abefe3d
PB
7883fi
7884fi
1c710c3c 7885MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7886if test -n "$MAKEINFO"; then
5213506e
RW
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7888$as_echo "$MAKEINFO" >&6; }
2abefe3d 7889else
5213506e
RW
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891$as_echo "no" >&6; }
2abefe3d
PB
7892fi
7893
5213506e 7894
1c710c3c 7895 test -n "$MAKEINFO" && break
2abefe3d
PB
7896done
7897test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7898
7899case " $build_configdirs " in
7900 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7901 *)
7902
d18ff35a 7903 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7904 # higher, else we use the "missing" dummy.
7905 if ${MAKEINFO} --version \
d18ff35a 7906 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7907 :
7908 else
7909 MAKEINFO="$MISSING makeinfo"
7910 fi
7911 ;;
7912
7913esac
671aa708 7914
2abefe3d 7915# FIXME: expect and dejagnu may become build tools?
671aa708 7916
2abefe3d
PB
7917for ac_prog in expect
7918do
1c710c3c 7919 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7920set dummy $ac_prog; ac_word=$2
5213506e
RW
7921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922$as_echo_n "checking for $ac_word... " >&6; }
7923if test "${ac_cv_prog_EXPECT+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
2abefe3d
PB
7925else
7926 if test -n "$EXPECT"; then
7927 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7928else
1c710c3c
DJ
7929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930for as_dir in $PATH
7931do
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
5213506e
RW
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7936 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7938 break 2
7939 fi
7940done
5213506e
RW
7941 done
7942IFS=$as_save_IFS
1c710c3c 7943
2abefe3d
PB
7944fi
7945fi
1c710c3c 7946EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7947if test -n "$EXPECT"; then
5213506e
RW
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7949$as_echo "$EXPECT" >&6; }
2abefe3d 7950else
5213506e
RW
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952$as_echo "no" >&6; }
2abefe3d 7953fi
671aa708 7954
5213506e 7955
1c710c3c 7956 test -n "$EXPECT" && break
2abefe3d
PB
7957done
7958test -n "$EXPECT" || EXPECT="expect"
671aa708 7959
2abefe3d
PB
7960case " $configdirs " in
7961 *" expect "*)
7962 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7963 ;;
7964esac
671aa708 7965
2abefe3d
PB
7966for ac_prog in runtest
7967do
1c710c3c 7968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7969set dummy $ac_prog; ac_word=$2
5213506e
RW
7970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971$as_echo_n "checking for $ac_word... " >&6; }
7972if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7973 $as_echo_n "(cached) " >&6
2abefe3d
PB
7974else
7975 if test -n "$RUNTEST"; then
7976 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7977else
1c710c3c
DJ
7978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
5213506e
RW
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7985 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7987 break 2
7988 fi
7989done
5213506e
RW
7990 done
7991IFS=$as_save_IFS
1c710c3c 7992
2abefe3d
PB
7993fi
7994fi
1c710c3c 7995RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7996if test -n "$RUNTEST"; then
5213506e
RW
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7998$as_echo "$RUNTEST" >&6; }
2abefe3d 7999else
5213506e
RW
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001$as_echo "no" >&6; }
2abefe3d 8002fi
671aa708 8003
5213506e 8004
1c710c3c 8005 test -n "$RUNTEST" && break
2abefe3d
PB
8006done
8007test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8008
2abefe3d
PB
8009case " $configdirs " in
8010 *" dejagnu "*)
c394e891 8011 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8012 ;;
8013esac
671aa708
NN
8014
8015
671aa708 8016# Host tools.
ca9f4b81
AO
8017ncn_tool_prefix=
8018test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8019ncn_target_tool_prefix=
8020test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8021
278a7a38
AO
8022
8023
8024if test -n "$AR"; then
8025 ac_cv_prog_AR=$AR
8026elif test -n "$ac_cv_prog_AR"; then
8027 AR=$ac_cv_prog_AR
8028fi
8029
8030if test -n "$ac_cv_prog_AR"; then
8031 for ncn_progname in ar; do
8032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8033set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8035$as_echo_n "checking for $ac_word... " >&6; }
8036if test "${ac_cv_prog_AR+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
278a7a38
AO
8038else
8039 if test -n "$AR"; then
8040 ac_cv_prog_AR="$AR" # Let the user override the test.
8041else
8042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043for as_dir in $PATH
8044do
8045 IFS=$as_save_IFS
8046 test -z "$as_dir" && as_dir=.
5213506e
RW
8047 for ac_exec_ext in '' $ac_executable_extensions; do
8048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8049 ac_cv_prog_AR="${ncn_progname}"
5213506e 8050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8051 break 2
8052 fi
8053done
5213506e
RW
8054 done
8055IFS=$as_save_IFS
278a7a38
AO
8056
8057fi
8058fi
8059AR=$ac_cv_prog_AR
8060if test -n "$AR"; then
5213506e
RW
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8062$as_echo "$AR" >&6; }
278a7a38 8063else
5213506e
RW
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8065$as_echo "no" >&6; }
278a7a38
AO
8066fi
8067
5213506e 8068
278a7a38
AO
8069 done
8070fi
8071
8072for ncn_progname in ar; do
2693c0b0
PB
8073 if test -n "$ncn_tool_prefix"; then
8074 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8075set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8077$as_echo_n "checking for $ac_word... " >&6; }
8078if test "${ac_cv_prog_AR+set}" = set; then :
8079 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8080else
8081 if test -n "$AR"; then
8082 ac_cv_prog_AR="$AR" # Let the user override the test.
8083else
1c710c3c
DJ
8084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8085for as_dir in $PATH
8086do
8087 IFS=$as_save_IFS
8088 test -z "$as_dir" && as_dir=.
5213506e
RW
8089 for ac_exec_ext in '' $ac_executable_extensions; do
8090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8091 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8093 break 2
8094 fi
8095done
5213506e
RW
8096 done
8097IFS=$as_save_IFS
1c710c3c 8098
ca9f4b81
AO
8099fi
8100fi
1c710c3c 8101AR=$ac_cv_prog_AR
ca9f4b81 8102if test -n "$AR"; then
5213506e
RW
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8104$as_echo "$AR" >&6; }
ca9f4b81 8105else
5213506e
RW
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8107$as_echo "no" >&6; }
ca9f4b81
AO
8108fi
8109
5213506e 8110
2693c0b0
PB
8111 fi
8112 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8114set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116$as_echo_n "checking for $ac_word... " >&6; }
8117if test "${ac_cv_prog_AR+set}" = set; then :
8118 $as_echo_n "(cached) " >&6
ca9f4b81 8119else
2693c0b0 8120 if test -n "$AR"; then
af71363e
AS
8121 ac_cv_prog_AR="$AR" # Let the user override the test.
8122else
1c710c3c
DJ
8123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124for as_dir in $PATH
8125do
8126 IFS=$as_save_IFS
8127 test -z "$as_dir" && as_dir=.
5213506e
RW
8128 for ac_exec_ext in '' $ac_executable_extensions; do
8129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8130 ac_cv_prog_AR="${ncn_progname}"
5213506e 8131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8132 break 2
8133 fi
8134done
5213506e
RW
8135 done
8136IFS=$as_save_IFS
1c710c3c 8137
ca9f4b81
AO
8138fi
8139fi
1c710c3c 8140AR=$ac_cv_prog_AR
2693c0b0 8141if test -n "$AR"; then
5213506e
RW
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8143$as_echo "$AR" >&6; }
ca9f4b81 8144else
5213506e
RW
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146$as_echo "no" >&6; }
ca9f4b81 8147fi
1c710c3c 8148
5213506e 8149
2693c0b0
PB
8150 fi
8151 test -n "$ac_cv_prog_AR" && break
8152done
8153
8154if test -z "$ac_cv_prog_AR" ; then
8155 set dummy ar
8156 if test $build = $host ; then
8157 AR="$2"
ca9f4b81 8158 else
2693c0b0 8159 AR="${ncn_tool_prefix}$2"
ca9f4b81 8160 fi
ca9f4b81
AO
8161fi
8162
278a7a38
AO
8163
8164
8165if test -n "$AS"; then
8166 ac_cv_prog_AS=$AS
8167elif test -n "$ac_cv_prog_AS"; then
8168 AS=$ac_cv_prog_AS
8169fi
8170
8171if test -n "$ac_cv_prog_AS"; then
8172 for ncn_progname in as; do
8173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8174set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
8177if test "${ac_cv_prog_AS+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
278a7a38
AO
8179else
8180 if test -n "$AS"; then
8181 ac_cv_prog_AS="$AS" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
5213506e
RW
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8190 ac_cv_prog_AS="${ncn_progname}"
5213506e 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8192 break 2
8193 fi
8194done
5213506e
RW
8195 done
8196IFS=$as_save_IFS
278a7a38
AO
8197
8198fi
8199fi
8200AS=$ac_cv_prog_AS
8201if test -n "$AS"; then
5213506e
RW
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8203$as_echo "$AS" >&6; }
278a7a38 8204else
5213506e
RW
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
278a7a38
AO
8207fi
8208
5213506e 8209
278a7a38
AO
8210 done
8211fi
8212
8213for ncn_progname in as; do
2693c0b0
PB
8214 if test -n "$ncn_tool_prefix"; then
8215 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8216set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218$as_echo_n "checking for $ac_word... " >&6; }
8219if test "${ac_cv_prog_AS+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8221else
8222 if test -n "$AS"; then
8223 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8224else
1c710c3c
DJ
8225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226for as_dir in $PATH
8227do
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
5213506e
RW
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8232 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8234 break 2
8235 fi
8236done
5213506e
RW
8237 done
8238IFS=$as_save_IFS
1c710c3c 8239
ca9f4b81
AO
8240fi
8241fi
1c710c3c 8242AS=$ac_cv_prog_AS
ca9f4b81 8243if test -n "$AS"; then
5213506e
RW
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8245$as_echo "$AS" >&6; }
ca9f4b81 8246else
5213506e
RW
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248$as_echo "no" >&6; }
ca9f4b81
AO
8249fi
8250
5213506e 8251
2693c0b0
PB
8252 fi
8253 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8255set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8257$as_echo_n "checking for $ac_word... " >&6; }
8258if test "${ac_cv_prog_AS+set}" = set; then :
8259 $as_echo_n "(cached) " >&6
ca9f4b81 8260else
2693c0b0
PB
8261 if test -n "$AS"; then
8262 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8263else
1c710c3c
DJ
8264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265for as_dir in $PATH
8266do
8267 IFS=$as_save_IFS
8268 test -z "$as_dir" && as_dir=.
5213506e
RW
8269 for ac_exec_ext in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8271 ac_cv_prog_AS="${ncn_progname}"
5213506e 8272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8273 break 2
8274 fi
8275done
5213506e
RW
8276 done
8277IFS=$as_save_IFS
1c710c3c 8278
ca9f4b81
AO
8279fi
8280fi
1c710c3c 8281AS=$ac_cv_prog_AS
2693c0b0 8282if test -n "$AS"; then
5213506e
RW
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8284$as_echo "$AS" >&6; }
ca9f4b81 8285else
5213506e
RW
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8287$as_echo "no" >&6; }
ca9f4b81 8288fi
1c710c3c 8289
5213506e 8290
2693c0b0
PB
8291 fi
8292 test -n "$ac_cv_prog_AS" && break
8293done
8294
8295if test -z "$ac_cv_prog_AS" ; then
8296 set dummy as
8297 if test $build = $host ; then
8298 AS="$2"
ca9f4b81 8299 else
2693c0b0 8300 AS="${ncn_tool_prefix}$2"
ca9f4b81 8301 fi
ca9f4b81
AO
8302fi
8303
278a7a38
AO
8304
8305
8306if test -n "$DLLTOOL"; then
8307 ac_cv_prog_DLLTOOL=$DLLTOOL
8308elif test -n "$ac_cv_prog_DLLTOOL"; then
8309 DLLTOOL=$ac_cv_prog_DLLTOOL
8310fi
8311
8312if test -n "$ac_cv_prog_DLLTOOL"; then
8313 for ncn_progname in dlltool; do
8314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8315set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317$as_echo_n "checking for $ac_word... " >&6; }
8318if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
278a7a38
AO
8320else
8321 if test -n "$DLLTOOL"; then
8322 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8323else
8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
5213506e
RW
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8331 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8333 break 2
8334 fi
8335done
5213506e
RW
8336 done
8337IFS=$as_save_IFS
278a7a38
AO
8338
8339fi
8340fi
8341DLLTOOL=$ac_cv_prog_DLLTOOL
8342if test -n "$DLLTOOL"; then
5213506e
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8344$as_echo "$DLLTOOL" >&6; }
278a7a38 8345else
5213506e
RW
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
278a7a38
AO
8348fi
8349
5213506e 8350
278a7a38
AO
8351 done
8352fi
8353
8354for ncn_progname in dlltool; do
2693c0b0
PB
8355 if test -n "$ncn_tool_prefix"; then
8356 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8357set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359$as_echo_n "checking for $ac_word... " >&6; }
8360if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8362else
8363 if test -n "$DLLTOOL"; then
8364 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8365else
1c710c3c
DJ
8366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367for as_dir in $PATH
8368do
8369 IFS=$as_save_IFS
8370 test -z "$as_dir" && as_dir=.
5213506e
RW
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8373 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8375 break 2
8376 fi
8377done
5213506e
RW
8378 done
8379IFS=$as_save_IFS
1c710c3c 8380
ca9f4b81
AO
8381fi
8382fi
1c710c3c 8383DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8384if test -n "$DLLTOOL"; then
5213506e
RW
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8386$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8387else
5213506e
RW
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389$as_echo "no" >&6; }
ca9f4b81
AO
8390fi
8391
5213506e 8392
2693c0b0
PB
8393 fi
8394 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8395 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8396set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398$as_echo_n "checking for $ac_word... " >&6; }
8399if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8400 $as_echo_n "(cached) " >&6
ca9f4b81 8401else
2693c0b0
PB
8402 if test -n "$DLLTOOL"; then
8403 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8404else
1c710c3c
DJ
8405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406for as_dir in $PATH
8407do
8408 IFS=$as_save_IFS
8409 test -z "$as_dir" && as_dir=.
5213506e
RW
8410 for ac_exec_ext in '' $ac_executable_extensions; do
8411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8412 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8414 break 2
8415 fi
8416done
5213506e
RW
8417 done
8418IFS=$as_save_IFS
1c710c3c 8419
ca9f4b81
AO
8420fi
8421fi
1c710c3c 8422DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8423if test -n "$DLLTOOL"; then
5213506e
RW
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8425$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8426else
5213506e
RW
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428$as_echo "no" >&6; }
ca9f4b81 8429fi
1c710c3c 8430
5213506e 8431
2693c0b0
PB
8432 fi
8433 test -n "$ac_cv_prog_DLLTOOL" && break
8434done
8435
8436if test -z "$ac_cv_prog_DLLTOOL" ; then
8437 set dummy dlltool
8438 if test $build = $host ; then
8439 DLLTOOL="$2"
ca9f4b81 8440 else
2693c0b0 8441 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8442 fi
ca9f4b81
AO
8443fi
8444
278a7a38
AO
8445
8446
8447if test -n "$LD"; then
8448 ac_cv_prog_LD=$LD
8449elif test -n "$ac_cv_prog_LD"; then
8450 LD=$ac_cv_prog_LD
8451fi
8452
8453if test -n "$ac_cv_prog_LD"; then
8454 for ncn_progname in ld; do
8455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8456set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
8459if test "${ac_cv_prog_LD+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
278a7a38
AO
8461else
8462 if test -n "$LD"; then
8463 ac_cv_prog_LD="$LD" # Let the user override the test.
8464else
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
5213506e
RW
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8472 ac_cv_prog_LD="${ncn_progname}"
5213506e 8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8474 break 2
8475 fi
8476done
5213506e
RW
8477 done
8478IFS=$as_save_IFS
278a7a38
AO
8479
8480fi
8481fi
8482LD=$ac_cv_prog_LD
8483if test -n "$LD"; then
5213506e
RW
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8485$as_echo "$LD" >&6; }
278a7a38 8486else
5213506e
RW
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
278a7a38
AO
8489fi
8490
5213506e 8491
278a7a38
AO
8492 done
8493fi
8494
8495for ncn_progname in ld; do
2693c0b0
PB
8496 if test -n "$ncn_tool_prefix"; then
8497 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8498set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
8501if test "${ac_cv_prog_LD+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8503else
8504 if test -n "$LD"; then
8505 ac_cv_prog_LD="$LD" # Let the user override the test.
8506else
1c710c3c
DJ
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
5213506e
RW
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8514 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8516 break 2
8517 fi
8518done
5213506e
RW
8519 done
8520IFS=$as_save_IFS
1c710c3c 8521
ca9f4b81
AO
8522fi
8523fi
1c710c3c 8524LD=$ac_cv_prog_LD
ca9f4b81 8525if test -n "$LD"; then
5213506e
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8527$as_echo "$LD" >&6; }
ca9f4b81 8528else
5213506e
RW
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
ca9f4b81
AO
8531fi
8532
5213506e 8533
2693c0b0
PB
8534 fi
8535 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8536 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8537set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8539$as_echo_n "checking for $ac_word... " >&6; }
8540if test "${ac_cv_prog_LD+set}" = set; then :
8541 $as_echo_n "(cached) " >&6
ca9f4b81 8542else
2693c0b0
PB
8543 if test -n "$LD"; then
8544 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8545else
1c710c3c
DJ
8546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8547for as_dir in $PATH
8548do
8549 IFS=$as_save_IFS
8550 test -z "$as_dir" && as_dir=.
5213506e
RW
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8553 ac_cv_prog_LD="${ncn_progname}"
5213506e 8554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8555 break 2
8556 fi
8557done
5213506e
RW
8558 done
8559IFS=$as_save_IFS
1c710c3c 8560
ca9f4b81
AO
8561fi
8562fi
1c710c3c 8563LD=$ac_cv_prog_LD
2693c0b0 8564if test -n "$LD"; then
5213506e
RW
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8566$as_echo "$LD" >&6; }
ca9f4b81 8567else
5213506e
RW
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8569$as_echo "no" >&6; }
ca9f4b81 8570fi
1c710c3c 8571
5213506e 8572
2693c0b0
PB
8573 fi
8574 test -n "$ac_cv_prog_LD" && break
8575done
8576
8577if test -z "$ac_cv_prog_LD" ; then
8578 set dummy ld
8579 if test $build = $host ; then
8580 LD="$2"
ca9f4b81 8581 else
2693c0b0 8582 LD="${ncn_tool_prefix}$2"
ca9f4b81 8583 fi
ca9f4b81
AO
8584fi
8585
278a7a38
AO
8586
8587
8588if test -n "$LIPO"; then
8589 ac_cv_prog_LIPO=$LIPO
8590elif test -n "$ac_cv_prog_LIPO"; then
8591 LIPO=$ac_cv_prog_LIPO
8592fi
8593
8594if test -n "$ac_cv_prog_LIPO"; then
8595 for ncn_progname in lipo; do
8596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8597set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599$as_echo_n "checking for $ac_word... " >&6; }
8600if test "${ac_cv_prog_LIPO+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
278a7a38
AO
8602else
8603 if test -n "$LIPO"; then
8604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8605else
8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
5213506e
RW
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8613 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8615 break 2
8616 fi
8617done
5213506e
RW
8618 done
8619IFS=$as_save_IFS
278a7a38
AO
8620
8621fi
8622fi
8623LIPO=$ac_cv_prog_LIPO
8624if test -n "$LIPO"; then
5213506e
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8626$as_echo "$LIPO" >&6; }
278a7a38 8627else
5213506e
RW
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
278a7a38
AO
8630fi
8631
5213506e 8632
278a7a38
AO
8633 done
8634fi
8635
8636for ncn_progname in lipo; do
2abefe3d
PB
8637 if test -n "$ncn_tool_prefix"; then
8638 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8639set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641$as_echo_n "checking for $ac_word... " >&6; }
8642if test "${ac_cv_prog_LIPO+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
2abefe3d
PB
8644else
8645 if test -n "$LIPO"; then
8646 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8647else
1c710c3c
DJ
8648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
5213506e
RW
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8655 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8657 break 2
8658 fi
8659done
5213506e
RW
8660 done
8661IFS=$as_save_IFS
1c710c3c 8662
2abefe3d
PB
8663fi
8664fi
1c710c3c 8665LIPO=$ac_cv_prog_LIPO
2abefe3d 8666if test -n "$LIPO"; then
5213506e
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8668$as_echo "$LIPO" >&6; }
2abefe3d 8669else
5213506e
RW
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
2abefe3d
PB
8672fi
8673
5213506e 8674
2abefe3d
PB
8675 fi
8676 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8678set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680$as_echo_n "checking for $ac_word... " >&6; }
8681if test "${ac_cv_prog_LIPO+set}" = set; then :
8682 $as_echo_n "(cached) " >&6
2abefe3d
PB
8683else
8684 if test -n "$LIPO"; then
8685 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8686else
1c710c3c
DJ
8687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688for as_dir in $PATH
8689do
8690 IFS=$as_save_IFS
8691 test -z "$as_dir" && as_dir=.
5213506e
RW
8692 for ac_exec_ext in '' $ac_executable_extensions; do
8693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8694 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8696 break 2
8697 fi
8698done
5213506e
RW
8699 done
8700IFS=$as_save_IFS
1c710c3c 8701
2abefe3d
PB
8702fi
8703fi
1c710c3c 8704LIPO=$ac_cv_prog_LIPO
2abefe3d 8705if test -n "$LIPO"; then
5213506e
RW
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8707$as_echo "$LIPO" >&6; }
2abefe3d 8708else
5213506e
RW
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710$as_echo "no" >&6; }
2abefe3d 8711fi
1c710c3c 8712
5213506e 8713
2abefe3d
PB
8714 fi
8715 test -n "$ac_cv_prog_LIPO" && break
8716done
8717
8718if test -z "$ac_cv_prog_LIPO" ; then
8719 set dummy lipo
8720 if test $build = $host ; then
8721 LIPO="$2"
8722 else
8723 LIPO="${ncn_tool_prefix}$2"
8724 fi
8725fi
8726
278a7a38
AO
8727
8728
8729if test -n "$NM"; then
8730 ac_cv_prog_NM=$NM
8731elif test -n "$ac_cv_prog_NM"; then
8732 NM=$ac_cv_prog_NM
8733fi
8734
8735if test -n "$ac_cv_prog_NM"; then
8736 for ncn_progname in nm; do
8737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8738set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740$as_echo_n "checking for $ac_word... " >&6; }
8741if test "${ac_cv_prog_NM+set}" = set; then :
8742 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8743else
8744 if test -n "$NM"; then
8745 ac_cv_prog_NM="$NM" # Let the user override the test.
8746else
1c710c3c
DJ
8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
5213506e
RW
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8754 ac_cv_prog_NM="${ncn_progname}"
5213506e 8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8756 break 2
8757 fi
8758done
5213506e
RW
8759 done
8760IFS=$as_save_IFS
1c710c3c 8761
ca9f4b81
AO
8762fi
8763fi
1c710c3c 8764NM=$ac_cv_prog_NM
ca9f4b81 8765if test -n "$NM"; then
5213506e
RW
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8767$as_echo "$NM" >&6; }
ca9f4b81 8768else
5213506e
RW
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770$as_echo "no" >&6; }
ca9f4b81
AO
8771fi
8772
5213506e 8773
278a7a38
AO
8774 done
8775fi
8776
8777for ncn_progname in nm; do
8778 if test -n "$ncn_tool_prefix"; then
8779 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8780set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if test "${ac_cv_prog_NM+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
ca9f4b81 8785else
2693c0b0
PB
8786 if test -n "$NM"; then
8787 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8788else
1c710c3c
DJ
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
5213506e
RW
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8796 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8798 break 2
8799 fi
8800done
5213506e
RW
8801 done
8802IFS=$as_save_IFS
1c710c3c 8803
ca9f4b81
AO
8804fi
8805fi
1c710c3c 8806NM=$ac_cv_prog_NM
2693c0b0 8807if test -n "$NM"; then
5213506e
RW
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8809$as_echo "$NM" >&6; }
ca9f4b81 8810else
5213506e
RW
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
ca9f4b81 8813fi
1c710c3c 8814
5213506e 8815
2693c0b0 8816 fi
278a7a38
AO
8817 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8819set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821$as_echo_n "checking for $ac_word... " >&6; }
8822if test "${ac_cv_prog_NM+set}" = set; then :
8823 $as_echo_n "(cached) " >&6
278a7a38
AO
8824else
8825 if test -n "$NM"; then
8826 ac_cv_prog_NM="$NM" # Let the user override the test.
8827else
8828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829for as_dir in $PATH
8830do
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
5213506e
RW
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8835 ac_cv_prog_NM="${ncn_progname}"
5213506e 8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8837 break 2
8838 fi
8839done
5213506e
RW
8840 done
8841IFS=$as_save_IFS
278a7a38
AO
8842
8843fi
8844fi
8845NM=$ac_cv_prog_NM
8846if test -n "$NM"; then
5213506e
RW
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8848$as_echo "$NM" >&6; }
278a7a38 8849else
5213506e
RW
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851$as_echo "no" >&6; }
278a7a38
AO
8852fi
8853
5213506e 8854
278a7a38
AO
8855 fi
8856 test -n "$ac_cv_prog_NM" && break
8857done
8858
8859if test -z "$ac_cv_prog_NM" ; then
8860 set dummy nm
8861 if test $build = $host ; then
8862 NM="$2"
8863 else
8864 NM="${ncn_tool_prefix}$2"
8865 fi
8866fi
8867
8868
8869
8870if test -n "$RANLIB"; then
8871 ac_cv_prog_RANLIB=$RANLIB
8872elif test -n "$ac_cv_prog_RANLIB"; then
8873 RANLIB=$ac_cv_prog_RANLIB
8874fi
8875
8876if test -n "$ac_cv_prog_RANLIB"; then
8877 for ncn_progname in ranlib; do
8878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8879set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881$as_echo_n "checking for $ac_word... " >&6; }
8882if test "${ac_cv_prog_RANLIB+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
278a7a38
AO
8884else
8885 if test -n "$RANLIB"; then
8886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8887else
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
5213506e
RW
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8895 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8897 break 2
8898 fi
8899done
5213506e
RW
8900 done
8901IFS=$as_save_IFS
278a7a38
AO
8902
8903fi
8904fi
8905RANLIB=$ac_cv_prog_RANLIB
8906if test -n "$RANLIB"; then
5213506e
RW
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8908$as_echo "$RANLIB" >&6; }
278a7a38 8909else
5213506e
RW
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
278a7a38
AO
8912fi
8913
5213506e 8914
278a7a38
AO
8915 done
8916fi
ca9f4b81 8917
278a7a38 8918for ncn_progname in ranlib; do
2693c0b0
PB
8919 if test -n "$ncn_tool_prefix"; then
8920 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8921set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923$as_echo_n "checking for $ac_word... " >&6; }
8924if test "${ac_cv_prog_RANLIB+set}" = set; then :
8925 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8926else
8927 if test -n "$RANLIB"; then
8928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8929else
1c710c3c
DJ
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
8932do
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
5213506e
RW
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8937 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8939 break 2
8940 fi
8941done
5213506e
RW
8942 done
8943IFS=$as_save_IFS
1c710c3c 8944
ca9f4b81
AO
8945fi
8946fi
1c710c3c 8947RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8948if test -n "$RANLIB"; then
5213506e
RW
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8950$as_echo "$RANLIB" >&6; }
ca9f4b81 8951else
5213506e
RW
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
ca9f4b81
AO
8954fi
8955
5213506e 8956
2693c0b0
PB
8957 fi
8958 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8960set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962$as_echo_n "checking for $ac_word... " >&6; }
8963if test "${ac_cv_prog_RANLIB+set}" = set; then :
8964 $as_echo_n "(cached) " >&6
ca9f4b81 8965else
2693c0b0
PB
8966 if test -n "$RANLIB"; then
8967 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8968else
1c710c3c
DJ
8969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8970for as_dir in $PATH
8971do
8972 IFS=$as_save_IFS
8973 test -z "$as_dir" && as_dir=.
5213506e
RW
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8976 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8978 break 2
8979 fi
8980done
5213506e
RW
8981 done
8982IFS=$as_save_IFS
1c710c3c 8983
ca9f4b81
AO
8984fi
8985fi
1c710c3c 8986RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8987if test -n "$RANLIB"; then
5213506e
RW
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8989$as_echo "$RANLIB" >&6; }
ca9f4b81 8990else
5213506e
RW
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992$as_echo "no" >&6; }
ca9f4b81 8993fi
1c710c3c 8994
5213506e 8995
ca9f4b81 8996 fi
2693c0b0
PB
8997 test -n "$ac_cv_prog_RANLIB" && break
8998done
8999
9000if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9001 RANLIB="true"
ca9f4b81
AO
9002fi
9003
278a7a38
AO
9004
9005
9006if test -n "$STRIP"; then
9007 ac_cv_prog_STRIP=$STRIP
9008elif test -n "$ac_cv_prog_STRIP"; then
9009 STRIP=$ac_cv_prog_STRIP
9010fi
9011
9012if test -n "$ac_cv_prog_STRIP"; then
9013 for ncn_progname in strip; do
9014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9015set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017$as_echo_n "checking for $ac_word... " >&6; }
9018if test "${ac_cv_prog_STRIP+set}" = set; then :
9019 $as_echo_n "(cached) " >&6
278a7a38
AO
9020else
9021 if test -n "$STRIP"; then
9022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9023else
9024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9025for as_dir in $PATH
9026do
9027 IFS=$as_save_IFS
9028 test -z "$as_dir" && as_dir=.
5213506e
RW
9029 for ac_exec_ext in '' $ac_executable_extensions; do
9030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9031 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9033 break 2
9034 fi
9035done
5213506e
RW
9036 done
9037IFS=$as_save_IFS
278a7a38
AO
9038
9039fi
9040fi
9041STRIP=$ac_cv_prog_STRIP
9042if test -n "$STRIP"; then
5213506e
RW
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9044$as_echo "$STRIP" >&6; }
278a7a38 9045else
5213506e
RW
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9047$as_echo "no" >&6; }
278a7a38
AO
9048fi
9049
5213506e 9050
278a7a38
AO
9051 done
9052fi
9053
9054for ncn_progname in strip; do
2abefe3d
PB
9055 if test -n "$ncn_tool_prefix"; then
9056 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9057set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059$as_echo_n "checking for $ac_word... " >&6; }
9060if test "${ac_cv_prog_STRIP+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
2abefe3d
PB
9062else
9063 if test -n "$STRIP"; then
9064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9065else
1c710c3c
DJ
9066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9067for as_dir in $PATH
9068do
9069 IFS=$as_save_IFS
9070 test -z "$as_dir" && as_dir=.
5213506e
RW
9071 for ac_exec_ext in '' $ac_executable_extensions; do
9072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9073 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9075 break 2
9076 fi
9077done
5213506e
RW
9078 done
9079IFS=$as_save_IFS
1c710c3c 9080
2abefe3d
PB
9081fi
9082fi
1c710c3c 9083STRIP=$ac_cv_prog_STRIP
2abefe3d 9084if test -n "$STRIP"; then
5213506e
RW
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9086$as_echo "$STRIP" >&6; }
2abefe3d 9087else
5213506e
RW
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089$as_echo "no" >&6; }
2abefe3d
PB
9090fi
9091
5213506e 9092
2abefe3d
PB
9093 fi
9094 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9095 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9096set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098$as_echo_n "checking for $ac_word... " >&6; }
9099if test "${ac_cv_prog_STRIP+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
2abefe3d
PB
9101else
9102 if test -n "$STRIP"; then
9103 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9104else
1c710c3c
DJ
9105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106for as_dir in $PATH
9107do
9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
5213506e
RW
9110 for ac_exec_ext in '' $ac_executable_extensions; do
9111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9112 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9114 break 2
9115 fi
9116done
5213506e
RW
9117 done
9118IFS=$as_save_IFS
1c710c3c 9119
2abefe3d
PB
9120fi
9121fi
1c710c3c 9122STRIP=$ac_cv_prog_STRIP
2abefe3d 9123if test -n "$STRIP"; then
5213506e
RW
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9125$as_echo "$STRIP" >&6; }
2abefe3d 9126else
5213506e
RW
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9128$as_echo "no" >&6; }
2abefe3d 9129fi
1c710c3c 9130
5213506e 9131
2abefe3d
PB
9132 fi
9133 test -n "$ac_cv_prog_STRIP" && break
9134done
9135
9136if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9137 STRIP="true"
2abefe3d
PB
9138fi
9139
278a7a38
AO
9140
9141
9142if test -n "$WINDRES"; then
9143 ac_cv_prog_WINDRES=$WINDRES
9144elif test -n "$ac_cv_prog_WINDRES"; then
9145 WINDRES=$ac_cv_prog_WINDRES
9146fi
9147
9148if test -n "$ac_cv_prog_WINDRES"; then
9149 for ncn_progname in windres; do
9150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9151set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153$as_echo_n "checking for $ac_word... " >&6; }
9154if test "${ac_cv_prog_WINDRES+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
278a7a38
AO
9156else
9157 if test -n "$WINDRES"; then
9158 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9159else
9160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161for as_dir in $PATH
9162do
9163 IFS=$as_save_IFS
9164 test -z "$as_dir" && as_dir=.
5213506e
RW
9165 for ac_exec_ext in '' $ac_executable_extensions; do
9166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9167 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9169 break 2
9170 fi
9171done
5213506e
RW
9172 done
9173IFS=$as_save_IFS
278a7a38
AO
9174
9175fi
9176fi
9177WINDRES=$ac_cv_prog_WINDRES
9178if test -n "$WINDRES"; then
5213506e
RW
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9180$as_echo "$WINDRES" >&6; }
278a7a38 9181else
5213506e
RW
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183$as_echo "no" >&6; }
278a7a38
AO
9184fi
9185
5213506e 9186
278a7a38
AO
9187 done
9188fi
9189
9190for ncn_progname in windres; do
2693c0b0
PB
9191 if test -n "$ncn_tool_prefix"; then
9192 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9193set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195$as_echo_n "checking for $ac_word... " >&6; }
9196if test "${ac_cv_prog_WINDRES+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9198else
9199 if test -n "$WINDRES"; then
9200 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9201else
1c710c3c
DJ
9202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203for as_dir in $PATH
9204do
9205 IFS=$as_save_IFS
9206 test -z "$as_dir" && as_dir=.
5213506e
RW
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9209 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9211 break 2
9212 fi
9213done
5213506e
RW
9214 done
9215IFS=$as_save_IFS
1c710c3c 9216
ca9f4b81
AO
9217fi
9218fi
1c710c3c 9219WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9220if test -n "$WINDRES"; then
5213506e
RW
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9222$as_echo "$WINDRES" >&6; }
ca9f4b81 9223else
5213506e
RW
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225$as_echo "no" >&6; }
ca9f4b81
AO
9226fi
9227
5213506e 9228
2693c0b0
PB
9229 fi
9230 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9232set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234$as_echo_n "checking for $ac_word... " >&6; }
9235if test "${ac_cv_prog_WINDRES+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
ca9f4b81 9237else
2693c0b0
PB
9238 if test -n "$WINDRES"; then
9239 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9240else
1c710c3c
DJ
9241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9242for as_dir in $PATH
9243do
9244 IFS=$as_save_IFS
9245 test -z "$as_dir" && as_dir=.
5213506e
RW
9246 for ac_exec_ext in '' $ac_executable_extensions; do
9247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9248 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9250 break 2
9251 fi
9252done
5213506e
RW
9253 done
9254IFS=$as_save_IFS
1c710c3c 9255
ca9f4b81
AO
9256fi
9257fi
1c710c3c 9258WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9259if test -n "$WINDRES"; then
5213506e
RW
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9261$as_echo "$WINDRES" >&6; }
ca9f4b81 9262else
5213506e
RW
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264$as_echo "no" >&6; }
ca9f4b81 9265fi
1c710c3c 9266
5213506e 9267
2693c0b0
PB
9268 fi
9269 test -n "$ac_cv_prog_WINDRES" && break
9270done
9271
9272if test -z "$ac_cv_prog_WINDRES" ; then
9273 set dummy windres
9274 if test $build = $host ; then
9275 WINDRES="$2"
ca9f4b81 9276 else
2693c0b0 9277 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9278 fi
ca9f4b81
AO
9279fi
9280
278a7a38
AO
9281
9282
901119ae
KT
9283if test -n "$WINDMC"; then
9284 ac_cv_prog_WINDMC=$WINDMC
9285elif test -n "$ac_cv_prog_WINDMC"; then
9286 WINDMC=$ac_cv_prog_WINDMC
9287fi
9288
9289if test -n "$ac_cv_prog_WINDMC"; then
9290 for ncn_progname in windmc; do
9291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9292set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294$as_echo_n "checking for $ac_word... " >&6; }
9295if test "${ac_cv_prog_WINDMC+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
901119ae
KT
9297else
9298 if test -n "$WINDMC"; then
9299 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9300else
9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302for as_dir in $PATH
9303do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
5213506e
RW
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9308 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9310 break 2
9311 fi
9312done
5213506e
RW
9313 done
9314IFS=$as_save_IFS
901119ae
KT
9315
9316fi
9317fi
9318WINDMC=$ac_cv_prog_WINDMC
9319if test -n "$WINDMC"; then
5213506e
RW
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9321$as_echo "$WINDMC" >&6; }
901119ae 9322else
5213506e
RW
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324$as_echo "no" >&6; }
901119ae
KT
9325fi
9326
5213506e 9327
901119ae
KT
9328 done
9329fi
9330
9331for ncn_progname in windmc; do
9332 if test -n "$ncn_tool_prefix"; then
9333 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9334set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9336$as_echo_n "checking for $ac_word... " >&6; }
9337if test "${ac_cv_prog_WINDMC+set}" = set; then :
9338 $as_echo_n "(cached) " >&6
901119ae
KT
9339else
9340 if test -n "$WINDMC"; then
9341 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9342else
9343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9344for as_dir in $PATH
9345do
9346 IFS=$as_save_IFS
9347 test -z "$as_dir" && as_dir=.
5213506e
RW
9348 for ac_exec_ext in '' $ac_executable_extensions; do
9349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9350 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9352 break 2
9353 fi
9354done
5213506e
RW
9355 done
9356IFS=$as_save_IFS
901119ae
KT
9357
9358fi
9359fi
9360WINDMC=$ac_cv_prog_WINDMC
9361if test -n "$WINDMC"; then
5213506e
RW
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9363$as_echo "$WINDMC" >&6; }
901119ae 9364else
5213506e
RW
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9366$as_echo "no" >&6; }
901119ae
KT
9367fi
9368
5213506e 9369
901119ae
KT
9370 fi
9371 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9373set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9375$as_echo_n "checking for $ac_word... " >&6; }
9376if test "${ac_cv_prog_WINDMC+set}" = set; then :
9377 $as_echo_n "(cached) " >&6
901119ae
KT
9378else
9379 if test -n "$WINDMC"; then
9380 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9381else
9382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9383for as_dir in $PATH
9384do
9385 IFS=$as_save_IFS
9386 test -z "$as_dir" && as_dir=.
5213506e
RW
9387 for ac_exec_ext in '' $ac_executable_extensions; do
9388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9389 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9391 break 2
9392 fi
9393done
5213506e
RW
9394 done
9395IFS=$as_save_IFS
901119ae
KT
9396
9397fi
9398fi
9399WINDMC=$ac_cv_prog_WINDMC
9400if test -n "$WINDMC"; then
5213506e
RW
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9402$as_echo "$WINDMC" >&6; }
901119ae 9403else
5213506e
RW
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405$as_echo "no" >&6; }
901119ae
KT
9406fi
9407
5213506e 9408
901119ae
KT
9409 fi
9410 test -n "$ac_cv_prog_WINDMC" && break
9411done
9412
9413if test -z "$ac_cv_prog_WINDMC" ; then
9414 set dummy windmc
9415 if test $build = $host ; then
9416 WINDMC="$2"
9417 else
9418 WINDMC="${ncn_tool_prefix}$2"
9419 fi
9420fi
9421
9422
9423
278a7a38
AO
9424if test -n "$OBJCOPY"; then
9425 ac_cv_prog_OBJCOPY=$OBJCOPY
9426elif test -n "$ac_cv_prog_OBJCOPY"; then
9427 OBJCOPY=$ac_cv_prog_OBJCOPY
9428fi
9429
9430if test -n "$ac_cv_prog_OBJCOPY"; then
9431 for ncn_progname in objcopy; do
9432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9433set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435$as_echo_n "checking for $ac_word... " >&6; }
9436if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
278a7a38
AO
9438else
9439 if test -n "$OBJCOPY"; then
9440 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9441else
9442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443for as_dir in $PATH
9444do
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
5213506e
RW
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9449 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9451 break 2
9452 fi
9453done
5213506e
RW
9454 done
9455IFS=$as_save_IFS
278a7a38
AO
9456
9457fi
9458fi
9459OBJCOPY=$ac_cv_prog_OBJCOPY
9460if test -n "$OBJCOPY"; then
5213506e
RW
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9462$as_echo "$OBJCOPY" >&6; }
278a7a38 9463else
5213506e
RW
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465$as_echo "no" >&6; }
278a7a38
AO
9466fi
9467
5213506e 9468
278a7a38
AO
9469 done
9470fi
9471
9472for ncn_progname in objcopy; do
2693c0b0
PB
9473 if test -n "$ncn_tool_prefix"; then
9474 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9475set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477$as_echo_n "checking for $ac_word... " >&6; }
9478if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9480else
9481 if test -n "$OBJCOPY"; then
9482 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9483else
1c710c3c
DJ
9484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485for as_dir in $PATH
9486do
9487 IFS=$as_save_IFS
9488 test -z "$as_dir" && as_dir=.
5213506e
RW
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9491 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9493 break 2
9494 fi
9495done
5213506e
RW
9496 done
9497IFS=$as_save_IFS
1c710c3c 9498
ca9f4b81
AO
9499fi
9500fi
1c710c3c 9501OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9502if test -n "$OBJCOPY"; then
5213506e
RW
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9504$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9505else
5213506e
RW
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9507$as_echo "no" >&6; }
ca9f4b81
AO
9508fi
9509
5213506e 9510
2693c0b0
PB
9511 fi
9512 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9513 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9514set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9516$as_echo_n "checking for $ac_word... " >&6; }
9517if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9518 $as_echo_n "(cached) " >&6
ca9f4b81 9519else
2693c0b0
PB
9520 if test -n "$OBJCOPY"; then
9521 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9522else
1c710c3c
DJ
9523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524for as_dir in $PATH
9525do
9526 IFS=$as_save_IFS
9527 test -z "$as_dir" && as_dir=.
5213506e
RW
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9530 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9532 break 2
9533 fi
9534done
5213506e
RW
9535 done
9536IFS=$as_save_IFS
1c710c3c 9537
ca9f4b81
AO
9538fi
9539fi
1c710c3c 9540OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9541if test -n "$OBJCOPY"; then
5213506e
RW
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9543$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9544else
5213506e
RW
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9546$as_echo "no" >&6; }
ca9f4b81 9547fi
1c710c3c 9548
5213506e 9549
2693c0b0
PB
9550 fi
9551 test -n "$ac_cv_prog_OBJCOPY" && break
9552done
9553
9554if test -z "$ac_cv_prog_OBJCOPY" ; then
9555 set dummy objcopy
9556 if test $build = $host ; then
9557 OBJCOPY="$2"
ca9f4b81 9558 else
2693c0b0 9559 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9560 fi
ca9f4b81
AO
9561fi
9562
278a7a38
AO
9563
9564
9565if test -n "$OBJDUMP"; then
9566 ac_cv_prog_OBJDUMP=$OBJDUMP
9567elif test -n "$ac_cv_prog_OBJDUMP"; then
9568 OBJDUMP=$ac_cv_prog_OBJDUMP
9569fi
9570
9571if test -n "$ac_cv_prog_OBJDUMP"; then
9572 for ncn_progname in objdump; do
9573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9574set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576$as_echo_n "checking for $ac_word... " >&6; }
9577if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
278a7a38
AO
9579else
9580 if test -n "$OBJDUMP"; then
9581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9582else
9583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584for as_dir in $PATH
9585do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
5213506e
RW
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9590 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9592 break 2
9593 fi
9594done
5213506e
RW
9595 done
9596IFS=$as_save_IFS
278a7a38
AO
9597
9598fi
9599fi
9600OBJDUMP=$ac_cv_prog_OBJDUMP
9601if test -n "$OBJDUMP"; then
5213506e
RW
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9603$as_echo "$OBJDUMP" >&6; }
278a7a38 9604else
5213506e
RW
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606$as_echo "no" >&6; }
278a7a38
AO
9607fi
9608
5213506e 9609
278a7a38
AO
9610 done
9611fi
9612
9613for ncn_progname in objdump; do
2693c0b0
PB
9614 if test -n "$ncn_tool_prefix"; then
9615 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9616set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9618$as_echo_n "checking for $ac_word... " >&6; }
9619if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9620 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9621else
9622 if test -n "$OBJDUMP"; then
9623 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9624else
1c710c3c
DJ
9625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626for as_dir in $PATH
9627do
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
5213506e
RW
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9632 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9634 break 2
9635 fi
9636done
5213506e
RW
9637 done
9638IFS=$as_save_IFS
1c710c3c 9639
ca9f4b81
AO
9640fi
9641fi
1c710c3c 9642OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9643if test -n "$OBJDUMP"; then
5213506e
RW
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9645$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9646else
5213506e
RW
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9648$as_echo "no" >&6; }
ca9f4b81
AO
9649fi
9650
5213506e 9651
2693c0b0
PB
9652 fi
9653 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9655set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657$as_echo_n "checking for $ac_word... " >&6; }
9658if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
ca9f4b81 9660else
2693c0b0
PB
9661 if test -n "$OBJDUMP"; then
9662 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9663else
1c710c3c
DJ
9664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $PATH
9666do
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
5213506e
RW
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9671 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9673 break 2
9674 fi
9675done
5213506e
RW
9676 done
9677IFS=$as_save_IFS
1c710c3c 9678
ca9f4b81
AO
9679fi
9680fi
1c710c3c 9681OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9682if test -n "$OBJDUMP"; then
5213506e
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9684$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9685else
5213506e
RW
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687$as_echo "no" >&6; }
ca9f4b81 9688fi
1c710c3c 9689
5213506e 9690
2693c0b0
PB
9691 fi
9692 test -n "$ac_cv_prog_OBJDUMP" && break
9693done
9694
9695if test -z "$ac_cv_prog_OBJDUMP" ; then
9696 set dummy objdump
9697 if test $build = $host ; then
9698 OBJDUMP="$2"
ca9f4b81 9699 else
2693c0b0 9700 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9701 fi
ca9f4b81
AO
9702fi
9703
671aa708
NN
9704
9705
e7a82751
RM
9706if test -n "$READELF"; then
9707 ac_cv_prog_READELF=$READELF
9708elif test -n "$ac_cv_prog_READELF"; then
9709 READELF=$ac_cv_prog_READELF
9710fi
9711
9712if test -n "$ac_cv_prog_READELF"; then
9713 for ncn_progname in readelf; do
9714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715set dummy ${ncn_progname}; ac_word=$2
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717$as_echo_n "checking for $ac_word... " >&6; }
9718if test "${ac_cv_prog_READELF+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
9720else
9721 if test -n "$READELF"; then
9722 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9723else
9724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725for as_dir in $PATH
9726do
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9731 ac_cv_prog_READELF="${ncn_progname}"
9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9733 break 2
9734 fi
9735done
9736 done
9737IFS=$as_save_IFS
9738
9739fi
9740fi
9741READELF=$ac_cv_prog_READELF
9742if test -n "$READELF"; then
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9744$as_echo "$READELF" >&6; }
9745else
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747$as_echo "no" >&6; }
9748fi
9749
9750
9751 done
9752fi
9753
9754for ncn_progname in readelf; do
9755 if test -n "$ncn_tool_prefix"; then
9756 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9757set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759$as_echo_n "checking for $ac_word... " >&6; }
9760if test "${ac_cv_prog_READELF+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9762else
9763 if test -n "$READELF"; then
9764 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9765else
9766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767for as_dir in $PATH
9768do
9769 IFS=$as_save_IFS
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775 break 2
9776 fi
9777done
9778 done
9779IFS=$as_save_IFS
9780
9781fi
9782fi
9783READELF=$ac_cv_prog_READELF
9784if test -n "$READELF"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9786$as_echo "$READELF" >&6; }
9787else
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789$as_echo "no" >&6; }
9790fi
9791
9792
9793 fi
9794 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9795 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9796set dummy ${ncn_progname}; ac_word=$2
9797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9798$as_echo_n "checking for $ac_word... " >&6; }
9799if test "${ac_cv_prog_READELF+set}" = set; then :
9800 $as_echo_n "(cached) " >&6
9801else
9802 if test -n "$READELF"; then
9803 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9804else
9805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806for as_dir in $PATH
9807do
9808 IFS=$as_save_IFS
9809 test -z "$as_dir" && as_dir=.
9810 for ac_exec_ext in '' $ac_executable_extensions; do
9811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9812 ac_cv_prog_READELF="${ncn_progname}"
9813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9814 break 2
9815 fi
9816done
9817 done
9818IFS=$as_save_IFS
9819
9820fi
9821fi
9822READELF=$ac_cv_prog_READELF
9823if test -n "$READELF"; then
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9825$as_echo "$READELF" >&6; }
9826else
9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9828$as_echo "no" >&6; }
9829fi
9830
9831
9832 fi
9833 test -n "$ac_cv_prog_READELF" && break
9834done
9835
9836if test -z "$ac_cv_prog_READELF" ; then
9837 set dummy readelf
9838 if test $build = $host ; then
9839 READELF="$2"
9840 else
9841 READELF="${ncn_tool_prefix}$2"
9842 fi
9843fi
9844
9845
9846
671aa708
NN
9847
9848
9849
2abefe3d 9850# Target tools.
1c710c3c 9851
5213506e
RW
9852# Check whether --with-build-time-tools was given.
9853if test "${with_build_time_tools+set}" = set; then :
9854 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9855 x/*) ;;
9856 *)
9857 with_build_time_tools=
5213506e
RW
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9859$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9860 ;;
9861 esac
ca9f4b81 9862else
e8b05380 9863 with_build_time_tools=
5213506e
RW
9864fi
9865
ca9f4b81 9866
278a7a38
AO
9867
9868
9869if test -n "$CC_FOR_TARGET"; then
9870 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9871elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9872 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9873fi
9874
9875if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9876 for ncn_progname in cc gcc; do
9877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9878set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880$as_echo_n "checking for $ac_word... " >&6; }
9881if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9882 $as_echo_n "(cached) " >&6
278a7a38
AO
9883else
9884 if test -n "$CC_FOR_TARGET"; then
9885 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9886else
9887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888for as_dir in $PATH
9889do
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
5213506e
RW
9892 for ac_exec_ext in '' $ac_executable_extensions; do
9893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9894 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9896 break 2
9897 fi
9898done
5213506e
RW
9899 done
9900IFS=$as_save_IFS
278a7a38
AO
9901
9902fi
9903fi
9904CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9905if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9907$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9908else
5213506e
RW
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910$as_echo "no" >&6; }
278a7a38
AO
9911fi
9912
5213506e 9913
278a7a38
AO
9914 done
9915fi
9916
9917if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9918 for ncn_progname in cc gcc; do
5213506e
RW
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9920$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9921 if test -x $with_build_time_tools/${ncn_progname}; then
9922 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9924$as_echo "yes" >&6; }
72a7ab82 9925 break
e8b05380 9926 else
5213506e
RW
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928$as_echo "no" >&6; }
72a7ab82
AP
9929 fi
9930 done
4de997d1
PB
9931fi
9932
e8b05380
PB
9933if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9934 for ncn_progname in cc gcc; do
9935 if test -n "$ncn_target_tool_prefix"; then
9936 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9937set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9939$as_echo_n "checking for $ac_word... " >&6; }
9940if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9941 $as_echo_n "(cached) " >&6
4de997d1
PB
9942else
9943 if test -n "$CC_FOR_TARGET"; then
9944 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9945else
1c710c3c
DJ
9946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947for as_dir in $PATH
9948do
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
5213506e
RW
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9953 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9955 break 2
9956 fi
9957done
5213506e
RW
9958 done
9959IFS=$as_save_IFS
1c710c3c 9960
4de997d1
PB
9961fi
9962fi
1c710c3c 9963CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9964if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9966$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9967else
5213506e
RW
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9969$as_echo "no" >&6; }
4de997d1
PB
9970fi
9971
5213506e 9972
e8b05380
PB
9973 fi
9974 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 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
4de997d1 9981else
2693c0b0
PB
9982 if test -n "$CC_FOR_TARGET"; then
9983 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9984else
1c710c3c
DJ
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
1c710c3c 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
1c710c3c
DJ
9994 break 2
9995 fi
9996done
5213506e
RW
9997 done
9998IFS=$as_save_IFS
1c710c3c 9999
4de997d1
PB
10000fi
10001fi
1c710c3c 10002CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 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; }
4de997d1 10006else
5213506e
RW
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008$as_echo "no" >&6; }
4de997d1 10009fi
1c710c3c 10010
5213506e 10011
e8b05380
PB
10012 fi
10013 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10014 done
10015fi
1c710c3c 10016
2693c0b0
PB
10017if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10018 set dummy cc gcc
10019 if test $build = $target ; then
10020 CC_FOR_TARGET="$2"
4de997d1 10021 else
2693c0b0 10022 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10023 fi
1c00b503
PB
10024else
10025 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10026fi
10027
278a7a38
AO
10028
10029
10030if test -n "$CXX_FOR_TARGET"; then
10031 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10032elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10033 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10034fi
10035
10036if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10037 for ncn_progname in c++ g++ cxx gxx; do
10038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10039set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041$as_echo_n "checking for $ac_word... " >&6; }
10042if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10043 $as_echo_n "(cached) " >&6
278a7a38
AO
10044else
10045 if test -n "$CXX_FOR_TARGET"; then
10046 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10047else
10048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049for as_dir in $PATH
10050do
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
5213506e
RW
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10055 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10057 break 2
10058 fi
10059done
5213506e
RW
10060 done
10061IFS=$as_save_IFS
278a7a38
AO
10062
10063fi
10064fi
10065CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10066if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10068$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10069else
5213506e
RW
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071$as_echo "no" >&6; }
278a7a38
AO
10072fi
10073
5213506e 10074
278a7a38
AO
10075 done
10076fi
10077
10078if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10079 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10081$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10082 if test -x $with_build_time_tools/${ncn_progname}; then
10083 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10085$as_echo "yes" >&6; }
e8b05380
PB
10086 break
10087 else
5213506e
RW
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10089$as_echo "no" >&6; }
e8b05380
PB
10090 fi
10091 done
10092fi
10093
10094if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10095 for ncn_progname in c++ g++ cxx gxx; do
10096 if test -n "$ncn_target_tool_prefix"; then
10097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10098set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10100$as_echo_n "checking for $ac_word... " >&6; }
10101if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10102 $as_echo_n "(cached) " >&6
4de997d1
PB
10103else
10104 if test -n "$CXX_FOR_TARGET"; then
10105 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10106else
1c710c3c
DJ
10107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108for as_dir in $PATH
10109do
10110 IFS=$as_save_IFS
10111 test -z "$as_dir" && as_dir=.
5213506e
RW
10112 for ac_exec_ext in '' $ac_executable_extensions; do
10113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10114 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10116 break 2
10117 fi
10118done
5213506e
RW
10119 done
10120IFS=$as_save_IFS
1c710c3c 10121
4de997d1
PB
10122fi
10123fi
1c710c3c 10124CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10125if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10127$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10128else
5213506e
RW
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10130$as_echo "no" >&6; }
4de997d1
PB
10131fi
10132
5213506e 10133
e8b05380
PB
10134 fi
10135 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 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
4de997d1 10142else
2693c0b0
PB
10143 if test -n "$CXX_FOR_TARGET"; then
10144 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10145else
1c710c3c
DJ
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
1c710c3c 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
1c710c3c
DJ
10155 break 2
10156 fi
10157done
5213506e
RW
10158 done
10159IFS=$as_save_IFS
1c710c3c 10160
4de997d1
PB
10161fi
10162fi
1c710c3c 10163CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 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; }
4de997d1 10167else
5213506e
RW
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10169$as_echo "no" >&6; }
4de997d1 10170fi
1c710c3c 10171
5213506e 10172
e8b05380
PB
10173 fi
10174 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10175 done
10176fi
1c710c3c 10177
2693c0b0
PB
10178if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10179 set dummy c++ g++ cxx gxx
10180 if test $build = $target ; then
10181 CXX_FOR_TARGET="$2"
4de997d1 10182 else
2693c0b0 10183 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10184 fi
1c00b503
PB
10185else
10186 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10187fi
10188
278a7a38
AO
10189
10190
10191if test -n "$GCC_FOR_TARGET"; then
10192 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10193elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10194 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10195fi
10196
10197if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10198 for ncn_progname in gcc; do
10199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10200set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202$as_echo_n "checking for $ac_word... " >&6; }
10203if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
278a7a38
AO
10205else
10206 if test -n "$GCC_FOR_TARGET"; then
10207 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10208else
10209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10210for as_dir in $PATH
10211do
10212 IFS=$as_save_IFS
10213 test -z "$as_dir" && as_dir=.
5213506e
RW
10214 for ac_exec_ext in '' $ac_executable_extensions; do
10215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10216 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10218 break 2
10219 fi
10220done
5213506e
RW
10221 done
10222IFS=$as_save_IFS
278a7a38
AO
10223
10224fi
10225fi
10226GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10227if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10229$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10230else
5213506e
RW
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232$as_echo "no" >&6; }
278a7a38
AO
10233fi
10234
5213506e 10235
278a7a38
AO
10236 done
10237fi
10238
10239if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10240 for ncn_progname in gcc; do
5213506e
RW
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10242$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10243 if test -x $with_build_time_tools/${ncn_progname}; then
10244 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10246$as_echo "yes" >&6; }
e8b05380
PB
10247 break
10248 else
5213506e
RW
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250$as_echo "no" >&6; }
e8b05380
PB
10251 fi
10252 done
10253fi
10254
10255if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10256 for ncn_progname in gcc; do
10257 if test -n "$ncn_target_tool_prefix"; then
10258 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10259set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10261$as_echo_n "checking for $ac_word... " >&6; }
10262if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10263 $as_echo_n "(cached) " >&6
ca9f4b81 10264else
e8b05380
PB
10265 if test -n "$GCC_FOR_TARGET"; then
10266 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10267else
1c710c3c
DJ
10268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269for as_dir in $PATH
10270do
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
5213506e
RW
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10275 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10277 break 2
10278 fi
10279done
5213506e
RW
10280 done
10281IFS=$as_save_IFS
1c710c3c 10282
ca9f4b81
AO
10283fi
10284fi
1c710c3c 10285GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10286if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10288$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10289else
5213506e
RW
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10291$as_echo "no" >&6; }
ca9f4b81
AO
10292fi
10293
5213506e 10294
e8b05380
PB
10295 fi
10296 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 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
ca9f4b81 10303else
e8b05380
PB
10304 if test -n "$GCC_FOR_TARGET"; then
10305 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10306else
1c710c3c
DJ
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
1c710c3c 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
1c710c3c
DJ
10316 break 2
10317 fi
10318done
5213506e
RW
10319 done
10320IFS=$as_save_IFS
1c710c3c 10321
ca9f4b81
AO
10322fi
10323fi
1c710c3c 10324GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 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; }
ca9f4b81 10328else
5213506e
RW
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10330$as_echo "no" >&6; }
ca9f4b81 10331fi
1c710c3c 10332
5213506e 10333
e8b05380
PB
10334 fi
10335 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10336 done
10337fi
1c710c3c 10338
e8b05380
PB
10339if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10340 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10341else
10342 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10343fi
10344
278a7a38
AO
10345
10346
278a7a38
AO
10347if test -n "$GFORTRAN_FOR_TARGET"; then
10348 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10349elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10350 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10351fi
10352
278a7a38
AO
10353if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10354 for ncn_progname in gfortran; do
10355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10356set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358$as_echo_n "checking for $ac_word... " >&6; }
10359if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10360 $as_echo_n "(cached) " >&6
e8b05380 10361else
278a7a38
AO
10362 if test -n "$GFORTRAN_FOR_TARGET"; then
10363 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10364else
1c710c3c
DJ
10365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366for as_dir in $PATH
10367do
10368 IFS=$as_save_IFS
10369 test -z "$as_dir" && as_dir=.
5213506e
RW
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10372 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10374 break 2
10375 fi
10376done
5213506e
RW
10377 done
10378IFS=$as_save_IFS
1c710c3c 10379
e8b05380
PB
10380fi
10381fi
278a7a38
AO
10382GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10383if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10385$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10386else
5213506e
RW
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388$as_echo "no" >&6; }
e8b05380 10389fi
1c710c3c 10390
5213506e 10391
e8b05380
PB
10392 done
10393fi
1c710c3c 10394
278a7a38 10395if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10396 for ncn_progname in gfortran; do
5213506e
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10398$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10399 if test -x $with_build_time_tools/${ncn_progname}; then
10400 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10402$as_echo "yes" >&6; }
e8b05380
PB
10403 break
10404 else
5213506e
RW
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10406$as_echo "no" >&6; }
e8b05380
PB
10407 fi
10408 done
10409fi
10410
10411if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10412 for ncn_progname in gfortran; do
10413 if test -n "$ncn_target_tool_prefix"; then
10414 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10415set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10417$as_echo_n "checking for $ac_word... " >&6; }
10418if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10419 $as_echo_n "(cached) " >&6
e8b05380
PB
10420else
10421 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10422 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10423else
10424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10425for as_dir in $PATH
10426do
10427 IFS=$as_save_IFS
10428 test -z "$as_dir" && as_dir=.
5213506e
RW
10429 for ac_exec_ext in '' $ac_executable_extensions; do
10430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10431 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10433 break 2
10434 fi
10435done
5213506e
RW
10436 done
10437IFS=$as_save_IFS
1c710c3c 10438
e8b05380
PB
10439fi
10440fi
1c710c3c 10441GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10442if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10444$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10445else
5213506e
RW
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10447$as_echo "no" >&6; }
e8b05380
PB
10448fi
10449
5213506e 10450
e8b05380
PB
10451 fi
10452 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
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_GFORTRAN_FOR_TARGET+set}" = set; then :
10458 $as_echo_n "(cached) " >&6
e8b05380
PB
10459else
10460 if test -n "$GFORTRAN_FOR_TARGET"; then
10461 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10462else
1c710c3c
DJ
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
1c710c3c 10470 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10472 break 2
10473 fi
10474done
5213506e
RW
10475 done
10476IFS=$as_save_IFS
1c710c3c 10477
e8b05380
PB
10478fi
10479fi
1c710c3c 10480GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10481if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10483$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10484else
5213506e
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486$as_echo "no" >&6; }
e8b05380 10487fi
1c710c3c 10488
5213506e 10489
e8b05380
PB
10490 fi
10491 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10492 done
10493fi
1c710c3c 10494
e8b05380
PB
10495if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10496 set dummy gfortran
2693c0b0 10497 if test $build = $target ; then
e8b05380 10498 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10499 else
e8b05380
PB
10500 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10501 fi
1c00b503
PB
10502else
10503 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10504fi
10505
10506
10507
632e2a07
ILT
10508if test -n "$GOC_FOR_TARGET"; then
10509 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10510elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10511 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10512fi
10513
10514if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10515 for ncn_progname in gccgo; do
10516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10517set dummy ${ncn_progname}; ac_word=$2
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519$as_echo_n "checking for $ac_word... " >&6; }
10520if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10521 $as_echo_n "(cached) " >&6
10522else
10523 if test -n "$GOC_FOR_TARGET"; then
10524 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10525else
10526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527for as_dir in $PATH
10528do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10533 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10536 fi
10537done
10538 done
10539IFS=$as_save_IFS
10540
10541fi
10542fi
10543GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10544if test -n "$GOC_FOR_TARGET"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10546$as_echo "$GOC_FOR_TARGET" >&6; }
10547else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549$as_echo "no" >&6; }
10550fi
10551
10552
10553 done
10554fi
10555
10556if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10557 for ncn_progname in gccgo; do
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10559$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10560 if test -x $with_build_time_tools/${ncn_progname}; then
10561 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563$as_echo "yes" >&6; }
10564 break
10565 else
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10567$as_echo "no" >&6; }
10568 fi
10569 done
10570fi
10571
10572if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10573 for ncn_progname in gccgo; do
10574 if test -n "$ncn_target_tool_prefix"; then
10575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10576set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10578$as_echo_n "checking for $ac_word... " >&6; }
10579if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10580 $as_echo_n "(cached) " >&6
10581else
10582 if test -n "$GOC_FOR_TARGET"; then
10583 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10584else
10585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586for as_dir in $PATH
10587do
10588 IFS=$as_save_IFS
10589 test -z "$as_dir" && as_dir=.
10590 for ac_exec_ext in '' $ac_executable_extensions; do
10591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10592 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10594 break 2
10595 fi
10596done
10597 done
10598IFS=$as_save_IFS
10599
10600fi
10601fi
10602GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10603if test -n "$GOC_FOR_TARGET"; then
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10605$as_echo "$GOC_FOR_TARGET" >&6; }
10606else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10608$as_echo "no" >&6; }
10609fi
10610
10611
10612 fi
10613 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10615set dummy ${ncn_progname}; ac_word=$2
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_GOC_FOR_TARGET+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10620else
10621 if test -n "$GOC_FOR_TARGET"; then
10622 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10623else
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=.
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
10631 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10634 fi
10635done
10636 done
10637IFS=$as_save_IFS
10638
10639fi
10640fi
10641GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10642if test -n "$GOC_FOR_TARGET"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10644$as_echo "$GOC_FOR_TARGET" >&6; }
10645else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647$as_echo "no" >&6; }
10648fi
10649
10650
10651 fi
10652 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10653 done
10654fi
10655
10656if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10657 set dummy gccgo
10658 if test $build = $target ; then
10659 GOC_FOR_TARGET="$2"
10660 else
10661 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10662 fi
10663else
10664 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10665fi
10666
10667
10668
e8b05380
PB
10669cat > conftest.c << \EOF
10670#ifdef __GNUC__
10671 gcc_yay;
10672#endif
10673EOF
10674if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10675 have_gcc_for_target=yes
10676else
10677 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10678 have_gcc_for_target=no
10679fi
10680rm conftest.c
10681
10682
10683
10684
10685if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10686 if test -n "$with_build_time_tools"; then
5213506e
RW
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10688$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10689 if test -x $with_build_time_tools/ar; then
10690 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10691 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10693$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10694 else
5213506e
RW
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10696$as_echo "no" >&6; }
d1f8db0c 10697 fi
e8b05380
PB
10698 elif test $build != $host && test $have_gcc_for_target = yes; then
10699 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10700 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10701 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10702 fi
10703fi
3e19841a 10704if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10705 # Extract the first word of "ar", so it can be a program name with args.
10706set dummy ar; ac_word=$2
5213506e
RW
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708$as_echo_n "checking for $ac_word... " >&6; }
10709if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10710 $as_echo_n "(cached) " >&6
e8b05380 10711else
1c710c3c
DJ
10712 case $AR_FOR_TARGET in
10713 [\\/]* | ?:[\\/]*)
e8b05380
PB
10714 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10715 ;;
e8b05380 10716 *)
1c710c3c
DJ
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718for as_dir in $gcc_cv_tool_dirs
10719do
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
5213506e
RW
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10724 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10726 break 2
10727 fi
10728done
5213506e
RW
10729 done
10730IFS=$as_save_IFS
1c710c3c 10731
e8b05380
PB
10732 ;;
10733esac
10734fi
1c710c3c 10735AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10736if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10738$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10739else
5213506e
RW
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
4de997d1
PB
10742fi
10743
5213506e 10744
e8b05380
PB
10745fi
10746if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10747
10748
10749if test -n "$AR_FOR_TARGET"; then
10750 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10751elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10752 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10753fi
10754
10755if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10756 for ncn_progname in ar; do
10757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10758set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10760$as_echo_n "checking for $ac_word... " >&6; }
10761if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10762 $as_echo_n "(cached) " >&6
278a7a38
AO
10763else
10764 if test -n "$AR_FOR_TARGET"; then
10765 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10766else
10767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10768for as_dir in $PATH
10769do
10770 IFS=$as_save_IFS
10771 test -z "$as_dir" && as_dir=.
5213506e
RW
10772 for ac_exec_ext in '' $ac_executable_extensions; do
10773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10774 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10776 break 2
10777 fi
10778done
5213506e
RW
10779 done
10780IFS=$as_save_IFS
278a7a38
AO
10781
10782fi
10783fi
10784AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10785if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10787$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10788else
5213506e
RW
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10790$as_echo "no" >&6; }
278a7a38
AO
10791fi
10792
5213506e 10793
278a7a38
AO
10794 done
10795fi
10796
10797if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10798 for ncn_progname in ar; do
5213506e
RW
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10800$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10801 if test -x $with_build_time_tools/${ncn_progname}; then
10802 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804$as_echo "yes" >&6; }
e8b05380
PB
10805 break
10806 else
5213506e
RW
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10808$as_echo "no" >&6; }
e8b05380
PB
10809 fi
10810 done
10811fi
10812
10813if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10814 for ncn_progname in ar; do
10815 if test -n "$ncn_target_tool_prefix"; then
10816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10817set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10819$as_echo_n "checking for $ac_word... " >&6; }
10820if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
4de997d1 10822else
e8b05380
PB
10823 if test -n "$AR_FOR_TARGET"; then
10824 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10825else
1c710c3c
DJ
10826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10827for as_dir in $PATH
10828do
10829 IFS=$as_save_IFS
10830 test -z "$as_dir" && as_dir=.
5213506e
RW
10831 for ac_exec_ext in '' $ac_executable_extensions; do
10832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10833 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10835 break 2
10836 fi
10837done
5213506e
RW
10838 done
10839IFS=$as_save_IFS
1c710c3c 10840
4de997d1
PB
10841fi
10842fi
1c710c3c 10843AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10844if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10846$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10847else
5213506e
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10849$as_echo "no" >&6; }
4de997d1
PB
10850fi
10851
5213506e 10852
e8b05380
PB
10853 fi
10854 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10856set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858$as_echo_n "checking for $ac_word... " >&6; }
10859if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10860 $as_echo_n "(cached) " >&6
e8b05380
PB
10861else
10862 if test -n "$AR_FOR_TARGET"; then
10863 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10864else
1c710c3c
DJ
10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
5213506e
RW
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10872 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10874 break 2
10875 fi
10876done
5213506e
RW
10877 done
10878IFS=$as_save_IFS
1c710c3c 10879
e8b05380
PB
10880fi
10881fi
1c710c3c 10882AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10883if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10885$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10886else
5213506e
RW
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888$as_echo "no" >&6; }
e8b05380 10889fi
1c710c3c 10890
5213506e 10891
e8b05380
PB
10892 fi
10893 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10894 done
10895fi
1c710c3c 10896
e8b05380
PB
10897if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10898 set dummy ar
10899 if test $build = $target ; then
10900 AR_FOR_TARGET="$2"
10901 else
10902 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10903 fi
1c00b503
PB
10904else
10905 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10906fi
10907
d1f8db0c
PB
10908else
10909 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10910fi
10911
10912
10913
10914
10915if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10916 if test -n "$with_build_time_tools"; then
5213506e
RW
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10918$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10919 if test -x $with_build_time_tools/as; then
10920 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10921 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10923$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10924 else
5213506e
RW
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10926$as_echo "no" >&6; }
d1f8db0c 10927 fi
e8b05380
PB
10928 elif test $build != $host && test $have_gcc_for_target = yes; then
10929 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10930 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10931 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10932 fi
10933fi
3e19841a 10934if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10935 # Extract the first word of "as", so it can be a program name with args.
10936set dummy as; ac_word=$2
5213506e
RW
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
10939if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
e8b05380 10941else
1c710c3c
DJ
10942 case $AS_FOR_TARGET in
10943 [\\/]* | ?:[\\/]*)
e8b05380
PB
10944 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10945 ;;
e8b05380 10946 *)
1c710c3c
DJ
10947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10948for as_dir in $gcc_cv_tool_dirs
10949do
10950 IFS=$as_save_IFS
10951 test -z "$as_dir" && as_dir=.
5213506e
RW
10952 for ac_exec_ext in '' $ac_executable_extensions; do
10953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10954 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10956 break 2
10957 fi
10958done
5213506e
RW
10959 done
10960IFS=$as_save_IFS
1c710c3c 10961
e8b05380
PB
10962 ;;
10963esac
10964fi
1c710c3c 10965AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10966if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10968$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10969else
5213506e
RW
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
e8b05380
PB
10972fi
10973
5213506e 10974
e8b05380
PB
10975fi
10976if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10977
10978
10979if test -n "$AS_FOR_TARGET"; then
10980 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10981elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10982 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10983fi
10984
10985if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10986 for ncn_progname in as; do
10987 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10988set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990$as_echo_n "checking for $ac_word... " >&6; }
10991if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10992 $as_echo_n "(cached) " >&6
278a7a38
AO
10993else
10994 if test -n "$AS_FOR_TARGET"; then
10995 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10996else
10997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998for as_dir in $PATH
10999do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
5213506e
RW
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11004 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11006 break 2
11007 fi
11008done
5213506e
RW
11009 done
11010IFS=$as_save_IFS
278a7a38
AO
11011
11012fi
11013fi
11014AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11015if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11017$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11018else
5213506e
RW
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11020$as_echo "no" >&6; }
278a7a38
AO
11021fi
11022
5213506e 11023
278a7a38
AO
11024 done
11025fi
11026
11027if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11028 for ncn_progname in as; do
5213506e
RW
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11030$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11031 if test -x $with_build_time_tools/${ncn_progname}; then
11032 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11034$as_echo "yes" >&6; }
e8b05380
PB
11035 break
11036 else
5213506e
RW
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038$as_echo "no" >&6; }
e8b05380
PB
11039 fi
11040 done
11041fi
11042
11043if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11044 for ncn_progname in as; do
11045 if test -n "$ncn_target_tool_prefix"; then
11046 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11047set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11049$as_echo_n "checking for $ac_word... " >&6; }
11050if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11051 $as_echo_n "(cached) " >&6
e8b05380
PB
11052else
11053 if test -n "$AS_FOR_TARGET"; then
11054 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11055else
1c710c3c
DJ
11056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11057for as_dir in $PATH
11058do
11059 IFS=$as_save_IFS
11060 test -z "$as_dir" && as_dir=.
5213506e
RW
11061 for ac_exec_ext in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11063 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11065 break 2
11066 fi
11067done
5213506e
RW
11068 done
11069IFS=$as_save_IFS
1c710c3c 11070
e8b05380
PB
11071fi
11072fi
1c710c3c 11073AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11074if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11076$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11077else
5213506e
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11079$as_echo "no" >&6; }
e8b05380
PB
11080fi
11081
5213506e 11082
e8b05380
PB
11083 fi
11084 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11086set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11088$as_echo_n "checking for $ac_word... " >&6; }
11089if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11090 $as_echo_n "(cached) " >&6
4de997d1 11091else
e8b05380
PB
11092 if test -n "$AS_FOR_TARGET"; then
11093 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11094else
1c710c3c
DJ
11095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11096for as_dir in $PATH
11097do
11098 IFS=$as_save_IFS
11099 test -z "$as_dir" && as_dir=.
5213506e
RW
11100 for ac_exec_ext in '' $ac_executable_extensions; do
11101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11102 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11104 break 2
11105 fi
11106done
5213506e
RW
11107 done
11108IFS=$as_save_IFS
1c710c3c 11109
4de997d1
PB
11110fi
11111fi
1c710c3c 11112AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11113if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11115$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11116else
5213506e
RW
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11118$as_echo "no" >&6; }
4de997d1 11119fi
1c710c3c 11120
5213506e 11121
e8b05380
PB
11122 fi
11123 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11124 done
11125fi
1c710c3c 11126
e8b05380
PB
11127if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11128 set dummy as
11129 if test $build = $target ; then
11130 AS_FOR_TARGET="$2"
11131 else
11132 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11133 fi
1c00b503
PB
11134else
11135 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11136fi
2693c0b0 11137
d1f8db0c
PB
11138else
11139 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11140fi
11141
e8b05380
PB
11142
11143
11144
11145if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11146 if test -n "$with_build_time_tools"; then
5213506e
RW
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11148$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11149 if test -x $with_build_time_tools/dlltool; then
11150 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11151 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11153$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11154 else
5213506e
RW
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156$as_echo "no" >&6; }
d1f8db0c 11157 fi
e8b05380
PB
11158 elif test $build != $host && test $have_gcc_for_target = yes; then
11159 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11160 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11161 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11162 fi
11163fi
3e19841a 11164if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11165 # Extract the first word of "dlltool", so it can be a program name with args.
11166set dummy dlltool; ac_word=$2
5213506e
RW
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
11169if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
4de997d1 11171else
1c710c3c
DJ
11172 case $DLLTOOL_FOR_TARGET in
11173 [\\/]* | ?:[\\/]*)
e8b05380
PB
11174 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11175 ;;
e8b05380 11176 *)
1c710c3c
DJ
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178for as_dir in $gcc_cv_tool_dirs
11179do
11180 IFS=$as_save_IFS
11181 test -z "$as_dir" && as_dir=.
5213506e
RW
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11184 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11186 break 2
11187 fi
11188done
5213506e
RW
11189 done
11190IFS=$as_save_IFS
1c710c3c 11191
e8b05380
PB
11192 ;;
11193esac
4de997d1 11194fi
1c710c3c 11195DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11196if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11198$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11199else
5213506e
RW
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
4de997d1
PB
11202fi
11203
5213506e 11204
e8b05380
PB
11205fi
11206if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11207
11208
11209if test -n "$DLLTOOL_FOR_TARGET"; then
11210 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11211elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11212 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11213fi
11214
11215if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11216 for ncn_progname in dlltool; do
11217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11218set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11220$as_echo_n "checking for $ac_word... " >&6; }
11221if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11222 $as_echo_n "(cached) " >&6
278a7a38
AO
11223else
11224 if test -n "$DLLTOOL_FOR_TARGET"; then
11225 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11226else
11227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228for as_dir in $PATH
11229do
11230 IFS=$as_save_IFS
11231 test -z "$as_dir" && as_dir=.
5213506e
RW
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11234 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11236 break 2
11237 fi
11238done
5213506e
RW
11239 done
11240IFS=$as_save_IFS
278a7a38
AO
11241
11242fi
11243fi
11244DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11245if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11247$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11248else
5213506e
RW
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11250$as_echo "no" >&6; }
278a7a38
AO
11251fi
11252
5213506e 11253
278a7a38
AO
11254 done
11255fi
11256
11257if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11258 for ncn_progname in dlltool; do
5213506e
RW
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11260$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11261 if test -x $with_build_time_tools/${ncn_progname}; then
11262 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11264$as_echo "yes" >&6; }
e8b05380
PB
11265 break
11266 else
5213506e
RW
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268$as_echo "no" >&6; }
e8b05380
PB
11269 fi
11270 done
11271fi
11272
11273if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11274 for ncn_progname in dlltool; do
11275 if test -n "$ncn_target_tool_prefix"; then
11276 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11277set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11279$as_echo_n "checking for $ac_word... " >&6; }
11280if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
4de997d1 11282else
e8b05380
PB
11283 if test -n "$DLLTOOL_FOR_TARGET"; then
11284 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11285else
1c710c3c
DJ
11286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287for as_dir in $PATH
11288do
11289 IFS=$as_save_IFS
11290 test -z "$as_dir" && as_dir=.
5213506e
RW
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11293 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11295 break 2
11296 fi
11297done
5213506e
RW
11298 done
11299IFS=$as_save_IFS
1c710c3c 11300
4de997d1
PB
11301fi
11302fi
1c710c3c 11303DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11304if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11306$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11307else
5213506e
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11309$as_echo "no" >&6; }
4de997d1 11310fi
4de997d1 11311
5213506e 11312
e8b05380
PB
11313 fi
11314 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11316set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318$as_echo_n "checking for $ac_word... " >&6; }
11319if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
4de997d1 11321else
e8b05380
PB
11322 if test -n "$DLLTOOL_FOR_TARGET"; then
11323 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11324else
1c710c3c
DJ
11325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326for as_dir in $PATH
11327do
11328 IFS=$as_save_IFS
11329 test -z "$as_dir" && as_dir=.
5213506e
RW
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11332 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11334 break 2
11335 fi
11336done
5213506e
RW
11337 done
11338IFS=$as_save_IFS
1c710c3c 11339
4de997d1
PB
11340fi
11341fi
1c710c3c 11342DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11343if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11345$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11346else
5213506e
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
4de997d1 11349fi
1c710c3c 11350
5213506e 11351
e8b05380
PB
11352 fi
11353 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11354 done
11355fi
1c710c3c 11356
e8b05380
PB
11357if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11358 set dummy dlltool
11359 if test $build = $target ; then
11360 DLLTOOL_FOR_TARGET="$2"
11361 else
11362 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11363 fi
1c00b503
PB
11364else
11365 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11366fi
11367
d1f8db0c
PB
11368else
11369 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11370fi
11371
4de997d1 11372
e8b05380
PB
11373
11374
11375if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11376 if test -n "$with_build_time_tools"; then
5213506e
RW
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11378$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11379 if test -x $with_build_time_tools/ld; then
11380 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11381 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11383$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11384 else
5213506e
RW
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386$as_echo "no" >&6; }
d1f8db0c 11387 fi
e8b05380
PB
11388 elif test $build != $host && test $have_gcc_for_target = yes; then
11389 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11390 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11391 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11392 fi
e8b05380 11393fi
3e19841a 11394if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11395 # Extract the first word of "ld", so it can be a program name with args.
11396set dummy ld; ac_word=$2
5213506e
RW
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
11399if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
4de997d1 11401else
1c710c3c
DJ
11402 case $LD_FOR_TARGET in
11403 [\\/]* | ?:[\\/]*)
e8b05380
PB
11404 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11405 ;;
e8b05380 11406 *)
1c710c3c
DJ
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408for as_dir in $gcc_cv_tool_dirs
11409do
11410 IFS=$as_save_IFS
11411 test -z "$as_dir" && as_dir=.
5213506e
RW
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11414 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11416 break 2
11417 fi
11418done
5213506e
RW
11419 done
11420IFS=$as_save_IFS
1c710c3c 11421
e8b05380
PB
11422 ;;
11423esac
4de997d1 11424fi
1c710c3c 11425LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11426if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11428$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11429else
5213506e
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431$as_echo "no" >&6; }
4de997d1 11432fi
2693c0b0 11433
5213506e 11434
e8b05380
PB
11435fi
11436if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11437
11438
11439if test -n "$LD_FOR_TARGET"; then
11440 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11441elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11442 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11443fi
11444
11445if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11446 for ncn_progname in ld; do
11447 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11448set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11450$as_echo_n "checking for $ac_word... " >&6; }
11451if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11452 $as_echo_n "(cached) " >&6
278a7a38
AO
11453else
11454 if test -n "$LD_FOR_TARGET"; then
11455 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11456else
11457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11458for as_dir in $PATH
11459do
11460 IFS=$as_save_IFS
11461 test -z "$as_dir" && as_dir=.
5213506e
RW
11462 for ac_exec_ext in '' $ac_executable_extensions; do
11463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11464 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11466 break 2
11467 fi
11468done
5213506e
RW
11469 done
11470IFS=$as_save_IFS
278a7a38
AO
11471
11472fi
11473fi
11474LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11475if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11477$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11478else
5213506e
RW
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480$as_echo "no" >&6; }
278a7a38
AO
11481fi
11482
5213506e 11483
278a7a38
AO
11484 done
11485fi
11486
11487if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11488 for ncn_progname in ld; do
5213506e
RW
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11490$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11491 if test -x $with_build_time_tools/${ncn_progname}; then
11492 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11494$as_echo "yes" >&6; }
e8b05380
PB
11495 break
11496 else
5213506e
RW
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11498$as_echo "no" >&6; }
e8b05380
PB
11499 fi
11500 done
ca9f4b81
AO
11501fi
11502
e8b05380
PB
11503if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11504 for ncn_progname in ld; do
11505 if test -n "$ncn_target_tool_prefix"; then
11506 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11507set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11509$as_echo_n "checking for $ac_word... " >&6; }
11510if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
ca9f4b81 11512else
4de997d1
PB
11513 if test -n "$LD_FOR_TARGET"; then
11514 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11515else
1c710c3c
DJ
11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
11520 test -z "$as_dir" && as_dir=.
5213506e
RW
11521 for ac_exec_ext in '' $ac_executable_extensions; do
11522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11523 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11525 break 2
11526 fi
11527done
5213506e
RW
11528 done
11529IFS=$as_save_IFS
1c710c3c 11530
ca9f4b81
AO
11531fi
11532fi
1c710c3c 11533LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11534if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11536$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11537else
5213506e
RW
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11539$as_echo "no" >&6; }
ca9f4b81
AO
11540fi
11541
5213506e 11542
e8b05380
PB
11543 fi
11544 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11546set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548$as_echo_n "checking for $ac_word... " >&6; }
11549if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11550 $as_echo_n "(cached) " >&6
ca9f4b81 11551else
2693c0b0
PB
11552 if test -n "$LD_FOR_TARGET"; then
11553 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11554else
1c710c3c
DJ
11555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
5213506e
RW
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11562 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11564 break 2
11565 fi
11566done
5213506e
RW
11567 done
11568IFS=$as_save_IFS
1c710c3c 11569
ca9f4b81
AO
11570fi
11571fi
1c710c3c 11572LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11573if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11575$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11576else
5213506e
RW
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11578$as_echo "no" >&6; }
ca9f4b81 11579fi
1c710c3c 11580
5213506e 11581
e8b05380
PB
11582 fi
11583 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11584 done
11585fi
1c710c3c 11586
2693c0b0
PB
11587if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11588 set dummy ld
11589 if test $build = $target ; then
11590 LD_FOR_TARGET="$2"
ca9f4b81 11591 else
2693c0b0 11592 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11593 fi
1c00b503
PB
11594else
11595 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11596fi
11597
d1f8db0c
PB
11598else
11599 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11600fi
11601
11602
11603
11604
11605if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11606 if test -n "$with_build_time_tools"; then
5213506e
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11608$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11609 if test -x $with_build_time_tools/lipo; then
11610 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11611 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11613$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11614 else
5213506e
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
d1f8db0c 11617 fi
e8b05380
PB
11618 elif test $build != $host && test $have_gcc_for_target = yes; then
11619 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11620 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11621 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11622 fi
11623fi
278a7a38
AO
11624if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11625 # Extract the first word of "lipo", so it can be a program name with args.
11626set dummy lipo; ac_word=$2
5213506e
RW
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
11629if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
278a7a38
AO
11631else
11632 case $LIPO_FOR_TARGET in
11633 [\\/]* | ?:[\\/]*)
11634 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11635 ;;
11636 *)
11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $gcc_cv_tool_dirs
11639do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
5213506e
RW
11642 for ac_exec_ext in '' $ac_executable_extensions; do
11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11644 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11646 break 2
11647 fi
11648done
5213506e
RW
11649 done
11650IFS=$as_save_IFS
278a7a38
AO
11651
11652 ;;
11653esac
11654fi
11655LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11656if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11658$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11659else
5213506e
RW
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
278a7a38
AO
11662fi
11663
5213506e 11664
278a7a38
AO
11665fi
11666if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11667
11668
11669if test -n "$LIPO_FOR_TARGET"; then
11670 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11671elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11672 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11673fi
11674
11675if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11676 for ncn_progname in lipo; do
11677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11678set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680$as_echo_n "checking for $ac_word... " >&6; }
11681if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11682 $as_echo_n "(cached) " >&6
e8b05380 11683else
278a7a38
AO
11684 if test -n "$LIPO_FOR_TARGET"; then
11685 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11686else
11687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688for as_dir in $PATH
1c710c3c
DJ
11689do
11690 IFS=$as_save_IFS
11691 test -z "$as_dir" && as_dir=.
5213506e
RW
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11694 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11696 break 2
11697 fi
11698done
5213506e
RW
11699 done
11700IFS=$as_save_IFS
1c710c3c 11701
e8b05380 11702fi
278a7a38
AO
11703fi
11704LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11705if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11707$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11708else
5213506e
RW
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710$as_echo "no" >&6; }
e8b05380
PB
11711fi
11712
5213506e 11713
278a7a38 11714 done
e8b05380 11715fi
278a7a38
AO
11716
11717if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11718 for ncn_progname in lipo; do
5213506e
RW
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11720$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11721 if test -x $with_build_time_tools/${ncn_progname}; then
11722 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724$as_echo "yes" >&6; }
e8b05380
PB
11725 break
11726 else
5213506e
RW
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11728$as_echo "no" >&6; }
e8b05380
PB
11729 fi
11730 done
11731fi
11732
11733if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11734 for ncn_progname in lipo; do
11735 if test -n "$ncn_target_tool_prefix"; then
11736 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11737set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11739$as_echo_n "checking for $ac_word... " >&6; }
11740if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11741 $as_echo_n "(cached) " >&6
040b1c5a
GK
11742else
11743 if test -n "$LIPO_FOR_TARGET"; then
11744 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11745else
1c710c3c
DJ
11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
5213506e
RW
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11753 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11755 break 2
11756 fi
11757done
5213506e
RW
11758 done
11759IFS=$as_save_IFS
1c710c3c 11760
040b1c5a
GK
11761fi
11762fi
1c710c3c 11763LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11764if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11766$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11767else
5213506e
RW
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11769$as_echo "no" >&6; }
040b1c5a
GK
11770fi
11771
5213506e 11772
e8b05380
PB
11773 fi
11774 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11776set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11778$as_echo_n "checking for $ac_word... " >&6; }
11779if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11780 $as_echo_n "(cached) " >&6
040b1c5a
GK
11781else
11782 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11783 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11784else
1c710c3c
DJ
11785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11786for as_dir in $PATH
11787do
11788 IFS=$as_save_IFS
11789 test -z "$as_dir" && as_dir=.
5213506e
RW
11790 for ac_exec_ext in '' $ac_executable_extensions; do
11791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11792 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11794 break 2
11795 fi
11796done
5213506e
RW
11797 done
11798IFS=$as_save_IFS
1c710c3c 11799
040b1c5a
GK
11800fi
11801fi
1c710c3c 11802LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11803if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11805$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11806else
5213506e
RW
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808$as_echo "no" >&6; }
040b1c5a 11809fi
1c710c3c 11810
5213506e 11811
e8b05380
PB
11812 fi
11813 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11814 done
11815fi
1c710c3c 11816
040b1c5a
GK
11817if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11818 set dummy lipo
11819 if test $build = $target ; then
11820 LIPO_FOR_TARGET="$2"
11821 else
11822 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11823 fi
1c00b503
PB
11824else
11825 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11826fi
11827
d1f8db0c
PB
11828else
11829 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11830fi
11831
11832
11833
11834
11835if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11836 if test -n "$with_build_time_tools"; then
5213506e
RW
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11838$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11839 if test -x $with_build_time_tools/nm; then
11840 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11841 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11843$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11844 else
5213506e
RW
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846$as_echo "no" >&6; }
d1f8db0c 11847 fi
e8b05380
PB
11848 elif test $build != $host && test $have_gcc_for_target = yes; then
11849 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11850 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11851 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11852 fi
11853fi
3e19841a 11854if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11855 # Extract the first word of "nm", so it can be a program name with args.
11856set dummy nm; ac_word=$2
5213506e
RW
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
11859if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
e8b05380 11861else
1c710c3c
DJ
11862 case $NM_FOR_TARGET in
11863 [\\/]* | ?:[\\/]*)
e8b05380
PB
11864 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11865 ;;
e8b05380 11866 *)
1c710c3c
DJ
11867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11868for as_dir in $gcc_cv_tool_dirs
11869do
11870 IFS=$as_save_IFS
11871 test -z "$as_dir" && as_dir=.
5213506e
RW
11872 for ac_exec_ext in '' $ac_executable_extensions; do
11873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11874 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11876 break 2
11877 fi
11878done
5213506e
RW
11879 done
11880IFS=$as_save_IFS
1c710c3c 11881
e8b05380
PB
11882 ;;
11883esac
11884fi
1c710c3c 11885NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11886if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11888$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11889else
5213506e
RW
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
e8b05380
PB
11892fi
11893
5213506e 11894
e8b05380
PB
11895fi
11896if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11897
11898
11899if test -n "$NM_FOR_TARGET"; then
11900 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11901elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11902 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11903fi
11904
11905if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11906 for ncn_progname in nm; do
11907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11908set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910$as_echo_n "checking for $ac_word... " >&6; }
11911if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11912 $as_echo_n "(cached) " >&6
278a7a38
AO
11913else
11914 if test -n "$NM_FOR_TARGET"; then
11915 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11916else
11917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918for as_dir in $PATH
11919do
11920 IFS=$as_save_IFS
11921 test -z "$as_dir" && as_dir=.
5213506e
RW
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11924 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11926 break 2
11927 fi
11928done
5213506e
RW
11929 done
11930IFS=$as_save_IFS
278a7a38
AO
11931
11932fi
11933fi
11934NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11935if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11937$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11938else
5213506e
RW
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940$as_echo "no" >&6; }
278a7a38
AO
11941fi
11942
5213506e 11943
278a7a38
AO
11944 done
11945fi
11946
11947if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11948 for ncn_progname in nm; do
5213506e
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11950$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11951 if test -x $with_build_time_tools/${ncn_progname}; then
11952 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11954$as_echo "yes" >&6; }
e8b05380
PB
11955 break
11956 else
5213506e
RW
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11958$as_echo "no" >&6; }
e8b05380
PB
11959 fi
11960 done
11961fi
11962
11963if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11964 for ncn_progname in nm; do
11965 if test -n "$ncn_target_tool_prefix"; then
11966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11967set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11969$as_echo_n "checking for $ac_word... " >&6; }
11970if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11971 $as_echo_n "(cached) " >&6
ca9f4b81 11972else
4de997d1
PB
11973 if test -n "$NM_FOR_TARGET"; then
11974 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11975else
1c710c3c
DJ
11976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11977for as_dir in $PATH
11978do
11979 IFS=$as_save_IFS
11980 test -z "$as_dir" && as_dir=.
5213506e
RW
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11983 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11985 break 2
11986 fi
11987done
5213506e
RW
11988 done
11989IFS=$as_save_IFS
1c710c3c 11990
ca9f4b81
AO
11991fi
11992fi
1c710c3c 11993NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11994if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11996$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11997else
5213506e
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11999$as_echo "no" >&6; }
ca9f4b81
AO
12000fi
12001
5213506e 12002
e8b05380
PB
12003 fi
12004 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12006set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12008$as_echo_n "checking for $ac_word... " >&6; }
12009if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12010 $as_echo_n "(cached) " >&6
ca9f4b81 12011else
2693c0b0
PB
12012 if test -n "$NM_FOR_TARGET"; then
12013 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12014else
1c710c3c
DJ
12015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016for as_dir in $PATH
12017do
12018 IFS=$as_save_IFS
12019 test -z "$as_dir" && as_dir=.
5213506e
RW
12020 for ac_exec_ext in '' $ac_executable_extensions; do
12021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12022 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12024 break 2
12025 fi
12026done
5213506e
RW
12027 done
12028IFS=$as_save_IFS
1c710c3c 12029
ca9f4b81
AO
12030fi
12031fi
1c710c3c 12032NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12033if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12035$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12036else
5213506e
RW
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12038$as_echo "no" >&6; }
ca9f4b81 12039fi
1c710c3c 12040
5213506e 12041
e8b05380
PB
12042 fi
12043 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12044 done
12045fi
1c710c3c 12046
2693c0b0
PB
12047if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12048 set dummy nm
12049 if test $build = $target ; then
12050 NM_FOR_TARGET="$2"
ca9f4b81 12051 else
2693c0b0 12052 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12053 fi
1c00b503
PB
12054else
12055 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12056fi
12057
d1f8db0c
PB
12058else
12059 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12060fi
12061
12062
12063
12064
9bccfdf5
AP
12065if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12066 if test -n "$with_build_time_tools"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12068$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12069 if test -x $with_build_time_tools/objcopy; then
12070 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12071 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12073$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076$as_echo "no" >&6; }
12077 fi
12078 elif test $build != $host && test $have_gcc_for_target = yes; then
12079 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12080 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12081 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12082 fi
12083fi
12084if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12085 # Extract the first word of "objcopy", so it can be a program name with args.
12086set dummy objcopy; ac_word=$2
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
12089if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
12091else
12092 case $OBJCOPY_FOR_TARGET in
12093 [\\/]* | ?:[\\/]*)
12094 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12095 ;;
12096 *)
12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $gcc_cv_tool_dirs
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
12102 for ac_exec_ext in '' $ac_executable_extensions; do
12103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12104 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12106 break 2
12107 fi
12108done
12109 done
12110IFS=$as_save_IFS
12111
12112 ;;
12113esac
12114fi
12115OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12116if test -n "$OBJCOPY_FOR_TARGET"; then
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12118$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12119else
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
12122fi
12123
12124
12125fi
12126if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12127
12128
12129if test -n "$OBJCOPY_FOR_TARGET"; then
12130 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12131elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12132 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12133fi
12134
12135if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12136 for ncn_progname in objcopy; do
12137 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12138set dummy ${ncn_progname}; ac_word=$2
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12140$as_echo_n "checking for $ac_word... " >&6; }
12141if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12143else
12144 if test -n "$OBJCOPY_FOR_TARGET"; then
12145 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12146else
12147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12148for as_dir in $PATH
12149do
12150 IFS=$as_save_IFS
12151 test -z "$as_dir" && as_dir=.
12152 for ac_exec_ext in '' $ac_executable_extensions; do
12153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12154 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 break 2
12157 fi
12158done
12159 done
12160IFS=$as_save_IFS
12161
12162fi
12163fi
12164OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12165if test -n "$OBJCOPY_FOR_TARGET"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12167$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12168else
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12170$as_echo "no" >&6; }
12171fi
12172
12173
12174 done
12175fi
12176
12177if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12178 for ncn_progname in objcopy; do
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12180$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12181 if test -x $with_build_time_tools/${ncn_progname}; then
12182 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12184$as_echo "yes" >&6; }
12185 break
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188$as_echo "no" >&6; }
12189 fi
12190 done
12191fi
12192
12193if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12194 for ncn_progname in objcopy; do
12195 if test -n "$ncn_target_tool_prefix"; then
12196 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12197set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
12200if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12201 $as_echo_n "(cached) " >&6
12202else
12203 if test -n "$OBJCOPY_FOR_TARGET"; then
12204 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12205else
12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
12212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12213 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 break 2
12216 fi
12217done
12218 done
12219IFS=$as_save_IFS
12220
12221fi
12222fi
12223OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12224if test -n "$OBJCOPY_FOR_TARGET"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12226$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12227else
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
12230fi
12231
12232
12233 fi
12234 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12236set dummy ${ncn_progname}; ac_word=$2
12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12238$as_echo_n "checking for $ac_word... " >&6; }
12239if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12240 $as_echo_n "(cached) " >&6
12241else
12242 if test -n "$OBJCOPY_FOR_TARGET"; then
12243 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12244else
12245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246for as_dir in $PATH
12247do
12248 IFS=$as_save_IFS
12249 test -z "$as_dir" && as_dir=.
12250 for ac_exec_ext in '' $ac_executable_extensions; do
12251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12254 break 2
12255 fi
12256done
12257 done
12258IFS=$as_save_IFS
12259
12260fi
12261fi
12262OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12263if test -n "$OBJCOPY_FOR_TARGET"; then
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12265$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12266else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12268$as_echo "no" >&6; }
12269fi
12270
12271
12272 fi
12273 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12274 done
12275fi
12276
12277if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12278 set dummy objcopy
12279 if test $build = $target ; then
12280 OBJCOPY_FOR_TARGET="$2"
12281 else
12282 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12283 fi
12284else
12285 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12286fi
12287
12288else
12289 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12290fi
12291
12292
12293
12294
e8b05380
PB
12295if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12296 if test -n "$with_build_time_tools"; then
5213506e
RW
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12298$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12299 if test -x $with_build_time_tools/objdump; then
12300 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12301 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12303$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12304 else
5213506e
RW
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306$as_echo "no" >&6; }
d1f8db0c 12307 fi
e8b05380
PB
12308 elif test $build != $host && test $have_gcc_for_target = yes; then
12309 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12310 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12311 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12312 fi
12313fi
3e19841a 12314if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12315 # Extract the first word of "objdump", so it can be a program name with args.
12316set dummy objdump; ac_word=$2
5213506e
RW
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
12319if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
e8b05380 12321else
1c710c3c
DJ
12322 case $OBJDUMP_FOR_TARGET in
12323 [\\/]* | ?:[\\/]*)
e8b05380
PB
12324 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12325 ;;
e8b05380 12326 *)
1c710c3c
DJ
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $gcc_cv_tool_dirs
12329do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
5213506e
RW
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12334 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12336 break 2
12337 fi
12338done
5213506e
RW
12339 done
12340IFS=$as_save_IFS
1c710c3c 12341
e8b05380
PB
12342 ;;
12343esac
12344fi
1c710c3c 12345OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12346if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12348$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12349else
5213506e
RW
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351$as_echo "no" >&6; }
e8b05380
PB
12352fi
12353
5213506e 12354
e8b05380
PB
12355fi
12356if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12357
12358
12359if test -n "$OBJDUMP_FOR_TARGET"; then
12360 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12361elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12362 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12363fi
12364
12365if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12366 for ncn_progname in objdump; do
12367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12368set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12370$as_echo_n "checking for $ac_word... " >&6; }
12371if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
278a7a38
AO
12373else
12374 if test -n "$OBJDUMP_FOR_TARGET"; then
12375 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12376else
12377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12378for as_dir in $PATH
12379do
12380 IFS=$as_save_IFS
12381 test -z "$as_dir" && as_dir=.
5213506e
RW
12382 for ac_exec_ext in '' $ac_executable_extensions; do
12383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12384 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12386 break 2
12387 fi
12388done
5213506e
RW
12389 done
12390IFS=$as_save_IFS
278a7a38
AO
12391
12392fi
12393fi
12394OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12395if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12397$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12398else
5213506e
RW
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12400$as_echo "no" >&6; }
278a7a38
AO
12401fi
12402
5213506e 12403
278a7a38
AO
12404 done
12405fi
12406
12407if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12408 for ncn_progname in objdump; do
5213506e
RW
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12410$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12411 if test -x $with_build_time_tools/${ncn_progname}; then
12412 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12414$as_echo "yes" >&6; }
e8b05380
PB
12415 break
12416 else
5213506e
RW
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12418$as_echo "no" >&6; }
e8b05380
PB
12419 fi
12420 done
12421fi
12422
12423if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12424 for ncn_progname in objdump; do
12425 if test -n "$ncn_target_tool_prefix"; then
12426 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12427set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12429$as_echo_n "checking for $ac_word... " >&6; }
12430if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12431 $as_echo_n "(cached) " >&6
d739199a
DJ
12432else
12433 if test -n "$OBJDUMP_FOR_TARGET"; then
12434 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12435else
1c710c3c
DJ
12436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12437for as_dir in $PATH
12438do
12439 IFS=$as_save_IFS
12440 test -z "$as_dir" && as_dir=.
5213506e
RW
12441 for ac_exec_ext in '' $ac_executable_extensions; do
12442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12443 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12445 break 2
12446 fi
12447done
5213506e
RW
12448 done
12449IFS=$as_save_IFS
1c710c3c 12450
d739199a
DJ
12451fi
12452fi
1c710c3c 12453OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12454if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12456$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12457else
5213506e
RW
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459$as_echo "no" >&6; }
d739199a
DJ
12460fi
12461
5213506e 12462
e8b05380
PB
12463 fi
12464 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12466set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12468$as_echo_n "checking for $ac_word... " >&6; }
12469if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12470 $as_echo_n "(cached) " >&6
d739199a
DJ
12471else
12472 if test -n "$OBJDUMP_FOR_TARGET"; then
12473 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12474else
1c710c3c
DJ
12475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12476for as_dir in $PATH
12477do
12478 IFS=$as_save_IFS
12479 test -z "$as_dir" && as_dir=.
5213506e
RW
12480 for ac_exec_ext in '' $ac_executable_extensions; do
12481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12482 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12484 break 2
12485 fi
12486done
5213506e
RW
12487 done
12488IFS=$as_save_IFS
1c710c3c 12489
d739199a
DJ
12490fi
12491fi
1c710c3c 12492OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12493if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12495$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12496else
5213506e
RW
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12498$as_echo "no" >&6; }
d739199a 12499fi
1c710c3c 12500
5213506e 12501
e8b05380
PB
12502 fi
12503 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12504 done
12505fi
1c710c3c 12506
d739199a
DJ
12507if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12508 set dummy objdump
12509 if test $build = $target ; then
12510 OBJDUMP_FOR_TARGET="$2"
12511 else
12512 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12513 fi
1c00b503
PB
12514else
12515 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12516fi
12517
d1f8db0c
PB
12518else
12519 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12520fi
12521
12522
12523
12524
12525if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12526 if test -n "$with_build_time_tools"; then
5213506e
RW
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12528$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12529 if test -x $with_build_time_tools/ranlib; then
12530 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12531 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12533$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12534 else
5213506e
RW
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12536$as_echo "no" >&6; }
d1f8db0c 12537 fi
e8b05380
PB
12538 elif test $build != $host && test $have_gcc_for_target = yes; then
12539 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12540 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12541 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12542 fi
12543fi
3e19841a 12544if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12545 # Extract the first word of "ranlib", so it can be a program name with args.
12546set dummy ranlib; ac_word=$2
5213506e
RW
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
e8b05380 12551else
1c710c3c
DJ
12552 case $RANLIB_FOR_TARGET in
12553 [\\/]* | ?:[\\/]*)
e8b05380
PB
12554 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12555 ;;
e8b05380 12556 *)
1c710c3c
DJ
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558for as_dir in $gcc_cv_tool_dirs
12559do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
5213506e
RW
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12564 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12566 break 2
12567 fi
12568done
5213506e
RW
12569 done
12570IFS=$as_save_IFS
1c710c3c 12571
e8b05380
PB
12572 ;;
12573esac
12574fi
1c710c3c 12575RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12576if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12578$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12579else
5213506e
RW
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
e8b05380
PB
12582fi
12583
5213506e 12584
e8b05380
PB
12585fi
12586if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12587
12588
12589if test -n "$RANLIB_FOR_TARGET"; then
12590 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12591elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12592 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12593fi
12594
12595if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12596 for ncn_progname in ranlib; do
12597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12598set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600$as_echo_n "checking for $ac_word... " >&6; }
12601if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12602 $as_echo_n "(cached) " >&6
278a7a38
AO
12603else
12604 if test -n "$RANLIB_FOR_TARGET"; then
12605 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12606else
12607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608for as_dir in $PATH
12609do
12610 IFS=$as_save_IFS
12611 test -z "$as_dir" && as_dir=.
5213506e
RW
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12614 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12616 break 2
12617 fi
12618done
5213506e
RW
12619 done
12620IFS=$as_save_IFS
278a7a38
AO
12621
12622fi
12623fi
12624RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12625if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12627$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12628else
5213506e
RW
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12630$as_echo "no" >&6; }
278a7a38
AO
12631fi
12632
5213506e 12633
278a7a38
AO
12634 done
12635fi
12636
12637if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12638 for ncn_progname in ranlib; do
5213506e
RW
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12640$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12641 if test -x $with_build_time_tools/${ncn_progname}; then
12642 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12644$as_echo "yes" >&6; }
e8b05380
PB
12645 break
12646 else
5213506e
RW
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12648$as_echo "no" >&6; }
e8b05380
PB
12649 fi
12650 done
12651fi
12652
12653if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12654 for ncn_progname in ranlib; do
12655 if test -n "$ncn_target_tool_prefix"; then
12656 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12657set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12659$as_echo_n "checking for $ac_word... " >&6; }
12660if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12661 $as_echo_n "(cached) " >&6
ca9f4b81 12662else
4de997d1
PB
12663 if test -n "$RANLIB_FOR_TARGET"; then
12664 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12665else
1c710c3c
DJ
12666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667for as_dir in $PATH
12668do
12669 IFS=$as_save_IFS
12670 test -z "$as_dir" && as_dir=.
5213506e
RW
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12673 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12675 break 2
12676 fi
12677done
5213506e
RW
12678 done
12679IFS=$as_save_IFS
1c710c3c 12680
ca9f4b81
AO
12681fi
12682fi
1c710c3c 12683RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12684if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12686$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12687else
5213506e
RW
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12689$as_echo "no" >&6; }
ca9f4b81
AO
12690fi
12691
5213506e 12692
e8b05380
PB
12693 fi
12694 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12696set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698$as_echo_n "checking for $ac_word... " >&6; }
12699if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12700 $as_echo_n "(cached) " >&6
ca9f4b81 12701else
2693c0b0
PB
12702 if test -n "$RANLIB_FOR_TARGET"; then
12703 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12704else
1c710c3c
DJ
12705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706for as_dir in $PATH
12707do
12708 IFS=$as_save_IFS
12709 test -z "$as_dir" && as_dir=.
5213506e
RW
12710 for ac_exec_ext in '' $ac_executable_extensions; do
12711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12712 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12714 break 2
12715 fi
12716done
5213506e
RW
12717 done
12718IFS=$as_save_IFS
1c710c3c 12719
ca9f4b81
AO
12720fi
12721fi
1c710c3c 12722RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12723if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12725$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12726else
5213506e
RW
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728$as_echo "no" >&6; }
ca9f4b81 12729fi
1c710c3c 12730
5213506e 12731
e8b05380
PB
12732 fi
12733 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12734 done
12735fi
1c710c3c 12736
e8b05380
PB
12737if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12738 set dummy ranlib
12739 if test $build = $target ; then
12740 RANLIB_FOR_TARGET="$2"
12741 else
12742 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12743 fi
1c00b503
PB
12744else
12745 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12746fi
2693c0b0 12747
d1f8db0c
PB
12748else
12749 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12750fi
12751
e8b05380
PB
12752
12753
12754
e7a82751
RM
12755if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12756 if test -n "$with_build_time_tools"; then
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12758$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12759 if test -x $with_build_time_tools/readelf; then
12760 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12761 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12763$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12764 else
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766$as_echo "no" >&6; }
12767 fi
12768 elif test $build != $host && test $have_gcc_for_target = yes; then
12769 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12770 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12771 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12772 fi
12773fi
12774if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12775 # Extract the first word of "readelf", so it can be a program name with args.
12776set dummy readelf; ac_word=$2
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
12779if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12781else
12782 case $READELF_FOR_TARGET in
12783 [\\/]* | ?:[\\/]*)
12784 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12785 ;;
12786 *)
12787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12788for as_dir in $gcc_cv_tool_dirs
12789do
12790 IFS=$as_save_IFS
12791 test -z "$as_dir" && as_dir=.
12792 for ac_exec_ext in '' $ac_executable_extensions; do
12793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12794 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12796 break 2
12797 fi
12798done
12799 done
12800IFS=$as_save_IFS
12801
12802 ;;
12803esac
12804fi
12805READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12806if test -n "$READELF_FOR_TARGET"; then
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12808$as_echo "$READELF_FOR_TARGET" >&6; }
12809else
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811$as_echo "no" >&6; }
12812fi
12813
12814
12815fi
12816if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12817
12818
12819if test -n "$READELF_FOR_TARGET"; then
12820 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12821elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12822 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12823fi
12824
12825if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12826 for ncn_progname in readelf; do
12827 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12828set dummy ${ncn_progname}; ac_word=$2
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830$as_echo_n "checking for $ac_word... " >&6; }
12831if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12832 $as_echo_n "(cached) " >&6
12833else
12834 if test -n "$READELF_FOR_TARGET"; then
12835 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12836else
12837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12838for as_dir in $PATH
12839do
12840 IFS=$as_save_IFS
12841 test -z "$as_dir" && as_dir=.
12842 for ac_exec_ext in '' $ac_executable_extensions; do
12843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12844 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12846 break 2
12847 fi
12848done
12849 done
12850IFS=$as_save_IFS
12851
12852fi
12853fi
12854READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12855if test -n "$READELF_FOR_TARGET"; then
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12857$as_echo "$READELF_FOR_TARGET" >&6; }
12858else
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12860$as_echo "no" >&6; }
12861fi
12862
12863
12864 done
12865fi
12866
12867if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12868 for ncn_progname in readelf; do
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12870$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12871 if test -x $with_build_time_tools/${ncn_progname}; then
12872 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12874$as_echo "yes" >&6; }
12875 break
12876 else
12877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12878$as_echo "no" >&6; }
12879 fi
12880 done
12881fi
12882
12883if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12884 for ncn_progname in readelf; do
12885 if test -n "$ncn_target_tool_prefix"; then
12886 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12887set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12889$as_echo_n "checking for $ac_word... " >&6; }
12890if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12891 $as_echo_n "(cached) " >&6
12892else
12893 if test -n "$READELF_FOR_TARGET"; then
12894 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12895else
12896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897for as_dir in $PATH
12898do
12899 IFS=$as_save_IFS
12900 test -z "$as_dir" && as_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12903 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12905 break 2
12906 fi
12907done
12908 done
12909IFS=$as_save_IFS
12910
12911fi
12912fi
12913READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12914if test -n "$READELF_FOR_TARGET"; then
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12916$as_echo "$READELF_FOR_TARGET" >&6; }
12917else
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12919$as_echo "no" >&6; }
12920fi
12921
12922
12923 fi
12924 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12926set dummy ${ncn_progname}; ac_word=$2
12927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12928$as_echo_n "checking for $ac_word... " >&6; }
12929if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12930 $as_echo_n "(cached) " >&6
12931else
12932 if test -n "$READELF_FOR_TARGET"; then
12933 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12934else
12935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12936for as_dir in $PATH
12937do
12938 IFS=$as_save_IFS
12939 test -z "$as_dir" && as_dir=.
12940 for ac_exec_ext in '' $ac_executable_extensions; do
12941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12942 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12944 break 2
12945 fi
12946done
12947 done
12948IFS=$as_save_IFS
12949
12950fi
12951fi
12952READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12953if test -n "$READELF_FOR_TARGET"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12955$as_echo "$READELF_FOR_TARGET" >&6; }
12956else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958$as_echo "no" >&6; }
12959fi
12960
12961
12962 fi
12963 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12964 done
12965fi
12966
12967if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12968 set dummy readelf
12969 if test $build = $target ; then
12970 READELF_FOR_TARGET="$2"
12971 else
12972 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12973 fi
12974else
12975 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12976fi
12977
12978else
12979 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12980fi
12981
12982
12983
12984
e8b05380
PB
12985if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12986 if test -n "$with_build_time_tools"; then
5213506e
RW
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12988$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12989 if test -x $with_build_time_tools/strip; then
12990 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12991 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12993$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12994 else
5213506e
RW
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12996$as_echo "no" >&6; }
d1f8db0c 12997 fi
e8b05380
PB
12998 elif test $build != $host && test $have_gcc_for_target = yes; then
12999 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13000 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13001 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13002 fi
13003fi
3e19841a 13004if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13005 # Extract the first word of "strip", so it can be a program name with args.
13006set dummy strip; ac_word=$2
5213506e
RW
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
13009if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
e8b05380 13011else
1c710c3c
DJ
13012 case $STRIP_FOR_TARGET in
13013 [\\/]* | ?:[\\/]*)
e8b05380
PB
13014 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13015 ;;
e8b05380 13016 *)
1c710c3c
DJ
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018for as_dir in $gcc_cv_tool_dirs
13019do
13020 IFS=$as_save_IFS
13021 test -z "$as_dir" && as_dir=.
5213506e
RW
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13024 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13026 break 2
13027 fi
13028done
5213506e
RW
13029 done
13030IFS=$as_save_IFS
1c710c3c 13031
e8b05380
PB
13032 ;;
13033esac
13034fi
1c710c3c 13035STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13036if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13038$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13039else
5213506e
RW
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13041$as_echo "no" >&6; }
e8b05380
PB
13042fi
13043
5213506e 13044
e8b05380
PB
13045fi
13046if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13047
13048
13049if test -n "$STRIP_FOR_TARGET"; then
13050 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13051elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13052 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13053fi
13054
13055if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13056 for ncn_progname in strip; do
13057 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13058set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13060$as_echo_n "checking for $ac_word... " >&6; }
13061if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13062 $as_echo_n "(cached) " >&6
278a7a38
AO
13063else
13064 if test -n "$STRIP_FOR_TARGET"; then
13065 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13066else
13067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068for as_dir in $PATH
13069do
13070 IFS=$as_save_IFS
13071 test -z "$as_dir" && as_dir=.
5213506e
RW
13072 for ac_exec_ext in '' $ac_executable_extensions; do
13073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13074 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13076 break 2
13077 fi
13078done
5213506e
RW
13079 done
13080IFS=$as_save_IFS
278a7a38
AO
13081
13082fi
13083fi
13084STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13085if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13087$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13088else
5213506e
RW
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090$as_echo "no" >&6; }
278a7a38
AO
13091fi
13092
5213506e 13093
278a7a38
AO
13094 done
13095fi
13096
13097if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13098 for ncn_progname in strip; do
5213506e
RW
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13100$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13101 if test -x $with_build_time_tools/${ncn_progname}; then
13102 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104$as_echo "yes" >&6; }
e8b05380
PB
13105 break
13106 else
5213506e
RW
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108$as_echo "no" >&6; }
e8b05380
PB
13109 fi
13110 done
13111fi
13112
13113if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13114 for ncn_progname in strip; do
13115 if test -n "$ncn_target_tool_prefix"; then
13116 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13117set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13119$as_echo_n "checking for $ac_word... " >&6; }
13120if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13121 $as_echo_n "(cached) " >&6
af71363e
AS
13122else
13123 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13124 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13125else
13126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127for as_dir in $PATH
13128do
13129 IFS=$as_save_IFS
13130 test -z "$as_dir" && as_dir=.
5213506e
RW
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13133 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13135 break 2
13136 fi
13137done
5213506e
RW
13138 done
13139IFS=$as_save_IFS
1c710c3c 13140
040b1c5a
GK
13141fi
13142fi
1c710c3c 13143STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13144if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13146$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13147else
5213506e
RW
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
040b1c5a
GK
13150fi
13151
5213506e 13152
e8b05380
PB
13153 fi
13154 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13156set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13158$as_echo_n "checking for $ac_word... " >&6; }
13159if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13160 $as_echo_n "(cached) " >&6
040b1c5a
GK
13161else
13162 if test -n "$STRIP_FOR_TARGET"; then
13163 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13164else
1c710c3c
DJ
13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13166for as_dir in $PATH
13167do
13168 IFS=$as_save_IFS
13169 test -z "$as_dir" && as_dir=.
5213506e
RW
13170 for ac_exec_ext in '' $ac_executable_extensions; do
13171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13172 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13174 break 2
13175 fi
13176done
5213506e
RW
13177 done
13178IFS=$as_save_IFS
1c710c3c 13179
040b1c5a
GK
13180fi
13181fi
1c710c3c 13182STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13183if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13185$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13186else
5213506e
RW
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188$as_echo "no" >&6; }
040b1c5a 13189fi
1c710c3c 13190
5213506e 13191
e8b05380
PB
13192 fi
13193 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13194 done
13195fi
1c710c3c 13196
040b1c5a
GK
13197if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13198 set dummy strip
13199 if test $build = $target ; then
13200 STRIP_FOR_TARGET="$2"
13201 else
13202 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13203 fi
1c00b503
PB
13204else
13205 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13206fi
13207
d1f8db0c
PB
13208else
13209 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13210fi
13211
13212
13213
13214
13215if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13216 if test -n "$with_build_time_tools"; then
5213506e
RW
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13218$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13219 if test -x $with_build_time_tools/windres; then
13220 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13221 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13223$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13224 else
5213506e
RW
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226$as_echo "no" >&6; }
d1f8db0c 13227 fi
e8b05380
PB
13228 elif test $build != $host && test $have_gcc_for_target = yes; then
13229 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13230 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13231 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13232 fi
13233fi
3e19841a 13234if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13235 # Extract the first word of "windres", so it can be a program name with args.
13236set dummy windres; ac_word=$2
5213506e
RW
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238$as_echo_n "checking for $ac_word... " >&6; }
13239if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
e8b05380 13241else
1c710c3c
DJ
13242 case $WINDRES_FOR_TARGET in
13243 [\\/]* | ?:[\\/]*)
e8b05380
PB
13244 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13245 ;;
e8b05380 13246 *)
1c710c3c
DJ
13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248for as_dir in $gcc_cv_tool_dirs
13249do
13250 IFS=$as_save_IFS
13251 test -z "$as_dir" && as_dir=.
5213506e
RW
13252 for ac_exec_ext in '' $ac_executable_extensions; do
13253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13254 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13256 break 2
13257 fi
13258done
5213506e
RW
13259 done
13260IFS=$as_save_IFS
1c710c3c 13261
e8b05380
PB
13262 ;;
13263esac
13264fi
1c710c3c 13265WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13266if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13268$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13269else
5213506e
RW
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13271$as_echo "no" >&6; }
e8b05380
PB
13272fi
13273
5213506e 13274
e8b05380
PB
13275fi
13276if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13277
13278
13279if test -n "$WINDRES_FOR_TARGET"; then
13280 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13281elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13282 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13283fi
13284
13285if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13286 for ncn_progname in windres; do
13287 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13288set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13290$as_echo_n "checking for $ac_word... " >&6; }
13291if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13292 $as_echo_n "(cached) " >&6
278a7a38
AO
13293else
13294 if test -n "$WINDRES_FOR_TARGET"; then
13295 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13296else
13297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13298for as_dir in $PATH
13299do
13300 IFS=$as_save_IFS
13301 test -z "$as_dir" && as_dir=.
5213506e
RW
13302 for ac_exec_ext in '' $ac_executable_extensions; do
13303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13304 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13306 break 2
13307 fi
13308done
5213506e
RW
13309 done
13310IFS=$as_save_IFS
278a7a38
AO
13311
13312fi
13313fi
13314WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13315if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13317$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13318else
5213506e
RW
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13320$as_echo "no" >&6; }
278a7a38
AO
13321fi
13322
5213506e 13323
278a7a38
AO
13324 done
13325fi
13326
13327if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13328 for ncn_progname in windres; do
5213506e
RW
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13330$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13331 if test -x $with_build_time_tools/${ncn_progname}; then
13332 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13334$as_echo "yes" >&6; }
e8b05380
PB
13335 break
13336 else
5213506e
RW
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13338$as_echo "no" >&6; }
e8b05380
PB
13339 fi
13340 done
13341fi
13342
13343if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13344 for ncn_progname in windres; do
13345 if test -n "$ncn_target_tool_prefix"; then
13346 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13347set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13349$as_echo_n "checking for $ac_word... " >&6; }
13350if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13351 $as_echo_n "(cached) " >&6
ca9f4b81 13352else
4de997d1
PB
13353 if test -n "$WINDRES_FOR_TARGET"; then
13354 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13355else
1c710c3c
DJ
13356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13357for as_dir in $PATH
13358do
13359 IFS=$as_save_IFS
13360 test -z "$as_dir" && as_dir=.
5213506e
RW
13361 for ac_exec_ext in '' $ac_executable_extensions; do
13362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13363 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13365 break 2
13366 fi
13367done
5213506e
RW
13368 done
13369IFS=$as_save_IFS
1c710c3c 13370
ca9f4b81
AO
13371fi
13372fi
1c710c3c 13373WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13374if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13376$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13377else
5213506e
RW
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379$as_echo "no" >&6; }
ca9f4b81
AO
13380fi
13381
5213506e 13382
e8b05380
PB
13383 fi
13384 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13386set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13388$as_echo_n "checking for $ac_word... " >&6; }
13389if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13390 $as_echo_n "(cached) " >&6
ca9f4b81 13391else
2693c0b0
PB
13392 if test -n "$WINDRES_FOR_TARGET"; then
13393 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13394else
1c710c3c
DJ
13395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13396for as_dir in $PATH
13397do
13398 IFS=$as_save_IFS
13399 test -z "$as_dir" && as_dir=.
5213506e
RW
13400 for ac_exec_ext in '' $ac_executable_extensions; do
13401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13402 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13404 break 2
13405 fi
13406done
5213506e
RW
13407 done
13408IFS=$as_save_IFS
1c710c3c 13409
ca9f4b81
AO
13410fi
13411fi
1c710c3c 13412WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13413if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13415$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13416else
5213506e
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13418$as_echo "no" >&6; }
ca9f4b81 13419fi
1c710c3c 13420
5213506e 13421
e8b05380
PB
13422 fi
13423 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13424 done
13425fi
1c710c3c 13426
2693c0b0
PB
13427if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13428 set dummy windres
13429 if test $build = $target ; then
13430 WINDRES_FOR_TARGET="$2"
ca9f4b81 13431 else
2693c0b0 13432 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13433 fi
1c00b503
PB
13434else
13435 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13436fi
13437
d1f8db0c
PB
13438else
13439 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13440fi
13441
4977bab6 13442
901119ae
KT
13443
13444
13445if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13446 if test -n "$with_build_time_tools"; then
5213506e
RW
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13448$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13449 if test -x $with_build_time_tools/windmc; then
13450 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13451 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13453$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13454 else
5213506e
RW
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13456$as_echo "no" >&6; }
901119ae
KT
13457 fi
13458 elif test $build != $host && test $have_gcc_for_target = yes; then
13459 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13460 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13461 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13462 fi
13463fi
13464if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13465 # Extract the first word of "windmc", so it can be a program name with args.
13466set dummy windmc; ac_word=$2
5213506e
RW
13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13468$as_echo_n "checking for $ac_word... " >&6; }
13469if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13470 $as_echo_n "(cached) " >&6
901119ae
KT
13471else
13472 case $WINDMC_FOR_TARGET in
13473 [\\/]* | ?:[\\/]*)
13474 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13475 ;;
13476 *)
13477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13478for as_dir in $gcc_cv_tool_dirs
13479do
13480 IFS=$as_save_IFS
13481 test -z "$as_dir" && as_dir=.
5213506e
RW
13482 for ac_exec_ext in '' $ac_executable_extensions; do
13483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13484 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13486 break 2
13487 fi
13488done
5213506e
RW
13489 done
13490IFS=$as_save_IFS
901119ae
KT
13491
13492 ;;
13493esac
13494fi
13495WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13496if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13498$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13499else
5213506e
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13501$as_echo "no" >&6; }
901119ae
KT
13502fi
13503
5213506e 13504
901119ae
KT
13505fi
13506if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13507
13508
13509if test -n "$WINDMC_FOR_TARGET"; then
13510 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13511elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13512 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13513fi
13514
13515if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13516 for ncn_progname in windmc; do
13517 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13518set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520$as_echo_n "checking for $ac_word... " >&6; }
13521if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13522 $as_echo_n "(cached) " >&6
901119ae
KT
13523else
13524 if test -n "$WINDMC_FOR_TARGET"; then
13525 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13526else
13527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528for as_dir in $PATH
13529do
13530 IFS=$as_save_IFS
13531 test -z "$as_dir" && as_dir=.
5213506e
RW
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13534 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13536 break 2
13537 fi
13538done
5213506e
RW
13539 done
13540IFS=$as_save_IFS
901119ae
KT
13541
13542fi
13543fi
13544WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13545if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13547$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13548else
5213506e
RW
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550$as_echo "no" >&6; }
901119ae
KT
13551fi
13552
5213506e 13553
901119ae
KT
13554 done
13555fi
13556
13557if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13558 for ncn_progname in windmc; do
5213506e
RW
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13560$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13561 if test -x $with_build_time_tools/${ncn_progname}; then
13562 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13564$as_echo "yes" >&6; }
901119ae
KT
13565 break
13566 else
5213506e
RW
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13568$as_echo "no" >&6; }
901119ae
KT
13569 fi
13570 done
13571fi
13572
13573if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13574 for ncn_progname in windmc; do
13575 if test -n "$ncn_target_tool_prefix"; then
13576 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13577set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13579$as_echo_n "checking for $ac_word... " >&6; }
13580if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
901119ae
KT
13582else
13583 if test -n "$WINDMC_FOR_TARGET"; then
13584 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13585else
13586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13587for as_dir in $PATH
13588do
13589 IFS=$as_save_IFS
13590 test -z "$as_dir" && as_dir=.
5213506e
RW
13591 for ac_exec_ext in '' $ac_executable_extensions; do
13592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13593 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13595 break 2
13596 fi
13597done
5213506e
RW
13598 done
13599IFS=$as_save_IFS
901119ae
KT
13600
13601fi
13602fi
13603WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13604if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13606$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13607else
5213506e
RW
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13609$as_echo "no" >&6; }
901119ae
KT
13610fi
13611
5213506e 13612
901119ae
KT
13613 fi
13614 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13616set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13618$as_echo_n "checking for $ac_word... " >&6; }
13619if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13620 $as_echo_n "(cached) " >&6
901119ae
KT
13621else
13622 if test -n "$WINDMC_FOR_TARGET"; then
13623 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13624else
13625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13626for as_dir in $PATH
13627do
13628 IFS=$as_save_IFS
13629 test -z "$as_dir" && as_dir=.
5213506e
RW
13630 for ac_exec_ext in '' $ac_executable_extensions; do
13631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13632 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13634 break 2
13635 fi
13636done
5213506e
RW
13637 done
13638IFS=$as_save_IFS
901119ae
KT
13639
13640fi
13641fi
13642WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13643if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13645$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13646else
5213506e
RW
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13648$as_echo "no" >&6; }
901119ae
KT
13649fi
13650
5213506e 13651
901119ae
KT
13652 fi
13653 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13654 done
13655fi
13656
13657if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13658 set dummy windmc
13659 if test $build = $target ; then
13660 WINDMC_FOR_TARGET="$2"
13661 else
13662 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13663 fi
1c00b503
PB
13664else
13665 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13666fi
13667
13668else
13669 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13670fi
13671
13672
2abefe3d
PB
13673RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13674
5213506e
RW
13675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13676$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13677if test "x${build}" != "x${host}" ; then
e8b05380
PB
13678 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13679 # We already found the complete path
172e41aa 13680 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13682$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13683 else
13684 # Canadian cross, just use what we found
5213506e
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13686$as_echo "pre-installed" >&6; }
e8b05380 13687 fi
2abefe3d
PB
13688else
13689 ok=yes
13690 case " ${configdirs} " in
13691 *" binutils "*) ;;
13692 *) ok=no ;;
13693 esac
1c710c3c 13694
2abefe3d
PB
13695 if test $ok = yes; then
13696 # An in-tree tool is available and we can use it
13697 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13699$as_echo "just compiled" >&6; }
e8b05380
PB
13700 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13701 # We already found the complete path
172e41aa 13702 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13704$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13705 elif test "x$target" = "x$host"; then
13706 # We can use an host tool
13707 AR_FOR_TARGET='$(AR)'
5213506e
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13709$as_echo "host tool" >&6; }
2abefe3d
PB
13710 else
13711 # We need a cross tool
5213506e
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13713$as_echo "pre-installed" >&6; }
2abefe3d
PB
13714 fi
13715fi
0b0dc272 13716
5213506e
RW
13717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13718$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13719if test "x${build}" != "x${host}" ; then
e8b05380
PB
13720 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13721 # We already found the complete path
172e41aa 13722 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13724$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13725 else
13726 # Canadian cross, just use what we found
5213506e
RW
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13728$as_echo "pre-installed" >&6; }
e8b05380 13729 fi
2abefe3d
PB
13730else
13731 ok=yes
13732 case " ${configdirs} " in
13733 *" gas "*) ;;
13734 *) ok=no ;;
13735 esac
1c710c3c 13736
2abefe3d
PB
13737 if test $ok = yes; then
13738 # An in-tree tool is available and we can use it
13739 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13741$as_echo "just compiled" >&6; }
e8b05380
PB
13742 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13743 # We already found the complete path
172e41aa 13744 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13746$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13747 elif test "x$target" = "x$host"; then
13748 # We can use an host tool
13749 AS_FOR_TARGET='$(AS)'
5213506e
RW
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13751$as_echo "host tool" >&6; }
2abefe3d
PB
13752 else
13753 # We need a cross tool
5213506e
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13755$as_echo "pre-installed" >&6; }
2abefe3d
PB
13756 fi
13757fi
0b0dc272 13758
5213506e
RW
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13760$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13761if test "x${build}" != "x${host}" ; then
e8b05380
PB
13762 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13763 # We already found the complete path
172e41aa 13764 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13766$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13767 else
13768 # Canadian cross, just use what we found
5213506e
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13770$as_echo "pre-installed" >&6; }
e8b05380 13771 fi
2abefe3d
PB
13772else
13773 ok=yes
13774 case " ${configdirs} " in
13775 *" gcc "*) ;;
13776 *) ok=no ;;
13777 esac
1c710c3c 13778
2abefe3d
PB
13779 if test $ok = yes; then
13780 # An in-tree tool is available and we can use it
13781 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13783$as_echo "just compiled" >&6; }
e8b05380
PB
13784 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13785 # We already found the complete path
172e41aa 13786 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13788$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13789 elif test "x$target" = "x$host"; then
13790 # We can use an host tool
13791 CC_FOR_TARGET='$(CC)'
5213506e
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13793$as_echo "host tool" >&6; }
2abefe3d
PB
13794 else
13795 # We need a cross tool
5213506e
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13797$as_echo "pre-installed" >&6; }
2abefe3d
PB
13798 fi
13799fi
0b0dc272 13800
5213506e
RW
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13802$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13803if test "x${build}" != "x${host}" ; then
e8b05380
PB
13804 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13805 # We already found the complete path
172e41aa 13806 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13808$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13809 else
13810 # Canadian cross, just use what we found
5213506e
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13812$as_echo "pre-installed" >&6; }
e8b05380 13813 fi
2abefe3d
PB
13814else
13815 ok=yes
13816 case " ${configdirs} " in
13817 *" gcc "*) ;;
13818 *) ok=no ;;
13819 esac
13820 case ,${enable_languages}, in
13821 *,c++,*) ;;
13822 *) ok=no ;;
13823 esac
13824 if test $ok = yes; then
13825 # An in-tree tool is available and we can use it
2077db1b 13826 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
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13828$as_echo "just compiled" >&6; }
e8b05380
PB
13829 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13830 # We already found the complete path
172e41aa 13831 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13833$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13834 elif test "x$target" = "x$host"; then
13835 # We can use an host tool
13836 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13838$as_echo "host tool" >&6; }
2abefe3d
PB
13839 else
13840 # We need a cross tool
5213506e
RW
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13842$as_echo "pre-installed" >&6; }
2abefe3d
PB
13843 fi
13844fi
0b0dc272 13845
5213506e
RW
13846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13847$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13848if test "x${build}" != "x${host}" ; then
e8b05380
PB
13849 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13850 # We already found the complete path
172e41aa 13851 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13853$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13854 else
13855 # Canadian cross, just use what we found
5213506e
RW
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13857$as_echo "pre-installed" >&6; }
e8b05380 13858 fi
2abefe3d
PB
13859else
13860 ok=yes
13861 case " ${configdirs} " in
13862 *" gcc "*) ;;
13863 *) ok=no ;;
13864 esac
13865 case ,${enable_languages}, in
13866 *,c++,*) ;;
13867 *) ok=no ;;
13868 esac
13869 if test $ok = yes; then
13870 # An in-tree tool is available and we can use it
2077db1b 13871 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
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13873$as_echo "just compiled" >&6; }
e8b05380
PB
13874 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
172e41aa 13876 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13879 elif test "x$target" = "x$host"; then
13880 # We can use an host tool
13881 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13883$as_echo "host tool" >&6; }
2abefe3d
PB
13884 else
13885 # We need a cross tool
5213506e
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13887$as_echo "pre-installed" >&6; }
2abefe3d
PB
13888 fi
13889fi
0b0dc272 13890
5213506e
RW
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13892$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13893if test "x${build}" != "x${host}" ; then
e8b05380
PB
13894 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13895 # We already found the complete path
172e41aa 13896 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13898$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13899 else
13900 # Canadian cross, just use what we found
5213506e
RW
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13902$as_echo "pre-installed" >&6; }
e8b05380 13903 fi
2abefe3d
PB
13904else
13905 ok=yes
13906 case " ${configdirs} " in
13907 *" binutils "*) ;;
13908 *) ok=no ;;
13909 esac
1c710c3c 13910
2abefe3d
PB
13911 if test $ok = yes; then
13912 # An in-tree tool is available and we can use it
13913 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13915$as_echo "just compiled" >&6; }
e8b05380
PB
13916 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13917 # We already found the complete path
172e41aa 13918 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13920$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13921 elif test "x$target" = "x$host"; then
13922 # We can use an host tool
13923 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13925$as_echo "host tool" >&6; }
2abefe3d
PB
13926 else
13927 # We need a cross tool
5213506e
RW
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13929$as_echo "pre-installed" >&6; }
2abefe3d
PB
13930 fi
13931fi
0b0dc272 13932
5213506e
RW
13933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13934$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13935if test "x${build}" != "x${host}" ; then
e8b05380
PB
13936 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13937 # We already found the complete path
172e41aa 13938 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13940$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13941 else
13942 # Canadian cross, just use what we found
5213506e
RW
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13944$as_echo "pre-installed" >&6; }
e8b05380 13945 fi
2abefe3d
PB
13946else
13947 ok=yes
13948 case " ${configdirs} " in
13949 *" gcc "*) ;;
13950 *) ok=no ;;
13951 esac
1c710c3c 13952
2abefe3d
PB
13953 if test $ok = yes; then
13954 # An in-tree tool is available and we can use it
13955 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13957$as_echo "just compiled" >&6; }
e8b05380
PB
13958 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13959 # We already found the complete path
172e41aa 13960 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13962$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13963 elif test "x$target" = "x$host"; then
13964 # We can use an host tool
13965 GCC_FOR_TARGET='$()'
5213506e
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13967$as_echo "host tool" >&6; }
2abefe3d
PB
13968 else
13969 # We need a cross tool
5213506e
RW
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971$as_echo "pre-installed" >&6; }
2abefe3d
PB
13972 fi
13973fi
0b0dc272 13974
5213506e
RW
13975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13976$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13977if test "x${build}" != "x${host}" ; then
e8b05380
PB
13978 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13979 # We already found the complete path
172e41aa 13980 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13982$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13983 else
13984 # Canadian cross, just use what we found
5213506e
RW
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13986$as_echo "pre-installed" >&6; }
e8b05380 13987 fi
2abefe3d
PB
13988else
13989 ok=yes
13990 case " ${configdirs} " in
13991 *" gcc "*) ;;
13992 *) ok=no ;;
13993 esac
13994 case ,${enable_languages}, in
13995 *,fortran,*) ;;
13996 *) ok=no ;;
13997 esac
13998 if test $ok = yes; then
13999 # An in-tree tool is available and we can use it
14000 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14002$as_echo "just compiled" >&6; }
e8b05380
PB
14003 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14004 # We already found the complete path
172e41aa 14005 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14007$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14008 elif test "x$target" = "x$host"; then
14009 # We can use an host tool
14010 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14012$as_echo "host tool" >&6; }
2abefe3d
PB
14013 else
14014 # We need a cross tool
5213506e
RW
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14016$as_echo "pre-installed" >&6; }
2abefe3d
PB
14017 fi
14018fi
0b0dc272 14019
632e2a07
ILT
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14021$as_echo_n "checking where to find the target gccgo... " >&6; }
14022if test "x${build}" != "x${host}" ; then
14023 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14024 # We already found the complete path
14025 ac_dir=`dirname $GOC_FOR_TARGET`
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14027$as_echo "pre-installed in $ac_dir" >&6; }
14028 else
14029 # Canadian cross, just use what we found
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14031$as_echo "pre-installed" >&6; }
14032 fi
14033else
14034 ok=yes
14035 case " ${configdirs} " in
14036 *" gcc "*) ;;
14037 *) ok=no ;;
14038 esac
14039 case ,${enable_languages}, in
14040 *,go,*) ;;
14041 *) ok=no ;;
14042 esac
14043 if test $ok = yes; then
14044 # An in-tree tool is available and we can use it
14045 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14047$as_echo "just compiled" >&6; }
14048 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14049 # We already found the complete path
14050 ac_dir=`dirname $GOC_FOR_TARGET`
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14052$as_echo "pre-installed in $ac_dir" >&6; }
14053 elif test "x$target" = "x$host"; then
14054 # We can use an host tool
14055 GOC_FOR_TARGET='$(GOC)'
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14057$as_echo "host tool" >&6; }
14058 else
14059 # We need a cross tool
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14061$as_echo "pre-installed" >&6; }
14062 fi
14063fi
14064
5213506e
RW
14065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14066$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14067if test "x${build}" != "x${host}" ; then
e8b05380
PB
14068 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14069 # We already found the complete path
172e41aa 14070 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14072$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14073 else
14074 # Canadian cross, just use what we found
5213506e
RW
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14076$as_echo "pre-installed" >&6; }
e8b05380 14077 fi
2abefe3d
PB
14078else
14079 ok=yes
14080 case " ${configdirs} " in
14081 *" ld "*) ;;
14082 *) ok=no ;;
14083 esac
1c710c3c 14084
2abefe3d
PB
14085 if test $ok = yes; then
14086 # An in-tree tool is available and we can use it
14087 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14089$as_echo "just compiled" >&6; }
e8b05380
PB
14090 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14091 # We already found the complete path
172e41aa 14092 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14094$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14095 elif test "x$target" = "x$host"; then
14096 # We can use an host tool
14097 LD_FOR_TARGET='$(LD)'
5213506e
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14099$as_echo "host tool" >&6; }
2abefe3d
PB
14100 else
14101 # We need a cross tool
5213506e
RW
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14103$as_echo "pre-installed" >&6; }
2abefe3d
PB
14104 fi
14105fi
0b0dc272 14106
5213506e
RW
14107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14108$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14109if test "x${build}" != "x${host}" ; then
e8b05380
PB
14110 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14111 # We already found the complete path
172e41aa 14112 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14114$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14115 else
14116 # Canadian cross, just use what we found
5213506e
RW
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14118$as_echo "pre-installed" >&6; }
e8b05380 14119 fi
2abefe3d 14120else
e8b05380
PB
14121 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14122 # We already found the complete path
172e41aa 14123 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14125$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14126 elif test "x$target" = "x$host"; then
2abefe3d
PB
14127 # We can use an host tool
14128 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14130$as_echo "host tool" >&6; }
2abefe3d
PB
14131 else
14132 # We need a cross tool
5213506e
RW
14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14134$as_echo "pre-installed" >&6; }
2abefe3d
PB
14135 fi
14136fi
0b0dc272 14137
5213506e
RW
14138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14139$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14140if test "x${build}" != "x${host}" ; then
e8b05380
PB
14141 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14142 # We already found the complete path
172e41aa 14143 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14145$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14146 else
14147 # Canadian cross, just use what we found
5213506e
RW
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14149$as_echo "pre-installed" >&6; }
e8b05380 14150 fi
2abefe3d
PB
14151else
14152 ok=yes
14153 case " ${configdirs} " in
14154 *" binutils "*) ;;
14155 *) ok=no ;;
14156 esac
1c710c3c 14157
2abefe3d
PB
14158 if test $ok = yes; then
14159 # An in-tree tool is available and we can use it
14160 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14162$as_echo "just compiled" >&6; }
e8b05380
PB
14163 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14164 # We already found the complete path
172e41aa 14165 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14167$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14168 elif test "x$target" = "x$host"; then
14169 # We can use an host tool
14170 NM_FOR_TARGET='$(NM)'
5213506e
RW
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14172$as_echo "host tool" >&6; }
2abefe3d
PB
14173 else
14174 # We need a cross tool
5213506e
RW
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14176$as_echo "pre-installed" >&6; }
2abefe3d
PB
14177 fi
14178fi
0b0dc272 14179
9bccfdf5
AP
14180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14181$as_echo_n "checking where to find the target objcopy... " >&6; }
14182if test "x${build}" != "x${host}" ; then
14183 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14184 # We already found the complete path
14185 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14187$as_echo "pre-installed in $ac_dir" >&6; }
14188 else
14189 # Canadian cross, just use what we found
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14191$as_echo "pre-installed" >&6; }
14192 fi
14193else
14194 ok=yes
14195 case " ${configdirs} " in
14196 *" binutils "*) ;;
14197 *) ok=no ;;
14198 esac
14199
14200 if test $ok = yes; then
14201 # An in-tree tool is available and we can use it
14202 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14204$as_echo "just compiled" >&6; }
14205 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14206 # We already found the complete path
14207 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14209$as_echo "pre-installed in $ac_dir" >&6; }
14210 elif test "x$target" = "x$host"; then
14211 # We can use an host tool
ec8fd1c0 14212 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14214$as_echo "host tool" >&6; }
14215 else
14216 # We need a cross tool
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14218$as_echo "pre-installed" >&6; }
14219 fi
14220fi
14221
5213506e
RW
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14223$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14224if test "x${build}" != "x${host}" ; then
e8b05380
PB
14225 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14226 # We already found the complete path
172e41aa 14227 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14229$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14230 else
14231 # Canadian cross, just use what we found
5213506e
RW
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14233$as_echo "pre-installed" >&6; }
e8b05380 14234 fi
2abefe3d
PB
14235else
14236 ok=yes
14237 case " ${configdirs} " in
14238 *" binutils "*) ;;
14239 *) ok=no ;;
14240 esac
1c710c3c 14241
2abefe3d
PB
14242 if test $ok = yes; then
14243 # An in-tree tool is available and we can use it
14244 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14246$as_echo "just compiled" >&6; }
e8b05380
PB
14247 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14248 # We already found the complete path
172e41aa 14249 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14251$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14252 elif test "x$target" = "x$host"; then
14253 # We can use an host tool
14254 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14256$as_echo "host tool" >&6; }
2abefe3d
PB
14257 else
14258 # We need a cross tool
5213506e
RW
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14260$as_echo "pre-installed" >&6; }
2abefe3d
PB
14261 fi
14262fi
0b0dc272 14263
5213506e
RW
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14265$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14266if test "x${build}" != "x${host}" ; then
e8b05380
PB
14267 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14268 # We already found the complete path
172e41aa 14269 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14271$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14272 else
14273 # Canadian cross, just use what we found
5213506e
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14275$as_echo "pre-installed" >&6; }
e8b05380 14276 fi
2abefe3d
PB
14277else
14278 ok=yes
14279 case " ${configdirs} " in
14280 *" binutils "*) ;;
14281 *) ok=no ;;
14282 esac
1c710c3c 14283
2abefe3d
PB
14284 if test $ok = yes; then
14285 # An in-tree tool is available and we can use it
14286 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14288$as_echo "just compiled" >&6; }
e8b05380
PB
14289 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14290 # We already found the complete path
172e41aa 14291 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14293$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14294 elif test "x$target" = "x$host"; then
14295 # We can use an host tool
14296 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14298$as_echo "host tool" >&6; }
2abefe3d
PB
14299 else
14300 # We need a cross tool
5213506e
RW
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14302$as_echo "pre-installed" >&6; }
2abefe3d
PB
14303 fi
14304fi
0b0dc272 14305
e7a82751
RM
14306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14307$as_echo_n "checking where to find the target readelf... " >&6; }
14308if test "x${build}" != "x${host}" ; then
14309 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14310 # We already found the complete path
14311 ac_dir=`dirname $READELF_FOR_TARGET`
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14313$as_echo "pre-installed in $ac_dir" >&6; }
14314 else
14315 # Canadian cross, just use what we found
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14317$as_echo "pre-installed" >&6; }
14318 fi
14319else
14320 ok=yes
14321 case " ${configdirs} " in
14322 *" binutils "*) ;;
14323 *) ok=no ;;
14324 esac
14325
14326 if test $ok = yes; then
14327 # An in-tree tool is available and we can use it
14328 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14330$as_echo "just compiled" >&6; }
14331 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14332 # We already found the complete path
14333 ac_dir=`dirname $READELF_FOR_TARGET`
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14335$as_echo "pre-installed in $ac_dir" >&6; }
14336 elif test "x$target" = "x$host"; then
14337 # We can use an host tool
14338 READELF_FOR_TARGET='$(READELF)'
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14340$as_echo "host tool" >&6; }
14341 else
14342 # We need a cross tool
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14344$as_echo "pre-installed" >&6; }
14345 fi
14346fi
14347
5213506e
RW
14348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14349$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14350if test "x${build}" != "x${host}" ; then
e8b05380
PB
14351 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14352 # We already found the complete path
172e41aa 14353 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14355$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14356 else
14357 # Canadian cross, just use what we found
5213506e
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14359$as_echo "pre-installed" >&6; }
e8b05380 14360 fi
2abefe3d
PB
14361else
14362 ok=yes
14363 case " ${configdirs} " in
14364 *" binutils "*) ;;
14365 *) ok=no ;;
14366 esac
1c710c3c 14367
2abefe3d
PB
14368 if test $ok = yes; then
14369 # An in-tree tool is available and we can use it
455c8f48 14370 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14372$as_echo "just compiled" >&6; }
e8b05380
PB
14373 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14374 # We already found the complete path
172e41aa 14375 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14377$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14378 elif test "x$target" = "x$host"; then
14379 # We can use an host tool
14380 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14382$as_echo "host tool" >&6; }
2abefe3d
PB
14383 else
14384 # We need a cross tool
5213506e
RW
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14386$as_echo "pre-installed" >&6; }
2abefe3d
PB
14387 fi
14388fi
0b0dc272 14389
5213506e
RW
14390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14391$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14392if test "x${build}" != "x${host}" ; then
e8b05380
PB
14393 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14394 # We already found the complete path
172e41aa 14395 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14397$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14398 else
14399 # Canadian cross, just use what we found
5213506e
RW
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14401$as_echo "pre-installed" >&6; }
e8b05380 14402 fi
2abefe3d
PB
14403else
14404 ok=yes
14405 case " ${configdirs} " in
14406 *" binutils "*) ;;
14407 *) ok=no ;;
14408 esac
1c710c3c 14409
2abefe3d
PB
14410 if test $ok = yes; then
14411 # An in-tree tool is available and we can use it
14412 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14414$as_echo "just compiled" >&6; }
e8b05380
PB
14415 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14416 # We already found the complete path
172e41aa 14417 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14419$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14420 elif test "x$target" = "x$host"; then
14421 # We can use an host tool
14422 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14424$as_echo "host tool" >&6; }
2abefe3d
PB
14425 else
14426 # We need a cross tool
5213506e
RW
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14428$as_echo "pre-installed" >&6; }
2abefe3d 14429 fi
671aa708 14430fi
be912515 14431
5213506e
RW
14432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14433$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14434if test "x${build}" != "x${host}" ; then
14435 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14436 # We already found the complete path
14437 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14439$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14440 else
14441 # Canadian cross, just use what we found
5213506e
RW
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14443$as_echo "pre-installed" >&6; }
901119ae
KT
14444 fi
14445else
14446 ok=yes
14447 case " ${configdirs} " in
14448 *" binutils "*) ;;
14449 *) ok=no ;;
14450 esac
14451
14452 if test $ok = yes; then
14453 # An in-tree tool is available and we can use it
14454 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14456$as_echo "just compiled" >&6; }
901119ae
KT
14457 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14458 # We already found the complete path
14459 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14461$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14462 elif test "x$target" = "x$host"; then
14463 # We can use an host tool
14464 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14466$as_echo "host tool" >&6; }
901119ae
KT
14467 else
14468 # We need a cross tool
5213506e
RW
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14470$as_echo "pre-installed" >&6; }
901119ae
KT
14471 fi
14472fi
14473
be912515
NN
14474
14475
2abefe3d 14476
0b0dc272 14477
671aa708
NN
14478# Certain tools may need extra flags.
14479AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14480RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14481NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14482
2abefe3d
PB
14483# When building target libraries, except in a Canadian cross, we use
14484# the same toolchain as the compiler we just built.
14485COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14486COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14487COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14488if test $host = $build; then
14489 case " $configdirs " in
14490 *" gcc "*)
14491 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14492 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14493 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14494 ;;
14495 esac
14496fi
14497
14498
14499
14500
14501
5213506e
RW
14502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14503$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14504# Check whether --enable-maintainer-mode was given.
14505if test "${enable_maintainer_mode+set}" = set; then :
14506 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14507else
14508 USE_MAINTAINER_MODE=no
5213506e
RW
14509fi
14510
14511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14512$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14513
14514
14515if test "$USE_MAINTAINER_MODE" = yes; then
14516 MAINTAINER_MODE_TRUE=
14517 MAINTAINER_MODE_FALSE='#'
14518else
14519 MAINTAINER_MODE_TRUE='#'
14520 MAINTAINER_MODE_FALSE=
1c710c3c 14521fi
ee03dc5e
AO
14522MAINT=$MAINTAINER_MODE_TRUE
14523
2805b53a
NN
14524# ---------------------
14525# GCC bootstrap support
14526# ---------------------
14527
14528# Stage specific cflags for build.
14529stage1_cflags="-g"
14530case $build in
14531 vax-*-*)
14532 case ${GCC} in
14533 yes) stage1_cflags="-g -Wa,-J" ;;
14534 *) stage1_cflags="-g -J" ;;
14535 esac ;;
2805b53a
NN
14536esac
14537
0b50988a 14538
2805b53a 14539
8efea775 14540# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14541# Check whether --enable-stage1-checking was given.
14542if test "${enable_stage1_checking+set}" = set; then :
14543 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14544else
e643dc23 14545 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14546 # For --disable-checking or implicit --enable-checking=release, avoid
14547 # setting --enable-checking=gc in the default stage1 checking for LTO
14548 # bootstraps. See PR62077.
c10b5ea0
JJ
14549 case $BUILD_CONFIG in
14550 *lto*)
7db11a5a
JJ
14551 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14552 *)
14553 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 14554 esac
7db11a5a
JJ
14555 if test "x$enable_checking" = x && \
14556 test -d ${srcdir}/gcc && \
14557 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 14558 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 14559 fi
8efea775 14560else
e643dc23 14561 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14562fi
5213506e 14563fi
8efea775
PB
14564
14565
2aeb72e9 14566
5213506e
RW
14567# Enable -Werror in bootstrap stage2 and later.
14568# Check whether --enable-werror was given.
14569if test "${enable_werror+set}" = set; then :
14570 enableval=$enable_werror;
2805b53a 14571else
416cfb5e 14572 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14573 enable_werror=yes
88fceb68
PB
14574else
14575 enable_werror=no
14576fi
5213506e
RW
14577fi
14578
09a9c095
NN
14579case ${enable_werror} in
14580 yes) stage2_werror_flag="--enable-werror-always" ;;
14581 *) stage2_werror_flag="" ;;
2805b53a
NN
14582esac
14583
14584
459260ec
DM
14585# Enable --enable-host-shared.
14586# Check whether --enable-host-shared was given.
14587if test "${enable_host_shared+set}" = set; then :
14588 enableval=$enable_host_shared; host_shared=$enableval
14589else
14590 host_shared=no
14591fi
14592
14593
14594
231d020b
DM
14595# PR jit/64780: Require the user to explicitly specify
14596# --enable-host-shared if the jit is enabled, hinting
14597# that they might want to do a separate configure/build of
14598# the jit, to avoid users from slowing down the rest of the
14599# compiler by enabling the jit.
14600if test ${host_shared} = "no" ; then
14601 case "${enable_languages}" in
14602 *jit*)
14603 as_fn_error "
14604Enabling language \"jit\" requires --enable-host-shared.
14605
14606--enable-host-shared typically slows the rest of the compiler down by
14607a few %, so you must explicitly enable it.
14608
14609If you want to build both the jit and the regular compiler, it is often
14610best to do this via two separate configure/builds, in separate
14611directories, to avoid imposing the performance cost of
14612--enable-host-shared on the regular compiler." "$LINENO" 5
14613 ;;
14614 *)
14615 ;;
14616 esac
14617fi
14618
f2689b09
SE
14619# Specify what files to not compare during bootstrap.
14620
14621compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14622case "$target" in
14623 hppa*64*-*-hpux*) ;;
14624 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14625 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14626esac
14627
14628
5213506e
RW
14629ac_config_files="$ac_config_files Makefile"
14630
1c710c3c 14631cat >confcache <<\_ACEOF
671aa708
NN
14632# This file is a shell script that caches the results of configure
14633# tests run on this system so they can be shared between configure
1c710c3c
DJ
14634# scripts and configure runs, see configure's option --config-cache.
14635# It is not useful on other systems. If it contains results you don't
14636# want to keep, you may remove or edit it.
671aa708 14637#
1c710c3c
DJ
14638# config.status only pays attention to the cache file if you give it
14639# the --recheck option to rerun configure.
671aa708 14640#
1c710c3c
DJ
14641# `ac_cv_env_foo' variables (set or unset) will be overridden when
14642# loading this file, other *unset* `ac_cv_foo' will be assigned the
14643# following values.
14644
14645_ACEOF
14646
671aa708
NN
14647# The following way of writing the cache mishandles newlines in values,
14648# but we know of no workaround that is simple, portable, and efficient.
5213506e 14649# So, we kill variables containing newlines.
671aa708
NN
14650# Ultrix sh set writes to stderr and can't be redirected directly,
14651# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14652(
14653 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14654 eval ac_val=\$$ac_var
14655 case $ac_val in #(
14656 *${as_nl}*)
14657 case $ac_var in #(
14658 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14659$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14660 esac
14661 case $ac_var in #(
14662 _ | IFS | as_nl) ;; #(
14663 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14664 *) { eval $ac_var=; unset $ac_var;} ;;
14665 esac ;;
14666 esac
14667 done
14668
1c710c3c 14669 (set) 2>&1 |
5213506e
RW
14670 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14671 *${as_nl}ac_space=\ *)
14672 # `set' does not quote correctly, so add quotes: double-quote
14673 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14674 sed -n \
14675 "s/'/'\\\\''/g;
14676 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14677 ;; #(
1c710c3c
DJ
14678 *)
14679 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14680 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14681 ;;
5213506e
RW
14682 esac |
14683 sort
14684) |
1c710c3c 14685 sed '
5213506e 14686 /^ac_cv_env_/b end
1c710c3c 14687 t clear
5213506e 14688 :clear
1c710c3c
DJ
14689 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14690 t end
5213506e
RW
14691 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14692 :end' >>confcache
14693if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14694 if test -w "$cache_file"; then
14695 test "x$cache_file" != "x/dev/null" &&
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14697$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14698 cat confcache >$cache_file
671aa708 14699 else
5213506e
RW
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14701$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14702 fi
4977bab6 14703fi
671aa708 14704rm -f confcache
79c06341 14705
671aa708
NN
14706test "x$prefix" = xNONE && prefix=$ac_default_prefix
14707# Let make expand exec_prefix.
14708test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14709
671aa708
NN
14710# Transform confdefs.h into DEFS.
14711# Protect against shell expansion while executing Makefile rules.
14712# Protect against Makefile macro expansion.
1c710c3c
DJ
14713#
14714# If the first sed substitution is executed (which looks for macros that
5213506e 14715# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14716# look for a macro that doesn't take arguments.
5213506e
RW
14717ac_script='
14718:mline
14719/\\$/{
14720 N
14721 s,\\\n,,
14722 b mline
14723}
1c710c3c 14724t clear
5213506e
RW
14725:clear
14726s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14727t quote
5213506e 14728s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14729t quote
5213506e
RW
14730b any
14731:quote
14732s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14733s/\[/\\&/g
14734s/\]/\\&/g
14735s/\$/$$/g
14736H
14737:any
14738${
14739 g
14740 s/^\n//
14741 s/\n/ /g
14742 p
14743}
14744'
14745DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14746
14747
14748ac_libobjs=
14749ac_ltlibobjs=
14750for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14751 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14753 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14755 # will be set to the directory where LIBOBJS objects are built.
14756 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14757 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14758done
14759LIBOBJS=$ac_libobjs
fb0103e5 14760
1c710c3c 14761LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14762
af71363e 14763
1c710c3c
DJ
14764
14765: ${CONFIG_STATUS=./config.status}
5213506e 14766ac_write_fail=0
1c710c3c
DJ
14767ac_clean_files_save=$ac_clean_files
14768ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14769{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14770$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14771as_write_fail=0
14772cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14773#! $SHELL
14774# Generated by $as_me.
671aa708 14775# Run this file to recreate the current configuration.
671aa708 14776# Compiler output produced by configure, useful for debugging
1c710c3c 14777# configure, is in config.log if it exists.
0b0dc272 14778
1c710c3c
DJ
14779debug=false
14780ac_cs_recheck=false
14781ac_cs_silent=false
1c710c3c 14782
5213506e
RW
14783SHELL=\${CONFIG_SHELL-$SHELL}
14784export SHELL
14785_ASEOF
14786cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14787## -------------------- ##
14788## M4sh Initialization. ##
14789## -------------------- ##
14790
14791# Be more Bourne compatible
14792DUALCASE=1; export DUALCASE # for MKS sh
14793if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14794 emulate sh
14795 NULLCMD=:
5213506e 14796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14797 # is contrary to our usage. Disable this feature.
14798 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14799 setopt NO_GLOB_SUBST
14800else
14801 case `(set -o) 2>/dev/null` in #(
14802 *posix*) :
14803 set -o posix ;; #(
14804 *) :
14805 ;;
14806esac
1c710c3c 14807fi
1c710c3c 14808
5213506e
RW
14809
14810as_nl='
14811'
14812export as_nl
14813# Printing a long string crashes Solaris 7 /usr/bin/printf.
14814as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14815as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14816as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14817# Prefer a ksh shell builtin over an external printf program on Solaris,
14818# but without wasting forks for bash or zsh.
14819if test -z "$BASH_VERSION$ZSH_VERSION" \
14820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14821 as_echo='print -r --'
14822 as_echo_n='print -rn --'
14823elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14824 as_echo='printf %s\n'
14825 as_echo_n='printf %s'
14826else
14827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14829 as_echo_n='/usr/ucb/echo -n'
14830 else
14831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14832 as_echo_n_body='eval
14833 arg=$1;
14834 case $arg in #(
14835 *"$as_nl"*)
14836 expr "X$arg" : "X\\(.*\\)$as_nl";
14837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14838 esac;
14839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14840 '
14841 export as_echo_n_body
14842 as_echo_n='sh -c $as_echo_n_body as_echo'
14843 fi
14844 export as_echo_body
14845 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14846fi
14847
5213506e
RW
14848# The user is always right.
14849if test "${PATH_SEPARATOR+set}" != set; then
14850 PATH_SEPARATOR=:
14851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14853 PATH_SEPARATOR=';'
14854 }
14855fi
14856
14857
14858# IFS
14859# We need space, tab and new line, in precisely that order. Quoting is
14860# there to prevent editors from complaining about space-tab.
14861# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14862# splitting by setting IFS to empty value.)
14863IFS=" "" $as_nl"
14864
14865# Find who we are. Look in the path if we contain no directory separator.
14866case $0 in #((
14867 *[\\/]* ) as_myself=$0 ;;
14868 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14869for as_dir in $PATH
14870do
14871 IFS=$as_save_IFS
14872 test -z "$as_dir" && as_dir=.
14873 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14874 done
14875IFS=$as_save_IFS
14876
14877 ;;
14878esac
14879# We did not find ourselves, most probably we were run as `sh COMMAND'
14880# in which case we are not to be found in the path.
14881if test "x$as_myself" = x; then
14882 as_myself=$0
14883fi
14884if test ! -f "$as_myself"; then
14885 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14886 exit 1
14887fi
1c710c3c 14888
5213506e
RW
14889# Unset variables that we do not need and which cause bugs (e.g. in
14890# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14891# suppresses any "Segmentation fault" message there. '((' could
14892# trigger a bug in pdksh 5.2.14.
14893for as_var in BASH_ENV ENV MAIL MAILPATH
14894do eval test x\${$as_var+set} = xset \
14895 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14896done
1c710c3c
DJ
14897PS1='$ '
14898PS2='> '
14899PS4='+ '
14900
14901# NLS nuisances.
5213506e
RW
14902LC_ALL=C
14903export LC_ALL
14904LANGUAGE=C
14905export LANGUAGE
14906
14907# CDPATH.
14908(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14909
14910
14911# as_fn_error ERROR [LINENO LOG_FD]
14912# ---------------------------------
14913# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14914# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14915# script with status $?, using 1 if that was 0.
14916as_fn_error ()
14917{
14918 as_status=$?; test $as_status -eq 0 && as_status=1
14919 if test "$3"; then
14920 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14921 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14922 fi
5213506e
RW
14923 $as_echo "$as_me: error: $1" >&2
14924 as_fn_exit $as_status
14925} # as_fn_error
14926
14927
14928# as_fn_set_status STATUS
14929# -----------------------
14930# Set $? to STATUS, without forking.
14931as_fn_set_status ()
14932{
14933 return $1
14934} # as_fn_set_status
14935
14936# as_fn_exit STATUS
14937# -----------------
14938# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14939as_fn_exit ()
14940{
14941 set +e
14942 as_fn_set_status $1
14943 exit $1
14944} # as_fn_exit
14945
14946# as_fn_unset VAR
14947# ---------------
14948# Portably unset VAR.
14949as_fn_unset ()
14950{
14951 { eval $1=; unset $1;}
14952}
14953as_unset=as_fn_unset
14954# as_fn_append VAR VALUE
14955# ----------------------
14956# Append the text in VALUE to the end of the definition contained in VAR. Take
14957# advantage of any shell optimizations that allow amortized linear growth over
14958# repeated appends, instead of the typical quadratic growth present in naive
14959# implementations.
14960if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14961 eval 'as_fn_append ()
14962 {
14963 eval $1+=\$2
14964 }'
14965else
14966 as_fn_append ()
14967 {
14968 eval $1=\$$1\$2
14969 }
14970fi # as_fn_append
14971
14972# as_fn_arith ARG...
14973# ------------------
14974# Perform arithmetic evaluation on the ARGs, and store the result in the
14975# global $as_val. Take advantage of shells that can avoid forks. The arguments
14976# must be portable across $(()) and expr.
14977if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14978 eval 'as_fn_arith ()
14979 {
14980 as_val=$(( $* ))
14981 }'
14982else
14983 as_fn_arith ()
14984 {
14985 as_val=`expr "$@" || test $? -eq 1`
14986 }
14987fi # as_fn_arith
14988
1c710c3c 14989
5213506e
RW
14990if expr a : '\(a\)' >/dev/null 2>&1 &&
14991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14992 as_expr=expr
14993else
14994 as_expr=false
14995fi
14996
5213506e 14997if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14998 as_basename=basename
14999else
15000 as_basename=false
15001fi
15002
5213506e
RW
15003if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15004 as_dirname=dirname
15005else
15006 as_dirname=false
15007fi
1c710c3c 15008
5213506e 15009as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15010$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15011 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15012 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15013$as_echo X/"$0" |
15014 sed '/^.*\/\([^/][^/]*\)\/*$/{
15015 s//\1/
15016 q
15017 }
15018 /^X\/\(\/\/\)$/{
15019 s//\1/
15020 q
15021 }
15022 /^X\/\(\/\).*/{
15023 s//\1/
15024 q
15025 }
15026 s/.*/./; q'`
2aeb72e9 15027
2aeb72e9
DD
15028# Avoid depending upon Character Ranges.
15029as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15030as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15031as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15032as_cr_digits='0123456789'
15033as_cr_alnum=$as_cr_Letters$as_cr_digits
15034
5213506e
RW
15035ECHO_C= ECHO_N= ECHO_T=
15036case `echo -n x` in #(((((
15037-n*)
15038 case `echo 'xy\c'` in
15039 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15040 xy) ECHO_C='\c';;
15041 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15042 ECHO_T=' ';;
15043 esac;;
15044*)
15045 ECHO_N='-n';;
1c710c3c
DJ
15046esac
15047
5213506e
RW
15048rm -f conf$$ conf$$.exe conf$$.file
15049if test -d conf$$.dir; then
15050 rm -f conf$$.dir/conf$$.file
1c710c3c 15051else
5213506e
RW
15052 rm -f conf$$.dir
15053 mkdir conf$$.dir 2>/dev/null
1c710c3c 15054fi
5213506e
RW
15055if (echo >conf$$.file) 2>/dev/null; then
15056 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15057 as_ln_s='ln -s'
5213506e
RW
15058 # ... but there are two gotchas:
15059 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15060 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15061 # In both cases, we have to default to `cp -p'.
15062 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15063 as_ln_s='cp -p'
15064 elif ln conf$$.file conf$$ 2>/dev/null; then
15065 as_ln_s=ln
15066 else
15067 as_ln_s='cp -p'
2aeb72e9 15068 fi
1c710c3c
DJ
15069else
15070 as_ln_s='cp -p'
15071fi
5213506e
RW
15072rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15073rmdir conf$$.dir 2>/dev/null
15074
15075
15076# as_fn_mkdir_p
15077# -------------
15078# Create "$as_dir" as a directory, including parents if necessary.
15079as_fn_mkdir_p ()
15080{
15081
15082 case $as_dir in #(
15083 -*) as_dir=./$as_dir;;
15084 esac
15085 test -d "$as_dir" || eval $as_mkdir_p || {
15086 as_dirs=
15087 while :; do
15088 case $as_dir in #(
15089 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15090 *) as_qdir=$as_dir;;
15091 esac
15092 as_dirs="'$as_qdir' $as_dirs"
15093 as_dir=`$as_dirname -- "$as_dir" ||
15094$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15095 X"$as_dir" : 'X\(//\)[^/]' \| \
15096 X"$as_dir" : 'X\(//\)$' \| \
15097 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15098$as_echo X"$as_dir" |
15099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15100 s//\1/
15101 q
15102 }
15103 /^X\(\/\/\)[^/].*/{
15104 s//\1/
15105 q
15106 }
15107 /^X\(\/\/\)$/{
15108 s//\1/
15109 q
15110 }
15111 /^X\(\/\).*/{
15112 s//\1/
15113 q
15114 }
15115 s/.*/./; q'`
15116 test -d "$as_dir" && break
15117 done
15118 test -z "$as_dirs" || eval "mkdir $as_dirs"
15119 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15120
1c710c3c 15121
5213506e 15122} # as_fn_mkdir_p
1c710c3c 15123if mkdir -p . 2>/dev/null; then
5213506e 15124 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15125else
15126 test -d ./-p && rmdir ./-p
15127 as_mkdir_p=false
15128fi
15129
5213506e
RW
15130if test -x / >/dev/null 2>&1; then
15131 as_test_x='test -x'
15132else
15133 if ls -dL / >/dev/null 2>&1; then
15134 as_ls_L_option=L
15135 else
15136 as_ls_L_option=
15137 fi
15138 as_test_x='
15139 eval sh -c '\''
15140 if test -d "$1"; then
15141 test -d "$1/.";
15142 else
15143 case $1 in #(
15144 -*)set "./$1";;
15145 esac;
15146 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15147 ???[sx]*):;;*)false;;esac;fi
15148 '\'' sh
15149 '
15150fi
15151as_executable_p=$as_test_x
1c710c3c
DJ
15152
15153# Sed expression to map a string onto a valid CPP name.
15154as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15155
15156# Sed expression to map a string onto a valid variable name.
15157as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15158
15159
1c710c3c 15160exec 6>&1
5213506e
RW
15161## ----------------------------------- ##
15162## Main body of $CONFIG_STATUS script. ##
15163## ----------------------------------- ##
15164_ASEOF
15165test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15166
15167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15169# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15170# values after options handling.
15171ac_log="
1c710c3c 15172This file was extended by $as_me, which was
5213506e 15173generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15174
15175 CONFIG_FILES = $CONFIG_FILES
15176 CONFIG_HEADERS = $CONFIG_HEADERS
15177 CONFIG_LINKS = $CONFIG_LINKS
15178 CONFIG_COMMANDS = $CONFIG_COMMANDS
15179 $ $0 $@
15180
5213506e
RW
15181on `(hostname || uname -n) 2>/dev/null | sed 1q`
15182"
15183
1c710c3c
DJ
15184_ACEOF
15185
5213506e
RW
15186case $ac_config_files in *"
15187"*) set x $ac_config_files; shift; ac_config_files=$*;;
15188esac
1c710c3c 15189
2aeb72e9 15190
2aeb72e9 15191
5213506e
RW
15192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15193# Files that config.status was made for.
15194config_files="$ac_config_files"
1c710c3c 15195
5213506e 15196_ACEOF
2aeb72e9 15197
5213506e 15198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15199ac_cs_usage="\
5213506e
RW
15200\`$as_me' instantiates files and other configuration actions
15201from templates according to the current configuration. Unless the files
15202and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15203
5213506e 15204Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15205
15206 -h, --help print this help, then exit
5213506e
RW
15207 -V, --version print version number and configuration settings, then exit
15208 -q, --quiet, --silent
15209 do not print progress messages
1c710c3c
DJ
15210 -d, --debug don't remove temporary files
15211 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15212 --file=FILE[:TEMPLATE]
15213 instantiate the configuration file FILE
1c710c3c
DJ
15214
15215Configuration files:
15216$config_files
15217
5213506e 15218Report bugs to the package provider."
2aeb72e9 15219
5213506e
RW
15220_ACEOF
15221cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15222ac_cs_version="\\
15223config.status
5213506e
RW
15224configured by $0, generated by GNU Autoconf 2.64,
15225 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15226
5213506e 15227Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15228This config.status script is free software; the Free Software Foundation
15229gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15230
15231ac_pwd='$ac_pwd'
15232srcdir='$srcdir'
15233INSTALL='$INSTALL'
87264276 15234AWK='$AWK'
5213506e 15235test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15236_ACEOF
15237
5213506e
RW
15238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15239# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15240ac_need_defaults=:
15241while test $# != 0
a4b9e93e 15242do
1c710c3c
DJ
15243 case $1 in
15244 --*=*)
5213506e
RW
15245 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15246 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15247 ac_shift=:
15248 ;;
5213506e 15249 *)
1c710c3c
DJ
15250 ac_option=$1
15251 ac_optarg=$2
15252 ac_shift=shift
15253 ;;
1c710c3c
DJ
15254 esac
15255
15256 case $ac_option in
15257 # Handling of the options.
671aa708 15258 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15259 ac_cs_recheck=: ;;
5213506e
RW
15260 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15261 $as_echo "$ac_cs_version"; exit ;;
15262 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15263 debug=: ;;
15264 --file | --fil | --fi | --f )
15265 $ac_shift
5213506e
RW
15266 case $ac_optarg in
15267 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15268 esac
15269 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15270 ac_need_defaults=false;;
5213506e
RW
15271 --he | --h | --help | --hel | -h )
15272 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15274 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15275 ac_cs_silent=: ;;
15276
15277 # This is an error.
5213506e
RW
15278 -*) as_fn_error "unrecognized option: \`$1'
15279Try \`$0 --help' for more information." ;;
1c710c3c 15280
5213506e
RW
15281 *) as_fn_append ac_config_targets " $1"
15282 ac_need_defaults=false ;;
1c710c3c 15283
0b0dc272 15284 esac
1c710c3c 15285 shift
0b0dc272
AM
15286done
15287
1c710c3c 15288ac_configure_extra_args=
0b0dc272 15289
1c710c3c
DJ
15290if $ac_cs_silent; then
15291 exec 6>/dev/null
15292 ac_configure_extra_args="$ac_configure_extra_args --silent"
15293fi
0b0dc272 15294
1c710c3c 15295_ACEOF
5213506e 15296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15297if \$ac_cs_recheck; then
5213506e
RW
15298 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15299 shift
15300 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15301 CONFIG_SHELL='$SHELL'
15302 export CONFIG_SHELL
15303 exec "\$@"
1c710c3c
DJ
15304fi
15305
15306_ACEOF
5213506e
RW
15307cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15308exec 5>>config.log
15309{
15310 echo
15311 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15312## Running $as_me. ##
15313_ASBOX
15314 $as_echo "$ac_log"
15315} >&5
1c710c3c 15316
5213506e
RW
15317_ACEOF
15318cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15319#
15320# INIT-COMMANDS
15321#
15322extrasub_build="$extrasub_build"
15323 extrasub_host="$extrasub_host"
15324 extrasub_target="$extrasub_target"
15325
5213506e 15326_ACEOF
1c710c3c 15327
5213506e 15328cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15329
5213506e 15330# Handling of arguments.
1c710c3c
DJ
15331for ac_config_target in $ac_config_targets
15332do
5213506e
RW
15333 case $ac_config_target in
15334 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15335
15336 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15337 esac
15338done
15339
5213506e 15340
1c710c3c
DJ
15341# If the user did not use the arguments to specify the items to instantiate,
15342# then the envvar interface is used. Set only those that are not.
15343# We use the long form for the default assignment because of an extremely
15344# bizarre bug on SunOS 4.1.3.
15345if $ac_need_defaults; then
15346 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15347fi
15348
15349# Have a temporary directory for convenience. Make it in the build tree
5213506e 15350# simply because there is no reason against having it here, and in addition,
1c710c3c 15351# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15352# Hook for its removal unless debugging.
15353# Note that there is a small window in which the directory will not be cleaned:
15354# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15355$debug ||
15356{
5213506e
RW
15357 tmp=
15358 trap 'exit_status=$?
15359 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15360' 0
15361 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15362}
1c710c3c
DJ
15363# Create a (secure) tmp directory for tmp files.
15364
15365{
5213506e 15366 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15367 test -n "$tmp" && test -d "$tmp"
15368} ||
15369{
5213506e
RW
15370 tmp=./conf$$-$RANDOM
15371 (umask 077 && mkdir "$tmp")
15372} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15373
15374# Set up the scripts for CONFIG_FILES section.
15375# No need to generate them if there are no CONFIG_FILES.
15376# This happens for instance with `./config.status config.h'.
15377if test -n "$CONFIG_FILES"; then
15378
15379if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15380 ac_cs_awk_getline=:
15381 ac_cs_awk_pipe_init=
15382 ac_cs_awk_read_file='
15383 while ((getline aline < (F[key])) > 0)
15384 print(aline)
15385 close(F[key])'
15386 ac_cs_awk_pipe_fini=
15387else
15388 ac_cs_awk_getline=false
15389 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15390 ac_cs_awk_read_file='
15391 print "|#_!!_#|"
15392 print "cat " F[key] " &&"
15393 '$ac_cs_awk_pipe_init
15394 # The final `:' finishes the AND list.
15395 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15396fi
15397ac_cr=`echo X | tr X '\015'`
15398# On cygwin, bash can eat \r inside `` if the user requested igncr.
15399# But we know of no other shell where ac_cr would be empty at this
15400# point, so we can use a bashism as a fallback.
15401if test "x$ac_cr" = x; then
15402 eval ac_cr=\$\'\\r\'
15403fi
15404ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15405if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15406 ac_cs_awk_cr='\r'
15407else
15408 ac_cs_awk_cr=$ac_cr
15409fi
15410
15411echo 'BEGIN {' >"$tmp/subs1.awk" &&
15412_ACEOF
15413
15414# Create commands to substitute file output variables.
1c710c3c 15415{
5213506e
RW
15416 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15417 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15418 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15419 echo "_ACAWK" &&
15420 echo "_ACEOF"
15421} >conf$$files.sh &&
15422. ./conf$$files.sh ||
15423 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15424rm -f conf$$files.sh
1c710c3c 15425
5213506e
RW
15426{
15427 echo "cat >conf$$subs.awk <<_ACEOF" &&
15428 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15429 echo "_ACEOF"
15430} >conf$$subs.sh ||
15431 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15432ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15433ac_delim='%!_!# '
15434for ac_last_try in false false false false false :; do
15435 . ./conf$$subs.sh ||
15436 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15437
15438 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15439 if test $ac_delim_n = $ac_delim_num; then
15440 break
15441 elif $ac_last_try; then
15442 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15443 else
15444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15445 fi
15446done
15447rm -f conf$$subs.sh
15448
15449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15450cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15451_ACEOF
5213506e
RW
15452sed -n '
15453h
15454s/^/S["/; s/!.*/"]=/
15455p
15456g
15457s/^[^!]*!//
15458:repl
15459t repl
15460s/'"$ac_delim"'$//
15461t delim
15462:nl
15463h
15464s/\(.\{148\}\).*/\1/
15465t more1
15466s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15467p
15468n
15469b repl
15470:more1
15471s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15472p
15473g
15474s/.\{148\}//
15475t nl
15476:delim
15477h
15478s/\(.\{148\}\).*/\1/
15479t more2
15480s/["\\]/\\&/g; s/^/"/; s/$/"/
15481p
15482b
15483:more2
15484s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15485p
15486g
15487s/.\{148\}//
15488t delim
15489' <conf$$subs.awk | sed '
15490/^[^""]/{
15491 N
15492 s/\n//
15493}
15494' >>$CONFIG_STATUS || ac_write_fail=1
15495rm -f conf$$subs.awk
15496cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15497_ACAWK
15498cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15499 for (key in S) S_is_set[key] = 1
15500 FS = "\a"
15501 \$ac_cs_awk_pipe_init
15502}
15503{
15504 line = $ 0
15505 nfields = split(line, field, "@")
15506 substed = 0
15507 len = length(field[1])
15508 for (i = 2; i < nfields; i++) {
15509 key = field[i]
15510 keylen = length(key)
15511 if (S_is_set[key]) {
15512 value = S[key]
15513 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15514 len += length(value) + length(field[++i])
15515 substed = 1
15516 } else
15517 len += 1 + keylen
15518 }
15519 if (nfields == 3 && !substed) {
15520 key = field[2]
15521 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15522 \$ac_cs_awk_read_file
15523 next
15524 }
15525 }
15526 print line
15527}
15528\$ac_cs_awk_pipe_fini
15529_ACAWK
15530_ACEOF
15531cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15532if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15533 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15534else
15535 cat
15536fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15537 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15538_ACEOF
15539
15540# VPATH may cause trouble with some makes, so we remove $(srcdir),
15541# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15542# trailing colons and then remove the whole line if VPATH becomes empty
15543# (actually we leave an empty line to preserve line numbers).
15544if test "x$srcdir" = x.; then
15545 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15546s/:*\$(srcdir):*/:/
15547s/:*\${srcdir}:*/:/
15548s/:*@srcdir@:*/:/
15549s/^\([^=]*=[ ]*\):*/\1/
15550s/:*$//
15551s/^[^=]*=[ ]*$//
15552}'
15553fi
2aeb72e9 15554
5213506e
RW
15555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15556fi # test -n "$CONFIG_FILES"
2aeb72e9 15557
1c710c3c 15558
5213506e
RW
15559eval set X " :F $CONFIG_FILES "
15560shift
15561for ac_tag
15562do
15563 case $ac_tag in
15564 :[FHLC]) ac_mode=$ac_tag; continue;;
15565 esac
15566 case $ac_mode$ac_tag in
15567 :[FHL]*:*);;
15568 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15569 :[FH]-) ac_tag=-:-;;
15570 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15571 esac
15572 ac_save_IFS=$IFS
15573 IFS=:
15574 set x $ac_tag
15575 IFS=$ac_save_IFS
15576 shift
15577 ac_file=$1
15578 shift
79c06341 15579
5213506e
RW
15580 case $ac_mode in
15581 :L) ac_source=$1;;
15582 :[FH])
15583 ac_file_inputs=
15584 for ac_f
15585 do
15586 case $ac_f in
15587 -) ac_f="$tmp/stdin";;
15588 *) # Look for the file first in the build tree, then in the source tree
15589 # (if the path is not absolute). The absolute path cannot be DOS-style,
15590 # because $ac_f cannot contain `:'.
15591 test -f "$ac_f" ||
15592 case $ac_f in
15593 [\\/$]*) false;;
15594 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15595 esac ||
15596 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15597 esac
15598 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15599 as_fn_append ac_file_inputs " '$ac_f'"
15600 done
1c710c3c 15601
5213506e
RW
15602 # Let's still pretend it is `configure' which instantiates (i.e., don't
15603 # use $as_me), people would be surprised to read:
15604 # /* config.h. Generated by config.status. */
15605 configure_input='Generated from '`
15606 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15607 `' by configure.'
15608 if test x"$ac_file" != x-; then
15609 configure_input="$ac_file. $configure_input"
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15611$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15612 fi
5213506e
RW
15613 # Neutralize special characters interpreted by sed in replacement strings.
15614 case $configure_input in #(
15615 *\&* | *\|* | *\\* )
15616 ac_sed_conf_input=`$as_echo "$configure_input" |
15617 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15618 *) ac_sed_conf_input=$configure_input;;
15619 esac
11a67599 15620
5213506e
RW
15621 case $ac_tag in
15622 *:-:* | *:-) cat >"$tmp/stdin" \
15623 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15624 esac
15625 ;;
11a67599
ZW
15626 esac
15627
5213506e 15628 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15629$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15630 X"$ac_file" : 'X\(//\)[^/]' \| \
15631 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15632 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15633$as_echo X"$ac_file" |
15634 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15635 s//\1/
15636 q
15637 }
15638 /^X\(\/\/\)[^/].*/{
15639 s//\1/
15640 q
15641 }
15642 /^X\(\/\/\)$/{
15643 s//\1/
15644 q
15645 }
15646 /^X\(\/\).*/{
15647 s//\1/
15648 q
15649 }
15650 s/.*/./; q'`
15651 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15652 ac_builddir=.
0b0dc272 15653
5213506e
RW
15654case "$ac_dir" in
15655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15656*)
15657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15658 # A ".." for each directory in $ac_dir_suffix.
15659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15660 case $ac_top_builddir_sub in
15661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15663 esac ;;
15664esac
15665ac_abs_top_builddir=$ac_pwd
15666ac_abs_builddir=$ac_pwd$ac_dir_suffix
15667# for backward compatibility:
15668ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15669
15670case $srcdir in
5213506e 15671 .) # We are building in place.
1c710c3c 15672 ac_srcdir=.
5213506e
RW
15673 ac_top_srcdir=$ac_top_builddir_sub
15674 ac_abs_top_srcdir=$ac_pwd ;;
15675 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15676 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15677 ac_top_srcdir=$srcdir
15678 ac_abs_top_srcdir=$srcdir ;;
15679 *) # Relative name.
15680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15681 ac_top_srcdir=$ac_top_build_prefix$srcdir
15682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15683esac
5213506e 15684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15685
0b0dc272 15686
5213506e
RW
15687 case $ac_mode in
15688 :F)
15689 #
15690 # CONFIG_FILE
15691 #
1c710c3c
DJ
15692
15693 case $INSTALL in
15694 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15695 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15696 esac
5213506e 15697_ACEOF
11a67599 15698
5213506e
RW
15699cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15700# If the template does not know about datarootdir, expand it.
15701# FIXME: This hack should be removed a few years after 2.60.
15702ac_datarootdir_hack=; ac_datarootdir_seen=
15703ac_sed_dataroot='
15704/datarootdir/ {
15705 p
15706 q
15707}
15708/@datadir@/p
15709/@docdir@/p
15710/@infodir@/p
15711/@localedir@/p
15712/@mandir@/p'
15713case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15714*datarootdir*) ac_datarootdir_seen=yes;;
15715*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15717$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15718_ACEOF
5213506e
RW
15719cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15720 ac_datarootdir_hack='
15721 s&@datadir@&$datadir&g
15722 s&@docdir@&$docdir&g
15723 s&@infodir@&$infodir&g
15724 s&@localedir@&$localedir&g
15725 s&@mandir@&$mandir&g
15726 s&\\\${datarootdir}&$datarootdir&g' ;;
15727esac
15728_ACEOF
15729
15730# Neutralize VPATH when `$srcdir' = `.'.
15731# Shell code in configure.ac might set extrasub.
15732# FIXME: do we really want to maintain this feature?
15733cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15734ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15735$extrasub
15736_ACEOF
5213506e 15737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15738:t
15739/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15740s|@configure_input@|$ac_sed_conf_input|;t t
15741s&@top_builddir@&$ac_top_builddir_sub&;t t
15742s&@top_build_prefix@&$ac_top_build_prefix&;t t
15743s&@srcdir@&$ac_srcdir&;t t
15744s&@abs_srcdir@&$ac_abs_srcdir&;t t
15745s&@top_srcdir@&$ac_top_srcdir&;t t
15746s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15747s&@builddir@&$ac_builddir&;t t
15748s&@abs_builddir@&$ac_abs_builddir&;t t
15749s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15750s&@INSTALL@&$ac_INSTALL&;t t
15751$ac_datarootdir_hack
15752"
15753eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15754if $ac_cs_awk_getline; then
15755 $AWK -f "$tmp/subs.awk"
15756else
15757 $AWK -f "$tmp/subs.awk" | $SHELL
15758fi >$tmp/out \
15759 || as_fn_error "could not create $ac_file" "$LINENO" 5
15760
15761test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15762 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15763 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15765which seems to be undefined. Please make sure it is defined." >&5
15766$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15767which seems to be undefined. Please make sure it is defined." >&2;}
15768
15769 rm -f "$tmp/stdin"
15770 case $ac_file in
15771 -) cat "$tmp/out" && rm -f "$tmp/out";;
15772 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15773 esac \
15774 || as_fn_error "could not create $ac_file" "$LINENO" 5
15775 ;;
11a67599 15776
11a67599 15777
79c06341 15778
5213506e
RW
15779 esac
15780
3e54529c
RW
15781
15782 case $ac_file$ac_mode in
15783 "Makefile":F) sed "$extrasub_build" Makefile |
15784 sed "$extrasub_host" |
15785 sed "$extrasub_target" > mf$$
15786 mv -f mf$$ Makefile ;;
15787
15788 esac
5213506e
RW
15789done # for ac_tag
15790
15791
15792as_fn_exit 0
1c710c3c 15793_ACEOF
1c710c3c
DJ
15794ac_clean_files=$ac_clean_files_save
15795
5213506e
RW
15796test $ac_write_fail = 0 ||
15797 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15798
1c710c3c
DJ
15799
15800# configure is writing to config.log, and then calls config.status.
15801# config.status does its own redirection, appending to config.log.
15802# Unfortunately, on DOS this fails, as config.log is still kept open
15803# by configure, so config.status won't be able to write to it; its
15804# output is simply discarded. So we exec the FD to /dev/null,
15805# effectively closing config.log, so it can be properly (re)opened and
15806# appended to by config.status. When coming back to configure, we
15807# need to make the FD available again.
15808if test "$no_create" != yes; then
15809 ac_cs_success=:
15810 ac_config_status_args=
15811 test "$silent" = yes &&
15812 ac_config_status_args="$ac_config_status_args --quiet"
15813 exec 5>/dev/null
15814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15815 exec 5>>config.log
15816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15817 # would make configure fail if this is the last instruction.
5213506e
RW
15818 $ac_cs_success || as_fn_exit $?
15819fi
15820if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15822$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15823fi
79c06341 15824