]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
re PR other/79046 (g++ -print-file-name=plugin uses full version number in path)
[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
3c36aa6b 644get_gcc_base_ver
1c01ebf6 645extra_host_zlib_configure_flags
d7f09764 646extra_host_libiberty_configure_flags
fca38047 647stage1_languages
45b3824d
TS
648extra_linker_plugin_flags
649extra_linker_plugin_configure_flags
33ad93b9 650islinc
eae1a5d4 651isllibs
1e050c90 652islver
5213506e 653poststage1_ldflags
ed2eaa9f 654poststage1_libs
5213506e 655stage1_ldflags
0b21f5d3 656stage1_libs
0ff2d841 657extra_isl_gmp_configure_flags
5213506e
RW
658extra_mpc_mpfr_configure_flags
659extra_mpc_gmp_configure_flags
660extra_mpfr_configure_flags
661gmpinc
662gmplibs
663do_compare
664GNATMAKE
665GNATBIND
666ac_ct_CXX
667CXXFLAGS
668CXX
669OBJEXT
670EXEEXT
671ac_ct_CC
672CPPFLAGS
673LDFLAGS
674CFLAGS
675CC
5f520819 676extra_liboffloadmic_configure_flags
5213506e
RW
677target_subdir
678host_subdir
679build_subdir
680build_libsubdir
87264276
PB
681AWK
682SED
5213506e
RW
683LN_S
684LN
685INSTALL_DATA
686INSTALL_SCRIPT
687INSTALL_PROGRAM
688target_os
689target_vendor
690target_cpu
691target
692host_os
693host_vendor
694host_cpu
695host
696target_noncanonical
697host_noncanonical
698build_noncanonical
699build_os
700build_vendor
701build_cpu
702build
703TOPLEVEL_CONFIGURE_ARGUMENTS
704target_alias
705host_alias
706build_alias
707LIBS
708ECHO_T
709ECHO_N
710ECHO_C
711DEFS
712mandir
713localedir
714libdir
715psdir
716pdfdir
717dvidir
718htmldir
719infodir
720docdir
721oldincludedir
722includedir
723localstatedir
724sharedstatedir
725sysconfdir
726datadir
727datarootdir
728libexecdir
729sbindir
730bindir
731program_transform_name
732prefix
733exec_prefix
734PACKAGE_URL
735PACKAGE_BUGREPORT
736PACKAGE_STRING
737PACKAGE_VERSION
738PACKAGE_TARNAME
739PACKAGE_NAME
740PATH_SEPARATOR
741SHELL'
742ac_subst_files='serialization_dependencies
743host_makefile_frag
744target_makefile_frag
745alphaieee_frag
746ospace_frag'
747ac_user_opts='
748enable_option_checking
749with_build_libsubdir
a05c2c75 750with_system_zlib
85c64bbe
BS
751enable_as_accelerator_for
752enable_offload_targets
5213506e 753enable_gold
21539e2e 754enable_ld
78edb32f 755enable_compressed_debug_sections
87e6d9dc
TB
756enable_libquadmath
757enable_libquadmath_support
5213506e
RW
758enable_libada
759enable_libssp
1873ec0c 760enable_libstdcxx
5f520819 761enable_liboffloadmic
ff3ac0f4 762enable_bootstrap
5213506e
RW
763with_mpc
764with_mpc_include
765with_mpc_lib
766with_mpfr_dir
767with_mpfr
768with_mpfr_include
769with_mpfr_lib
770with_gmp_dir
771with_gmp
772with_gmp_include
773with_gmp_lib
5213506e 774with_stage1_libs
0b21f5d3 775with_stage1_ldflags
5213506e 776with_boot_libs
ed2eaa9f 777with_boot_ldflags
33ad93b9
RG
778with_isl
779with_isl_include
780with_isl_lib
781enable_isl_version_check
d7f09764 782enable_lto
45b3824d
TS
783enable_linker_plugin_configure_flags
784enable_linker_plugin_flags
5213506e 785enable_stage1_languages
43c40f3e 786enable_objc_gc
114bf3f1
MK
787with_target_bdw_gc
788with_target_bdw_gc_include
789with_target_bdw_gc_lib
3c36aa6b 790with_gcc_major_version_only
5213506e
RW
791with_build_sysroot
792with_debug_prefix_map
5646b7b9 793with_build_config
beeda1d9 794enable_vtable_verify
5213506e
RW
795enable_serial_configure
796with_build_time_tools
797enable_maintainer_mode
798enable_stage1_checking
799enable_werror
459260ec 800enable_host_shared
5213506e
RW
801'
802 ac_precious_vars='build_alias
803host_alias
804target_alias
805CC
806CFLAGS
807LDFLAGS
808LIBS
809CPPFLAGS
810CXX
811CXXFLAGS
812CCC
ffedf511
RW
813build_configargs
814host_configargs
815target_configargs
5213506e
RW
816AR
817AS
818DLLTOOL
819LD
820LIPO
821NM
822RANLIB
823STRIP
824WINDRES
825WINDMC
826OBJCOPY
827OBJDUMP
e7a82751 828READELF
5213506e
RW
829CC_FOR_TARGET
830CXX_FOR_TARGET
831GCC_FOR_TARGET
5213506e 832GFORTRAN_FOR_TARGET
632e2a07 833GOC_FOR_TARGET
5213506e
RW
834AR_FOR_TARGET
835AS_FOR_TARGET
836DLLTOOL_FOR_TARGET
837LD_FOR_TARGET
838LIPO_FOR_TARGET
839NM_FOR_TARGET
9bccfdf5 840OBJCOPY_FOR_TARGET
5213506e
RW
841OBJDUMP_FOR_TARGET
842RANLIB_FOR_TARGET
e7a82751 843READELF_FOR_TARGET
5213506e
RW
844STRIP_FOR_TARGET
845WINDRES_FOR_TARGET
846WINDMC_FOR_TARGET'
847
671aa708
NN
848
849# Initialize some variables set by options.
1c710c3c
DJ
850ac_init_help=
851ac_init_version=false
5213506e
RW
852ac_unrecognized_opts=
853ac_unrecognized_sep=
671aa708
NN
854# The variables have the same names as the options, with
855# dashes changed to underlines.
1c710c3c 856cache_file=/dev/null
671aa708 857exec_prefix=NONE
671aa708 858no_create=
671aa708
NN
859no_recursion=
860prefix=NONE
861program_prefix=NONE
862program_suffix=NONE
863program_transform_name=s,x,x,
864silent=
865site=
866srcdir=
671aa708
NN
867verbose=
868x_includes=NONE
869x_libraries=NONE
1c710c3c
DJ
870
871# Installation directory options.
872# These are left unexpanded so users can "make install exec_prefix=/foo"
873# and all the variables that are supposed to be based on exec_prefix
874# by default will actually change.
875# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 876# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
877bindir='${exec_prefix}/bin'
878sbindir='${exec_prefix}/sbin'
879libexecdir='${exec_prefix}/libexec'
5213506e
RW
880datarootdir='${prefix}/share'
881datadir='${datarootdir}'
671aa708
NN
882sysconfdir='${prefix}/etc'
883sharedstatedir='${prefix}/com'
884localstatedir='${prefix}/var'
671aa708
NN
885includedir='${prefix}/include'
886oldincludedir='/usr/include'
5213506e
RW
887docdir='${datarootdir}/doc/${PACKAGE}'
888infodir='${datarootdir}/info'
889htmldir='${docdir}'
890dvidir='${docdir}'
891pdfdir='${docdir}'
892psdir='${docdir}'
893libdir='${exec_prefix}/lib'
894localedir='${datarootdir}/locale'
895mandir='${datarootdir}/man'
79c06341 896
671aa708 897ac_prev=
5213506e 898ac_dashdash=
671aa708
NN
899for ac_option
900do
671aa708
NN
901 # If the previous option needs an argument, assign it.
902 if test -n "$ac_prev"; then
5213506e 903 eval $ac_prev=\$ac_option
671aa708
NN
904 ac_prev=
905 continue
906 fi
79c06341 907
5213506e
RW
908 case $ac_option in
909 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910 *) ac_optarg=yes ;;
911 esac
671aa708
NN
912
913 # Accept the important Cygnus configure options, so we can diagnose typos.
914
5213506e
RW
915 case $ac_dashdash$ac_option in
916 --)
917 ac_dashdash=yes ;;
671aa708
NN
918
919 -bindir | --bindir | --bindi | --bind | --bin | --bi)
920 ac_prev=bindir ;;
921 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 922 bindir=$ac_optarg ;;
671aa708
NN
923
924 -build | --build | --buil | --bui | --bu)
1c710c3c 925 ac_prev=build_alias ;;
671aa708 926 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 927 build_alias=$ac_optarg ;;
671aa708
NN
928
929 -cache-file | --cache-file | --cache-fil | --cache-fi \
930 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
931 ac_prev=cache_file ;;
932 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
933 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
934 cache_file=$ac_optarg ;;
935
936 --config-cache | -C)
937 cache_file=config.cache ;;
671aa708 938
5213506e 939 -datadir | --datadir | --datadi | --datad)
671aa708 940 ac_prev=datadir ;;
5213506e 941 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 942 datadir=$ac_optarg ;;
671aa708 943
5213506e
RW
944 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945 | --dataroo | --dataro | --datar)
946 ac_prev=datarootdir ;;
947 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949 datarootdir=$ac_optarg ;;
950
671aa708 951 -disable-* | --disable-*)
5213506e 952 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 953 # Reject names that are not valid shell variable names.
5213506e
RW
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
959 *"
960"enable_$ac_useropt"
961"*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=no ;;
966
967 -docdir | --docdir | --docdi | --doc | --do)
968 ac_prev=docdir ;;
969 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
970 docdir=$ac_optarg ;;
971
972 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
973 ac_prev=dvidir ;;
974 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
975 dvidir=$ac_optarg ;;
671aa708
NN
976
977 -enable-* | --enable-*)
5213506e 978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 979 # Reject names that are not valid shell variable names.
5213506e
RW
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 as_fn_error "invalid feature name: $ac_useropt"
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986"enable_$ac_useropt"
987"*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
2aeb72e9 990 esac
5213506e 991 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
992
993 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
994 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
995 | --exec | --exe | --ex)
996 ac_prev=exec_prefix ;;
997 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
998 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
999 | --exec=* | --exe=* | --ex=*)
1c710c3c 1000 exec_prefix=$ac_optarg ;;
671aa708
NN
1001
1002 -gas | --gas | --ga | --g)
1003 # Obsolete; use --with-gas.
1004 with_gas=yes ;;
1005
1c710c3c
DJ
1006 -help | --help | --hel | --he | -h)
1007 ac_init_help=long ;;
1008 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1009 ac_init_help=recursive ;;
1010 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1011 ac_init_help=short ;;
671aa708
NN
1012
1013 -host | --host | --hos | --ho)
1c710c3c 1014 ac_prev=host_alias ;;
671aa708 1015 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1016 host_alias=$ac_optarg ;;
671aa708 1017
5213506e
RW
1018 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1019 ac_prev=htmldir ;;
1020 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1021 | --ht=*)
1022 htmldir=$ac_optarg ;;
1023
671aa708
NN
1024 -includedir | --includedir | --includedi | --included | --include \
1025 | --includ | --inclu | --incl | --inc)
1026 ac_prev=includedir ;;
1027 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1028 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1029 includedir=$ac_optarg ;;
671aa708
NN
1030
1031 -infodir | --infodir | --infodi | --infod | --info | --inf)
1032 ac_prev=infodir ;;
1033 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1034 infodir=$ac_optarg ;;
671aa708
NN
1035
1036 -libdir | --libdir | --libdi | --libd)
1037 ac_prev=libdir ;;
1038 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1039 libdir=$ac_optarg ;;
671aa708
NN
1040
1041 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1042 | --libexe | --libex | --libe)
1043 ac_prev=libexecdir ;;
1044 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1045 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1046 libexecdir=$ac_optarg ;;
671aa708 1047
5213506e
RW
1048 -localedir | --localedir | --localedi | --localed | --locale)
1049 ac_prev=localedir ;;
1050 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1051 localedir=$ac_optarg ;;
1052
671aa708 1053 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1054 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1055 ac_prev=localstatedir ;;
1056 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1057 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1058 localstatedir=$ac_optarg ;;
671aa708
NN
1059
1060 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1061 ac_prev=mandir ;;
1062 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1063 mandir=$ac_optarg ;;
671aa708
NN
1064
1065 -nfp | --nfp | --nf)
1066 # Obsolete; use --without-fp.
1067 with_fp=no ;;
1068
1069 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1070 | --no-cr | --no-c | -n)
671aa708
NN
1071 no_create=yes ;;
1072
1073 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1074 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1075 no_recursion=yes ;;
1076
1077 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1078 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1079 | --oldin | --oldi | --old | --ol | --o)
1080 ac_prev=oldincludedir ;;
1081 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1082 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1083 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1084 oldincludedir=$ac_optarg ;;
671aa708
NN
1085
1086 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1087 ac_prev=prefix ;;
1088 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1089 prefix=$ac_optarg ;;
671aa708
NN
1090
1091 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1092 | --program-pre | --program-pr | --program-p)
1093 ac_prev=program_prefix ;;
1094 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1095 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1096 program_prefix=$ac_optarg ;;
671aa708
NN
1097
1098 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1099 | --program-suf | --program-su | --program-s)
1100 ac_prev=program_suffix ;;
1101 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1102 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1103 program_suffix=$ac_optarg ;;
671aa708
NN
1104
1105 -program-transform-name | --program-transform-name \
1106 | --program-transform-nam | --program-transform-na \
1107 | --program-transform-n | --program-transform- \
1108 | --program-transform | --program-transfor \
1109 | --program-transfo | --program-transf \
1110 | --program-trans | --program-tran \
1111 | --progr-tra | --program-tr | --program-t)
1112 ac_prev=program_transform_name ;;
1113 -program-transform-name=* | --program-transform-name=* \
1114 | --program-transform-nam=* | --program-transform-na=* \
1115 | --program-transform-n=* | --program-transform-=* \
1116 | --program-transform=* | --program-transfor=* \
1117 | --program-transfo=* | --program-transf=* \
1118 | --program-trans=* | --program-tran=* \
1119 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1120 program_transform_name=$ac_optarg ;;
671aa708 1121
5213506e
RW
1122 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1123 ac_prev=pdfdir ;;
1124 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1125 pdfdir=$ac_optarg ;;
1126
1127 -psdir | --psdir | --psdi | --psd | --ps)
1128 ac_prev=psdir ;;
1129 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1130 psdir=$ac_optarg ;;
1131
671aa708
NN
1132 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1133 | -silent | --silent | --silen | --sile | --sil)
1134 silent=yes ;;
1135
1136 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1137 ac_prev=sbindir ;;
1138 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1139 | --sbi=* | --sb=*)
1c710c3c 1140 sbindir=$ac_optarg ;;
671aa708
NN
1141
1142 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1143 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1144 | --sharedst | --shareds | --shared | --share | --shar \
1145 | --sha | --sh)
1146 ac_prev=sharedstatedir ;;
1147 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1148 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1149 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1150 | --sha=* | --sh=*)
1c710c3c 1151 sharedstatedir=$ac_optarg ;;
671aa708
NN
1152
1153 -site | --site | --sit)
1154 ac_prev=site ;;
1155 -site=* | --site=* | --sit=*)
1c710c3c 1156 site=$ac_optarg ;;
671aa708
NN
1157
1158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1159 ac_prev=srcdir ;;
1160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1161 srcdir=$ac_optarg ;;
671aa708
NN
1162
1163 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1164 | --syscon | --sysco | --sysc | --sys | --sy)
1165 ac_prev=sysconfdir ;;
1166 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1167 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1168 sysconfdir=$ac_optarg ;;
671aa708
NN
1169
1170 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1171 ac_prev=target_alias ;;
671aa708 1172 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1173 target_alias=$ac_optarg ;;
671aa708
NN
1174
1175 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1176 verbose=yes ;;
1177
1c710c3c
DJ
1178 -version | --version | --versio | --versi | --vers | -V)
1179 ac_init_version=: ;;
671aa708
NN
1180
1181 -with-* | --with-*)
5213506e 1182 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1183 # Reject names that are not valid shell variable names.
5213506e
RW
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
2aeb72e9 1194 esac
5213506e 1195 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1196
1197 -without-* | --without-*)
5213506e 1198 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1199 # Reject names that are not valid shell variable names.
5213506e
RW
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error "invalid package name: $ac_useropt"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206"with_$ac_useropt"
1207"*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=no ;;
671aa708
NN
1212
1213 --x)
1214 # Obsolete; use --with-x.
1215 with_x=yes ;;
1216
1217 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1218 | --x-incl | --x-inc | --x-in | --x-i)
1219 ac_prev=x_includes ;;
1220 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1221 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1222 x_includes=$ac_optarg ;;
671aa708
NN
1223
1224 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1225 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1226 ac_prev=x_libraries ;;
1227 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1228 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1229 x_libraries=$ac_optarg ;;
671aa708 1230
5213506e
RW
1231 -*) as_fn_error "unrecognized option: \`$ac_option'
1232Try \`$0 --help' for more information."
671aa708
NN
1233 ;;
1234
1c710c3c
DJ
1235 *=*)
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
5213506e
RW
1238 case $ac_envvar in #(
1239 '' | [0-9]* | *[!_$as_cr_alnum]* )
1240 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1241 esac
1242 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1243 export $ac_envvar ;;
1244
671aa708 1245 *)
1c710c3c 1246 # FIXME: should be removed in autoconf 3.0.
5213506e 1247 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1248 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1249 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1250 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1251 ;;
1252
1253 esac
1254done
1255
1256if test -n "$ac_prev"; then
1c710c3c 1257 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1258 as_fn_error "missing argument to $ac_option"
af71363e 1259fi
af71363e 1260
5213506e
RW
1261if test -n "$ac_unrecognized_opts"; then
1262 case $enable_option_checking in
1263 no) ;;
1264 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1265 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1266 esac
5213506e 1267fi
2aeb72e9 1268
5213506e
RW
1269# Check all directory arguments for consistency.
1270for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1271 datadir sysconfdir sharedstatedir localstatedir includedir \
1272 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1273 libdir localedir mandir
2aeb72e9 1274do
5213506e
RW
1275 eval ac_val=\$$ac_var
1276 # Remove trailing slashes.
1277 case $ac_val in
1278 */ )
1279 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1280 eval $ac_var=\$ac_val;;
1281 esac
1282 # Be sure to have absolute directory names.
2aeb72e9 1283 case $ac_val in
5213506e
RW
1284 [\\/$]* | ?:[\\/]* ) continue;;
1285 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1286 esac
5213506e 1287 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1288done
1289
1c710c3c
DJ
1290# There might be people who depend on the old broken behavior: `$host'
1291# used to hold the argument of --host etc.
1292# FIXME: To remove some day.
1293build=$build_alias
1294host=$host_alias
1295target=$target_alias
0b0dc272 1296
1c710c3c
DJ
1297# FIXME: To remove some day.
1298if test "x$host_alias" != x; then
1299 if test "x$build_alias" = x; then
1300 cross_compiling=maybe
5213506e 1301 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1302 If a cross compiler is detected then cross compile mode will be used." >&2
1303 elif test "x$build_alias" != "x$host_alias"; then
1304 cross_compiling=yes
1305 fi
1306fi
1307
1308ac_tool_prefix=
1309test -n "$host_alias" && ac_tool_prefix=$host_alias-
1310
1311test "$silent" = yes && exec 6>/dev/null
671aa708 1312
671aa708 1313
5213506e
RW
1314ac_pwd=`pwd` && test -n "$ac_pwd" &&
1315ac_ls_di=`ls -di .` &&
1316ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1317 as_fn_error "working directory cannot be determined"
1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1319 as_fn_error "pwd does not report name of working directory"
1320
1321
671aa708
NN
1322# Find the source files, if location was not specified.
1323if test -z "$srcdir"; then
1324 ac_srcdir_defaulted=yes
5213506e
RW
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir=`$as_dirname -- "$as_myself" ||
1327$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331$as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1333 s//\1/
1334 q
1335 }
1336 /^X\(\/\/\)[^/].*/{
1337 s//\1/
1338 q
1339 }
1340 /^X\(\/\/\)$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\).*/{
1345 s//\1/
1346 q
1347 }
1348 s/.*/./; q'`
671aa708 1349 srcdir=$ac_confdir
5213506e 1350 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1351 srcdir=..
1352 fi
1353else
1354 ac_srcdir_defaulted=no
1355fi
5213506e
RW
1356if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1358 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1359fi
1360ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361ac_abs_confdir=`(
1362 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1363 pwd)`
1364# When building in place, set srcdir=.
1365if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 srcdir=.
1367fi
1368# Remove unnecessary trailing slashes from srcdir.
1369# Double slashes in file names in object file debugging info
1370# mess up M-x gdb in Emacs.
1371case $srcdir in
1372*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1373esac
87841584
AM
1374case $srcdir in
1375 *" "*)
1376 as_fn_error "path to source, $srcdir, contains spaces"
1377 ;;
1378esac
ac9e6043
RW
1379ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1380
5213506e
RW
1381for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1c710c3c
DJ
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395\`configure' configures this package to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE. See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1414
1c710c3c
DJ
1415Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1417 [$ac_default_prefix]
1c710c3c 1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1419 [PREFIX]
1c710c3c
DJ
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
5213506e
RW
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1448_ACEOF
1449
1450 cat <<\_ACEOF
1451
1452Program names:
1453 --program-prefix=PREFIX prepend PREFIX to installed program names
1454 --program-suffix=SUFFIX append SUFFIX to installed program names
1455 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1456
1457System types:
1458 --build=BUILD configure for building on BUILD [guessed]
1459 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1460 --target=TARGET configure for building compilers for TARGET [HOST]
1461_ACEOF
1462fi
1463
1464if test -n "$ac_init_help"; then
1465
1466 cat <<\_ACEOF
1467
1468Optional Features:
5213506e 1469 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1470 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1471 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1472 --enable-as-accelerator-for=ARG
1473 build as offload target compiler. Specify offload
1474 host triple by ARG
1475 --enable-offload-targets=LIST
1476 enable offloading to devices from comma-separated
1477 LIST of TARGET[=DIR]. Use optional path to find
1478 offload target compiler during the build
21539e2e 1479 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1480 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1481 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1482 Enable compressed debug sections for gas, gold or ld
1483 by default
87e6d9dc
TB
1484 --disable-libquadmath do not build libquadmath directory
1485 --disable-libquadmath-support
1486 disable libquadmath support for Fortran
30b74385
RW
1487 --enable-libada build libada directory
1488 --enable-libssp build libssp directory
1873ec0c 1489 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1490 --enable-liboffloadmic=ARG
1491 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1492 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1493 --disable-isl-version-check
560d18d3 1494 disable check for isl version
d7f09764 1495 --enable-lto enable link time optimization support
45b3824d
TS
1496 --enable-linker-plugin-configure-flags=FLAGS
1497 additional flags for configuring linker plugins
1498 [none]
1499 --enable-linker-plugin-flags=FLAGS
1500 additional flags for configuring and building linker
1501 plugins [none]
33e39b66
AS
1502 --enable-stage1-languages[=all]
1503 choose additional languages to build during stage1.
1504 Mostly useful for compiler development
43c40f3e
RO
1505 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1506 Objective-C runtime
318a4e6d 1507 --enable-vtable-verify Enable vtable verification feature
30b74385 1508 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1509 force sequential configuration of sub-packages for
1510 the host, target or build machine, or all
1511 sub-packages
1512 --enable-maintainer-mode
1513 enable make rules and dependencies not useful (and
1514 sometimes confusing) to the casual installer
1515 --enable-stage1-checking[=all]
1516 choose additional checking for stage1 of the
1517 compiler
1c710c3c 1518 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1519 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1520
1521Optional Packages:
1522 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1523 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1524 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1525 --with-system-zlib use installed libz
33e39b66
AS
1526 --with-mpc=PATH specify prefix directory for installed MPC package.
1527 Equivalent to --with-mpc-include=PATH/include plus
1528 --with-mpc-lib=PATH/lib
1529 --with-mpc-include=PATH specify directory for installed MPC include files
1530 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1531 --with-mpfr-dir=PATH this option has been REMOVED
1532 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1533 Equivalent to --with-mpfr-include=PATH/include plus
1534 --with-mpfr-lib=PATH/lib
1c710c3c 1535 --with-mpfr-include=PATH
30b74385
RW
1536 specify directory for installed MPFR include files
1537 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1538 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1539 --with-gmp=PATH specify prefix directory for the installed GMP
1540 package. Equivalent to
1541 --with-gmp-include=PATH/include plus
1542 --with-gmp-lib=PATH/lib
30b74385
RW
1543 --with-gmp-include=PATH specify directory for installed GMP include files
1544 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1545 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1546 --with-stage1-ldflags=FLAGS
1547 linker flags for stage1
33e39b66
AS
1548 --with-boot-libs=LIBS libraries for stage2 and later
1549 --with-boot-ldflags=FLAGS
1550 linker flags for stage2 and later
e357a5e0 1551 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1552 package. Equivalent to
33ad93b9
RG
1553 --with-isl-include=PATH/include plus
1554 --with-isl-lib=PATH/lib
560d18d3
AK
1555 --with-isl-include=PATH Specify directory for installed isl include files
1556 --with-isl-lib=PATH Specify the directory for the installed isl library
114bf3f1
MK
1557 --with-target-bdw-gc=PATHLIST
1558 specify prefix directory for installed bdw-gc
1559 package. Equivalent to
1560 --with-target-bdw-gc-include=PATH/include plus
1561 --with-target-bdw-gc-lib=PATH/lib
1562 --with-target-bdw-gc-include=PATHLIST
1563 specify directories for installed bdw-gc include
1564 files
1565 --with-target-bdw-gc-lib=PATHLIST
1566 specify directories for installed bdw-gc library
3c36aa6b
JJ
1567 --with-gcc-major-version-only
1568 use only GCC major number in filesystem paths
30b74385 1569 --with-build-sysroot=SYSROOT
1c710c3c 1570 use sysroot as the system root during the build
c8aea42c 1571 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1572 map A to B, C to D ... in debug information
1573 --with-build-config='NAME NAME2...'
1574 use config/NAME.mk build configuration
30b74385 1575 --with-build-time-tools=PATH
1c710c3c 1576 use given path to find target tools during the build
1c710c3c
DJ
1577
1578Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
5213506e
RW
1583 LIBS libraries to pass to the linker, e.g. -l<library>
1584 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1585 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1586 CXX C++ compiler command
1587 CXXFLAGS C++ compiler flags
ffedf511
RW
1588 build_configargs
1589 additional configure arguments for build directories
1590 host_configargs
1591 additional configure arguments for host directories
1592 target_configargs
1593 additional configure arguments for target directories
278a7a38
AO
1594 AR AR for the host
1595 AS AS for the host
1596 DLLTOOL DLLTOOL for the host
1597 LD LD for the host
1598 LIPO LIPO for the host
1599 NM NM for the host
1600 RANLIB RANLIB for the host
1601 STRIP STRIP for the host
1602 WINDRES WINDRES for the host
901119ae 1603 WINDMC WINDMC for the host
278a7a38
AO
1604 OBJCOPY OBJCOPY for the host
1605 OBJDUMP OBJDUMP for the host
e7a82751 1606 READELF READELF for the host
278a7a38
AO
1607 CC_FOR_TARGET
1608 CC for the target
1609 CXX_FOR_TARGET
1610 CXX for the target
1611 GCC_FOR_TARGET
1612 GCC for the target
278a7a38
AO
1613 GFORTRAN_FOR_TARGET
1614 GFORTRAN for the target
632e2a07
ILT
1615 GOC_FOR_TARGET
1616 GOC for the target
278a7a38
AO
1617 AR_FOR_TARGET
1618 AR for the target
1619 AS_FOR_TARGET
1620 AS for the target
1621 DLLTOOL_FOR_TARGET
1622 DLLTOOL for the target
1623 LD_FOR_TARGET
1624 LD for the target
1625 LIPO_FOR_TARGET
1626 LIPO for the target
1627 NM_FOR_TARGET
1628 NM for the target
9bccfdf5
AP
1629 OBJCOPY_FOR_TARGET
1630 OBJCOPY for the target
278a7a38
AO
1631 OBJDUMP_FOR_TARGET
1632 OBJDUMP for the target
1633 RANLIB_FOR_TARGET
1634 RANLIB for the target
e7a82751
RM
1635 READELF_FOR_TARGET
1636 READELF for the target
278a7a38
AO
1637 STRIP_FOR_TARGET
1638 STRIP for the target
1639 WINDRES_FOR_TARGET
1640 WINDRES for the target
901119ae
KT
1641 WINDMC_FOR_TARGET
1642 WINDMC for the target
1c710c3c
DJ
1643
1644Use these variables to override the choices made by `configure' or to help
1645it to find libraries and programs with nonstandard names/locations.
1646
5213506e 1647Report bugs to the package provider.
1c710c3c 1648_ACEOF
5213506e 1649ac_status=$?
1c710c3c
DJ
1650fi
1651
1652if test "$ac_init_help" = "recursive"; then
1653 # If there are subdirs, report their specific --help.
1c710c3c 1654 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1655 test -d "$ac_dir" ||
1656 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657 continue
1c710c3c
DJ
1658 ac_builddir=.
1659
5213506e
RW
1660case "$ac_dir" in
1661.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662*)
1663 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664 # A ".." for each directory in $ac_dir_suffix.
1665 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666 case $ac_top_builddir_sub in
1667 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669 esac ;;
1670esac
1671ac_abs_top_builddir=$ac_pwd
1672ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673# for backward compatibility:
1674ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1675
1676case $srcdir in
5213506e 1677 .) # We are building in place.
1c710c3c 1678 ac_srcdir=.
5213506e
RW
1679 ac_top_srcdir=$ac_top_builddir_sub
1680 ac_abs_top_srcdir=$ac_pwd ;;
1681 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1682 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1683 ac_top_srcdir=$srcdir
1684 ac_abs_top_srcdir=$srcdir ;;
1685 *) # Relative name.
1686 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687 ac_top_srcdir=$ac_top_build_prefix$srcdir
1688 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1689esac
5213506e
RW
1690ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692 cd "$ac_dir" || { ac_status=$?; continue; }
1693 # Check for guested configure.
1694 if test -f "$ac_srcdir/configure.gnu"; then
1695 echo &&
1696 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697 elif test -f "$ac_srcdir/configure"; then
1698 echo &&
1699 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1700 else
5213506e
RW
1701 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702 fi || ac_status=$?
1703 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1704 done
1705fi
1706
5213506e 1707test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1708if $ac_init_version; then
1709 cat <<\_ACEOF
5213506e
RW
1710configure
1711generated by GNU Autoconf 2.64
1c710c3c 1712
5213506e 1713Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1714This configure script is free software; the Free Software Foundation
1715gives unlimited permission to copy, distribute and modify it.
1716_ACEOF
5213506e 1717 exit
0b0dc272 1718fi
5213506e
RW
1719
1720## ------------------------ ##
1721## Autoconf initialization. ##
1722## ------------------------ ##
1723
1724# ac_fn_c_try_compile LINENO
1725# --------------------------
1726# Try to compile conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_c_try_compile ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1759
1760} # ac_fn_c_try_compile
1761
1762# ac_fn_cxx_try_compile LINENO
1763# ----------------------------
1764# Try to compile conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_cxx_try_compile ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext
1769 if { { ac_try="$ac_compile"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_cxx_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794fi
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 return $ac_retval
1797
1798} # ac_fn_cxx_try_compile
1799
0b21f5d3
EB
1800# ac_fn_cxx_try_link LINENO
1801# -------------------------
1802# Try to link conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_cxx_try_link ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext conftest$ac_exeext
1807 if { { ac_try="$ac_link"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_link") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest$ac_exeext && {
1826 test "$cross_compiling" = yes ||
1827 $as_test_x conftest$ac_exeext
1828 }; then :
1829 ac_retval=0
1830else
1831 $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834 ac_retval=1
1835fi
1836 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838 # interfere with the next link command; also delete a directory that is
1839 # left behind by Apple's compiler. We do this before executing the actions.
1840 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842 return $ac_retval
1843
1844} # ac_fn_cxx_try_link
1845
5213506e
RW
1846# ac_fn_c_try_link LINENO
1847# -----------------------
1848# Try to link conftest.$ac_ext, and return whether this succeeded.
1849ac_fn_c_try_link ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 $as_test_x conftest$ac_exeext
1874 }; then :
1875 ac_retval=0
1876else
1877 $as_echo "$as_me: failed program was:" >&5
1878sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881fi
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888 return $ac_retval
1889
1890} # ac_fn_c_try_link
1891cat >config.log <<_ACEOF
1c710c3c
DJ
1892This file contains any messages produced by compilers while
1893running configure, to aid debugging if configure makes a mistake.
1894
1895It was created by $as_me, which was
5213506e 1896generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1897
1898 $ $0 $@
1899
1900_ACEOF
5213506e 1901exec 5>>config.log
1c710c3c
DJ
1902{
1903cat <<_ASUNAME
1904## --------- ##
1905## Platform. ##
1906## --------- ##
1907
1908hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1909uname -m = `(uname -m) 2>/dev/null || echo unknown`
1910uname -r = `(uname -r) 2>/dev/null || echo unknown`
1911uname -s = `(uname -s) 2>/dev/null || echo unknown`
1912uname -v = `(uname -v) 2>/dev/null || echo unknown`
1913
1914/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1915/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1916
1917/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1918/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1919/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1920/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1921/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1922/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1923/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1924
1925_ASUNAME
1926
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930 IFS=$as_save_IFS
1931 test -z "$as_dir" && as_dir=.
5213506e
RW
1932 $as_echo "PATH: $as_dir"
1933 done
1934IFS=$as_save_IFS
1c710c3c
DJ
1935
1936} >&5
1937
1938cat >&5 <<_ACEOF
1939
1940
1941## ----------- ##
1942## Core tests. ##
1943## ----------- ##
1944
1945_ACEOF
1946
1947
1948# Keep a trace of the command line.
1949# Strip out --no-create and --no-recursion so they do not pile up.
1950# Strip out --silent because we don't want to record it for future runs.
1951# Also quote any args containing shell meta-characters.
1952# Make two passes to allow for proper duplicate-argument suppression.
1953ac_configure_args=
1954ac_configure_args0=
1955ac_configure_args1=
1c710c3c
DJ
1956ac_must_keep_next=false
1957for ac_pass in 1 2
1958do
1959 for ac_arg
1960 do
1961 case $ac_arg in
1962 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1964 | -silent | --silent | --silen | --sile | --sil)
1965 continue ;;
5213506e
RW
1966 *\'*)
1967 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1968 esac
1969 case $ac_pass in
5213506e 1970 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1971 2)
5213506e 1972 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1973 if test $ac_must_keep_next = true; then
1974 ac_must_keep_next=false # Got value, back to normal.
1975 else
1976 case $ac_arg in
1977 *=* | --config-cache | -C | -disable-* | --disable-* \
1978 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1979 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1980 | -with-* | --with-* | -without-* | --without-* | --x)
1981 case "$ac_configure_args0 " in
1982 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1983 esac
1984 ;;
1985 -* ) ac_must_keep_next=true ;;
1986 esac
1987 fi
5213506e 1988 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1989 ;;
1990 esac
1991 done
1992done
5213506e
RW
1993{ ac_configure_args0=; unset ac_configure_args0;}
1994{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1995
1996# When interrupted or exit'd, cleanup temporary files, and complete
1997# config.log. We remove comments because anyway the quotes in there
1998# would cause problems or look ugly.
5213506e
RW
1999# WARNING: Use '\'' to represent an apostrophe within the trap.
2000# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
2001trap 'exit_status=$?
2002 # Save into config.log some information that might help in debugging.
2003 {
2004 echo
2005
2006 cat <<\_ASBOX
2007## ---------------- ##
2008## Cache variables. ##
2009## ---------------- ##
2010_ASBOX
2011 echo
2012 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2013(
2014 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2015 eval ac_val=\$$ac_var
2016 case $ac_val in #(
2017 *${as_nl}*)
2018 case $ac_var in #(
2019 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2020$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2021 esac
2022 case $ac_var in #(
2023 _ | IFS | as_nl) ;; #(
2024 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2025 *) { eval $ac_var=; unset $ac_var;} ;;
2026 esac ;;
2027 esac
2028 done
1c710c3c 2029 (set) 2>&1 |
5213506e
RW
2030 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2031 *${as_nl}ac_space=\ *)
1c710c3c 2032 sed -n \
5213506e
RW
2033 "s/'\''/'\''\\\\'\'''\''/g;
2034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2035 ;; #(
1c710c3c 2036 *)
5213506e 2037 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2038 ;;
5213506e
RW
2039 esac |
2040 sort
2041)
1c710c3c
DJ
2042 echo
2043
2044 cat <<\_ASBOX
2045## ----------------- ##
2046## Output variables. ##
2047## ----------------- ##
2048_ASBOX
2049 echo
2050 for ac_var in $ac_subst_vars
2051 do
5213506e
RW
2052 eval ac_val=\$$ac_var
2053 case $ac_val in
2054 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055 esac
2056 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2057 done | sort
2058 echo
2059
2060 if test -n "$ac_subst_files"; then
2061 cat <<\_ASBOX
5213506e
RW
2062## ------------------- ##
2063## File substitutions. ##
2064## ------------------- ##
1c710c3c
DJ
2065_ASBOX
2066 echo
2067 for ac_var in $ac_subst_files
2068 do
5213506e
RW
2069 eval ac_val=\$$ac_var
2070 case $ac_val in
2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072 esac
2073 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2074 done | sort
2075 echo
2076 fi
2077
2078 if test -s confdefs.h; then
2079 cat <<\_ASBOX
2080## ----------- ##
2081## confdefs.h. ##
2082## ----------- ##
2083_ASBOX
2084 echo
5213506e 2085 cat confdefs.h
1c710c3c
DJ
2086 echo
2087 fi
2088 test "$ac_signal" != 0 &&
5213506e
RW
2089 $as_echo "$as_me: caught signal $ac_signal"
2090 $as_echo "$as_me: exit $exit_status"
1c710c3c 2091 } >&5
5213506e
RW
2092 rm -f core *.core core.conftest.* &&
2093 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2094 exit $exit_status
5213506e 2095' 0
1c710c3c 2096for ac_signal in 1 2 13 15; do
5213506e 2097 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2098done
2099ac_signal=0
2100
2101# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2102rm -f -r conftest* confdefs.h
2103
2104$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2105
2106# Predefined preprocessor variables.
2107
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_NAME "$PACKAGE_NAME"
2110_ACEOF
2111
1c710c3c
DJ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2114_ACEOF
2115
1c710c3c
DJ
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_VERSION "$PACKAGE_VERSION"
2118_ACEOF
0b0dc272 2119
1c710c3c
DJ
2120cat >>confdefs.h <<_ACEOF
2121#define PACKAGE_STRING "$PACKAGE_STRING"
2122_ACEOF
2123
1c710c3c
DJ
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2126_ACEOF
2127
5213506e
RW
2128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_URL "$PACKAGE_URL"
2130_ACEOF
2131
1c710c3c
DJ
2132
2133# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2134# Prefer an explicitly selected file to automatically selected ones.
2135ac_site_file1=NONE
2136ac_site_file2=NONE
2137if test -n "$CONFIG_SITE"; then
2138 ac_site_file1=$CONFIG_SITE
2139elif test "x$prefix" != xNONE; then
2140 ac_site_file1=$prefix/share/config.site
2141 ac_site_file2=$prefix/etc/config.site
2142else
2143 ac_site_file1=$ac_default_prefix/share/config.site
2144 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2145fi
5213506e
RW
2146for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2147do
2148 test "x$ac_site_file" = xNONE && continue
671aa708 2149 if test -r "$ac_site_file"; then
5213506e
RW
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2151$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2152 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2153 . "$ac_site_file"
2154 fi
2155done
2156
2157if test -r "$cache_file"; then
1c710c3c
DJ
2158 # Some versions of bash will fail to source /dev/null (special
2159 # files actually), so we avoid doing that.
2160 if test -f "$cache_file"; then
5213506e
RW
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2162$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2163 case $cache_file in
5213506e
RW
2164 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2165 *) . "./$cache_file";;
1c710c3c
DJ
2166 esac
2167 fi
671aa708 2168else
5213506e
RW
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2170$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2171 >$cache_file
2172fi
2173
2174# Check that the precious variables saved in the cache have kept the same
2175# value.
2176ac_cache_corrupted=false
5213506e 2177for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2178 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2179 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2180 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2181 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2182 case $ac_old_set,$ac_new_set in
2183 set,)
5213506e
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2185$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2186 ac_cache_corrupted=: ;;
2187 ,set)
5213506e
RW
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2189$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2190 ac_cache_corrupted=: ;;
2191 ,);;
2192 *)
2193 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2194 # differences in whitespace do not lead to failure.
2195 ac_old_val_w=`echo x $ac_old_val`
2196 ac_new_val_w=`echo x $ac_new_val`
2197 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2199$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2200 ac_cache_corrupted=:
2201 else
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2203$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2204 eval $ac_var=\$ac_old_val
2205 fi
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2207$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2209$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2210 fi;;
2211 esac
2212 # Pass precious variables to config.status.
2213 if test "$ac_new_set" = set; then
2214 case $ac_new_val in
5213506e 2215 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2216 *) ac_arg=$ac_var=$ac_new_val ;;
2217 esac
2218 case " $ac_configure_args " in
2219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2220 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2221 esac
2222 fi
2223done
2224if $ac_cache_corrupted; then
5213506e
RW
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2228$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2229 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2230fi
5213506e
RW
2231## -------------------- ##
2232## Main body of script. ##
2233## -------------------- ##
671aa708 2234
2aeb72e9
DD
2235ac_ext=c
2236ac_cpp='$CPP $CPPFLAGS'
2237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2239ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240
1c710c3c
DJ
2241
2242
2243
1c710c3c
DJ
2244
2245
0115d4a3 2246
1c710c3c 2247
ad33ff57
RW
2248
2249progname=$0
2250# if PWD already has a value, it is probably wrong.
2251if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2252
2253# Export original configure arguments for use by sub-configures.
2254# Quote arguments with shell meta charatcers.
2255TOPLEVEL_CONFIGURE_ARGUMENTS=
2256set -- "$progname" "$@"
2257for ac_arg
2258do
2259 case "$ac_arg" in
2260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2262 # if the argument is of the form -foo=baz, quote the baz part only
2263 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2264 *) ;;
2265 esac
2266 # Add the quoted argument to the list.
2267 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2268done
2269if test "$silent" = yes; then
2270 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2271fi
2272# Remove the initial space we just introduced and, as these will be
2273# expanded by make, quote '$'.
2274TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2275
1c710c3c
DJ
2276
2277# Find the build, host, and target systems.
671aa708 2278ac_aux_dir=
5213506e
RW
2279for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2280 for ac_t in install-sh install.sh shtool; do
2281 if test -f "$ac_dir/$ac_t"; then
2282 ac_aux_dir=$ac_dir
2283 ac_install_sh="$ac_aux_dir/$ac_t -c"
2284 break 2
2285 fi
2286 done
671aa708
NN
2287done
2288if test -z "$ac_aux_dir"; then
5213506e 2289 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2290fi
5213506e
RW
2291
2292# These three variables are undocumented and unsupported,
2293# and are intended to be withdrawn in a future Autoconf release.
2294# They can cause serious problems if a builder's source tree is in a directory
2295# whose full name contains unusual characters.
2296ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2297ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2298ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2299
671aa708 2300
1c710c3c 2301# Make sure we can run config.sub.
5213506e
RW
2302$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2303 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2304
2305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2306$as_echo_n "checking build system type... " >&6; }
2307if test "${ac_cv_build+set}" = set; then :
2308 $as_echo_n "(cached) " >&6
2309else
2310 ac_build_alias=$build_alias
2311test "x$ac_build_alias" = x &&
2312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2313test "x$ac_build_alias" = x &&
2314 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2315ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2316 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2317
2318fi
2319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2320$as_echo "$ac_cv_build" >&6; }
2321case $ac_cv_build in
2322*-*-*) ;;
2323*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2324esac
1c710c3c 2325build=$ac_cv_build
5213506e
RW
2326ac_save_IFS=$IFS; IFS='-'
2327set x $ac_cv_build
2328shift
2329build_cpu=$1
2330build_vendor=$2
2331shift; shift
2332# Remember, the first character of IFS is used to create $*,
2333# except with old shells:
2334build_os=$*
2335IFS=$ac_save_IFS
2336case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2337
671aa708 2338
1c710c3c
DJ
2339 case ${build_alias} in
2340 "") build_noncanonical=${build} ;;
2341 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2342esac
2343
2344
af71363e 2345
1c710c3c
DJ
2346 case ${host_alias} in
2347 "") host_noncanonical=${build_noncanonical} ;;
2348 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2349esac
2350
af71363e 2351
1c710c3c
DJ
2352
2353 case ${target_alias} in
2354 "") target_noncanonical=${host_noncanonical} ;;
2355 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2356esac
2357
af71363e 2358
1c710c3c
DJ
2359
2360
2361test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2362 test "$program_prefix$program_suffix$program_transform_name" = \
2363 NONENONEs,x,x, &&
1c710c3c 2364 program_transform_name=s,y,y,
af71363e 2365
5213506e
RW
2366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2367$as_echo_n "checking host system type... " >&6; }
2368if test "${ac_cv_host+set}" = set; then :
2369 $as_echo_n "(cached) " >&6
af71363e 2370else
5213506e
RW
2371 if test "x$host_alias" = x; then
2372 ac_cv_host=$ac_cv_build
2373else
2374 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2375 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2376fi
1c710c3c 2377
af71363e 2378fi
5213506e
RW
2379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2380$as_echo "$ac_cv_host" >&6; }
2381case $ac_cv_host in
2382*-*-*) ;;
2383*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2384esac
1c710c3c 2385host=$ac_cv_host
5213506e
RW
2386ac_save_IFS=$IFS; IFS='-'
2387set x $ac_cv_host
2388shift
2389host_cpu=$1
2390host_vendor=$2
2391shift; shift
2392# Remember, the first character of IFS is used to create $*,
2393# except with old shells:
2394host_os=$*
2395IFS=$ac_save_IFS
2396case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2397
2398
5213506e
RW
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2400$as_echo_n "checking target system type... " >&6; }
2401if test "${ac_cv_target+set}" = set; then :
2402 $as_echo_n "(cached) " >&6
1c710c3c 2403else
5213506e
RW
2404 if test "x$target_alias" = x; then
2405 ac_cv_target=$ac_cv_host
2406else
2407 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2408 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2409fi
1c710c3c
DJ
2410
2411fi
5213506e
RW
2412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2413$as_echo "$ac_cv_target" >&6; }
2414case $ac_cv_target in
2415*-*-*) ;;
2416*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2417esac
1c710c3c 2418target=$ac_cv_target
5213506e
RW
2419ac_save_IFS=$IFS; IFS='-'
2420set x $ac_cv_target
2421shift
2422target_cpu=$1
2423target_vendor=$2
2424shift; shift
2425# Remember, the first character of IFS is used to create $*,
2426# except with old shells:
2427target_os=$*
2428IFS=$ac_save_IFS
2429case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2430
2431
2432# The aliases save the names the user supplied, while $host etc.
2433# will get canonicalized.
2434test -n "$target_alias" &&
2435 test "$program_prefix$program_suffix$program_transform_name" = \
2436 NONENONEs,x,x, &&
2437 program_prefix=${target_alias}-
5213506e 2438
671aa708 2439test "$program_prefix" != NONE &&
5213506e 2440 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2441# Use a double $ so make ignores it.
2442test "$program_suffix" != NONE &&
5213506e
RW
2443 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2444# Double any \ or $.
1c710c3c 2445# By default was `s,x,x', remove it if useless.
5213506e
RW
2446ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2447program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2448
671aa708
NN
2449
2450
775956d0
NN
2451# Get 'install' or 'install-sh' and its variants.
2452# Find a good install program. We prefer a C program (faster),
2453# so one script is as good as another. But avoid the broken or
2454# incompatible versions:
2455# SysV /etc/install, /usr/sbin/install
2456# SunOS /usr/etc/install
2457# IRIX /sbin/install
2458# AIX /bin/install
1c710c3c 2459# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2461# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2463# OS/2's system install, which has a completely different semantic
775956d0 2464# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2465# Reject install programs that cannot install multiple files.
5213506e
RW
2466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2467$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2468if test -z "$INSTALL"; then
5213506e
RW
2469if test "${ac_cv_path_install+set}" = set; then :
2470 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2471else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
5213506e
RW
2477 # Account for people who put trailing slashes in PATH elements.
2478case $as_dir/ in #((
2479 ./ | .// | /[cC]/* | \
1c710c3c 2480 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2481 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2482 /usr/ucb/* ) ;;
2483 *)
2484 # OSF1 and SCO ODT 3.0 have their own names for install.
2485 # Don't use installbsd from OSF since it installs stuff as root
2486 # by default.
2487 for ac_prog in ginstall scoinst install; do
2488 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2489 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2490 if test $ac_prog = install &&
1c710c3c 2491 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2492 # AIX install. It has an incompatible calling convention.
2493 :
1c710c3c
DJ
2494 elif test $ac_prog = install &&
2495 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496 # program-specific install script used by HP pwplus--don't use.
2497 :
775956d0 2498 else
38d24731
RW
2499 rm -rf conftest.one conftest.two conftest.dir
2500 echo one > conftest.one
2501 echo two > conftest.two
2502 mkdir conftest.dir
2503 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2504 test -s conftest.one && test -s conftest.two &&
2505 test -s conftest.dir/conftest.one &&
2506 test -s conftest.dir/conftest.two
2507 then
2508 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2509 break 3
2510 fi
775956d0
NN
2511 fi
2512 fi
2513 done
1c710c3c
DJ
2514 done
2515 ;;
2516esac
5213506e
RW
2517
2518 done
2519IFS=$as_save_IFS
1c710c3c 2520
38d24731 2521rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2522
2523fi
2524 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2525 INSTALL=$ac_cv_path_install
775956d0 2526 else
38d24731
RW
2527 # As a last resort, use the slow shell script. Don't cache a
2528 # value for INSTALL within a source directory, because that will
775956d0 2529 # break other packages using the cache if that directory is
38d24731 2530 # removed, or if the value is a relative name.
1c710c3c 2531 INSTALL=$ac_install_sh
775956d0
NN
2532 fi
2533fi
5213506e
RW
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2535$as_echo "$INSTALL" >&6; }
775956d0
NN
2536
2537# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2538# It thinks the first close brace ends the variable substitution.
2539test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2540
1c710c3c 2541test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2542
2543test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2544
5213506e
RW
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2546$as_echo_n "checking whether ln works... " >&6; }
2547if test "${acx_cv_prog_LN+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
ad6717df
PB
2549else
2550 rm -f conftestdata_t
2551echo >conftestdata_f
2552if ln conftestdata_f conftestdata_t 2>/dev/null
2553then
2554 acx_cv_prog_LN=ln
2555else
2556 acx_cv_prog_LN=no
2557fi
2558rm -f conftestdata_f conftestdata_t
2559
2560fi
2561if test $acx_cv_prog_LN = no; then
2562 LN="cp"
5213506e
RW
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2564$as_echo "no, using $LN" >&6; }
ad6717df
PB
2565else
2566 LN="$acx_cv_prog_LN"
5213506e
RW
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2568$as_echo "yes" >&6; }
ad6717df
PB
2569fi
2570
5213506e
RW
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2572$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2573LN_S=$as_ln_s
2574if test "$LN_S" = "ln -s"; then
5213506e
RW
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2576$as_echo "yes" >&6; }
fb0103e5 2577else
5213506e
RW
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2579$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2580fi
2581
87264276
PB
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2583$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2584if test "${ac_cv_path_SED+set}" = set; then :
2585 $as_echo_n "(cached) " >&6
2586else
2587 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2588 for ac_i in 1 2 3 4 5 6 7; do
2589 ac_script="$ac_script$as_nl$ac_script"
2590 done
2591 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2592 { ac_script=; unset ac_script;}
2593 if test -z "$SED"; then
2594 ac_path_SED_found=false
2595 # Loop through the user's path and test for each of PROGNAME-LIST
2596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597for as_dir in $PATH
2598do
2599 IFS=$as_save_IFS
2600 test -z "$as_dir" && as_dir=.
2601 for ac_prog in sed gsed; do
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2604 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2605# Check for GNU ac_path_SED and select it if it is found.
2606 # Check for GNU $ac_path_SED
2607case `"$ac_path_SED" --version 2>&1` in
2608*GNU*)
2609 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2610*)
2611 ac_count=0
2612 $as_echo_n 0123456789 >"conftest.in"
2613 while :
2614 do
2615 cat "conftest.in" "conftest.in" >"conftest.tmp"
2616 mv "conftest.tmp" "conftest.in"
2617 cp "conftest.in" "conftest.nl"
2618 $as_echo '' >> "conftest.nl"
2619 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2621 as_fn_arith $ac_count + 1 && ac_count=$as_val
2622 if test $ac_count -gt ${ac_path_SED_max-0}; then
2623 # Best one so far, save it but keep looking for a better one
2624 ac_cv_path_SED="$ac_path_SED"
2625 ac_path_SED_max=$ac_count
2626 fi
2627 # 10*(2^10) chars as input seems more than enough
2628 test $ac_count -gt 10 && break
2629 done
2630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2631esac
2632
2633 $ac_path_SED_found && break 3
2634 done
2635 done
2636 done
2637IFS=$as_save_IFS
2638 if test -z "$ac_cv_path_SED"; then
2639 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2640 fi
2641else
2642 ac_cv_path_SED=$SED
2643fi
2644
2645fi
2646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2647$as_echo "$ac_cv_path_SED" >&6; }
2648 SED="$ac_cv_path_SED"
2649 rm -f conftest.sed
2650
2651for ac_prog in gawk mawk nawk awk
2652do
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654set dummy $ac_prog; ac_word=$2
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656$as_echo_n "checking for $ac_word... " >&6; }
2657if test "${ac_cv_prog_AWK+set}" = set; then :
2658 $as_echo_n "(cached) " >&6
2659else
2660 if test -n "$AWK"; then
2661 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2662else
2663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664for as_dir in $PATH
2665do
2666 IFS=$as_save_IFS
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2670 ac_cv_prog_AWK="$ac_prog"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2672 break 2
2673 fi
2674done
2675 done
2676IFS=$as_save_IFS
2677
2678fi
2679fi
2680AWK=$ac_cv_prog_AWK
2681if test -n "$AWK"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2683$as_echo "$AWK" >&6; }
2684else
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686$as_echo "no" >&6; }
2687fi
2688
2689
2690 test -n "$AWK" && break
2691done
2692
775956d0 2693
ee6a22df
L
2694srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2695
2696# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2697# a relative path.
2698if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2699 INSTALL="${srcpwd}/install-sh -c"
2700fi
2701
671aa708
NN
2702# Set srcdir to "." if that's what it is.
2703# This is important for multilib support.
2704pwd=`${PWDCMD-pwd}`
671aa708
NN
2705if test "${pwd}" = "${srcpwd}" ; then
2706 srcdir=.
79c06341
JL
2707fi
2708
671aa708 2709topsrcdir=$srcpwd
5d4a5ee6 2710
671aa708 2711extra_host_args=
afabd8e6 2712
671aa708
NN
2713### To add a new directory to the tree, first choose whether it is a target
2714### or a host dependent tool. Then put it into the appropriate list
2715### (library or tools, host or target), doing a dependency sort.
79c06341 2716
1c710c3c 2717# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2718# configdirs, or target_configdirs; see the serialization section below.
79c06341 2719
1c710c3c
DJ
2720# Dependency sorting is only needed when *configuration* must be done in
2721# a particular order. In all cases a dependency should be specified in
671aa708 2722# the Makefile, whether or not it's implicitly specified here.
79c06341 2723
671aa708
NN
2724# Double entries in build_configdirs, configdirs, or target_configdirs may
2725# cause circular dependencies and break everything horribly.
79c06341 2726
23f6b2f9
PB
2727# these library is used by various programs built for the build
2728# environment
2729#
929315a9 2730build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2731
2732# these tools are built for the build environment
85bfb75e 2733build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2734
671aa708 2735# these libraries are used by various programs built for the host environment
eae1a5d4 2736#f
4a9bb2aa 2737host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2738
671aa708
NN
2739# these tools are built for the host environment
2740# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2741# know that we are building the simulator.
2742# binutils, gas and ld appear in that order because it makes sense to run
2743# "make check" in that particular order.
38e3d868 2744# If --enable-gold is used, "gold" may replace "ld".
bf1de3f0 2745host_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 2746
671aa708
NN
2747# these libraries are built for the target environment, and are built after
2748# the host libraries and the host tools (which may be a cross compiler)
8499116a 2749# Note that libiberty is not a target library.
291f172e 2750target_libraries="target-libgcc \
eff02e4f 2751 target-libbacktrace \
671aa708
NN
2752 target-libgloss \
2753 target-newlib \
6d3b5aea 2754 target-libgomp \
3038054c 2755 target-libcilkrts \
5f520819 2756 target-liboffloadmic \
48310492 2757 target-libatomic \
0a35513e 2758 target-libitm \
cb543528 2759 target-libstdc++-v3 \
f35db108 2760 target-libsanitizer \
2077db1b 2761 target-libvtv \
5373cd33 2762 target-libmpx \
77008252 2763 target-libssp \
1ec601bf 2764 target-libquadmath \
6de9cd9a 2765 target-libgfortran \
012447ea 2766 target-libffi \
d9cdb878 2767 target-libobjc \
632e2a07
ILT
2768 target-libada \
2769 target-libgo"
671aa708 2770
4dbda6f0
NN
2771# these tools are built using the target libraries, and are intended to
2772# run only in the target environment
671aa708 2773#
4dbda6f0 2774# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2775# list belongs in this list.
671aa708 2776#
85bfb75e 2777target_tools="target-rda"
79c06341 2778
671aa708 2779################################################################################
79c06341 2780
671aa708
NN
2781## All tools belong in one of the four categories, and are assigned above
2782## We assign ${configdirs} this way to remove all embedded newlines. This
2783## is important because configure will choke if they ever get through.
2784## ${configdirs} is directories we build using the host tools.
2785## ${target_configdirs} is directories we build using the target tools.
671aa708 2786configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2787target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2788build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2789
ac9e6043
RW
2790
2791
671aa708 2792################################################################################
79c06341 2793
671aa708 2794srcname="gnu development package"
79c06341 2795
671aa708
NN
2796# This gets set non-empty for some net releases of packages.
2797appdirs=""
79c06341 2798
671aa708
NN
2799# Define is_cross_compiler to save on calls to 'test'.
2800is_cross_compiler=
2801if test x"${host}" = x"${target}" ; then
2802 is_cross_compiler=no
79c06341 2803else
671aa708 2804 is_cross_compiler=yes
1c710c3c 2805fi
79c06341 2806
b4acb5ef 2807# Find the build and target subdir names.
8b87bb96 2808
2e9e6f68
DJ
2809# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2810# have matching libraries, they should use host libraries: Makefile.tpl
2811# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2812# However, they still use the build modules, because the corresponding
2813# host modules (e.g. bison) are only built for the host when bootstrap
2814# finishes. So:
2815# - build_subdir is where we find build modules, and never changes.
2816# - build_libsubdir is where we find build libraries, and can be overridden.
2817
2818# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2819build_subdir="build-${build_noncanonical}"
1c710c3c 2820
5213506e
RW
2821# Check whether --with-build-libsubdir was given.
2822if test "${with_build_libsubdir+set}" = set; then :
2823 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2824else
2825 build_libsubdir="$build_subdir"
5213506e
RW
2826fi
2827
215c351a
PB
2828# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2829if ( test $srcdir = . && test -d gcc ) \
2830 || test -d $srcdir/../host-${host_noncanonical}; then
2831 host_subdir="host-${host_noncanonical}"
2832else
2833 host_subdir=.
2834fi
8b87bb96
NN
2835# No prefix.
2836target_subdir=${target_noncanonical}
1c710c3c 2837
0db770bd
RW
2838# Be sure to cover against remnants of an in-tree build.
2839if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2840 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2841Use a pristine source tree when building in a separate tree" "$LINENO" 5
2842fi
79c06341 2843
671aa708
NN
2844# Skipdirs are removed silently.
2845skipdirs=
2846# Noconfigdirs are removed loudly.
2847noconfigdirs=""
79c06341 2848
671aa708
NN
2849use_gnu_ld=
2850# Make sure we don't let GNU ld be added if we didn't want it.
2851if test x$with_gnu_ld = xno ; then
2852 use_gnu_ld=no
5afab7ad 2853 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2854fi
2855
671aa708
NN
2856use_gnu_as=
2857# Make sure we don't let GNU as be added if we didn't want it.
2858if test x$with_gnu_as = xno ; then
2859 use_gnu_as=no
2860 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2861fi
2862
d7f09764 2863use_included_zlib=
a05c2c75
L
2864
2865# Check whether --with-system-zlib was given.
2866if test "${with_system_zlib+set}" = set; then :
2867 withval=$with_system_zlib;
2868fi
2869
d7f09764
DN
2870# Make sure we don't let ZLIB be added if we didn't want it.
2871if test x$with_system_zlib = xyes ; then
2872 use_included_zlib=no
2873 noconfigdirs="$noconfigdirs zlib"
2874fi
2875
1c710c3c 2876# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2877# it's not even worth trying to configure, much less build, that tool.
79c06341 2878
671aa708
NN
2879case ${with_x} in
2880 yes | "") ;; # the default value for this tree is that X11 is available
2881 no)
b4f96efe 2882 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2883 # We won't be able to build gdbtk without X.
1c710c3c 2884 enable_gdbtk=no
671aa708
NN
2885 ;;
2886 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2887esac
79c06341 2888
1bcce263 2889# Some are only suitable for cross toolchains.
671aa708
NN
2890# Remove these if host=target.
2891cross_only="target-libgloss target-newlib target-opcodes"
2892
2893case $is_cross_compiler in
2894 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2895esac
79c06341 2896
671aa708
NN
2897# If both --with-headers and --with-libs are specified, default to
2898# --without-newlib.
ee6a22df
L
2899if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2900 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2901 if test x"${with_newlib}" = x ; then
2902 with_newlib=no
2903 fi
79c06341
JL
2904fi
2905
671aa708
NN
2906# Recognize --with-newlib/--without-newlib.
2907case ${with_newlib} in
2908 no) skipdirs="${skipdirs} target-newlib" ;;
2909 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2910esac
79c06341 2911
85c64bbe
BS
2912# Check whether --enable-as-accelerator-for was given.
2913if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2914 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2915fi
2916
2917
2918# Check whether --enable-offload-targets was given.
2919if test "${enable_offload_targets+set}" = set; then :
2920 enableval=$enable_offload_targets;
2921 if test x"$enable_offload_targets" = x; then
2922 as_fn_error "no offload targets specified" "$LINENO" 5
2923 fi
2924
2925else
2926 enable_offload_targets=
2927fi
2928
2929
21539e2e
MK
2930# Handle --enable-gold, --enable-ld.
2931# --disable-gold [--enable-ld]
2932# Build only ld. Default option.
9580395f
L
2933# --enable-gold [--enable-ld]
2934# Build both gold and ld. Install gold as "ld.gold", install ld
2935# as "ld.bfd" and "ld".
2936# --enable-gold=default [--enable-ld]
21539e2e
MK
2937# Build both gold and ld. Install gold as "ld.gold" and "ld",
2938# install ld as "ld.bfd".
2939# --enable-gold[=default] --disable-ld
2940# Build only gold, which is then installed as both "ld.gold" and "ld".
2941# --enable-gold --enable-ld=default
9580395f
L
2942# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2943# and ld.bfd).
21539e2e
MK
2944# In other words, ld is default
2945# --enable-gold=default --enable-ld=default
2946# Error.
2947
2948default_ld=
5213506e
RW
2949# Check whether --enable-gold was given.
2950if test "${enable_gold+set}" = set; then :
2951 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2952else
2953 ENABLE_GOLD=no
5213506e
RW
2954fi
2955
21539e2e
MK
2956case "${ENABLE_GOLD}" in
2957 yes|default)
38e3d868
RM
2958 # Check for ELF target.
2959 is_elf=no
2960 case "${target}" in
2961 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2962 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2963 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2964 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2965 case "${target}" in
2966 *-*-linux*aout* | *-*-linux*oldld*)
2967 ;;
2968 *)
2969 is_elf=yes
2970 ;;
2971 esac
2972 esac
2973
2974 if test "$is_elf" = "yes"; then
2975 # Check for target supported by gold.
5afab7ad 2976 case "${target}" in
7705dfd1 2977 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 2978 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
2979 configdirs="$configdirs gold"
2980 if test x${ENABLE_GOLD} = xdefault; then
2981 default_ld=gold
2982 fi
38e3d868 2983 ENABLE_GOLD=yes
5afab7ad
ILT
2984 ;;
2985 esac
38e3d868
RM
2986 fi
2987 ;;
2988 no)
2989 ;;
2990 *)
2991 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2992 ;;
21539e2e
MK
2993esac
2994
2995# Check whether --enable-ld was given.
2996if test "${enable_ld+set}" = set; then :
2997 enableval=$enable_ld; ENABLE_LD=$enableval
2998else
2999 ENABLE_LD=yes
3000fi
3001
3002
3003case "${ENABLE_LD}" in
3004 default)
9580395f 3005 if test x${default_ld} != x; then
21539e2e
MK
3006 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3007 fi
3008 ;;
3009 yes)
3010 ;;
3011 no)
3012 if test x${ENABLE_GOLD} != xyes; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3014$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3015 fi
3016 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3017 ;;
3018 *)
3019 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3020 ;;
3021esac
5afab7ad 3022
78edb32f
L
3023# PR gas/19109
3024# Decide the default method for compressing debug sections.
3025# Provide a configure time option to override our default.
3026# Check whether --enable-compressed_debug_sections was given.
3027if test "${enable_compressed_debug_sections+set}" = set; then :
3028 enableval=$enable_compressed_debug_sections;
3029 if test x"$enable_compressed_debug_sections" = xyes; then
3030 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3031 fi
3032
3033else
3034 enable_compressed_debug_sections=
3035fi
3036
3037
671aa708 3038# Configure extra directories which are host specific
79c06341 3039
671aa708
NN
3040case "${host}" in
3041 *-cygwin*)
3042 configdirs="$configdirs libtermcap" ;;
3043esac
79c06341 3044
4fab7234
HPN
3045# A target can indicate whether a language isn't supported for some reason.
3046# Only spaces may be used in this macro; not newlines or tabs.
3047unsupported_languages=
3048
1c710c3c 3049# Remove more programs from consideration, based on the host or
671aa708
NN
3050# target this usually means that a port of the program doesn't
3051# exist yet.
ec8d6ddc 3052
671aa708 3053case "${host}" in
111eeb6e 3054 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3055 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3056 ;;
671aa708 3057esac
ec8d6ddc 3058
6de9cd9a 3059
87e6d9dc
TB
3060# Check whether --enable-libquadmath was given.
3061if test "${enable_libquadmath+set}" = set; then :
3062 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3063else
3064 ENABLE_LIBQUADMATH=yes
3065fi
3066
3067if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3068 noconfigdirs="$noconfigdirs target-libquadmath"
3069fi
3070
3071
3072# Check whether --enable-libquadmath-support was given.
3073if test "${enable_libquadmath_support+set}" = set; then :
3074 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3075else
3076 ENABLE_LIBQUADMATH_SUPPORT=yes
3077fi
3078
3079enable_libquadmath_support=
3080if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3081 enable_libquadmath_support=no
3082fi
3083
3084
5213506e
RW
3085# Check whether --enable-libada was given.
3086if test "${enable_libada+set}" = set; then :
3087 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3088else
3089 ENABLE_LIBADA=yes
5213506e
RW
3090fi
3091
d9cdb878 3092if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3093 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3094fi
3095
5213506e
RW
3096# Check whether --enable-libssp was given.
3097if test "${enable_libssp+set}" = set; then :
3098 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3099else
3100 ENABLE_LIBSSP=yes
5213506e
RW
3101fi
3102
ef0087a7 3103
1873ec0c
L
3104# Check whether --enable-libstdcxx was given.
3105if test "${enable_libstdcxx+set}" = set; then :
3106 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3107else
3108 ENABLE_LIBSTDCXX=default
3109fi
3110
3111if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3112 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3113fi
3114
5f520819
KY
3115# If this is accelerator compiler and its target is intelmic we enable
3116# target liboffloadmic by default. If this is compiler with offloading
3117# for intelmic we enable host liboffloadmic by default. Otherwise
3118# liboffloadmic is disabled by default.
3119# Check whether --enable-liboffloadmic was given.
3120if test "${enable_liboffloadmic+set}" = set; then :
3121 enableval=$enable_liboffloadmic; case "$enableval" in
3122 no | host | target)
3123 enable_liboffloadmic=$enableval ;;
3124 *)
3125 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3126esac
3127else
4b4f2e35 3128 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3129 case "${target}" in
3130 *-intelmic-* | *-intelmicemul-*)
3131 enable_liboffloadmic=target
3132 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3133 ;;
3134 *)
3135 enable_liboffloadmic=no
3136 ;;
3137 esac
3138else
3139 case "${enable_offload_targets}" in
3140 *-intelmic-* | *-intelmicemul-*)
3141 enable_liboffloadmic=host
3142 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3143 ;;
3144 *)
3145 enable_liboffloadmic=no
3146 ;;
3147 esac
3148fi
3149fi
3150
3151
3152
44a7d18d 3153# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3154if test x$enable_libgomp = x ; then
953ff289 3155 case "${target}" in
416ac4d4 3156 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3157 ;;
8c6d158a 3158 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3159 ;;
b24513a1 3160 *-*-solaris2* | *-*-hpux11*)
953ff289 3161 ;;
cac90078 3162 *-*-darwin* | *-*-aix*)
953ff289 3163 ;;
44a7d18d
TS
3164 nvptx*-*-*)
3165 ;;
953ff289
DN
3166 *)
3167 noconfigdirs="$noconfigdirs target-libgomp"
3168 ;;
3169 esac
27079765 3170fi
953ff289 3171
48310492
RH
3172# Disable libatomic on unsupported systems.
3173if test -d ${srcdir}/libatomic; then
3174 if test x$enable_libatomic = x; then
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3176$as_echo_n "checking for libatomic support... " >&6; }
3177 if (srcdir=${srcdir}/libatomic; \
3178 . ${srcdir}/configure.tgt; \
3179 test -n "$UNSUPPORTED")
3180 then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182$as_echo "no" >&6; }
3183 noconfigdirs="$noconfigdirs target-libatomic"
3184 else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3186$as_echo "yes" >&6; }
3187 fi
3188 fi
3189fi
3190
3038054c
BI
3191# Disable libcilkrts on unsupported systems.
3192if test -d ${srcdir}/libcilkrts; then
3193 if test x$enable_libcilkrts = x; then
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3195$as_echo_n "checking for libcilkrts support... " >&6; }
3196 if (srcdir=${srcdir}/libcilkrts; \
3197 . ${srcdir}/configure.tgt; \
3198 test -n "$UNSUPPORTED")
3199 then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201$as_echo "no" >&6; }
3202 noconfigdirs="$noconfigdirs target-libcilkrts"
3203 else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205$as_echo "yes" >&6; }
3206 fi
3207 fi
3208fi
3209
5f520819
KY
3210# Disable liboffloadmic on unsupported systems.
3211if test -d ${srcdir}/liboffloadmic; then
3212 if test x$enable_liboffloadmic != xno; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3214$as_echo_n "checking for liboffloadmic support... " >&6; }
3215 if (srcdir=${srcdir}/liboffloadmic; \
3216 . ${srcdir}/configure.tgt; \
3217 test -n "$UNSUPPORTED")
3218 then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220$as_echo "no" >&6; }
3221 noconfigdirs="$noconfigdirs target-liboffloadmic"
3222 else
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3224$as_echo "yes" >&6; }
3225 fi
3226 fi
3227fi
3228
e948157d
RH
3229# Disable libitm on unsupported systems.
3230if test -d ${srcdir}/libitm; then
3231 if test x$enable_libitm = x; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3233$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3234 if (srcdir=${srcdir}/libitm; \
3235 . ${srcdir}/configure.tgt; \
3236 test -n "$UNSUPPORTED")
3237 then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3239$as_echo "no" >&6; }
e948157d
RH
3240 noconfigdirs="$noconfigdirs target-libitm"
3241 else
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3243$as_echo "yes" >&6; }
e948157d
RH
3244 fi
3245 fi
0a35513e
AH
3246fi
3247
93bf5390
RH
3248# Disable libsanitizer on unsupported systems.
3249if test -d ${srcdir}/libsanitizer; then
3250 if test x$enable_libsanitizer = x; then
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3252$as_echo_n "checking for libsanitizer support... " >&6; }
3253 if (srcdir=${srcdir}/libsanitizer; \
3254 . ${srcdir}/configure.tgt; \
3255 test -n "$UNSUPPORTED")
3256 then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258$as_echo "no" >&6; }
3259 noconfigdirs="$noconfigdirs target-libsanitizer"
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262$as_echo "yes" >&6; }
3263 fi
3264 fi
3265fi
3266
2077db1b
CT
3267# Disable libvtv on unsupported systems.
3268if test -d ${srcdir}/libvtv; then
3269 if test x$enable_libvtv = x; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3271$as_echo_n "checking for libvtv support... " >&6; }
3272 if (srcdir=${srcdir}/libvtv; \
3273 . ${srcdir}/configure.tgt; \
1e74b850 3274 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3275 then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3277$as_echo "no" >&6; }
3278 noconfigdirs="$noconfigdirs target-libvtv"
3279 else
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3281$as_echo "yes" >&6; }
3282 fi
3283 fi
3284fi
3285
5373cd33
IE
3286
3287# Enable libmpx on supported systems by request.
3288if test -d ${srcdir}/libmpx; then
54985c70 3289 if test x$enable_libmpx = x; then
5373cd33
IE
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3291$as_echo_n "checking for libmpx support... " >&6; }
3292 if (srcdir=${srcdir}/libmpx; \
3293 . ${srcdir}/configure.tgt; \
3294 test "$LIBMPX_SUPPORTED" != "yes")
3295 then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297$as_echo "no" >&6; }
3298 noconfigdirs="$noconfigdirs target-libmpx"
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3301$as_echo "yes" >&6; }
3302 fi
5373cd33
IE
3303 fi
3304fi
3305
3306
3307
d91491e5
SE
3308# Disable libquadmath for some systems.
3309case "${target}" in
e7fae550
DE
3310 avr-*-*)
3311 noconfigdirs="$noconfigdirs target-libquadmath"
3312 ;;
d91491e5
SE
3313 # libquadmath is unused on AIX and libquadmath build process use of
3314 # LD_LIBRARY_PATH can break AIX bootstrap.
3315 powerpc-*-aix* | rs6000-*-aix*)
3316 noconfigdirs="$noconfigdirs target-libquadmath"
3317 ;;
3318esac
3319
1e9e0e23
JM
3320# Disable libssp for some systems.
3321case "${target}" in
3322 avr-*-*)
b318fb4b 3323 # No hosted I/O support.
1e9e0e23
JM
3324 noconfigdirs="$noconfigdirs target-libssp"
3325 ;;
3326 powerpc-*-aix* | rs6000-*-aix*)
3327 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3328 ;;
3329 rl78-*-*)
7cb62ef1
EB
3330 # libssp uses a misaligned load to trigger a fault, but the RL78
3331 # doesn't fault for those - instead, it gives a build-time error
3332 # for explicit misaligned loads.
85b8555e 3333 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3334 ;;
0969ec7d
EB
3335 visium-*-*)
3336 # No hosted I/O support.
3337 noconfigdirs="$noconfigdirs target-libssp"
3338 ;;
1e9e0e23
JM
3339esac
3340
1e9e0e23 3341# Disable libstdc++-v3 for some systems.
1873ec0c
L
3342# Allow user to override this if they pass --enable-libstdc++-v3
3343if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3344 case "${target}" in
3345 *-*-vxworks*)
3346 # VxWorks uses the Dinkumware C++ library.
3347 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3348 ;;
3349 arm*-wince-pe*)
3350 # the C++ libraries don't build on top of CE's C libraries
3351 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3352 ;;
3353 avr-*-*)
3354 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3355 ;;
fef939d6
JB
3356 ft32-*-*)
3357 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3358 ;;
1873ec0c
L
3359 esac
3360fi
1e9e0e23
JM
3361
3362# Disable Fortran for some systems.
3363case "${target}" in
3364 mmix-*-*)
3365 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3366 unsupported_languages="$unsupported_languages fortran"
3367 ;;
3368esac
3369
012447ea
JJ
3370# Disable libffi for some systems.
3371case "${target}" in
3372 powerpc-*-darwin*)
3373 ;;
3374 i[3456789]86-*-darwin*)
3375 ;;
3376 x86_64-*-darwin[912]*)
3377 ;;
3378 *-*-darwin*)
3379 noconfigdirs="$noconfigdirs target-libffi"
3380 ;;
3381 *-*-netware*)
3382 noconfigdirs="$noconfigdirs target-libffi"
3383 ;;
3384 *-*-phoenix*)
3385 noconfigdirs="$noconfigdirs target-libffi"
3386 ;;
3387 *-*-rtems*)
3388 noconfigdirs="$noconfigdirs target-libffi"
3389 ;;
3390 *-*-tpf*)
3391 noconfigdirs="$noconfigdirs target-libffi"
3392 ;;
3393 *-*-uclinux*)
3394 noconfigdirs="$noconfigdirs target-libffi"
3395 ;;
3396 *-*-vxworks*)
3397 noconfigdirs="$noconfigdirs target-libffi"
3398 ;;
b20e7532
AT
3399 aarch64*-*-freebsd*)
3400 noconfigdirs="$noconfigdirs target-libffi"
3401 ;;
012447ea
JJ
3402 alpha*-*-*vms*)
3403 noconfigdirs="$noconfigdirs target-libffi"
3404 ;;
3405 arm*-*-freebsd*)
3406 noconfigdirs="$noconfigdirs target-libffi"
3407 ;;
3408 arm-wince-pe)
3409 noconfigdirs="$noconfigdirs target-libffi"
3410 ;;
3411 arm*-*-symbianelf*)
3412 noconfigdirs="$noconfigdirs target-libffi"
3413 ;;
3414 cris-*-* | crisv32-*-*)
3415 case "${target}" in
3416 *-*-linux*)
3417 ;;
3418 *) # See PR46792 regarding target-libffi.
3419 noconfigdirs="$noconfigdirs target-libffi";;
3420 esac
3421 ;;
3422 hppa*64*-*-hpux*)
3423 noconfigdirs="$noconfigdirs target-libffi"
3424 ;;
3425 hppa*-hp-hpux11*)
3426 ;;
3427 hppa*-*-hpux*)
3428 noconfigdirs="$noconfigdirs target-libffi"
3429 ;;
3430 ia64*-*-*vms*)
3431 noconfigdirs="$noconfigdirs target-libffi"
3432 ;;
3433 i[3456789]86-w64-mingw*)
3434 noconfigdirs="$noconfigdirs target-libffi"
3435 ;;
3436 i[3456789]86-*-mingw*)
3437 noconfigdirs="$noconfigdirs target-libffi"
3438 ;;
3439 x86_64-*-mingw*)
3440 noconfigdirs="$noconfigdirs target-libffi"
3441 ;;
3442 mmix-*-*)
3443 noconfigdirs="$noconfigdirs target-libffi"
3444 ;;
3445 powerpc-*-aix*)
3446 # copied from rs6000-*-* entry
3447 noconfigdirs="$noconfigdirs target-libffi"
3448 ;;
3449 rs6000-*-aix*)
3450 noconfigdirs="$noconfigdirs target-libffi"
3451 ;;
3452 ft32-*-*)
3453 noconfigdirs="$noconfigdirs target-libffi"
3454 ;;
3455 *-*-lynxos*)
3456 noconfigdirs="$noconfigdirs target-libffi"
3457 ;;
3458esac
3459
3460# Disable the go frontend on systems where it is known to not work. Please keep
3461# this in sync with contrib/config-list.mk.
3462case "${target}" in
3463*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3464 unsupported_languages="$unsupported_languages go"
3465 ;;
3466esac
3467
cdbc9e92
ILT
3468# Disable libgo for some systems where it is known to not work.
3469# For testing, you can easily override this with --enable-libgo.
3470if test x$enable_libgo = x; then
3471 case "${target}" in
3472 *-*-darwin*)
3473 # PR 46986
3474 noconfigdirs="$noconfigdirs target-libgo"
3475 ;;
3476 *-*-cygwin* | *-*-mingw*)
3477 noconfigdirs="$noconfigdirs target-libgo"
3478 ;;
3479 *-*-aix*)
3480 noconfigdirs="$noconfigdirs target-libgo"
3481 ;;
3482 esac
3483fi
3484
c03353e2
RIL
3485# Default libgloss CPU subdirectory.
3486libgloss_dir="$target_cpu"
6de9cd9a 3487
fbcf0dca
JM
3488case "${target}" in
3489 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3490 libgloss_dir=wince
3491 ;;
4dddfc74
YZ
3492 aarch64*-*-* )
3493 libgloss_dir=aarch64
3494 ;;
fbcf0dca
JM
3495 arm*-*-*)
3496 libgloss_dir=arm
3497 ;;
3498 cris-*-* | crisv32-*-*)
3499 libgloss_dir=cris
3500 ;;
3501 hppa*-*-*)
3502 libgloss_dir=pa
3503 ;;
3504 i[3456789]86-*-*)
3505 libgloss_dir=i386
3506 ;;
3507 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3508 libgloss_dir=m68hc11
3509 ;;
3510 m68*-*-* | fido-*-*)
3511 libgloss_dir=m68k
3512 ;;
3513 mips*-*-*)
3514 libgloss_dir=mips
3515 ;;
3516 powerpc*-*-*)
3517 libgloss_dir=rs6000
3518 ;;
3519 sparc*-*-*)
3520 libgloss_dir=sparc
3521 ;;
3522esac
3523
6a789d5e 3524# Disable newlib and libgloss for various target OSes.
671aa708 3525case "${target}" in
6a789d5e
JM
3526 alpha*-dec-osf*)
3527 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3528 ;;
3529 i[3456789]86-*-linux*)
3530 # This section makes it possible to build newlib natively on linux.
3531 # If we are using a cross compiler then don't configure newlib.
3532 if test x${is_cross_compiler} != xno ; then
3533 noconfigdirs="$noconfigdirs target-newlib"
3534 fi
3535 noconfigdirs="$noconfigdirs target-libgloss"
3536 # If we are not using a cross compiler, do configure newlib.
3537 # Note however, that newlib will only be configured in this situation
3538 # if the --with-newlib option has been given, because otherwise
3539 # 'target-newlib' will appear in skipdirs.
3540 ;;
3541 i[3456789]86-*-rdos*)
3542 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3543 ;;
3544 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3545 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3546 ;;
3547 sparc-*-sunos4*)
3548 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3549 ;;
3550 *-*-aix*)
3551 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3552 ;;
3553 *-*-beos*)
3554 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3555 ;;
671aa708 3556 *-*-chorusos)
0036370f 3557 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3558 ;;
6a789d5e
JM
3559 *-*-dragonfly*)
3560 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3561 ;;
3562 *-*-freebsd*)
3563 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3564 ;;
3565 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3566 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3567 ;;
3568 *-*-lynxos*)
3569 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3570 ;;
3571 *-*-mingw*)
3572 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3573 ;;
3574 *-*-netbsd*)
3575 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3576 ;;
3577 *-*-netware*)
3578 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3579 ;;
3580 *-*-tpf*)
3581 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3582 ;;
3583 *-*-uclinux*)
3584 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3585 ;;
3586 *-*-vxworks*)
3587 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3588 ;;
3589esac
3590
3591case "${target}" in
3592 *-*-chorusos)
3593 ;;
3be96231
TG
3594 aarch64-*-darwin*)
3595 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3596 noconfigdirs="$noconfigdirs sim target-rda"
3597 ;;
3598 arm-*-darwin*)
3599 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3600 noconfigdirs="$noconfigdirs sim target-rda"
3601 ;;
75eeae1a 3602 powerpc-*-darwin*)
e1514c3f 3603 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3604 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3605 ;;
354ebf88
RW
3606 i[3456789]86-*-darwin*)
3607 noconfigdirs="$noconfigdirs ld gprof"
3608 noconfigdirs="$noconfigdirs sim target-rda"
3609 ;;
3610 x86_64-*-darwin[912]*)
0db3a858
TG
3611 noconfigdirs="$noconfigdirs ld gas gprof"
3612 noconfigdirs="$noconfigdirs sim target-rda"
3613 ;;
42c1cd8a
AT
3614 *-*-darwin*)
3615 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3616 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3617 ;;
8c6d158a 3618 *-*-dragonfly*)
8c6d158a 3619 ;;
c3f84f61 3620 *-*-freebsd*)
6de9cd9a
DN
3621 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3622 && test -f /usr/local/include/gmp.h; then
3623 with_gmp=/usr/local
3624 fi
6de9cd9a 3625 ;;
ef4e7569
US
3626 *-*-kaos*)
3627 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3628 noconfigdirs="$noconfigdirs target-libgloss"
3629 ;;
671aa708 3630 *-*-netbsd*)
671aa708 3631 ;;
61fec9ff 3632 *-*-netware*)
671aa708 3633 ;;
fd6487af
JS
3634 *-*-phoenix*)
3635 noconfigdirs="$noconfigdirs target-libgloss"
3636 ;;
671aa708 3637 *-*-rtems*)
2909494b 3638 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3639 # this is not caught below because this stanza matches earlier
3640 case $target in
3641 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3642 esac
671aa708 3643 ;;
a8ba31f2
EC
3644 # The tpf target doesn't support gdb yet.
3645 *-*-tpf*)
6a789d5e 3646 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3647 ;;
5785c0ed 3648 *-*-uclinux*)
6a789d5e 3649 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3650 ;;
671aa708 3651 *-*-vxworks*)
671aa708
NN
3652 ;;
3653 alpha*-dec-osf*)
3654 # ld works, but does not support shared libraries.
671aa708 3655 # gas doesn't generate exception information.
6a789d5e 3656 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3657 ;;
3658 alpha*-*-*vms*)
2909494b 3659 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3660 ;;
671aa708
NN
3661 alpha*-*-*)
3662 # newlib is not 64 bit ready
2909494b 3663 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3664 ;;
671aa708 3665 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3666 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3667 ;;
2fd88f4f
AK
3668 arc*-*-*)
3669 noconfigdirs="$noconfigdirs sim"
3670 ;;
671aa708 3671 arm-*-pe*)
2909494b 3672 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3673 ;;
671aa708 3674 arm-*-riscix*)
0036370f 3675 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3676 ;;
b588ae30
GJL
3677 avr-*-*)
3678 if test x${with_avrlibc} != xno; then
3679 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3680 fi
3681 ;;
671aa708 3682 c4x-*-* | tic4x-*-*)
0036370f 3683 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3684 ;;
0036370f
JM
3685 tic54x-*-*)
3686 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3687 ;;
671aa708 3688 d10v-*-*)
0036370f 3689 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3690 ;;
3691 d30v-*-*)
0036370f 3692 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3693 ;;
3694 fr30-*-elf*)
2909494b 3695 noconfigdirs="$noconfigdirs gdb"
671aa708 3696 ;;
a05c2c75
L
3697 ft32-*-*)
3698 noconfigdirs="$noconfigdirs target-rda gprof"
3699 ;;
55f2d967 3700 moxie-*-*)
a05c2c75 3701 noconfigdirs="$noconfigdirs"
55f2d967 3702 ;;
671aa708 3703 h8300*-*-*)
2909494b 3704 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3705 ;;
3706 h8500-*-*)
0036370f 3707 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3708 ;;
ee6a22df 3709 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3710 ;;
a05c2c75
L
3711 hppa*64*-*-hpux*)
3712 noconfigdirs="$noconfigdirs gdb"
3713 ;;
3714 hppa*-*-hpux11*)
3715 noconfigdirs="$noconfigdirs gdb ld"
3716 ;;
4569f85e 3717 hppa*64*-*-linux*)
671aa708 3718 ;;
56f8587a 3719 hppa*-*-linux*)
3e732ba0 3720 ;;
671aa708 3721 hppa*-*-*elf* | \
671aa708
NN
3722 hppa*-*-lites* | \
3723 hppa*-*-openbsd* | \
3724 hppa*64*-*-*)
671aa708 3725 ;;
c03353e2 3726 hppa*-*-pro*)
c03353e2 3727 ;;
671aa708 3728 hppa*-*-*)
2909494b 3729 noconfigdirs="$noconfigdirs ld"
671aa708 3730 ;;
fb87ad5d 3731 i960-*-*)
0036370f 3732 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3733 ;;
671aa708
NN
3734 ia64*-*-elf*)
3735 # No gdb support yet.
1bcce263 3736 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3737 ;;
3738 ia64*-**-hpux*)
5a2931d1 3739 # No ld support yet.
a05c2c75 3740 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3741 ;;
52535a64 3742 ia64*-*-*vms*)
091fe9ca
TG
3743 # No ld support yet.
3744 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3745 ;;
ef4c4300 3746 i[3456789]86-w64-mingw*)
ef4c4300
KT
3747 ;;
3748 i[3456789]86-*-mingw*)
b91f0a41 3749 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3750 ;;
671aa708
NN
3751 *-*-cygwin*)
3752 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3753 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3754 # always build newlib if winsup directory is present.
b91f0a41 3755 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3756 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3757 elif test -d "$srcdir/newlib"; then
b91f0a41 3758 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3759 fi
1c710c3c 3760 ;;
f2a0e225 3761 i[3456789]86-*-pe)
ebb9f8b0 3762 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3763 ;;
f2a0e225 3764 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3765 # The linker does not yet know about weak symbols in COFF,
3766 # and is not configured to handle mixed ELF and COFF.
0036370f 3767 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3768 ;;
f2a0e225 3769 i[3456789]86-*-sco*)
0036370f 3770 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3771 ;;
fbdd5d87 3772 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3773 noconfigdirs="$noconfigdirs target-libgloss"
3774 ;;
f2a0e225 3775 i[3456789]86-*-sysv4*)
0036370f 3776 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3777 ;;
f2a0e225 3778 i[3456789]86-*-beos*)
6a789d5e 3779 noconfigdirs="$noconfigdirs gdb"
3aa83176 3780 ;;
d1f8db0c 3781 i[3456789]86-*-rdos*)
6a789d5e 3782 noconfigdirs="$noconfigdirs gdb"
c03353e2 3783 ;;
671aa708 3784 mmix-*-*)
2909494b 3785 noconfigdirs="$noconfigdirs gdb"
671aa708 3786 ;;
ab34901f 3787 mt-*-*)
79dd769c
AH
3788 noconfigdirs="$noconfigdirs sim"
3789 ;;
671aa708
NN
3790 powerpc-*-aix*)
3791 # copied from rs6000-*-* entry
6a789d5e 3792 noconfigdirs="$noconfigdirs gprof"
671aa708 3793 ;;
4569f85e 3794 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3795 target_configdirs="$target_configdirs target-winsup"
0036370f 3796 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3797 # always build newlib.
3798 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3799 ;;
3800 # This is temporary until we can link against shared libraries
3801 powerpcle-*-solaris*)
0036370f 3802 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3803 ;;
3804 powerpc-*-beos*)
6a789d5e 3805 noconfigdirs="$noconfigdirs gdb"
671aa708 3806 ;;
671aa708 3807 rs6000-*-lynxos*)
6a789d5e 3808 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3809 ;;
3810 rs6000-*-aix*)
6a789d5e 3811 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3812 ;;
3813 rs6000-*-*)
2909494b 3814 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3815 ;;
3816 m68k-apollo-*)
0036370f 3817 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3818 ;;
ca9fe997 3819 microblaze*)
2909494b 3820 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3821 ;;
d896cc4d 3822 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3823 if test x$with_newlib = xyes; then
3824 noconfigdirs="$noconfigdirs gprof"
3825 fi
d9dced13 3826 ;;
671aa708 3827 mips*-*-irix5*)
0036370f 3828 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3829 ;;
3830 mips*-*-irix6*)
2909494b 3831 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3832 ;;
671aa708 3833 mips*-*-bsd*)
bc98bcc4 3834 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3835 ;;
671aa708 3836 mips*-*-linux*)
671aa708 3837 ;;
bc98bcc4
JBG
3838 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3839 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3840 noconfigdirs="$noconfigdirs ld gas gprof"
3841 ;;
671aa708 3842 mips*-*-*)
2909494b 3843 noconfigdirs="$noconfigdirs gprof"
671aa708 3844 ;;
738f2522 3845 nvptx*-*-*)
738f2522
BS
3846 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3847 ;;
d896cc4d
JBG
3848 or1k*-*-*)
3849 noconfigdirs="$noconfigdirs gdb"
3850 ;;
bc6d9014 3851 sh-*-*)
ea2002ba
CB
3852 case "${target}" in
3853 sh*-*-elf)
2909494b 3854 ;;
ea2002ba 3855 *)
2909494b 3856 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3857 esac
671aa708 3858 ;;
671aa708 3859 sparc-*-sunos4*)
6a789d5e 3860 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3861 use_gnu_ld=no
3862 fi
3863 ;;
b42f0d7e 3864 tic6x-*-*)
0d557ff8 3865 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3866 ;;
341c653c 3867 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3868 noconfigdirs="$noconfigdirs sim"
3869 ;;
671aa708 3870 v810-*-*)
0036370f 3871 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3872 ;;
3873 vax-*-*)
2909494b 3874 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3875 ;;
671aa708 3876esac
79c06341 3877
671aa708
NN
3878# If we aren't building newlib, then don't build libgloss, since libgloss
3879# depends upon some newlib header files.
3880case "${noconfigdirs}" in
3881 *target-libgloss*) ;;
3882 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3883esac
3884
671aa708 3885# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3886host_makefile_frag=/dev/null
3887if test -d ${srcdir}/config ; then
3888case "${host}" in
f2a0e225 3889 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3890 host_makefile_frag="config/mh-djgpp"
3891 ;;
3892 *-cygwin*)
2a79c47f 3893
5213506e
RW
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3895$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3896echo a >cygwin-cat-check
e25a8c82 3897if test `cat cygwin-cat-check` = a ; then
2a79c47f 3898 rm cygwin-cat-check
5213506e
RW
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3900$as_echo "yes" >&6; }
2a79c47f
NC
3901else
3902 rm cygwin-cat-check
5213506e
RW
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904$as_echo "no" >&6; }
3905 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3906 Please either mount the build directory in binary mode or run the following
3907 commands before running any configure script:
3908set -o igncr
3909export SHELLOPTS
5213506e 3910 " "$LINENO" 5
2a79c47f
NC
3911fi
3912
671aa708
NN
3913 host_makefile_frag="config/mh-cygwin"
3914 ;;
c53a18d3 3915 *-mingw*)
1f5a6b84 3916 host_makefile_frag="config/mh-mingw"
95af8923 3917 ;;
cabb9d59 3918 alpha*-linux*)
13be44ed
UB
3919 host_makefile_frag="config/mh-alpha-linux"
3920 ;;
efd41714 3921 hppa*-hp-hpux10*)
efd41714 3922 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3923 ;;
111eeb6e 3924 hppa*-hp-hpux*)
efd41714
PB
3925 host_makefile_frag="config/mh-pa"
3926 ;;
3927 hppa*-*)
3928 host_makefile_frag="config/mh-pa"
3929 ;;
d8ed14ce
IS
3930 *-*-darwin*)
3931 host_makefile_frag="config/mh-darwin"
be8fff81 3932 ;;
d19bca38
PB
3933 powerpc-*-aix*)
3934 host_makefile_frag="config/mh-ppc-aix"
3935 ;;
3936 rs6000-*-aix*)
3937 host_makefile_frag="config/mh-ppc-aix"
3938 ;;
671aa708
NN
3939esac
3940fi
3941
55ffb5ed 3942if test "${build}" != "${host}" ; then
0999159b
PB
3943 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3944 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3945 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b 3946 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
0999159b 3947 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3948 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3949 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3950 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3951 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3952 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3953 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3954 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3955else
3956 AR_FOR_BUILD="\$(AR)"
3957 AS_FOR_BUILD="\$(AS)"
fb0103e5 3958 CC_FOR_BUILD="\$(CC)"
0999159b 3959 CXX_FOR_BUILD="\$(CXX)"
0999159b 3960 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3961 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3962 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3963 LD_FOR_BUILD="\$(LD)"
3964 NM_FOR_BUILD="\$(NM)"
3965 RANLIB_FOR_BUILD="\$(RANLIB)"
3966 WINDRES_FOR_BUILD="\$(WINDRES)"
3967 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3968fi
3969
3970ac_ext=c
1c710c3c
DJ
3971ac_cpp='$CPP $CPPFLAGS'
3972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3974ac_compiler_gnu=$ac_cv_c_compiler_gnu
3975if test -n "$ac_tool_prefix"; then
3976 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3977set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979$as_echo_n "checking for $ac_word... " >&6; }
3980if test "${ac_cv_prog_CC+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3982else
3983 if test -n "$CC"; then
3984 ac_cv_prog_CC="$CC" # Let the user override the test.
3985else
3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH
3988do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
5213506e
RW
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3993 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3995 break 2
3996 fi
3997done
5213506e
RW
3998 done
3999IFS=$as_save_IFS
1c710c3c
DJ
4000
4001fi
4002fi
4003CC=$ac_cv_prog_CC
4004if test -n "$CC"; then
5213506e
RW
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4006$as_echo "$CC" >&6; }
1c710c3c 4007else
5213506e
RW
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009$as_echo "no" >&6; }
1c710c3c
DJ
4010fi
4011
5213506e 4012
1c710c3c
DJ
4013fi
4014if test -z "$ac_cv_prog_CC"; then
4015 ac_ct_CC=$CC
fb0103e5
RG
4016 # Extract the first word of "gcc", so it can be a program name with args.
4017set dummy gcc; ac_word=$2
5213506e
RW
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4019$as_echo_n "checking for $ac_word... " >&6; }
4020if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4022else
4023 if test -n "$ac_ct_CC"; then
4024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4025else
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029 IFS=$as_save_IFS
4030 test -z "$as_dir" && as_dir=.
5213506e
RW
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4033 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4035 break 2
4036 fi
4037done
5213506e
RW
4038 done
4039IFS=$as_save_IFS
1c710c3c
DJ
4040
4041fi
4042fi
4043ac_ct_CC=$ac_cv_prog_ac_ct_CC
4044if test -n "$ac_ct_CC"; then
5213506e
RW
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4046$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4047else
5213506e
RW
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049$as_echo "no" >&6; }
1c710c3c
DJ
4050fi
4051
5213506e
RW
4052 if test "x$ac_ct_CC" = x; then
4053 CC=""
4054 else
4055 case $cross_compiling:$ac_tool_warned in
4056yes:)
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4059ac_tool_warned=yes ;;
4060esac
4061 CC=$ac_ct_CC
4062 fi
1c710c3c
DJ
4063else
4064 CC="$ac_cv_prog_CC"
4065fi
4066
4067if test -z "$CC"; then
5213506e
RW
4068 if test -n "$ac_tool_prefix"; then
4069 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4070set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072$as_echo_n "checking for $ac_word... " >&6; }
4073if test "${ac_cv_prog_CC+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4075else
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC="$CC" # Let the user override the test.
4078else
1c710c3c
DJ
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
5213506e
RW
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4086 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4088 break 2
4089 fi
4090done
5213506e
RW
4091 done
4092IFS=$as_save_IFS
1c710c3c 4093
0b0dc272 4094fi
0b0dc272 4095fi
1c710c3c 4096CC=$ac_cv_prog_CC
af71363e 4097if test -n "$CC"; then
5213506e
RW
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099$as_echo "$CC" >&6; }
2aeb72e9 4100else
5213506e
RW
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102$as_echo "no" >&6; }
2aeb72e9
DD
4103fi
4104
2aeb72e9 4105
5213506e 4106 fi
1c710c3c 4107fi
55ffb5ed
NN
4108if test -z "$CC"; then
4109 # Extract the first word of "cc", so it can be a program name with args.
4110set dummy cc; ac_word=$2
5213506e
RW
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112$as_echo_n "checking for $ac_word... " >&6; }
4113if test "${ac_cv_prog_CC+set}" = set; then :
4114 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4115else
4116 if test -n "$CC"; then
4117 ac_cv_prog_CC="$CC" # Let the user override the test.
4118else
0b0dc272 4119 ac_prog_rejected=no
1c710c3c
DJ
4120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121for as_dir in $PATH
4122do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
5213506e
RW
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4127 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4128 ac_prog_rejected=yes
4129 continue
4130 fi
4131 ac_cv_prog_CC="cc"
5213506e 4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4133 break 2
4134 fi
4135done
5213506e
RW
4136 done
4137IFS=$as_save_IFS
1c710c3c 4138
55ffb5ed
NN
4139if test $ac_prog_rejected = yes; then
4140 # We found a bogon in the path, so make sure we never use it.
4141 set dummy $ac_cv_prog_CC
4142 shift
1c710c3c 4143 if test $# != 0; then
55ffb5ed
NN
4144 # We chose a different compiler from the bogus one.
4145 # However, it has the same basename, so the bogon will be chosen
4146 # first if we set CC to just the basename; use the full file name.
4147 shift
1c710c3c 4148 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4149 fi
4150fi
4151fi
4152fi
1c710c3c 4153CC=$ac_cv_prog_CC
55ffb5ed 4154if test -n "$CC"; then
5213506e
RW
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4156$as_echo "$CC" >&6; }
55ffb5ed 4157else
5213506e
RW
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159$as_echo "no" >&6; }
55ffb5ed
NN
4160fi
4161
5213506e 4162
1c710c3c
DJ
4163fi
4164if test -z "$CC"; then
4165 if test -n "$ac_tool_prefix"; then
5213506e 4166 for ac_prog in cl.exe
1c710c3c
DJ
4167 do
4168 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4169set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171$as_echo_n "checking for $ac_word... " >&6; }
4172if test "${ac_cv_prog_CC+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4174else
4175 if test -n "$CC"; then
4176 ac_cv_prog_CC="$CC" # Let the user override the test.
4177else
1c710c3c
DJ
4178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179for as_dir in $PATH
4180do
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
5213506e
RW
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4185 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4187 break 2
4188 fi
4189done
5213506e
RW
4190 done
4191IFS=$as_save_IFS
1c710c3c 4192
55ffb5ed
NN
4193fi
4194fi
1c710c3c 4195CC=$ac_cv_prog_CC
55ffb5ed 4196if test -n "$CC"; then
5213506e
RW
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4198$as_echo "$CC" >&6; }
a4b9e93e 4199else
5213506e
RW
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201$as_echo "no" >&6; }
fb0103e5 4202fi
af71363e 4203
5213506e 4204
1c710c3c
DJ
4205 test -n "$CC" && break
4206 done
af71363e 4207fi
1c710c3c
DJ
4208if test -z "$CC"; then
4209 ac_ct_CC=$CC
5213506e 4210 for ac_prog in cl.exe
1c710c3c
DJ
4211do
4212 # Extract the first word of "$ac_prog", so it can be a program name with args.
4213set dummy $ac_prog; ac_word=$2
5213506e
RW
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215$as_echo_n "checking for $ac_word... " >&6; }
4216if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4217 $as_echo_n "(cached) " >&6
0b0dc272 4218else
1c710c3c
DJ
4219 if test -n "$ac_ct_CC"; then
4220 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4221else
1c710c3c
DJ
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225 IFS=$as_save_IFS
4226 test -z "$as_dir" && as_dir=.
5213506e
RW
4227 for ac_exec_ext in '' $ac_executable_extensions; do
4228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4229 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4231 break 2
4232 fi
4233done
5213506e
RW
4234 done
4235IFS=$as_save_IFS
1c710c3c 4236
af71363e
AS
4237fi
4238fi
1c710c3c
DJ
4239ac_ct_CC=$ac_cv_prog_ac_ct_CC
4240if test -n "$ac_ct_CC"; then
5213506e
RW
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4242$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4243else
5213506e
RW
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245$as_echo "no" >&6; }
af71363e 4246fi
0b0dc272 4247
5213506e 4248
1c710c3c
DJ
4249 test -n "$ac_ct_CC" && break
4250done
4251
5213506e
RW
4252 if test "x$ac_ct_CC" = x; then
4253 CC=""
4254 else
4255 case $cross_compiling:$ac_tool_warned in
4256yes:)
4257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4259ac_tool_warned=yes ;;
4260esac
4261 CC=$ac_ct_CC
4262 fi
1c710c3c
DJ
4263fi
4264
4265fi
4266
4267
5213506e
RW
4268test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4269$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4270as_fn_error "no acceptable C compiler found in \$PATH
4271See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4272
4273# Provide some information about the compiler.
5213506e
RW
4274$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4275set X $ac_compile
4276ac_compiler=$2
4277for ac_option in --version -v -V -qversion; do
4278 { { ac_try="$ac_compiler $ac_option >&5"
4279case "(($ac_try" in
4280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281 *) ac_try_echo=$ac_try;;
4282esac
4283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284$as_echo "$ac_try_echo"; } >&5
4285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4286 ac_status=$?
5213506e
RW
4287 if test -s conftest.err; then
4288 sed '10a\
4289... rest of stderr output deleted ...
4290 10q' conftest.err >conftest.er1
4291 cat conftest.er1 >&5
4292 rm -f conftest.er1 conftest.err
4293 fi
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; }
4296done
1c710c3c 4297
5213506e 4298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4299/* end confdefs.h. */
4300
4301int
4302main ()
4303{
4304
4305 ;
4306 return 0;
4307}
4308_ACEOF
4309ac_clean_files_save=$ac_clean_files
5213506e 4310ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4311# Try to create an executable without -o first, disregard a.out.
4312# It will help us diagnose broken compilers, and finding out an intuition
4313# of exeext.
5213506e
RW
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4315$as_echo_n "checking for C compiler default output file name... " >&6; }
4316ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4317
4318# The possible output files:
4319ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4320
4321ac_rmfiles=
4322for ac_file in $ac_files
4323do
4324 case $ac_file in
4325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4326 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4327 esac
4328done
4329rm -f $ac_rmfiles
4330
4331if { { ac_try="$ac_link_default"
4332case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335esac
4336eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337$as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_link_default") 2>&5
1c710c3c 4339 ac_status=$?
5213506e
RW
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; }; then :
4342 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4343# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4344# in a Makefile. We should not override ac_cv_exeext if it was cached,
4345# so that the user can short-circuit this test for compilers unknown to
4346# Autoconf.
4347for ac_file in $ac_files ''
1c710c3c
DJ
4348do
4349 test -f "$ac_file" || continue
4350 case $ac_file in
5213506e 4351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4352 ;;
4353 [ab].out )
4354 # We found the default executable, but exeext='' is most
4355 # certainly right.
4356 break;;
4357 *.* )
5213506e
RW
4358 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4359 then :; else
4360 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4361 fi
4362 # We set ac_cv_exeext here because the later test for it is not
4363 # safe: cross compilers may not add the suffix if given an `-o'
4364 # argument, so we may need to know it at that point already.
4365 # Even if this section looks crufty: it has the advantage of
4366 # actually working.
1c710c3c
DJ
4367 break;;
4368 * )
4369 break;;
4370 esac
4371done
5213506e
RW
4372test "$ac_cv_exeext" = no && ac_cv_exeext=
4373
1c710c3c 4374else
5213506e
RW
4375 ac_file=''
4376fi
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4378$as_echo "$ac_file" >&6; }
4379if test -z "$ac_file"; then :
4380 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4381sed 's/^/| /' conftest.$ac_ext >&5
4382
5213506e
RW
4383{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4385{ as_fn_set_status 77
4386as_fn_error "C compiler cannot create executables
4387See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4388fi
1c710c3c 4389ac_exeext=$ac_cv_exeext
1c710c3c 4390
5213506e 4391# Check that the compiler produces executables we can run. If not, either
1c710c3c 4392# the compiler is broken, or we cross compile.
5213506e
RW
4393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4394$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4395# If not cross compiling, check that we can run a simple program.
4396if test "$cross_compiling" != yes; then
4397 if { ac_try='./$ac_file'
5213506e
RW
4398 { { case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401esac
4402eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403$as_echo "$ac_try_echo"; } >&5
4404 (eval "$ac_try") 2>&5
1c710c3c 4405 ac_status=$?
5213506e
RW
4406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407 test $ac_status = 0; }; }; then
1c710c3c
DJ
4408 cross_compiling=no
4409 else
4410 if test "$cross_compiling" = maybe; then
4411 cross_compiling=yes
4412 else
5213506e
RW
4413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415as_fn_error "cannot run C compiled programs.
1c710c3c 4416If you meant to cross compile, use \`--host'.
5213506e 4417See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4418 fi
4419 fi
4420fi
5213506e
RW
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4422$as_echo "yes" >&6; }
1c710c3c 4423
5213506e 4424rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4425ac_clean_files=$ac_clean_files_save
5213506e 4426# Check that the compiler produces executables we can run. If not, either
1c710c3c 4427# the compiler is broken, or we cross compile.
5213506e
RW
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4429$as_echo_n "checking whether we are cross compiling... " >&6; }
4430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4431$as_echo "$cross_compiling" >&6; }
4432
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4434$as_echo_n "checking for suffix of executables... " >&6; }
4435if { { ac_try="$ac_link"
4436case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439esac
4440eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441$as_echo "$ac_try_echo"; } >&5
4442 (eval "$ac_link") 2>&5
1c710c3c 4443 ac_status=$?
5213506e
RW
4444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }; then :
1c710c3c
DJ
4446 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4447# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4448# work properly (i.e., refer to `conftest.exe'), while it won't with
4449# `rm'.
4450for ac_file in conftest.exe conftest conftest.*; do
4451 test -f "$ac_file" || continue
4452 case $ac_file in
5213506e 4453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4454 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4455 break;;
4456 * ) break;;
4457 esac
4458done
af71363e 4459else
5213506e
RW
4460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4461$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4462as_fn_error "cannot compute suffix of executables: cannot compile and link
4463See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4464fi
1c710c3c 4465rm -f conftest$ac_cv_exeext
5213506e
RW
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4467$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4468
4469rm -f conftest.$ac_ext
4470EXEEXT=$ac_cv_exeext
4471ac_exeext=$EXEEXT
5213506e
RW
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4473$as_echo_n "checking for suffix of object files... " >&6; }
4474if test "${ac_cv_objext+set}" = set; then :
4475 $as_echo_n "(cached) " >&6
1c710c3c 4476else
5213506e 4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4478/* end confdefs.h. */
4479
4480int
4481main ()
4482{
4483
4484 ;
4485 return 0;
4486}
4487_ACEOF
4488rm -f conftest.o conftest.obj
5213506e
RW
4489if { { ac_try="$ac_compile"
4490case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493esac
4494eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4495$as_echo "$ac_try_echo"; } >&5
4496 (eval "$ac_compile") 2>&5
1c710c3c 4497 ac_status=$?
5213506e
RW
4498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499 test $ac_status = 0; }; then :
4500 for ac_file in conftest.o conftest.obj conftest.*; do
4501 test -f "$ac_file" || continue;
1c710c3c 4502 case $ac_file in
5213506e 4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4504 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4505 break;;
4506 esac
4507done
4508else
5213506e 4509 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
5213506e
RW
4512{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4513$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4514as_fn_error "cannot compute suffix of object files: cannot compile
4515See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4516fi
1c710c3c
DJ
4517rm -f conftest.$ac_cv_objext conftest.$ac_ext
4518fi
5213506e
RW
4519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4520$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4521OBJEXT=$ac_cv_objext
4522ac_objext=$OBJEXT
5213506e
RW
4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4524$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4525if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4526 $as_echo_n "(cached) " >&6
1c710c3c 4527else
5213506e 4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4529/* end confdefs.h. */
4530
4531int
4532main ()
4533{
4534#ifndef __GNUC__
4535 choke me
4536#endif
4537
4538 ;
4539 return 0;
4540}
4541_ACEOF
5213506e 4542if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4543 ac_compiler_gnu=yes
4544else
5213506e 4545 ac_compiler_gnu=no
1c710c3c 4546fi
5213506e 4547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4548ac_cv_c_compiler_gnu=$ac_compiler_gnu
4549
4550fi
5213506e
RW
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4552$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4553if test $ac_compiler_gnu = yes; then
4554 GCC=yes
4555else
4556 GCC=
4557fi
1c710c3c
DJ
4558ac_test_CFLAGS=${CFLAGS+set}
4559ac_save_CFLAGS=$CFLAGS
5213506e
RW
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4561$as_echo_n "checking whether $CC accepts -g... " >&6; }
4562if test "${ac_cv_prog_cc_g+set}" = set; then :
4563 $as_echo_n "(cached) " >&6
4564else
4565 ac_save_c_werror_flag=$ac_c_werror_flag
4566 ac_c_werror_flag=yes
4567 ac_cv_prog_cc_g=no
4568 CFLAGS="-g"
4569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4570/* end confdefs.h. */
4571
4572int
4573main ()
4574{
4575
4576 ;
4577 return 0;
4578}
4579_ACEOF
5213506e 4580if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4581 ac_cv_prog_cc_g=yes
4582else
5213506e
RW
4583 CFLAGS=""
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h. */
4586
4587int
4588main ()
4589{
4590
4591 ;
4592 return 0;
4593}
4594_ACEOF
4595if ac_fn_c_try_compile "$LINENO"; then :
4596
4597else
4598 ac_c_werror_flag=$ac_save_c_werror_flag
4599 CFLAGS="-g"
4600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601/* end confdefs.h. */
af71363e 4602
5213506e
RW
4603int
4604main ()
4605{
4606
4607 ;
4608 return 0;
4609}
4610_ACEOF
4611if ac_fn_c_try_compile "$LINENO"; then :
4612 ac_cv_prog_cc_g=yes
4613fi
4614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4615fi
5213506e 4616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4617fi
5213506e
RW
4618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_c_werror_flag=$ac_save_c_werror_flag
4620fi
4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4622$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4623if test "$ac_test_CFLAGS" = set; then
1c710c3c 4624 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4625elif test $ac_cv_prog_cc_g = yes; then
4626 if test "$GCC" = yes; then
4627 CFLAGS="-g -O2"
4628 else
4629 CFLAGS="-g"
4630 fi
4631else
4632 if test "$GCC" = yes; then
4633 CFLAGS="-O2"
4634 else
4635 CFLAGS=
4636 fi
4637fi
5213506e
RW
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4639$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4640if test "${ac_cv_prog_cc_c89+set}" = set; then :
4641 $as_echo_n "(cached) " >&6
1c710c3c 4642else
5213506e 4643 ac_cv_prog_cc_c89=no
1c710c3c 4644ac_save_CC=$CC
5213506e 4645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4646/* end confdefs.h. */
4647#include <stdarg.h>
4648#include <stdio.h>
4649#include <sys/types.h>
4650#include <sys/stat.h>
4651/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4652struct buf { int x; };
4653FILE * (*rcsopen) (struct buf *, struct stat *, int);
4654static char *e (p, i)
4655 char **p;
4656 int i;
4657{
4658 return p[i];
4659}
4660static char *f (char * (*g) (char **, int), char **p, ...)
4661{
4662 char *s;
4663 va_list v;
4664 va_start (v,p);
4665 s = g (p, va_arg (v,int));
4666 va_end (v);
4667 return s;
4668}
4669
4670/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4671 function prototypes and stuff, but not '\xHH' hex character constants.
4672 These don't provoke an error unfortunately, instead are silently treated
5213506e 4673 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4675 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4676 that's true only with -std. */
1c710c3c
DJ
4677int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4678
5213506e
RW
4679/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4680 inside strings and character constants. */
4681#define FOO(x) 'x'
4682int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4683
1c710c3c
DJ
4684int test (int i, double x);
4685struct s1 {int (*f) (int a);};
4686struct s2 {int (*f) (double a);};
4687int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4688int argc;
4689char **argv;
4690int
4691main ()
4692{
4693return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4694 ;
4695 return 0;
4696}
4697_ACEOF
5213506e
RW
4698for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4700do
4701 CC="$ac_save_CC $ac_arg"
5213506e
RW
4702 if ac_fn_c_try_compile "$LINENO"; then :
4703 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4704fi
5213506e
RW
4705rm -f core conftest.err conftest.$ac_objext
4706 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4707done
5213506e 4708rm -f conftest.$ac_ext
1c710c3c
DJ
4709CC=$ac_save_CC
4710
4711fi
5213506e
RW
4712# AC_CACHE_VAL
4713case "x$ac_cv_prog_cc_c89" in
4714 x)
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4716$as_echo "none needed" >&6; } ;;
4717 xno)
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4719$as_echo "unsupported" >&6; } ;;
1c710c3c 4720 *)
5213506e
RW
4721 CC="$CC $ac_cv_prog_cc_c89"
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4723$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4724esac
5213506e 4725if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4726
2aeb72e9
DD
4727fi
4728
2aeb72e9
DD
4729ac_ext=c
4730ac_cpp='$CPP $CPPFLAGS'
4731ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4732ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4733ac_compiler_gnu=$ac_cv_c_compiler_gnu
4734
5213506e 4735ac_ext=cpp
2aeb72e9
DD
4736ac_cpp='$CXXCPP $CPPFLAGS'
4737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4740if test -z "$CXX"; then
4741 if test -n "$CCC"; then
4742 CXX=$CCC
4743 else
4744 if test -n "$ac_tool_prefix"; then
4745 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4746 do
4747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4748set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4750$as_echo_n "checking for $ac_word... " >&6; }
4751if test "${ac_cv_prog_CXX+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4753else
4754 if test -n "$CXX"; then
4755 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4756else
4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758for as_dir in $PATH
4759do
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
5213506e
RW
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4764 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4766 break 2
4767 fi
4768done
5213506e
RW
4769 done
4770IFS=$as_save_IFS
55ffb5ed 4771
c3a86da9
DJ
4772fi
4773fi
4774CXX=$ac_cv_prog_CXX
4775if test -n "$CXX"; then
5213506e
RW
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4777$as_echo "$CXX" >&6; }
c3a86da9 4778else
5213506e
RW
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780$as_echo "no" >&6; }
c3a86da9
DJ
4781fi
4782
5213506e 4783
c3a86da9
DJ
4784 test -n "$CXX" && break
4785 done
4786fi
4787if test -z "$CXX"; then
4788 ac_ct_CXX=$CXX
5213506e 4789 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4790do
4791 # Extract the first word of "$ac_prog", so it can be a program name with args.
4792set dummy $ac_prog; ac_word=$2
5213506e
RW
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794$as_echo_n "checking for $ac_word... " >&6; }
4795if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4797else
4798 if test -n "$ac_ct_CXX"; then
4799 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
5213506e
RW
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4808 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4810 break 2
4811 fi
4812done
5213506e
RW
4813 done
4814IFS=$as_save_IFS
c3a86da9
DJ
4815
4816fi
4817fi
4818ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4819if test -n "$ac_ct_CXX"; then
5213506e
RW
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4821$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4822else
5213506e
RW
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824$as_echo "no" >&6; }
c3a86da9
DJ
4825fi
4826
5213506e 4827
c3a86da9
DJ
4828 test -n "$ac_ct_CXX" && break
4829done
c3a86da9 4830
5213506e
RW
4831 if test "x$ac_ct_CXX" = x; then
4832 CXX="g++"
4833 else
4834 case $cross_compiling:$ac_tool_warned in
4835yes:)
4836{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838ac_tool_warned=yes ;;
4839esac
4840 CXX=$ac_ct_CXX
4841 fi
c3a86da9
DJ
4842fi
4843
5213506e
RW
4844 fi
4845fi
c3a86da9 4846# Provide some information about the compiler.
5213506e
RW
4847$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4848set X $ac_compile
4849ac_compiler=$2
4850for ac_option in --version -v -V -qversion; do
4851 { { ac_try="$ac_compiler $ac_option >&5"
4852case "(($ac_try" in
4853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4854 *) ac_try_echo=$ac_try;;
4855esac
4856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4857$as_echo "$ac_try_echo"; } >&5
4858 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4859 ac_status=$?
5213506e
RW
4860 if test -s conftest.err; then
4861 sed '10a\
4862... rest of stderr output deleted ...
4863 10q' conftest.err >conftest.er1
4864 cat conftest.er1 >&5
4865 rm -f conftest.er1 conftest.err
4866 fi
4867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4868 test $ac_status = 0; }
4869done
c3a86da9 4870
5213506e
RW
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4872$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4873if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
c3a86da9 4875else
5213506e 4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4877/* end confdefs.h. */
4878
4879int
4880main ()
4881{
4882#ifndef __GNUC__
4883 choke me
4884#endif
4885
4886 ;
4887 return 0;
4888}
4889_ACEOF
5213506e 4890if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4891 ac_compiler_gnu=yes
4892else
5213506e 4893 ac_compiler_gnu=no
c3a86da9 4894fi
5213506e 4895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4896ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4897
4898fi
5213506e
RW
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4900$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4901if test $ac_compiler_gnu = yes; then
4902 GXX=yes
4903else
4904 GXX=
4905fi
c3a86da9
DJ
4906ac_test_CXXFLAGS=${CXXFLAGS+set}
4907ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4909$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4910if test "${ac_cv_prog_cxx_g+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912else
4913 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4914 ac_cxx_werror_flag=yes
4915 ac_cv_prog_cxx_g=no
4916 CXXFLAGS="-g"
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4918/* end confdefs.h. */
4919
4920int
4921main ()
4922{
4923
4924 ;
4925 return 0;
4926}
4927_ACEOF
5213506e 4928if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4929 ac_cv_prog_cxx_g=yes
4930else
5213506e
RW
4931 CXXFLAGS=""
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4933/* end confdefs.h. */
5213506e 4934
c3a86da9
DJ
4935int
4936main ()
4937{
5213506e 4938
c3a86da9
DJ
4939 ;
4940 return 0;
4941}
4942_ACEOF
5213506e 4943if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4944
5213506e
RW
4945else
4946 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4947 CXXFLAGS="-g"
4948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4949/* end confdefs.h. */
5213506e 4950
c3a86da9
DJ
4951int
4952main ()
4953{
5213506e 4954
c3a86da9
DJ
4955 ;
4956 return 0;
4957}
4958_ACEOF
5213506e
RW
4959if ac_fn_cxx_try_compile "$LINENO"; then :
4960 ac_cv_prog_cxx_g=yes
11a67599 4961fi
5213506e
RW
4962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4963fi
4964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965fi
4966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4968fi
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4970$as_echo "$ac_cv_prog_cxx_g" >&6; }
4971if test "$ac_test_CXXFLAGS" = set; then
4972 CXXFLAGS=$ac_save_CXXFLAGS
4973elif test $ac_cv_prog_cxx_g = yes; then
4974 if test "$GXX" = yes; then
4975 CXXFLAGS="-g -O2"
4976 else
4977 CXXFLAGS="-g"
4978 fi
4979else
4980 if test "$GXX" = yes; then
4981 CXXFLAGS="-O2"
4982 else
4983 CXXFLAGS=
4984 fi
c3a86da9 4985fi
c3a86da9
DJ
4986ac_ext=c
4987ac_cpp='$CPP $CPPFLAGS'
4988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990ac_compiler_gnu=$ac_cv_c_compiler_gnu
4991
4992
4993# We must set the default linker to the linker used by gcc for the correct
4994# operation of libtool. If LD is not defined and we are using gcc, try to
4995# set the LD default to the ld used by gcc.
4996if test -z "$LD"; then
4997 if test "$GCC" = yes; then
4998 case $build in
4999 *-*-mingw*)
5000 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5001 *)
5002 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5003 esac
5004 case $gcc_prog_ld in
5005 # Accept absolute paths.
5006 [\\/]* | [A-Za-z]:[\\/]*)
5007 LD="$gcc_prog_ld" ;;
5008 esac
5009 fi
23f6b2f9
PB
5010fi
5011
0b21f5d3
EB
5012# Check whether -static-libstdc++ -static-libgcc is supported.
5013have_static_libs=no
5014if test "$GCC" = yes; then
5015 saved_LDFLAGS="$LDFLAGS"
5016
5017 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5019$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5020 ac_ext=cpp
5021ac_cpp='$CXXCPP $CPPFLAGS'
5022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5025
5026
5027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028/* end confdefs.h. */
0d6414b2
EB
5029
5030#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5031#error -static-libstdc++ not implemented
5032#endif
0b21f5d3
EB
5033int main() {}
5034_ACEOF
5035if ac_fn_cxx_try_link "$LINENO"; then :
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5037$as_echo "yes" >&6; }; have_static_libs=yes
5038else
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5040$as_echo "no" >&6; }
5041fi
5042rm -f core conftest.err conftest.$ac_objext \
5043 conftest$ac_exeext conftest.$ac_ext
5044 ac_ext=c
5045ac_cpp='$CPP $CPPFLAGS'
5046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5048ac_compiler_gnu=$ac_cv_c_compiler_gnu
5049
5050
5051 LDFLAGS="$saved_LDFLAGS"
5052fi
5053
23f6b2f9
PB
5054
5055
55ffb5ed 5056
1c710c3c
DJ
5057if test -n "$ac_tool_prefix"; then
5058 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5059set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061$as_echo_n "checking for $ac_word... " >&6; }
5062if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5064else
5065 if test -n "$GNATBIND"; then
5066 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5067else
1c710c3c
DJ
5068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069for as_dir in $PATH
5070do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5213506e
RW
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5075 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5077 break 2
5078 fi
5079done
5213506e
RW
5080 done
5081IFS=$as_save_IFS
1c710c3c 5082
55ffb5ed
NN
5083fi
5084fi
1c710c3c 5085GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5086if test -n "$GNATBIND"; then
5213506e
RW
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5088$as_echo "$GNATBIND" >&6; }
55ffb5ed 5089else
5213506e
RW
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091$as_echo "no" >&6; }
55ffb5ed
NN
5092fi
5093
5213506e 5094
1c710c3c 5095fi
55ffb5ed 5096if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5097 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5098 # Extract the first word of "gnatbind", so it can be a program name with args.
5099set dummy gnatbind; ac_word=$2
5213506e
RW
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101$as_echo_n "checking for $ac_word... " >&6; }
5102if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
55ffb5ed 5104else
1c710c3c
DJ
5105 if test -n "$ac_ct_GNATBIND"; then
5106 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5107else
1c710c3c
DJ
5108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5213506e
RW
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5115 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5117 break 2
5118 fi
5119done
5213506e
RW
5120 done
5121IFS=$as_save_IFS
1c710c3c 5122
55ffb5ed
NN
5123fi
5124fi
1c710c3c
DJ
5125ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5126if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5128$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5129else
5213506e
RW
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131$as_echo "no" >&6; }
55ffb5ed
NN
5132fi
5133
5213506e
RW
5134 if test "x$ac_ct_GNATBIND" = x; then
5135 GNATBIND="no"
5136 else
5137 case $cross_compiling:$ac_tool_warned in
5138yes:)
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5140$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5141ac_tool_warned=yes ;;
5142esac
5143 GNATBIND=$ac_ct_GNATBIND
5144 fi
55ffb5ed 5145else
1c710c3c 5146 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5147fi
5148
1c710c3c
DJ
5149if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5151set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153$as_echo_n "checking for $ac_word... " >&6; }
5154if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5305be7e
RG
5156else
5157 if test -n "$GNATMAKE"; then
5158 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5159else
1c710c3c
DJ
5160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5213506e
RW
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5167 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5169 break 2
5170 fi
5171done
5213506e
RW
5172 done
5173IFS=$as_save_IFS
1c710c3c 5174
5305be7e
RG
5175fi
5176fi
1c710c3c 5177GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5178if test -n "$GNATMAKE"; then
5213506e
RW
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5180$as_echo "$GNATMAKE" >&6; }
5305be7e 5181else
5213506e
RW
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183$as_echo "no" >&6; }
5305be7e
RG
5184fi
5185
5213506e 5186
1c710c3c 5187fi
5305be7e 5188if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5189 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5190 # Extract the first word of "gnatmake", so it can be a program name with args.
5191set dummy gnatmake; ac_word=$2
5213506e
RW
5192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193$as_echo_n "checking for $ac_word... " >&6; }
5194if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5195 $as_echo_n "(cached) " >&6
5305be7e 5196else
1c710c3c
DJ
5197 if test -n "$ac_ct_GNATMAKE"; then
5198 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5199else
1c710c3c
DJ
5200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5201for as_dir in $PATH
5202do
5203 IFS=$as_save_IFS
5204 test -z "$as_dir" && as_dir=.
5213506e
RW
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5207 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5209 break 2
5210 fi
5211done
5213506e
RW
5212 done
5213IFS=$as_save_IFS
1c710c3c 5214
5305be7e
RG
5215fi
5216fi
1c710c3c
DJ
5217ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5218if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5220$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5221else
5213506e
RW
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223$as_echo "no" >&6; }
5305be7e
RG
5224fi
5225
5213506e
RW
5226 if test "x$ac_ct_GNATMAKE" = x; then
5227 GNATMAKE="no"
5228 else
5229 case $cross_compiling:$ac_tool_warned in
5230yes:)
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5232$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5233ac_tool_warned=yes ;;
5234esac
5235 GNATMAKE=$ac_ct_GNATMAKE
5236 fi
5305be7e 5237else
1c710c3c 5238 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5239fi
5240
5213506e
RW
5241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5242$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5243if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5244 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5245else
5246 cat >conftest.adb <<EOF
5247procedure conftest is begin null; end conftest;
5248EOF
5249acx_cv_cc_gcc_supports_ada=no
5250# There is a bug in old released versions of GCC which causes the
5251# driver to exit successfully when the appropriate language module
5252# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5253# Therefore we must check for the error message as well as an
5254# unsuccessful exit.
1db673ca
RO
5255# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5256# given a .adb file, but produce no object file. So we must check
5257# if an object file was really produced to guard against this.
55ffb5ed 5258errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5259if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5260 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5261fi
5262rm -f conftest.*
5263fi
5213506e
RW
5264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5265$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5266
7cb62ef1 5267if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5268 have_gnat=yes
5269else
5270 have_gnat=no
5271fi
5272
5213506e
RW
5273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5274$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5275if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5276 $as_echo_n "(cached) " >&6
a76494aa
PB
5277else
5278 echo abfoo >t1
5279 echo cdfoo >t2
b55e6680 5280 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5281 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5282 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5283 :
5284 else
5285 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5286 fi
5287 fi
a76494aa
PB
5288 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5289 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5290 :
a76494aa
PB
5291 else
5292 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5293 fi
5294 fi
5295 rm t1 t2
5296
5297fi
5213506e
RW
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5299$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5300do_compare="$gcc_cv_prog_cmp_skip"
5301
5302
55ffb5ed 5303
ff3ac0f4
ILT
5304# Check whether --enable-bootstrap was given.
5305if test "${enable_bootstrap+set}" = set; then :
5306 enableval=$enable_bootstrap;
5307else
5308 enable_bootstrap=default
5309fi
5310
5311
5312# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5313if test -r $srcdir/gcc/configure; then
5314 have_compiler=yes
5315else
5316 have_compiler=no
5317fi
ff3ac0f4
ILT
5318
5319case "$have_compiler:$host:$target:$enable_bootstrap" in
5320 *:*:*:no) ;;
5321
5322 # Default behavior. Enable bootstrap if we have a compiler
5323 # and we are in a native configuration.
5324 yes:$build:$build:default)
5325 enable_bootstrap=yes ;;
5326
5327 *:*:*:default)
5328 enable_bootstrap=no ;;
5329
5330 # We have a compiler and we are in a native configuration, bootstrap is ok
5331 yes:$build:$build:yes)
5332 ;;
5333
5334 # Other configurations, but we have a compiler. Assume the user knows
5335 # what he's doing.
5336 yes:*:*:yes)
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5338$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5339 ;;
5340
5341 # No compiler: if they passed --enable-bootstrap explicitly, fail
5342 no:*:*:yes)
5343 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5344
5345 # Fail if wrong command line
5346 *)
5347 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5348 ;;
5349esac
5350
46070488
JM
5351# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5352# C++98 compiler can still start the bootstrap.
5353if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5354 CXX="$CXX -std=gnu++98"
46070488
JM
5355fi
5356
592c90ff
KG
5357# Used for setting $lt_cv_objdir
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5359$as_echo_n "checking for objdir... " >&6; }
5360if test "${lt_cv_objdir+set}" = set; then :
5361 $as_echo_n "(cached) " >&6
5362else
5363 rm -f .libs 2>/dev/null
5364mkdir .libs 2>/dev/null
5365if test -d .libs; then
5366 lt_cv_objdir=.libs
5367else
5368 # MS-DOS does not allow filenames that begin with a dot.
5369 lt_cv_objdir=_libs
5370fi
5371rmdir .libs 2>/dev/null
5372fi
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5374$as_echo "$lt_cv_objdir" >&6; }
5375objdir=$lt_cv_objdir
5376
5377
5378
5379
5380
5381cat >>confdefs.h <<_ACEOF
5382#define LT_OBJDIR "$lt_cv_objdir/"
5383_ACEOF
5384
5385
5386
acd26225 5387# Check for GMP, MPFR and MPC
3a5729ea 5388gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5389gmpinc=
e69bf64b 5390have_gmp=no
acd26225
KG
5391
5392# Specify a location for mpc
5393# check for this first so it ends up on the link line before mpfr.
5394
5213506e
RW
5395# Check whether --with-mpc was given.
5396if test "${with_mpc+set}" = set; then :
5397 withval=$with_mpc;
5398fi
acd26225 5399
acd26225 5400
9965e3cd 5401# Check whether --with-mpc-include was given.
5213506e
RW
5402if test "${with_mpc_include+set}" = set; then :
5403 withval=$with_mpc_include;
5404fi
acd26225 5405
acd26225 5406
9965e3cd 5407# Check whether --with-mpc-lib was given.
5213506e
RW
5408if test "${with_mpc_lib+set}" = set; then :
5409 withval=$with_mpc_lib;
5410fi
acd26225 5411
acd26225
KG
5412
5413if test "x$with_mpc" != x; then
3a5729ea
KG
5414 gmplibs="-L$with_mpc/lib $gmplibs"
5415 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5416fi
5417if test "x$with_mpc_include" != x; then
3a5729ea 5418 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5419fi
5420if test "x$with_mpc_lib" != x; then
3a5729ea 5421 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5422fi
5423if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5424 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5425 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5426 # Do not test the mpc version. Assume that it is sufficient, since
5427 # it is in the source tree, and the library has not been built yet
5428 # but it would be included on the link line in the version check below
5429 # hence making the test fail.
3a5729ea 5430 have_gmp=yes
acd26225 5431fi
e69bf64b 5432
bebf829d
PB
5433# Specify a location for mpfr
5434# check for this first so it ends up on the link line before gmp.
1c710c3c 5435
5213506e
RW
5436# Check whether --with-mpfr-dir was given.
5437if test "${with_mpfr_dir+set}" = set; then :
5438 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5439Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5440fi
5441
bebf829d
PB
5442
5443
5213506e
RW
5444# Check whether --with-mpfr was given.
5445if test "${with_mpfr+set}" = set; then :
5446 withval=$with_mpfr;
5447fi
1c710c3c 5448
bebf829d 5449
9965e3cd 5450# Check whether --with-mpfr-include was given.
5213506e
RW
5451if test "${with_mpfr_include+set}" = set; then :
5452 withval=$with_mpfr_include;
5453fi
1c710c3c 5454
8a877c9c 5455
9965e3cd 5456# Check whether --with-mpfr-lib was given.
5213506e
RW
5457if test "${with_mpfr_lib+set}" = set; then :
5458 withval=$with_mpfr_lib;
5459fi
8a877c9c 5460
bebf829d
PB
5461
5462if test "x$with_mpfr" != x; then
5463 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5464 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5465fi
8a877c9c 5466if test "x$with_mpfr_include" != x; then
3a5729ea 5467 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5468fi
5469if test "x$with_mpfr_lib" != x; then
5470 gmplibs="-L$with_mpfr_lib $gmplibs"
5471fi
e69bf64b 5472if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5473 # MPFR v3.1.0 moved the sources into a src sub-directory.
5474 if ! test -d ${srcdir}/mpfr/src; then
5475 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5476 fi
00f35794
BE
5477 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5478 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5479 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5480 # Do not test the mpfr version. Assume that it is sufficient, since
5481 # it is in the source tree, and the library has not been built yet
5482 # but it would be included on the link line in the version check below
5483 # hence making the test fail.
5484 have_gmp=yes
5485fi
bebf829d 5486
6de9cd9a 5487# Specify a location for gmp
1c710c3c 5488
5213506e
RW
5489# Check whether --with-gmp-dir was given.
5490if test "${with_gmp_dir+set}" = set; then :
5491 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5492Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5493fi
5494
6de9cd9a 5495
6de9cd9a 5496
5213506e
RW
5497# Check whether --with-gmp was given.
5498if test "${with_gmp+set}" = set; then :
5499 withval=$with_gmp;
5500fi
1c710c3c 5501
6de9cd9a 5502
9965e3cd 5503# Check whether --with-gmp-include was given.
5213506e
RW
5504if test "${with_gmp_include+set}" = set; then :
5505 withval=$with_gmp_include;
5506fi
1c710c3c 5507
8a877c9c 5508
9965e3cd 5509# Check whether --with-gmp-lib was given.
5213506e
RW
5510if test "${with_gmp_lib+set}" = set; then :
5511 withval=$with_gmp_lib;
5512fi
8a877c9c
KG
5513
5514
6de9cd9a 5515
bebf829d
PB
5516if test "x$with_gmp" != x; then
5517 gmplibs="-L$with_gmp/lib $gmplibs"
5518 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5519fi
8a877c9c
KG
5520if test "x$with_gmp_include" != x; then
5521 gmpinc="-I$with_gmp_include $gmpinc"
5522fi
5523if test "x$with_gmp_lib" != x; then
5524 gmplibs="-L$with_gmp_lib $gmplibs"
5525fi
e69bf64b 5526if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5527 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5528 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5529 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5530 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5531 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5532 # Do not test the gmp version. Assume that it is sufficient, since
5533 # it is in the source tree, and the library has not been built yet
5534 # but it would be included on the link line in the version check below
5535 # hence making the test fail.
5536 have_gmp=yes
5537fi
6de9cd9a 5538
d943d7c4 5539if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5540 have_gmp=yes
5541 saved_CFLAGS="$CFLAGS"
5542 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5543 # Check for the recommended and required versions of GMP.
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5545$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5546
5547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5548/* end confdefs.h. */
5549#include "gmp.h"
5550int
5551main ()
5552{
5553
5554 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5555 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5556 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5557 choke me
5558 #endif
5559
5560 ;
5561 return 0;
5562}
5563_ACEOF
5564if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5566/* end confdefs.h. */
362c6d2f 5567#include <gmp.h>
1c710c3c
DJ
5568int
5569main ()
5570{
6de9cd9a 5571
362c6d2f
KG
5572 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5573 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5574 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5575 choke me
5576 #endif
1c710c3c
DJ
5577
5578 ;
5579 return 0;
5580}
5581_ACEOF
5213506e
RW
5582if ac_fn_c_try_compile "$LINENO"; then :
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5584$as_echo "yes" >&6; }
362c6d2f
KG
5585else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5587$as_echo "buggy but acceptable" >&6; }
5588fi
5589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5590else
5213506e
RW
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5592$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5593fi
5213506e 5594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5595
acd26225 5596 # If we have GMP, check the MPFR version.
e69bf64b 5597 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5598 # Check for the recommended and required versions of MPFR.
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5600$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5602/* end confdefs.h. */
70ec446f 5603#include <gmp.h>
e69bf64b 5604 #include <mpfr.h>
1c710c3c
DJ
5605int
5606main ()
5607{
e48d66a9 5608
f7d6bc01 5609 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5610 choke me
5611 #endif
1c710c3c
DJ
5612
5613 ;
5614 return 0;
5615}
5616_ACEOF
5213506e
RW
5617if ac_fn_c_try_compile "$LINENO"; then :
5618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5619/* end confdefs.h. */
a3993f33 5620#include <gmp.h>
e69bf64b 5621 #include <mpfr.h>
1c710c3c
DJ
5622int
5623main ()
5624{
a3993f33 5625
362c6d2f 5626 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5627 choke me
5628 #endif
acd26225
KG
5629
5630 ;
5631 return 0;
5632}
5633_ACEOF
5213506e
RW
5634if ac_fn_c_try_compile "$LINENO"; then :
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5636$as_echo "yes" >&6; }
acd26225 5637else
5213506e
RW
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5639$as_echo "buggy but acceptable" >&6; }
acd26225 5640fi
5213506e 5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5642else
5213506e
RW
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644$as_echo "no" >&6; }; have_gmp=no
acd26225 5645fi
5213506e 5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5647 fi
5648
5649 # Check for the MPC header version.
3a5729ea 5650 if test x"$have_gmp" = xyes ; then
362c6d2f 5651 # Check for the recommended and required versions of MPC.
5213506e
RW
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5653$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5655/* end confdefs.h. */
5656#include <mpc.h>
5657int
5658main ()
5659{
5660
362c6d2f
KG
5661 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5662 choke me
5663 #endif
5664
5665 ;
5666 return 0;
5667}
5668_ACEOF
5669if ac_fn_c_try_compile "$LINENO"; then :
5670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671/* end confdefs.h. */
5672#include <mpc.h>
5673int
5674main ()
5675{
5676
5677 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5678 choke me
5679 #endif
5680
5681 ;
5682 return 0;
5683}
5684_ACEOF
5213506e
RW
5685if ac_fn_c_try_compile "$LINENO"; then :
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5687$as_echo "yes" >&6; }
362c6d2f
KG
5688else
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5690$as_echo "buggy but acceptable" >&6; }
5691fi
5692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5693else
5213506e 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5695$as_echo "no" >&6; }; have_gmp=no
acd26225 5696fi
5213506e 5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5698 fi
5699
5700 # Now check the MPFR library.
5701 if test x"$have_gmp" = xyes; then
5702 saved_LIBS="$LIBS"
5703 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5705$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5707/* end confdefs.h. */
3a5729ea 5708#include <mpc.h>
acd26225
KG
5709int
5710main ()
5711{
5712
5713 mpfr_t n;
5714 mpfr_t x;
3a5729ea 5715 mpc_t c;
acd26225
KG
5716 int t;
5717 mpfr_init (n);
5718 mpfr_init (x);
5719 mpfr_atan2 (n, n, x, GMP_RNDN);
5720 mpfr_erfc (n, x, GMP_RNDN);
5721 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5722 mpfr_clear(n);
5723 mpfr_clear(x);
5724 mpc_init2 (c, 53);
5725 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5726 mpc_cosh (c, c, MPC_RNDNN);
5727 mpc_pow (c, c, c, MPC_RNDNN);
5728 mpc_acosh (c, c, MPC_RNDNN);
5729 mpc_clear (c);
1c710c3c
DJ
5730
5731 ;
5732 return 0;
5733}
5734_ACEOF
5213506e
RW
5735if ac_fn_c_try_link "$LINENO"; then :
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5737$as_echo "yes" >&6; }
1c710c3c 5738else
5213506e
RW
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5741fi
5213506e
RW
5742rm -f core conftest.err conftest.$ac_objext \
5743 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5744 LIBS="$saved_LIBS"
5745 fi
5746
e69bf64b 5747 CFLAGS="$saved_CFLAGS"
6de9cd9a 5748
362c6d2f
KG
5749# The library versions listed in the error message below should match
5750# the HARD-minimums enforced above.
e69bf64b 5751 if test x$have_gmp != xyes; then
f7d6bc01 5752 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5753Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5754their locations. Source code for these libraries can be found at
5755their respective hosting sites as well as at
5756ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5757http://gcc.gnu.org/install/prerequisites.html for additional info. If
5758you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5759make sure that you have installed both the libraries and the header
5760files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5761 fi
70ec446f
KG
5762fi
5763
acd26225
KG
5764# Flags needed for both GMP, MPFR and/or MPC.
5765
5766
6de9cd9a
DN
5767
5768
5769
9e3eba15 5770
0ff2d841 5771
0b21f5d3 5772# Libraries to use for stage1 or when not bootstrapping.
00020c16 5773
0b21f5d3
EB
5774# Check whether --with-stage1-libs was given.
5775if test "${with_stage1_libs+set}" = set; then :
5776 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5777 stage1_libs=
00020c16 5778 else
0b21f5d3 5779 stage1_libs=$withval
00020c16
ILT
5780 fi
5781else
5dc85f7e 5782 stage1_libs=
5213506e
RW
5783fi
5784
00020c16
ILT
5785
5786
0b21f5d3 5787# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5788
0b21f5d3
EB
5789# Check whether --with-stage1-ldflags was given.
5790if test "${with_stage1_ldflags+set}" = set; then :
5791 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5792 stage1_ldflags=
00020c16 5793 else
0b21f5d3 5794 stage1_ldflags=$withval
00020c16
ILT
5795 fi
5796else
0b21f5d3
EB
5797 stage1_ldflags=
5798 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5799 # if supported. But if the user explicitly specified the libraries to use,
5800 # trust that they are doing what they want.
5801 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5802 stage1_ldflags="-static-libstdc++ -static-libgcc"
5803 fi
5213506e
RW
5804fi
5805
00020c16
ILT
5806
5807
5dc85f7e 5808# Libraries to use for stage2 and later builds.
00020c16 5809
5213506e
RW
5810# Check whether --with-boot-libs was given.
5811if test "${with_boot_libs+set}" = set; then :
5812 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5813 poststage1_libs=
5814 else
5815 poststage1_libs=$withval
5816 fi
5817else
5dc85f7e 5818 poststage1_libs=
5213506e
RW
5819fi
5820
00020c16
ILT
5821
5822
ed2eaa9f
ILT
5823# Linker flags to use for stage2 and later builds.
5824
5825# Check whether --with-boot-ldflags was given.
5826if test "${with_boot_ldflags+set}" = set; then :
5827 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5828 poststage1_ldflags=
5829 else
5830 poststage1_ldflags=$withval
5831 fi
5832else
5833 poststage1_ldflags=
bec93d73
ILT
5834 # In stages 2 and 3, default to linking libstdc++ and libgcc
5835 # statically. But if the user explicitly specified the libraries to
5836 # use, trust that they are doing what they want.
5837 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5838 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5839 fi
5840fi
5841
5842
5843
e357a5e0 5844# GCC GRAPHITE dependency isl.
4a9bb2aa 5845# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5846
5847
33ad93b9
RG
5848# Check whether --with-isl was given.
5849if test "${with_isl+set}" = set; then :
5850 withval=$with_isl;
5213506e 5851fi
f8bf9252 5852
f8bf9252 5853
eae1a5d4 5854# Treat --without-isl as a request to disable
625afa23 5855# GRAPHITE support and skip all following checks.
eae1a5d4 5856if test "x$with_isl" != "xno"; then
e357a5e0 5857 # Check for isl
625afa23
RG
5858
5859
33ad93b9
RG
5860# Check whether --with-isl-include was given.
5861if test "${with_isl_include+set}" = set; then :
5862 withval=$with_isl_include;
5213506e
RW
5863fi
5864
f8bf9252 5865
33ad93b9
RG
5866# Check whether --with-isl-lib was given.
5867if test "${with_isl_lib+set}" = set; then :
5868 withval=$with_isl_lib;
5213506e 5869fi
f8bf9252 5870
f8bf9252 5871
33ad93b9
RG
5872 # Check whether --enable-isl-version-check was given.
5873if test "${enable_isl_version_check+set}" = set; then :
5874 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5875else
5876 ENABLE_ISL_CHECK=yes
7d32a440
SP
5877fi
5878
5879
33ad93b9
RG
5880 # Initialize isllibs and islinc.
5881 case $with_isl in
5882 no)
5883 isllibs=
5884 islinc=
5885 ;;
5886 "" | yes)
5887 ;;
5888 *)
5889 isllibs="-L$with_isl/lib"
5890 islinc="-I$with_isl/include"
5891 ;;
5892 esac
5893 if test "x${with_isl_include}" != x ; then
5894 islinc="-I$with_isl_include"
5895 fi
5896 if test "x${with_isl_lib}" != x; then
5897 isllibs="-L$with_isl_lib"
5898 fi
5899 if test "x${islinc}" = x && test "x${isllibs}" = x \
5900 && test -d ${srcdir}/isl; then
5901 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5902 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5903 ENABLE_ISL_CHECK=no
560d18d3
AK
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5905$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 5906 fi
7d32a440 5907
eae1a5d4
RG
5908 isllibs="${isllibs} -lisl"
5909
7d32a440 5910
7d32a440 5911
9847828b
RB
5912 if test "${ENABLE_ISL_CHECK}" = yes ; then
5913 _isl_saved_CFLAGS=$CFLAGS
5914 _isl_saved_LDFLAGS=$LDFLAGS
5915 _isl_saved_LIBS=$LIBS
5916
5917 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
5918 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5919 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 5920
c661a43d
SP
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5922$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
e0c0c325 5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 5924/* end confdefs.h. */
560d18d3 5925#include <isl/ctx.h>
622dbadf
BC
5926int
5927main ()
5928{
560d18d3 5929isl_ctx_get_max_operations (isl_ctx_alloc ());
622dbadf
BC
5930 ;
5931 return 0;
5932}
5933_ACEOF
5934if ac_fn_c_try_link "$LINENO"; then :
9847828b 5935 gcc_cv_isl=yes
622dbadf
BC
5936else
5937 gcc_cv_isl=no
5938fi
5939rm -f core conftest.err conftest.$ac_objext \
5940 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5942$as_echo "$gcc_cv_isl" >&6; }
5943
560d18d3 5944 if test "${gcc_cv_isl}" = no ; then
c661a43d
SP
5945 { $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
5946$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
560d18d3
AK
5947 fi
5948
c661a43d
SP
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5950$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
1e050c90
AK
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952/* end confdefs.h. */
5953#include <isl/schedule.h>
5954int
5955main ()
5956{
5957isl_options_set_schedule_serialize_sccs (NULL, 0);
5958 ;
5959 return 0;
5960}
5961_ACEOF
5962if ac_fn_c_try_link "$LINENO"; then :
5963 ac_has_isl_options_set_schedule_serialize_sccs=yes
5964else
5965 ac_has_isl_options_set_schedule_serialize_sccs=no
5966fi
5967rm -f core conftest.err conftest.$ac_objext \
5968 conftest$ac_exeext conftest.$ac_ext
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5970$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5971
5972 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5973 islver="0.15"
5974
5975 fi
5976
9847828b
RB
5977 CFLAGS=$_isl_saved_CFLAGS
5978 LDFLAGS=$_isl_saved_LDFLAGS
5979 LIBS=$_isl_saved_LIBS
5980 fi
5981
5982
f8bf9252 5983
f8bf9252 5984
33ad93b9
RG
5985
5986
33ad93b9
RG
5987 if test "x${with_isl}" = xno; then
5988 graphite_requested=no
5989 elif test "x${with_isl}" != x \
5990 || test "x${with_isl_include}" != x \
5991 || test "x${with_isl_lib}" != x ; then
5992 graphite_requested=yes
5993 else
5994 graphite_requested=no
7d32a440 5995 fi
d789184e 5996
d789184e
SP
5997
5998
33ad93b9
RG
5999 if test "${gcc_cv_isl}" = no ; then
6000 isllibs=
6001 islinc=
6002 fi
6003
6004 if test "${graphite_requested}" = yes \
6005 && test "x${isllibs}" = x \
6006 && test "x${islinc}" = x ; then
f8bf9252 6007
e357a5e0 6008 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 6009 fi
f8bf9252 6010
d32ef397 6011
d32ef397
AS
6012fi
6013
e357a5e0 6014# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6015if test "x$with_isl" = xno ||
625afa23 6016 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6017 noconfigdirs="$noconfigdirs isl"
625afa23 6018 islinc=
32d024bf
RG
6019fi
6020
625afa23
RG
6021
6022
6023
d7f09764
DN
6024# Check for LTO support.
6025# Check whether --enable-lto was given.
6026if test "${enable_lto+set}" = set; then :
6027 enableval=$enable_lto; enable_lto=$enableval
6028else
6029 enable_lto=yes; default_enable_lto=yes
6030fi
6031
6032
7413962d 6033
9a02962b
DK
6034
6035
6036target_elf=no
6037case $target in
6038 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6039 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8f56cb51 6040 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8ae12d71 6041 nvptx-*-none)
9a02962b
DK
6042 target_elf=no
6043 ;;
6044 *)
6045 target_elf=yes
6046 ;;
6047esac
6048
6049if test $target_elf = yes; then :
48215350
DK
6050 # ELF platforms build the lto-plugin always.
6051 build_lto_plugin=yes
9a02962b 6052
9a02962b
DK
6053else
6054 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6055 case $target in
9e530bcd 6056 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6057 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6058 *) enable_lto=no ;;
6059 esac
9a02962b 6060 else
db50fe7d
IS
6061 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6062 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6063 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6064 # warn during gcc/ subconfigure; unless you're bootstrapping with
6065 # -flto it won't be needed until after installation anyway.
6066 case $target in
9e530bcd 6067 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b
DK
6068 *) if test x"$enable_lto" = x"yes"; then
6069 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6070 fi
6071 ;;
6072 esac
6073 fi
1cd0b716 6074 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6075 # Build it unless LTO was explicitly disabled.
1cd0b716 6076 case $target in
48215350 6077 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6078 *) ;;
6079 esac
48215350 6080
9a02962b
DK
6081fi
6082
d7f09764 6083
45b3824d
TS
6084# Check whether --enable-linker-plugin-configure-flags was given.
6085if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6086 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6087else
6088 extra_linker_plugin_configure_flags=
6089fi
6090
6091
6092# Check whether --enable-linker-plugin-flags was given.
6093if test "${enable_linker_plugin_flags+set}" = set; then :
6094 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6095else
6096 extra_linker_plugin_flags=
6097fi
6098
6099
6100
f8bf9252 6101
0823efed 6102# By default, C and C++ are the only stage 1 languages.
e1888513 6103stage1_languages=,c,
2805b53a 6104
00020c16 6105# Target libraries that we bootstrap.
ad1e5170 6106bootstrap_target_libs=,target-libgcc,
00020c16 6107
55ffb5ed
NN
6108# Figure out what language subdirectories are present.
6109# Look if the user specified --enable-languages="..."; if not, use
6110# the environment variable $LANGUAGES if defined. $LANGUAGES might
6111# go away some day.
6112# NB: embedded tabs in this IF block -- do not untabify
6113if test -d ${srcdir}/gcc; then
6114 if test x"${enable_languages+set}" != xset; then
6115 if test x"${LANGUAGES+set}" = xset; then
6116 enable_languages="${LANGUAGES}"
6b1786aa 6117 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed
NN
6118 else
6119 enable_languages=all
6120 fi
6121 else
6122 if test x"${enable_languages}" = x ||
6123 test x"${enable_languages}" = xyes;
6124 then
6b1786aa 6125 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6126 exit 1
6127 fi
6128 fi
6129 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6130
7f26dfa3
FXC
6131 # 'f95' is the old name for the 'fortran' language. We issue a warning
6132 # and make the substitution.
6133 case ,${enable_languages}, in
6134 *,f95,*)
6b1786aa 6135 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6136 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6137 ;;
6138 esac
6139
0823efed
DN
6140 # If bootstrapping, C++ must be enabled.
6141 case ",$enable_languages,:$enable_bootstrap" in
6142 *,c++,*:*) ;;
6143 *:yes)
ff3ac0f4
ILT
6144 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6145 enable_languages="${enable_languages},c++"
6146 else
0823efed 6147 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6148 fi
6149 ;;
6150 esac
6151
55ffb5ed
NN
6152 # First scan to see if an enabled language requires some other language.
6153 # We assume that a given config-lang.in will list all the language
6154 # front ends it requires, even if some are required indirectly.
6155 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6156 case ${lang_frag} in
6157 ..) ;;
6158 # The odd quoting in the next line works around
6159 # an apparent bug in bash 1.12 on linux.
6160 ${srcdir}/gcc/[*]/config-lang.in) ;;
6161 *)
69ecd18f
ILT
6162 # From the config-lang.in, get $language, $lang_requires, and
6163 # $lang_requires_boot_languages.
55ffb5ed
NN
6164 language=
6165 lang_requires=
69ecd18f 6166 lang_requires_boot_languages=
55ffb5ed 6167 . ${lang_frag}
69ecd18f 6168 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6169 case ,${enable_languages}, in
6170 *,$other,*) ;;
6171 *,all,*) ;;
6172 *,$language,*)
6173 echo " \`$other' language required by \`$language'; enabling" 1>&2
6174 enable_languages="${enable_languages},${other}"
6175 ;;
6176 esac
6177 done
69ecd18f
ILT
6178 for other in ${lang_requires_boot_languages} ; do
6179 if test "$other" != "c"; then
6180 case ,${enable_stage1_languages}, in
6181 *,$other,*) ;;
6182 *,all,*) ;;
6183 *)
6184 case ,${enable_languages}, in
6185 *,$language,*)
6186 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6187 enable_stage1_languages="$enable_stage1_languages,${other}"
6188 ;;
6189 esac
6190 ;;
6191 esac
6192 fi
6193 done
55ffb5ed
NN
6194 ;;
6195 esac
6196 done
6197
e1888513 6198 new_enable_languages=,c,
d7f09764
DN
6199
6200 # If LTO is enabled, add the LTO front end.
d7f09764 6201 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6202 case ,${enable_languages}, in
6203 *,lto,*) ;;
6204 *) enable_languages="${enable_languages},lto" ;;
6205 esac
1cd0b716 6206 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6207 configdirs="$configdirs lto-plugin"
d7f09764
DN
6208 fi
6209 fi
6210
426c1eb0
TS
6211 # If we're building an offloading compiler, add the LTO front end.
6212 if test x"$enable_as_accelerator_for" != x ; then
6213 case ,${enable_languages}, in
6214 *,lto,*) ;;
6215 *) enable_languages="${enable_languages},lto" ;;
6216 esac
6217 fi
6218
55ffb5ed 6219 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6220 potential_languages=,c,
55ffb5ed 6221
4da3b0f8
ILT
6222 enabled_target_libs=
6223 disabled_target_libs=
6224
55ffb5ed
NN
6225 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6226 case ${lang_frag} in
6227 ..) ;;
6228 # The odd quoting in the next line works around
6229 # an apparent bug in bash 1.12 on linux.
6230 ${srcdir}/gcc/[*]/config-lang.in) ;;
6231 *)
1c710c3c 6232 # From the config-lang.in, get $language, $target_libs,
2805b53a 6233 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6234 language=
6235 target_libs=
6236 lang_dirs=
1546bb64 6237 subdir_requires=
e1888513
PB
6238 boot_language=no
6239 build_by_default=yes
55ffb5ed 6240 . ${lang_frag}
e1888513
PB
6241 if test x${language} = x; then
6242 echo "${lang_frag} doesn't set \$language." 1>&2
6243 exit 1
6244 fi
6245
78767fd9 6246 if test "$language" = "c++"; then
0823efed 6247 boot_language=yes
00020c16
ILT
6248 fi
6249
178f875a 6250 add_this_lang=no
e1888513
PB
6251 case ,${enable_languages}, in
6252 *,${language},*)
d4a10d0a
SB
6253 # Language was explicitly selected; include it
6254 # unless it is C, which is enabled by default.
6255 if test "$language" != "c"; then
6256 add_this_lang=yes
6257 fi
55ffb5ed 6258 ;;
e1888513
PB
6259 *,all,*)
6260 # 'all' was selected, select it if it is a default language
178f875a
JM
6261 if test "$language" != "c"; then
6262 add_this_lang=${build_by_default}
6263 fi
55ffb5ed
NN
6264 ;;
6265 esac
6de9cd9a 6266
1546bb64 6267 # Disable languages that need other directories if these aren't available.
95695ad3 6268 for i in $subdir_requires; do
b6348cb3 6269 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6270 case ,${enable_languages}, in
6271 *,${language},*)
6272 # Specifically requested language; tell them.
5213506e 6273 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6274 ;;
6275 *)
6276 # Silently disable.
e1888513 6277 add_this_lang=unsupported
1546bb64
PB
6278 ;;
6279 esac
6280 done
6281
e1888513
PB
6282 # Disable Ada if no preexisting GNAT is available.
6283 case ,${enable_languages},:${language}:${have_gnat} in
6284 *,${language},*:ada:no)
6285 # Specifically requested language; tell them.
5213506e 6286 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6287 ;;
6288 *:ada:no)
6289 # Silently disable.
6290 add_this_lang=unsupported
6291 ;;
6292 esac
6293
4fab7234
HPN
6294 # Disable a language that is unsupported by the target.
6295 case " $unsupported_languages " in
6296 *" $language "*)
e1888513 6297 add_this_lang=unsupported
4fab7234
HPN
6298 ;;
6299 esac
6300
6de9cd9a 6301 case $add_this_lang in
e1888513 6302 unsupported)
55ffb5ed 6303 # Remove language-dependent dirs.
4da3b0f8
ILT
6304 disabled_target_libs="$disabled_target_libs $target_libs"
6305 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6306 ;;
e1888513
PB
6307 no)
6308 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6309 disabled_target_libs="$disabled_target_libs $target_libs"
6310 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6311 potential_languages="${potential_languages}${language},"
6312 ;;
6313 yes)
6314 new_enable_languages="${new_enable_languages}${language},"
6315 potential_languages="${potential_languages}${language},"
2805b53a 6316 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6317 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6318 case "${boot_language}:,$enable_stage1_languages," in
6319 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6320 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6321 case ",$stage1_languages," in
6322 *,$language,* | ,yes, | ,all,) ;;
6323 *) stage1_languages="${stage1_languages}${language}," ;;
6324 esac
00020c16
ILT
6325 # We need to bootstrap any supporting libraries.
6326 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6327 ;;
6328 esac
6329 ;;
55ffb5ed
NN
6330 esac
6331 ;;
6332 esac
6333 done
6334
4da3b0f8
ILT
6335 # Add target libraries which are only needed for disabled languages
6336 # to noconfigdirs.
6337 if test -n "$disabled_target_libs"; then
6338 for dir in $disabled_target_libs; do
6339 case " $enabled_target_libs " in
6340 *" ${dir} "*) ;;
6341 *) noconfigdirs="$noconfigdirs $dir" ;;
6342 esac
6343 done
6344 fi
6345
5213506e
RW
6346 # Check whether --enable-stage1-languages was given.
6347if test "${enable_stage1_languages+set}" = set; then :
6348 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6349 ,no,|,,)
6350 # Set it to something that will have no effect in the loop below
6351 enable_stage1_languages=c ;;
6352 ,yes,)
6353 enable_stage1_languages=`echo $new_enable_languages | \
6354 sed -e "s/^,//" -e "s/,$//" ` ;;
6355 *,all,*)
6356 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6357 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6358 esac
6359
6360 # Add "good" languages from enable_stage1_languages to stage1_languages,
6361 # while "bad" languages go in missing_languages. Leave no duplicates.
6362 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6363 case $potential_languages in
6364 *,$i,*)
6365 case $stage1_languages in
6366 *,$i,*) ;;
6367 *) stage1_languages="$stage1_languages$i," ;;
6368 esac ;;
6369 *)
6370 case $missing_languages in
6371 *,$i,*) ;;
6372 *) missing_languages="$missing_languages$i," ;;
6373 esac ;;
6374 esac
6375 done
5213506e
RW
6376fi
6377
e1888513
PB
6378
6379 # Remove leading/trailing commas that were added for simplicity
6380 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6381 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6382 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6383 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6384
55ffb5ed 6385 if test "x$missing_languages" != x; then
5213506e 6386 as_fn_error "
0cf085e4 6387The following requested languages could not be built: ${missing_languages}
5213506e 6388Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6389 fi
55ffb5ed
NN
6390 if test "x$new_enable_languages" != "x$enable_languages"; then
6391 echo The following languages will be built: ${new_enable_languages}
e1888513 6392 enable_languages="$new_enable_languages"
55ffb5ed 6393 fi
e1888513 6394
1c710c3c 6395
b2eaac4a 6396 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6397fi
6398
27079765
AH
6399# Handle --disable-<component> generically.
6400for dir in $configdirs $build_configdirs $target_configdirs ; do
6401 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6402 varname=`echo $dirname | sed -e s/+/_/g`
6403 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6404 noconfigdirs="$noconfigdirs $dir"
6405 fi
6406done
6407
43c40f3e
RO
6408# Check for Boehm's garbage collector
6409# Check whether --enable-objc-gc was given.
6410if test "${enable_objc_gc+set}" = set; then :
114bf3f1
MK
6411 enableval=$enable_objc_gc;
6412fi
6413
6414
6415# Check whether --with-target-bdw-gc was given.
6416if test "${with_target_bdw_gc+set}" = set; then :
6417 withval=$with_target_bdw_gc;
6418fi
6419
6420
6421# Check whether --with-target-bdw-gc-include was given.
6422if test "${with_target_bdw_gc_include+set}" = set; then :
6423 withval=$with_target_bdw_gc_include;
6424fi
6425
6426
6427# Check whether --with-target-bdw-gc-lib was given.
6428if test "${with_target_bdw_gc_lib+set}" = set; then :
6429 withval=$with_target_bdw_gc_lib;
6430fi
6431
6432
6433case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
6435$as_echo_n "checking for bdw garbage collector... " >&6; }
6436 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
825fba52
MK
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
6438$as_echo "using bdw-gc in default locations" >&6; }
114bf3f1
MK
6439 else
6440 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
6441 as_fn_error "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
6442 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
6443 as_fn_error "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
6446$as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
6447 fi
6448 fi
43c40f3e
RO
6449esac
6450
5f520819 6451# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6452case ,${enable_languages}, in
1007a55c
JW
6453 *,c++,*)
6454 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6455 case "${noconfigdirs}" in
6456 *target-libstdc++-v3*)
6457 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6458 ;;
6459 *) ;;
6460 esac
6461 ;;
99776ebd 6462 *)
5f520819 6463 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6464 ;;
6465esac
6466
ee6a22df
L
6467# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6468# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6469# If we have the source for $noconfigdirs entries, add them to $notsupp.
6470
6471notsupp=""
6472for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6473 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6474 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6475 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6476 if test -r $srcdir/$dirname/configure ; then
6477 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6478 true
6479 else
6480 notsupp="$notsupp $dir"
6481 fi
6482 fi
6483 fi
ee6a22df
L
6484 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6485 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6486 if test -r $srcdir/$dirname/configure ; then
6487 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6488 true
6489 else
6490 notsupp="$notsupp $dir"
6491 fi
6492 fi
6493 fi
55ffb5ed
NN
6494 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6495 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6496 if test -r $srcdir/$dirname/configure ; then
6497 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6498 true
6499 else
6500 notsupp="$notsupp $dir"
6501 fi
6502 fi
6503 fi
6504done
6505
55ffb5ed
NN
6506# Quietly strip out all directories which aren't configurable in this tree.
6507# This relies on all configurable subdirectories being autoconfiscated, which
6508# is now the case.
23f6b2f9
PB
6509build_configdirs_all="$build_configdirs"
6510build_configdirs=
6511for i in ${build_configdirs_all} ; do
1c710c3c 6512 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6513 if test -f ${srcdir}/$j/configure ; then
6514 build_configdirs="${build_configdirs} $i"
6515 fi
6516done
6517
55ffb5ed
NN
6518configdirs_all="$configdirs"
6519configdirs=
6520for i in ${configdirs_all} ; do
6521 if test -f ${srcdir}/$i/configure ; then
6522 configdirs="${configdirs} $i"
6523 fi
6524done
23f6b2f9 6525
55ffb5ed
NN
6526target_configdirs_all="$target_configdirs"
6527target_configdirs=
6528for i in ${target_configdirs_all} ; do
1c710c3c 6529 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6530 if test -f ${srcdir}/$j/configure ; then
6531 target_configdirs="${target_configdirs} $i"
6532 fi
6533done
6534
45b3824d
TS
6535# libiberty-linker-plugin is special: it doesn't have its own source directory,
6536# so we have to add it after the preceding checks.
6537if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6538then
6539 case " $configdirs " in
6540 *" libiberty "*)
6541 # If we can build libiberty, we can also build libiberty-linker-plugin.
6542 configdirs="$configdirs libiberty-linker-plugin"
6543 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6544 --with-libiberty=../libiberty-linker-plugin";;
6545 *)
6546 as_fn_error "libiberty missing" "$LINENO" 5;;
6547 esac
6548fi
6549
fca38047
TS
6550# Sometimes we have special requirements for the host libiberty.
6551extra_host_libiberty_configure_flags=
1c01ebf6 6552extra_host_zlib_configure_flags=
fca38047
TS
6553case " $configdirs " in
6554 *" lto-plugin "* | *" libcc1 "*)
6555 # When these are to be built as shared libraries, the same applies to
6556 # libiberty.
6557 extra_host_libiberty_configure_flags=--enable-shared
6558 ;;
1c01ebf6
L
6559 *" bfd "*)
6560 # When bfd is to be built as a shared library, the same applies to
6561 # zlib.
6562 if test "$enable_shared" = "yes"; then
6563 extra_host_zlib_configure_flags=--enable-host-shared
6564 fi
6565 ;;
fca38047
TS
6566esac
6567
6568
1c01ebf6 6569
55ffb5ed
NN
6570# Produce a warning message for the subdirs we can't configure.
6571# This isn't especially interesting in the Cygnus tree, but in the individual
6572# FSF releases, it's important to let people know when their machine isn't
6573# supported by the one or two programs in a package.
6574
6575if test -n "${notsupp}" && test -z "${norecursion}" ; then
6576 # If $appdirs is non-empty, at least one of those directories must still
6577 # be configured, or we error out. (E.g., if the gas release supports a
6578 # specified target in some subdirs but not the gas subdir, we shouldn't
6579 # pretend that all is well.)
6580 if test -n "$appdirs" ; then
6581 for dir in $appdirs ; do
6582 if test -r $dir/Makefile.in ; then
6583 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6584 appdirs=""
6585 break
6586 fi
23f6b2f9 6587 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6588 appdirs=""
6589 break
6590 fi
6591 fi
6592 done
6593 if test -n "$appdirs" ; then
6594 echo "*** This configuration is not supported by this package." 1>&2
6595 exit 1
6596 fi
6597 fi
6598 # Okay, some application will build, or we don't care to check. Still
6599 # notify of subdirs not getting built.
6600 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6601 echo " ${notsupp}" 1>&2
6602 echo " (Any other directories should still work fine.)" 1>&2
6603fi
6604
6605case "$host" in
6606 *msdosdjgpp*)
6607 enable_gdbtk=no ;;
6608esac
6609
c3a86da9
DJ
6610# To find our prefix, in gcc_cv_tool_prefix.
6611
6612# The user is always right.
6613if test "${PATH_SEPARATOR+set}" != set; then
6614 echo "#! /bin/sh" >conf$$.sh
6615 echo "exit 0" >>conf$$.sh
6616 chmod +x conf$$.sh
6617 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6618 PATH_SEPARATOR=';'
6619 else
6620 PATH_SEPARATOR=:
6621 fi
6622 rm -f conf$$.sh
6623fi
6624
6625
3c36aa6b
JJ
6626 get_gcc_base_ver="cat"
6627
6628# Check whether --with-gcc-major-version-only was given.
6629if test "${with_gcc_major_version_only+set}" = set; then :
6630 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
6631 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
6632 fi
6633
6634fi
6635
6636
6637
6638
6639
c3a86da9
DJ
6640
6641if test "x$exec_prefix" = xNONE; then
6642 if test "x$prefix" = xNONE; then
6643 gcc_cv_tool_prefix=$ac_default_prefix
6644 else
6645 gcc_cv_tool_prefix=$prefix
6646 fi
6647else
6648 gcc_cv_tool_prefix=$exec_prefix
6649fi
6650
6651# If there is no compiler in the tree, use the PATH only. In any
6652# case, if there is no compiler in the tree nobody should use
6653# AS_FOR_TARGET and LD_FOR_TARGET.
6654if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
3c36aa6b
JJ
6655 if test x$with_gcc_major_version_only = xyes ; then
6656 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
6657 else
6658 gcc_version=`cat $srcdir/gcc/BASE-VER`
6659 fi
c3a86da9
DJ
6660 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6661 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6662 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6663 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6664 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6665 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6666else
6667 gcc_cv_tool_dirs=
6668fi
6669
6670if test x$build = x$target && test -n "$md_exec_prefix"; then
6671 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6672fi
6673
6674
6675
55ffb5ed
NN
6676copy_dirs=
6677
1c710c3c 6678
5213506e
RW
6679# Check whether --with-build-sysroot was given.
6680if test "${with_build_sysroot+set}" = set; then :
6681 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6682 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6683 fi
6684else
6685 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6686fi
526635cb
MM
6687
6688
c8aea42c 6689
5213506e
RW
6690
6691# Check whether --with-debug-prefix-map was given.
6692if test "${with_debug_prefix_map+set}" = set; then :
6693 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6694 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6695 for debug_map in $withval; do
6696 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6697 done
6698 fi
6699else
6700 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6701fi
6702
c8aea42c
PB
6703
6704
1c8bd6a3
PB
6705# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6706# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6707# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6708# We want to ensure that TARGET libraries (which we know are built with
6709# gcc) are built with "-O2 -g", so include those options when setting
6710# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6711if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6712 if test "x${is_cross_compiler}" = xyes; then
6713 CFLAGS_FOR_TARGET="-g -O2"
6714 else
6715 CFLAGS_FOR_TARGET=$CFLAGS
6716 case " $CFLAGS " in
6717 *" -O2 "*) ;;
6718 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6719 esac
6720 case " $CFLAGS " in
6721 *" -g "* | *" -g3 "*) ;;
6722 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6723 esac
6724 fi
1c8bd6a3
PB
6725fi
6726
6727
6728if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6729 if test "x${is_cross_compiler}" = xyes; then
6730 CXXFLAGS_FOR_TARGET="-g -O2"
6731 else
6732 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6733 case " $CXXFLAGS " in
6734 *" -O2 "*) ;;
6735 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6736 esac
6737 case " $CXXFLAGS " in
6738 *" -g "* | *" -g3 "*) ;;
6739 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6740 esac
6741 fi
1c8bd6a3
PB
6742fi
6743
6744
6f57bdf6
DK
6745
6746
55ffb5ed
NN
6747# Handle --with-headers=XXX. If the value is not "yes", the contents of
6748# the named directory are copied to $(tooldir)/sys-include.
6749if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6750 if test x${is_cross_compiler} = xno ; then
6751 echo 1>&2 '***' --with-headers is only supported when cross compiling
6752 exit 1
6753 fi
6754 if test x"${with_headers}" != xyes ; then
c3a86da9 6755 x=${gcc_cv_tool_prefix}
1c710c3c 6756 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6757 fi
6758fi
6759
6760# Handle --with-libs=XXX. If the value is not "yes", the contents of
6761# the name directories are copied to $(tooldir)/lib. Multiple directories
6762# are permitted.
6763if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6764 if test x${is_cross_compiler} = xno ; then
6765 echo 1>&2 '***' --with-libs is only supported when cross compiling
6766 exit 1
6767 fi
6768 if test x"${with_libs}" != xyes ; then
6769 # Copy the libraries in reverse order, so that files in the first named
6770 # library override files in subsequent libraries.
c3a86da9 6771 x=${gcc_cv_tool_prefix}
55ffb5ed 6772 for l in ${with_libs}; do
1c710c3c 6773 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6774 done
6775 fi
6776fi
6777
d7f09764 6778# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6779#
6780# This is done by determining whether or not the appropriate directory
6781# is available, and by checking whether or not specific configurations
6782# have requested that this magic not happen.
1c710c3c
DJ
6783#
6784# The command line options always override the explicit settings in
6b1786aa 6785# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6786#
1c710c3c 6787# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6788# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6789# --without-gnu-ld options for the configure script. Similarly, if
6790# the default is to use the included zlib and you don't want to do that,
6791# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6792
6793if test x${use_gnu_as} = x &&
6794 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6795 with_gnu_as=yes
6796 extra_host_args="$extra_host_args --with-gnu-as"
6797fi
6798
6799if test x${use_gnu_ld} = x &&
5afab7ad 6800 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6801 with_gnu_ld=yes
6802 extra_host_args="$extra_host_args --with-gnu-ld"
6803fi
6804
d7f09764
DN
6805if test x${use_included_zlib} = x &&
6806 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6807 :
6808else
6809 with_system_zlib=yes
6810 extra_host_args="$extra_host_args --with-system-zlib"
6811fi
6812
e8b05380
PB
6813# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6814# can detect this case.
6815
6816if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6817 with_newlib=yes
6818 extra_host_args="$extra_host_args --with-newlib"
6819fi
6820
55ffb5ed
NN
6821# Handle ${copy_dirs}
6822set fnord ${copy_dirs}
6823shift
6824while test $# != 0 ; do
6825 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6826 :
6827 else
6828 echo Copying $1 to $2
6829
6830 # Use the install script to create the directory and all required
6831 # parent directories.
6832 if test -d $2 ; then
6833 :
6834 else
6835 echo >config.temp
6836 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6837 fi
6838
6839 # Copy the directory, assuming we have tar.
6840 # FIXME: Should we use B in the second tar? Not all systems support it.
6841 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6842
6843 # It is the responsibility of the user to correctly adjust all
6844 # symlinks. If somebody can figure out how to handle them correctly
6845 # here, feel free to add the code.
6846
6847 echo $1 > $2/COPIED
6848 fi
6849 shift; shift
6850done
6851
e8b05380
PB
6852# Determine a target-dependent exec_prefix that the installed
6853# gcc will search in. Keep this list sorted by triplet, with
6854# the *-*-osname triplets last.
6855md_exec_prefix=
6856case "${target}" in
30b74385 6857 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6858 md_exec_prefix=/dev/env/DJDIR/bin
6859 ;;
e8b05380 6860 *-*-hpux* | \
e8b05380 6861 *-*-nto-qnx* | \
6de66370 6862 *-*-solaris2*)
e8b05380
PB
6863 md_exec_prefix=/usr/ccs/bin
6864 ;;
6865esac
6866
671aa708
NN
6867extra_arflags_for_target=
6868extra_nmflags_for_target=
6869extra_ranlibflags_for_target=
6870target_makefile_frag=/dev/null
6871case "${target}" in
58e24147
AM
6872 spu-*-*)
6873 target_makefile_frag="config/mt-spu"
6874 ;;
d896cc4d 6875 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6876 target_makefile_frag="config/mt-sde"
6877 ;;
1ec3b87b
RS
6878 mipsisa*-*-elfoabi*)
6879 target_makefile_frag="config/mt-mips-elfoabi"
6880 ;;
08d0963a
RS
6881 mips*-*-*linux* | mips*-*-gnu*)
6882 target_makefile_frag="config/mt-mips-gnu"
6883 ;;
707f1839
SL
6884 nios2-*-elf*)
6885 target_makefile_frag="config/mt-nios2-elf"
6886 ;;
416ac4d4 6887 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6888 target_makefile_frag="config/mt-gnu"
671aa708
NN
6889 ;;
6890 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6891 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6892 # commands to handle both 32-bit and 64-bit objects. These flags are
6893 # harmless if we're using GNU nm or ar.
6894 extra_arflags_for_target=" -X32_64"
6895 extra_nmflags_for_target=" -B -X32_64"
6896 ;;
671aa708
NN
6897esac
6898
6899alphaieee_frag=/dev/null
6900case $target in
6901 alpha*-*-*)
6902 # This just makes sure to use the -mieee option to build target libs.
6903 # This should probably be set individually by each library.
6904 alphaieee_frag="config/mt-alphaieee"
6905 ;;
6906esac
6907
6908# If --enable-target-optspace always use -Os instead of -O2 to build
6909# the target libraries, similarly if it is not specified, use -Os
6910# on selected platforms.
6911ospace_frag=/dev/null
6912case "${enable_target_optspace}:${target}" in
6913 yes:*)
6914 ospace_frag="config/mt-ospace"
6915 ;;
6916 :d30v-*)
6917 ospace_frag="config/mt-d30v"
6918 ;;
d9063947 6919 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
6920 ospace_frag="config/mt-ospace"
6921 ;;
6922 no:* | :*)
6923 ;;
6924 *)
6925 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6926 ;;
6927esac
6928
671aa708
NN
6929# Some systems (e.g., one of the i386-aix systems the gas testers are
6930# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6931tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6932build_tooldir=${tooldir}
6933
671aa708
NN
6934# Create a .gdbinit file which runs the one in srcdir
6935# and tells GDB to look there for source files.
6936
6937if test -r ${srcdir}/.gdbinit ; then
6938 case ${srcdir} in
6939 .) ;;
6940 *) cat > ./.gdbinit <<EOF
6941# ${NO_EDIT}
6942dir ${srcdir}
6943dir .
6944source ${srcdir}/.gdbinit
6945EOF
6946 ;;
6947 esac
6948fi
6949
671aa708
NN
6950# Make sure that the compiler is able to generate an executable. If it
6951# can't, we are probably in trouble. We don't care whether we can run the
6952# executable--we might be using a cross compiler--we only care whether it
6953# can be created. At this point the main configure script has set CC.
6954we_are_ok=no
6955echo "int main () { return 0; }" > conftest.c
6956${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6957if test $? = 0 ; then
6958 if test -s conftest || test -s conftest.exe ; then
6959 we_are_ok=yes
6960 fi
1c710c3c 6961fi
671aa708
NN
6962case $we_are_ok in
6963 no)
6964 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6965 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6966 rm -f conftest*
6967 exit 1
6968 ;;
6969esac
6970rm -f conftest*
6971
d89f0ad6 6972# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6973case "${host}" in
6974 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6975 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6976 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6977 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6978esac
6979
d89f0ad6
AL
6980# On systems where the dynamic library environment variable is PATH,
6981# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6982# built executables to PATH.
6983if test "$RPATH_ENVVAR" = PATH; then
6984 GCC_SHLIB_SUBDIR=/shlib
6985else
6986 GCC_SHLIB_SUBDIR=
6987fi
6988
beeda1d9
JJ
6989# Adjust the toplevel makefile according to whether bootstrap was selected.
6990case $enable_bootstrap in
6991 yes)
6992 bootstrap_suffix=bootstrap
6993 BUILD_CONFIG=bootstrap-debug
6994 ;;
6995 no)
6996 bootstrap_suffix=no-bootstrap
6997 BUILD_CONFIG=
6998 ;;
6999esac
7000
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7002$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7003
7004
7005# Check whether --with-build-config was given.
7006if test "${with_build_config+set}" = set; then :
7007 withval=$with_build_config; case $with_build_config in
7008 yes) with_build_config= ;;
7009 no) with_build_config= BUILD_CONFIG= ;;
7010 esac
7011fi
7012
7013
7014if test "x${with_build_config}" != x; then
7015 BUILD_CONFIG=$with_build_config
7016else
7017 case $BUILD_CONFIG in
7018 bootstrap-debug)
7019 if echo "int f (void) { return 0; }" > conftest.c &&
7020 ${CC} -c conftest.c &&
7021 mv conftest.o conftest.o.g0 &&
7022 ${CC} -c -g conftest.c &&
7023 mv conftest.o conftest.o.g &&
7024 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
7025 :
7026 else
7027 BUILD_CONFIG=
7028 fi
7029 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7030 ;;
7031 esac
7032fi
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7034$as_echo "$BUILD_CONFIG" >&6; }
7035
7036
7037# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
7039$as_echo_n "checking for --enable-vtable-verify... " >&6; }
7040# Check whether --enable-vtable-verify was given.
7041if test "${enable_vtable_verify+set}" = set; then :
7042 enableval=$enable_vtable_verify; case "$enableval" in
7043 yes) enable_vtable_verify=yes ;;
7044 no) enable_vtable_verify=no ;;
7045 *) enable_vtable_verify=no;;
7046 esac
7047else
7048 enable_vtable_verify=no
7049fi
7050
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7052$as_echo "$enable_vtable_verify" >&6; }
7053
671aa708
NN
7054# Record target_configdirs and the configure arguments for target and
7055# build configuration in Makefile.
7056target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7057build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7058bootstrap_fixincludes=no
671aa708 7059
ad1e5170
JR
7060# If we are building libgomp, bootstrap it.
7061if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7062 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7063fi
7064
beeda1d9
JJ
7065# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7066# or bootstrap-ubsan, bootstrap it.
7067if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7068 case "$BUILD_CONFIG" in
7069 *bootstrap-asan* | *bootstrap-ubsan* )
7070 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7071 bootstrap_fixincludes=yes
beeda1d9
JJ
7072 ;;
7073 esac
ac8701fe
L
7074fi
7075
beeda1d9
JJ
7076# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7077if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7078 test "$enable_vtable_verify" != no; then
2077db1b
CT
7079 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7080fi
7081
c21fdaa1
JJ
7082# If we are building libmpx and $BUILD_CONFIG contains bootstrap-mpx,
7083# bootstrap it.
5373cd33 7084if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
c21fdaa1
JJ
7085 case "$BUILD_CONFIG" in
7086 *bootstrap-mpx* )
7087 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7088 ;;
7089 esac
5373cd33
IE
7090fi
7091
671aa708
NN
7092# Determine whether gdb needs tk/tcl or not.
7093# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7094# and in that case we want gdb to be built without tk. Ugh!
7095# In fact I believe gdb is the *only* package directly dependent on tk,
7096# so we should be able to put the 'maybe's in unconditionally and
7097# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7098# 100% sure that that's safe though.
e914a571 7099
b4f96efe 7100gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7101case "$enable_gdbtk" in
7102 no)
7103 GDB_TK="" ;;
e914a571
AC
7104 yes)
7105 GDB_TK="${gdb_tk}" ;;
671aa708 7106 *)
e914a571
AC
7107 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7108 # distro. Eventually someone will fix this and move Insight, nee
7109 # gdbtk to a separate directory.
7110 if test -d ${srcdir}/gdb/gdbtk ; then
7111 GDB_TK="${gdb_tk}"
7112 else
7113 GDB_TK=""
7114 fi
7115 ;;
671aa708 7116esac
ef9db8d5
DJ
7117CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7118INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7119
60975492 7120# Strip out unwanted targets.
8b87bb96
NN
7121
7122# While at that, we remove Makefiles if we were started for recursive
7123# configuration, so that the top-level Makefile reconfigures them,
7124# like we used to do when configure itself was recursive.
8b87bb96 7125
3e54529c
RW
7126# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7127# but now we're fixing up the Makefile ourselves with the additional
7128# commands passed to AC_CONFIG_FILES. Use separate variables
7129# extrasub-{build,host,target} not because there is any reason to split
7130# the substitutions up that way, but only to remain below the limit of
7131# 99 commands in a script, for HP-UX sed.
7132# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7133
79cd2b23
RW
7134case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7135 yes:yes:*\ gold\ *:*,c++,*) ;;
7136 yes:yes:*\ gold\ *:*)
7137 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7138 ;;
7139esac
7140
3e54529c 7141extrasub_build=
23f6b2f9 7142for module in ${build_configdirs} ; do
5607edfd
PB
7143 if test -z "${no_recursion}" \
7144 && test -f ${build_subdir}/${module}/Makefile; then
7145 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7146 rm -f ${build_subdir}/${module}/Makefile
7147 fi
3e54529c 7148 extrasub_build="$extrasub_build
5607edfd
PB
7149/^@if build-$module\$/d
7150/^@endif build-$module\$/d
7151/^@if build-$module-$bootstrap_suffix\$/d
7152/^@endif build-$module-$bootstrap_suffix\$/d"
7153done
3e54529c 7154extrasub_host=
5607edfd 7155for module in ${configdirs} ; do
a6fbc1e2 7156 if test -z "${no_recursion}"; then
f063a9ed 7157 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7158 if test -f ${file}; then
7159 echo 1>&2 "*** removing ${file} to force reconfigure"
7160 rm -f ${file}
7161 fi
7162 done
5607edfd 7163 fi
9e1c8fc1
JJ
7164 case ${module},${bootstrap_fixincludes} in
7165 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7166 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7167 esac
3e54529c 7168 extrasub_host="$extrasub_host
5607edfd
PB
7169/^@if $module\$/d
7170/^@endif $module\$/d
9e1c8fc1
JJ
7171/^@if $module-$host_bootstrap_suffix\$/d
7172/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7173done
3e54529c 7174extrasub_target=
5607edfd
PB
7175for module in ${target_configdirs} ; do
7176 if test -z "${no_recursion}" \
7177 && test -f ${target_subdir}/${module}/Makefile; then
7178 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7179 rm -f ${target_subdir}/${module}/Makefile
7180 fi
00020c16
ILT
7181
7182 # We only bootstrap target libraries listed in bootstrap_target_libs.
7183 case $bootstrap_target_libs in
7184 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7185 *) target_bootstrap_suffix=no-bootstrap ;;
7186 esac
7187
3e54529c 7188 extrasub_target="$extrasub_target
5607edfd
PB
7189/^@if target-$module\$/d
7190/^@endif target-$module\$/d
00020c16
ILT
7191/^@if target-$module-$target_bootstrap_suffix\$/d
7192/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7193done
7194
3e54529c
RW
7195# Do the final fixup along with target modules.
7196extrasub_target="$extrasub_target
60975492 7197/^@if /,/^@endif /d"
671aa708
NN
7198
7199# Create the serialization dependencies. This uses a temporary file.
7200
5213506e
RW
7201# Check whether --enable-serial-configure was given.
7202if test "${enable_serial_configure+set}" = set; then :
7203 enableval=$enable_serial_configure;
7204fi
ade82b16
AO
7205
7206
bf1d3e81
NN
7207case ${enable_serial_configure} in
7208 yes)
7209 enable_serial_build_configure=yes
7210 enable_serial_host_configure=yes
7211 enable_serial_target_configure=yes
7212 ;;
7213esac
7214
671aa708
NN
7215# These force 'configure's to be done one at a time, to avoid problems
7216# with contention over a shared config.cache.
7217rm -f serdep.tmp
ade82b16 7218echo '# serdep.tmp' > serdep.tmp
671aa708 7219olditem=
bf1d3e81 7220test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7221for item in ${build_configdirs} ; do
7222 case ${olditem} in
7223 "") ;;
ade82b16 7224 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7225 esac
7226 olditem=${item}
7227done
7228olditem=
bf1d3e81 7229test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7230for item in ${configdirs} ; do
7231 case ${olditem} in
7232 "") ;;
ade82b16 7233 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7234 esac
7235 olditem=${item}
7236done
7237olditem=
bf1d3e81 7238test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7239for item in ${target_configdirs} ; do
7240 case ${olditem} in
7241 "") ;;
ade82b16 7242 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7243 esac
7244 olditem=${item}
7245done
7246serialization_dependencies=serdep.tmp
7247
7248
ade82b16 7249# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7250# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7251# might not want to pass down to subconfigures. The exception being
7252# --cache-file=/dev/null, which is used to turn off the use of cache
7253# files altogether, and which should be passed on to subconfigures.
7254# Also strip program-prefix, program-suffix, and program-transform-name,
7255# so that we can pass down a consistent program-transform-name.
1c710c3c 7256baseargs=
29a63921 7257tbaseargs=
1c710c3c
DJ
7258keep_next=no
7259skip_next=no
7260eval "set -- $ac_configure_args"
44bfc3ac
DJ
7261for ac_arg
7262do
1c710c3c
DJ
7263 if test X"$skip_next" = X"yes"; then
7264 skip_next=no
7265 continue
7266 fi
7267 if test X"$keep_next" = X"yes"; then
7268 case $ac_arg in
7269 *\'*)
7270 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7271 esac
7272 baseargs="$baseargs '$ac_arg'"
29a63921 7273 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7274 keep_next=no
7275 continue
7276 fi
7277
7278 # Handle separated arguments. Based on the logic generated by
7279 # autoconf 2.59.
7280 case $ac_arg in
7281 *=* | --config-cache | -C | -disable-* | --disable-* \
7282 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7283 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7284 | -with-* | --with-* | -without-* | --without-* | --x)
7285 separate_arg=no
7286 ;;
7287 -*)
7288 separate_arg=yes
7289 ;;
7290 *)
7291 separate_arg=no
7292 ;;
7293 esac
7294
29a63921
AO
7295 skip_targ=no
7296 case $ac_arg in
7297
7298 --with-* | --without-*)
7299 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7300
7301 case $libopt in
7302 *[-_]include)
7303 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7304 ;;
7305 *[-_]lib)
7306 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7307 ;;
7308 *)
7309 lib=$libopt
7310 ;;
7311 esac
7312
7313
7314 case $lib in
4a9bb2aa 7315 mpc | mpfr | gmp | isl)
29a63921
AO
7316 # If we're processing --with-$lib, --with-$lib-include or
7317 # --with-$lib-lib, for one of the libs above, and target is
7318 # different from host, don't pass the current argument to any
7319 # target library's configure.
7320 if test x$is_cross_compiler = xyes; then
7321 skip_targ=yes
7322 fi
7323 ;;
7324 esac
7325 ;;
7326 esac
7327
1c710c3c 7328 case "$ac_arg" in
f1a036e4
NC
7329 --cache-file=/dev/null | \
7330 -cache-file=/dev/null )
7331 # Handled here to avoid the test to skip args below.
7332 baseargs="$baseargs '$ac_arg'"
29a63921 7333 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7334 # Assert: $separate_arg should always be no.
7335 keep_next=$separate_arg
7336 ;;
1c710c3c
DJ
7337 --no*)
7338 continue
7339 ;;
7340 --c* | \
7341 --sr* | \
7342 --ho* | \
7343 --bu* | \
7344 --t* | \
7345 --program-* | \
7346 -cache_file* | \
7347 -srcdir* | \
7348 -host* | \
7349 -build* | \
7350 -target* | \
7351 -program-prefix* | \
7352 -program-suffix* | \
7353 -program-transform-name* )
7354 skip_next=$separate_arg
7355 continue
7356 ;;
7357 -*)
7358 # An option. Add it.
7359 case $ac_arg in
7360 *\'*)
7361 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7362 esac
7363 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7364 if test X"$skip_targ" = Xno; then
7365 tbaseargs="$tbaseargs '$ac_arg'"
7366 fi
1c710c3c
DJ
7367 keep_next=$separate_arg
7368 ;;
7369 *)
7370 # Either a variable assignment, or a nonopt (triplet). Don't
7371 # pass it down; let the Makefile handle this.
7372 continue
7373 ;;
7374 esac
7375done
7376# Remove the initial space we just introduced and, as these will be
7377# expanded by make, quote '$'.
7378baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7379
43bb47c2
DJ
7380# Add in --program-transform-name, after --program-prefix and
7381# --program-suffix have been applied to it. Autoconf has already
7382# doubled dollar signs and backslashes in program_transform_name; we want
7383# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7384# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7385# Also, because we want to override the logic in subdir configure scripts to
7386# choose program_transform_name, replace any s,x,x, with s,y,y,.
7387sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7388${program_transform_name}
7389EOF_SED
7390gcc_transform_name=`cat conftestsed.out`
7391rm -f conftestsed.out
7392baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7393tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7394if test "$silent" = yes; then
7395 baseargs="$baseargs --silent"
29a63921 7396 tbaseargs="$tbaseargs --silent"
d9acb717 7397fi
0115d4a3 7398baseargs="$baseargs --disable-option-checking"
29a63921 7399tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7400
ffedf511
RW
7401# Record and document user additions to sub configure arguments.
7402
7403
7404
7405
671aa708
NN
7406# For the build-side libraries, we just need to pretend we're native,
7407# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7408# desired. We can't even use the same cache file for all build-side
7409# libraries, as they're compiled differently; some with C, some with
7410# C++ or with different feature-enabling options.
7411build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7412
7413# For host modules, accept cache file option, or specification as blank.
7414case "${cache_file}" in
7415"") # empty
7416 cache_file_option="" ;;
7417/* | [A-Za-z]:[\\/]* ) # absolute path
7418 cache_file_option="--cache-file=${cache_file}" ;;
7419*) # relative path
7420 cache_file_option="--cache-file=../${cache_file}" ;;
7421esac
7422
09438bde
NN
7423# Host dirs don't like to share a cache file either, horribly enough.
7424# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7425host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7426
29a63921 7427target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7428
7429# Passing a --with-cross-host argument lets the target libraries know
7430# whether they are being built with a cross-compiler or being built
7431# native. However, it would be better to use other mechanisms to make the
7432# sorts of decisions they want to make on this basis. Please consider
7433# this option to be deprecated. FIXME.
7434if test x${is_cross_compiler} = xyes ; then
1c710c3c 7435 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7436fi
7437
79e0604d
FXC
7438# Special user-friendly check for native x86_64-linux build, if
7439# multilib is not explicitly enabled.
7440case "$target:$have_compiler:$host:$target:$enable_multilib" in
7441 x86_64-*linux*:yes:$build:$build:)
e640447c 7442 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7443 dev64=no
7444 echo "int main () { return 0; }" > conftest.c
7445 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7446 if test $? = 0 ; then
7447 if test -s conftest || test -s conftest.exe ; then
7448 dev64=yes
7449 fi
7450 fi
7451 rm -f conftest*
7452 if test x${dev64} != xyes ; then
e640447c 7453 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
7454 fi
7455 ;;
7456esac
7457
dc683a3f
RW
7458# Default to --enable-multilib.
7459if test x${enable_multilib} = x ; then
671aa708 7460 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7461fi
671aa708
NN
7462
7463# Pass --with-newlib if appropriate. Note that target_configdirs has
7464# changed from the earlier setting of with_newlib.
7465if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7466 target_configargs="--with-newlib ${target_configargs}"
7467fi
7468
6b9eb62c
NN
7469# Different target subdirs use different values of certain variables
7470# (notably CXX). Worse, multilibs use *lots* of different values.
7471# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7472# it doesn't automatically accept command-line overrides of them.
7473# This means it's not safe for target subdirs to share a cache file,
7474# which is disgusting, but there you have it. Hopefully this can be
7475# fixed in future. It's still worthwhile to use a cache file for each
7476# directory. I think.
7477
bebcd931
MS
7478# Pass the appropriate --build, --host, --target and --cache-file arguments.
7479# We need to pass --target, as newer autoconf's requires consistency
7480# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7481target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7482
671aa708
NN
7483FLAGS_FOR_TARGET=
7484case " $target_configdirs " in
7485 *" newlib "*)
7486 case " $target_configargs " in
7487 *" --with-newlib "*)
7488 case "$target" in
5d571eaa 7489 *-cygwin*)
443e6238 7490 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7491 ;;
671aa708
NN
7492 esac
7493
7494 # If we're not building GCC, don't discard standard headers.
7495 if test -d ${srcdir}/gcc; then
7496 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7497
7498 if test "${build}" != "${host}"; then
7499 # On Canadian crosses, CC_FOR_TARGET will have already been set
7500 # by `configure', so we won't have an opportunity to add -Bgcc/
7501 # to it. This is right: we don't want to search that directory
7502 # for binaries, but we want the header files in there, so add
7503 # them explicitly.
0463992b 7504 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7505
7506 # Someone might think of using the pre-installed headers on
7507 # Canadian crosses, in case the installed compiler is not fully
7508 # compatible with the compiler being built. In this case, it
7509 # would be better to flag an error than risking having
7510 # incompatible object files being constructed. We can't
7511 # guarantee that an error will be flagged, but let's hope the
7512 # compiler will do it, when presented with incompatible header
7513 # files.
7514 fi
7515 fi
7516
7517 case "${target}-${is_cross_compiler}" in
f2a0e225 7518 i[3456789]86-*-linux*-no)
671aa708
NN
7519 # Here host == target, so we don't need to build gcc,
7520 # so we don't want to discard standard headers.
7521 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7522 ;;
7523 *)
7524 # If we're building newlib, use its generic headers last, but search
7525 # for any libc-related directories first (so make it the last -B
7526 # switch).
7527 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
7528
7529 # If we're building libgloss, find the startup file, simulator library
7530 # and linker script.
7531 case " $target_configdirs " in
7532 *" libgloss "*)
7533 # Look for startup file, simulator library and maybe linker script.
7534 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7535 # Look for libnosys.a in case the target needs it.
7536 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7537 # Most targets have the linker script in the source directory.
7538 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7539 ;;
7540 esac
671aa708
NN
7541 ;;
7542 esac
7543 ;;
7544 esac
7545 ;;
7546esac
5d571eaa 7547
b91f0a41 7548case "$target" in
5d571eaa
OS
7549 x86_64-*mingw* | *-w64-mingw*)
7550 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7551 # however, use a symlink named 'mingw' in ${prefix} .
7552 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7553 ;;
7554 *-mingw*)
7555 # MinGW can't be handled as Cygwin above since it does not use newlib.
7556 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'
7557 ;;
b91f0a41 7558esac
671aa708 7559
6691a79e
ME
7560# Allow the user to override the flags for
7561# our build compiler if desired.
f019adc1
MF
7562if test x"${build}" = x"${host}" ; then
7563 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7564 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7565 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7566fi
6691a79e 7567
671aa708
NN
7568# On Canadian crosses, we'll be searching the right directories for
7569# the previously-installed cross compiler, so don't bother to add
7570# flags for directories within the install tree of the compiler
7571# being built; programs in there won't even run.
7572if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7573 # Search for pre-installed headers if nothing else fits.
9124bc53 7574 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
7575fi
7576
7577if test "x${use_gnu_ld}" = x &&
7578 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7579 # Arrange for us to find uninstalled linker scripts.
215c351a 7580 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7581fi
7582
e88a2c09
DD
7583# Search for other target-specific linker scripts and such.
7584case "${target}" in
3e19841a
PB
7585 mep*)
7586 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7587 ;;
e88a2c09
DD
7588esac
7589
671aa708 7590# Makefile fragments.
7b61653a
PE
7591for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7592do
7593 eval fragval=\$$frag
7594 if test $fragval != /dev/null; then
7595 eval $frag=${srcdir}/$fragval
7596 fi
7597done
671aa708
NN
7598
7599
7600
7601
7602
7603# Miscellanea: directories, flags, etc.
7604
7605
7606
7607
7608
7609
7610
d89f0ad6 7611
23f6b2f9 7612# Build module lists & subconfigure args.
671aa708
NN
7613
7614
7615
2abefe3d
PB
7616# Host module lists & subconfigure args.
7617
7618
7619
aae29963 7620
2abefe3d
PB
7621# Target module lists & subconfigure args.
7622
7623
7624
7625# Build tools.
7626
7627
7628
0999159b
PB
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
2abefe3d
PB
7642# Generate default definitions for YACC, M4, LEX and other programs that run
7643# on the build machine. These are used if the Makefile can't locate these
7644# programs in objdir.
7645MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7646
7647for ac_prog in 'bison -y' byacc yacc
7648do
1c710c3c 7649 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7650set dummy $ac_prog; ac_word=$2
5213506e
RW
7651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652$as_echo_n "checking for $ac_word... " >&6; }
7653if test "${ac_cv_prog_YACC+set}" = set; then :
7654 $as_echo_n "(cached) " >&6
2abefe3d
PB
7655else
7656 if test -n "$YACC"; then
7657 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7658else
1c710c3c
DJ
7659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7660for as_dir in $PATH
7661do
7662 IFS=$as_save_IFS
7663 test -z "$as_dir" && as_dir=.
5213506e
RW
7664 for ac_exec_ext in '' $ac_executable_extensions; do
7665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7666 ac_cv_prog_YACC="$ac_prog"
5213506e 7667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7668 break 2
7669 fi
7670done
5213506e
RW
7671 done
7672IFS=$as_save_IFS
1c710c3c 7673
2abefe3d
PB
7674fi
7675fi
1c710c3c 7676YACC=$ac_cv_prog_YACC
2abefe3d 7677if test -n "$YACC"; then
5213506e
RW
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7679$as_echo "$YACC" >&6; }
2abefe3d 7680else
5213506e
RW
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7682$as_echo "no" >&6; }
2abefe3d
PB
7683fi
7684
5213506e 7685
1c710c3c 7686 test -n "$YACC" && break
2abefe3d
PB
7687done
7688test -n "$YACC" || YACC="$MISSING bison -y"
7689
7690case " $build_configdirs " in
7691 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7692esac
7693
7694for ac_prog in bison
7695do
1c710c3c 7696 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7697set dummy $ac_prog; ac_word=$2
5213506e
RW
7698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7699$as_echo_n "checking for $ac_word... " >&6; }
7700if test "${ac_cv_prog_BISON+set}" = set; then :
7701 $as_echo_n "(cached) " >&6
2abefe3d
PB
7702else
7703 if test -n "$BISON"; then
7704 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7705else
1c710c3c
DJ
7706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7707for as_dir in $PATH
7708do
7709 IFS=$as_save_IFS
7710 test -z "$as_dir" && as_dir=.
5213506e
RW
7711 for ac_exec_ext in '' $ac_executable_extensions; do
7712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7713 ac_cv_prog_BISON="$ac_prog"
5213506e 7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7715 break 2
7716 fi
7717done
5213506e
RW
7718 done
7719IFS=$as_save_IFS
1c710c3c 7720
2abefe3d
PB
7721fi
7722fi
1c710c3c 7723BISON=$ac_cv_prog_BISON
2abefe3d 7724if test -n "$BISON"; then
5213506e
RW
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7726$as_echo "$BISON" >&6; }
2abefe3d 7727else
5213506e
RW
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729$as_echo "no" >&6; }
2abefe3d
PB
7730fi
7731
5213506e 7732
1c710c3c 7733 test -n "$BISON" && break
2abefe3d
PB
7734done
7735test -n "$BISON" || BISON="$MISSING bison"
7736
7737case " $build_configdirs " in
7738 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7739esac
7740
7741for ac_prog in gm4 gnum4 m4
7742do
1c710c3c 7743 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7744set dummy $ac_prog; ac_word=$2
5213506e
RW
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746$as_echo_n "checking for $ac_word... " >&6; }
7747if test "${ac_cv_prog_M4+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
2abefe3d
PB
7749else
7750 if test -n "$M4"; then
7751 ac_cv_prog_M4="$M4" # Let the user override the test.
7752else
1c710c3c
DJ
7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
5213506e
RW
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7760 ac_cv_prog_M4="$ac_prog"
5213506e 7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7762 break 2
7763 fi
7764done
5213506e
RW
7765 done
7766IFS=$as_save_IFS
1c710c3c 7767
2abefe3d
PB
7768fi
7769fi
1c710c3c 7770M4=$ac_cv_prog_M4
2abefe3d 7771if test -n "$M4"; then
5213506e
RW
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7773$as_echo "$M4" >&6; }
2abefe3d 7774else
5213506e
RW
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }
2abefe3d
PB
7777fi
7778
5213506e 7779
1c710c3c 7780 test -n "$M4" && break
2abefe3d
PB
7781done
7782test -n "$M4" || M4="$MISSING m4"
7783
7784case " $build_configdirs " in
7785 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7786esac
7787
7788for ac_prog in flex lex
7789do
1c710c3c 7790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7791set dummy $ac_prog; ac_word=$2
5213506e
RW
7792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793$as_echo_n "checking for $ac_word... " >&6; }
7794if test "${ac_cv_prog_LEX+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
2abefe3d
PB
7796else
7797 if test -n "$LEX"; then
7798 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7799else
1c710c3c
DJ
7800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801for as_dir in $PATH
7802do
7803 IFS=$as_save_IFS
7804 test -z "$as_dir" && as_dir=.
5213506e
RW
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7807 ac_cv_prog_LEX="$ac_prog"
5213506e 7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7809 break 2
7810 fi
7811done
5213506e
RW
7812 done
7813IFS=$as_save_IFS
1c710c3c 7814
2abefe3d
PB
7815fi
7816fi
1c710c3c 7817LEX=$ac_cv_prog_LEX
2abefe3d 7818if test -n "$LEX"; then
5213506e
RW
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7820$as_echo "$LEX" >&6; }
2abefe3d 7821else
5213506e
RW
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823$as_echo "no" >&6; }
2abefe3d
PB
7824fi
7825
5213506e 7826
1c710c3c 7827 test -n "$LEX" && break
2abefe3d
PB
7828done
7829test -n "$LEX" || LEX="$MISSING flex"
7830
7831case " $build_configdirs " in
7832 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7833 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7834esac
7835
7836for ac_prog in flex
7837do
1c710c3c 7838 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7839set dummy $ac_prog; ac_word=$2
5213506e
RW
7840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7841$as_echo_n "checking for $ac_word... " >&6; }
7842if test "${ac_cv_prog_FLEX+set}" = set; then :
7843 $as_echo_n "(cached) " >&6
2abefe3d
PB
7844else
7845 if test -n "$FLEX"; then
7846 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7847else
1c710c3c
DJ
7848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
5213506e
RW
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7855 ac_cv_prog_FLEX="$ac_prog"
5213506e 7856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7857 break 2
7858 fi
7859done
5213506e
RW
7860 done
7861IFS=$as_save_IFS
1c710c3c 7862
2abefe3d
PB
7863fi
7864fi
1c710c3c 7865FLEX=$ac_cv_prog_FLEX
2abefe3d 7866if test -n "$FLEX"; then
5213506e
RW
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7868$as_echo "$FLEX" >&6; }
2abefe3d 7869else
5213506e
RW
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871$as_echo "no" >&6; }
2abefe3d
PB
7872fi
7873
5213506e 7874
1c710c3c 7875 test -n "$FLEX" && break
2abefe3d
PB
7876done
7877test -n "$FLEX" || FLEX="$MISSING flex"
7878
7879case " $build_configdirs " in
7880 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7881esac
7882
7883for ac_prog in makeinfo
7884do
1c710c3c 7885 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7886set dummy $ac_prog; ac_word=$2
5213506e
RW
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7888$as_echo_n "checking for $ac_word... " >&6; }
7889if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
2abefe3d
PB
7891else
7892 if test -n "$MAKEINFO"; then
7893 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7894else
1c710c3c
DJ
7895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896for as_dir in $PATH
7897do
7898 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=.
5213506e
RW
7900 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7902 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7904 break 2
7905 fi
7906done
5213506e
RW
7907 done
7908IFS=$as_save_IFS
1c710c3c 7909
2abefe3d
PB
7910fi
7911fi
1c710c3c 7912MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7913if test -n "$MAKEINFO"; then
5213506e
RW
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7915$as_echo "$MAKEINFO" >&6; }
2abefe3d 7916else
5213506e
RW
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918$as_echo "no" >&6; }
2abefe3d
PB
7919fi
7920
5213506e 7921
1c710c3c 7922 test -n "$MAKEINFO" && break
2abefe3d
PB
7923done
7924test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7925
7926case " $build_configdirs " in
7927 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7928 *)
7929
d18ff35a 7930 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7931 # higher, else we use the "missing" dummy.
7932 if ${MAKEINFO} --version \
d18ff35a 7933 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7934 :
7935 else
7936 MAKEINFO="$MISSING makeinfo"
7937 fi
7938 ;;
7939
7940esac
671aa708 7941
2abefe3d 7942# FIXME: expect and dejagnu may become build tools?
671aa708 7943
2abefe3d
PB
7944for ac_prog in expect
7945do
1c710c3c 7946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7947set dummy $ac_prog; ac_word=$2
5213506e
RW
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949$as_echo_n "checking for $ac_word... " >&6; }
7950if test "${ac_cv_prog_EXPECT+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
2abefe3d
PB
7952else
7953 if test -n "$EXPECT"; then
7954 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7955else
1c710c3c
DJ
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
5213506e
RW
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7963 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7965 break 2
7966 fi
7967done
5213506e
RW
7968 done
7969IFS=$as_save_IFS
1c710c3c 7970
2abefe3d
PB
7971fi
7972fi
1c710c3c 7973EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7974if test -n "$EXPECT"; then
5213506e
RW
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7976$as_echo "$EXPECT" >&6; }
2abefe3d 7977else
5213506e
RW
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
2abefe3d 7980fi
671aa708 7981
5213506e 7982
1c710c3c 7983 test -n "$EXPECT" && break
2abefe3d
PB
7984done
7985test -n "$EXPECT" || EXPECT="expect"
671aa708 7986
2abefe3d
PB
7987case " $configdirs " in
7988 *" expect "*)
7989 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7990 ;;
7991esac
671aa708 7992
2abefe3d
PB
7993for ac_prog in runtest
7994do
1c710c3c 7995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7996set dummy $ac_prog; ac_word=$2
5213506e
RW
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998$as_echo_n "checking for $ac_word... " >&6; }
7999if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
2abefe3d
PB
8001else
8002 if test -n "$RUNTEST"; then
8003 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 8004else
1c710c3c
DJ
8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
5213506e
RW
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8012 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8014 break 2
8015 fi
8016done
5213506e
RW
8017 done
8018IFS=$as_save_IFS
1c710c3c 8019
2abefe3d
PB
8020fi
8021fi
1c710c3c 8022RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8023if test -n "$RUNTEST"; then
5213506e
RW
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8025$as_echo "$RUNTEST" >&6; }
2abefe3d 8026else
5213506e
RW
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028$as_echo "no" >&6; }
2abefe3d 8029fi
671aa708 8030
5213506e 8031
1c710c3c 8032 test -n "$RUNTEST" && break
2abefe3d
PB
8033done
8034test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8035
2abefe3d
PB
8036case " $configdirs " in
8037 *" dejagnu "*)
c394e891 8038 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8039 ;;
8040esac
671aa708
NN
8041
8042
671aa708 8043# Host tools.
ca9f4b81
AO
8044ncn_tool_prefix=
8045test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8046ncn_target_tool_prefix=
8047test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8048
278a7a38
AO
8049
8050
8051if test -n "$AR"; then
8052 ac_cv_prog_AR=$AR
8053elif test -n "$ac_cv_prog_AR"; then
8054 AR=$ac_cv_prog_AR
8055fi
8056
8057if test -n "$ac_cv_prog_AR"; then
8058 for ncn_progname in ar; do
8059 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8060set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062$as_echo_n "checking for $ac_word... " >&6; }
8063if test "${ac_cv_prog_AR+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
278a7a38
AO
8065else
8066 if test -n "$AR"; then
8067 ac_cv_prog_AR="$AR" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
5213506e
RW
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8076 ac_cv_prog_AR="${ncn_progname}"
5213506e 8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8078 break 2
8079 fi
8080done
5213506e
RW
8081 done
8082IFS=$as_save_IFS
278a7a38
AO
8083
8084fi
8085fi
8086AR=$ac_cv_prog_AR
8087if test -n "$AR"; then
5213506e
RW
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8089$as_echo "$AR" >&6; }
278a7a38 8090else
5213506e
RW
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092$as_echo "no" >&6; }
278a7a38
AO
8093fi
8094
5213506e 8095
278a7a38
AO
8096 done
8097fi
8098
8099for ncn_progname in ar; do
2693c0b0
PB
8100 if test -n "$ncn_tool_prefix"; then
8101 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8102set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104$as_echo_n "checking for $ac_word... " >&6; }
8105if test "${ac_cv_prog_AR+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8107else
8108 if test -n "$AR"; then
8109 ac_cv_prog_AR="$AR" # Let the user override the test.
8110else
1c710c3c
DJ
8111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8112for as_dir in $PATH
8113do
8114 IFS=$as_save_IFS
8115 test -z "$as_dir" && as_dir=.
5213506e
RW
8116 for ac_exec_ext in '' $ac_executable_extensions; do
8117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8118 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8120 break 2
8121 fi
8122done
5213506e
RW
8123 done
8124IFS=$as_save_IFS
1c710c3c 8125
ca9f4b81
AO
8126fi
8127fi
1c710c3c 8128AR=$ac_cv_prog_AR
ca9f4b81 8129if test -n "$AR"; then
5213506e
RW
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8131$as_echo "$AR" >&6; }
ca9f4b81 8132else
5213506e
RW
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134$as_echo "no" >&6; }
ca9f4b81
AO
8135fi
8136
5213506e 8137
2693c0b0
PB
8138 fi
8139 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8141set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143$as_echo_n "checking for $ac_word... " >&6; }
8144if test "${ac_cv_prog_AR+set}" = set; then :
8145 $as_echo_n "(cached) " >&6
ca9f4b81 8146else
2693c0b0 8147 if test -n "$AR"; then
af71363e
AS
8148 ac_cv_prog_AR="$AR" # Let the user override the test.
8149else
1c710c3c
DJ
8150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151for as_dir in $PATH
8152do
8153 IFS=$as_save_IFS
8154 test -z "$as_dir" && as_dir=.
5213506e
RW
8155 for ac_exec_ext in '' $ac_executable_extensions; do
8156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8157 ac_cv_prog_AR="${ncn_progname}"
5213506e 8158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8159 break 2
8160 fi
8161done
5213506e
RW
8162 done
8163IFS=$as_save_IFS
1c710c3c 8164
ca9f4b81
AO
8165fi
8166fi
1c710c3c 8167AR=$ac_cv_prog_AR
2693c0b0 8168if test -n "$AR"; then
5213506e
RW
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8170$as_echo "$AR" >&6; }
ca9f4b81 8171else
5213506e
RW
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173$as_echo "no" >&6; }
ca9f4b81 8174fi
1c710c3c 8175
5213506e 8176
2693c0b0
PB
8177 fi
8178 test -n "$ac_cv_prog_AR" && break
8179done
8180
8181if test -z "$ac_cv_prog_AR" ; then
8182 set dummy ar
8183 if test $build = $host ; then
8184 AR="$2"
ca9f4b81 8185 else
2693c0b0 8186 AR="${ncn_tool_prefix}$2"
ca9f4b81 8187 fi
ca9f4b81
AO
8188fi
8189
278a7a38
AO
8190
8191
8192if test -n "$AS"; then
8193 ac_cv_prog_AS=$AS
8194elif test -n "$ac_cv_prog_AS"; then
8195 AS=$ac_cv_prog_AS
8196fi
8197
8198if test -n "$ac_cv_prog_AS"; then
8199 for ncn_progname in as; do
8200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8201set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203$as_echo_n "checking for $ac_word... " >&6; }
8204if test "${ac_cv_prog_AS+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
278a7a38
AO
8206else
8207 if test -n "$AS"; then
8208 ac_cv_prog_AS="$AS" # Let the user override the test.
8209else
8210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211for as_dir in $PATH
8212do
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
5213506e
RW
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8217 ac_cv_prog_AS="${ncn_progname}"
5213506e 8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8219 break 2
8220 fi
8221done
5213506e
RW
8222 done
8223IFS=$as_save_IFS
278a7a38
AO
8224
8225fi
8226fi
8227AS=$ac_cv_prog_AS
8228if test -n "$AS"; then
5213506e
RW
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8230$as_echo "$AS" >&6; }
278a7a38 8231else
5213506e
RW
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233$as_echo "no" >&6; }
278a7a38
AO
8234fi
8235
5213506e 8236
278a7a38
AO
8237 done
8238fi
8239
8240for ncn_progname in as; do
2693c0b0
PB
8241 if test -n "$ncn_tool_prefix"; then
8242 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8243set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245$as_echo_n "checking for $ac_word... " >&6; }
8246if test "${ac_cv_prog_AS+set}" = set; then :
8247 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8248else
8249 if test -n "$AS"; then
8250 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8251else
1c710c3c
DJ
8252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253for as_dir in $PATH
8254do
8255 IFS=$as_save_IFS
8256 test -z "$as_dir" && as_dir=.
5213506e
RW
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8259 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8261 break 2
8262 fi
8263done
5213506e
RW
8264 done
8265IFS=$as_save_IFS
1c710c3c 8266
ca9f4b81
AO
8267fi
8268fi
1c710c3c 8269AS=$ac_cv_prog_AS
ca9f4b81 8270if test -n "$AS"; then
5213506e
RW
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8272$as_echo "$AS" >&6; }
ca9f4b81 8273else
5213506e
RW
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8275$as_echo "no" >&6; }
ca9f4b81
AO
8276fi
8277
5213506e 8278
2693c0b0
PB
8279 fi
8280 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8281 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8282set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8284$as_echo_n "checking for $ac_word... " >&6; }
8285if test "${ac_cv_prog_AS+set}" = set; then :
8286 $as_echo_n "(cached) " >&6
ca9f4b81 8287else
2693c0b0
PB
8288 if test -n "$AS"; then
8289 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8290else
1c710c3c
DJ
8291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8292for as_dir in $PATH
8293do
8294 IFS=$as_save_IFS
8295 test -z "$as_dir" && as_dir=.
5213506e
RW
8296 for ac_exec_ext in '' $ac_executable_extensions; do
8297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8298 ac_cv_prog_AS="${ncn_progname}"
5213506e 8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8300 break 2
8301 fi
8302done
5213506e
RW
8303 done
8304IFS=$as_save_IFS
1c710c3c 8305
ca9f4b81
AO
8306fi
8307fi
1c710c3c 8308AS=$ac_cv_prog_AS
2693c0b0 8309if test -n "$AS"; then
5213506e
RW
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8311$as_echo "$AS" >&6; }
ca9f4b81 8312else
5213506e
RW
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314$as_echo "no" >&6; }
ca9f4b81 8315fi
1c710c3c 8316
5213506e 8317
2693c0b0
PB
8318 fi
8319 test -n "$ac_cv_prog_AS" && break
8320done
8321
8322if test -z "$ac_cv_prog_AS" ; then
8323 set dummy as
8324 if test $build = $host ; then
8325 AS="$2"
ca9f4b81 8326 else
2693c0b0 8327 AS="${ncn_tool_prefix}$2"
ca9f4b81 8328 fi
ca9f4b81
AO
8329fi
8330
278a7a38
AO
8331
8332
8333if test -n "$DLLTOOL"; then
8334 ac_cv_prog_DLLTOOL=$DLLTOOL
8335elif test -n "$ac_cv_prog_DLLTOOL"; then
8336 DLLTOOL=$ac_cv_prog_DLLTOOL
8337fi
8338
8339if test -n "$ac_cv_prog_DLLTOOL"; then
8340 for ncn_progname in dlltool; do
8341 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8342set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344$as_echo_n "checking for $ac_word... " >&6; }
8345if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8346 $as_echo_n "(cached) " >&6
278a7a38
AO
8347else
8348 if test -n "$DLLTOOL"; then
8349 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8350else
8351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352for as_dir in $PATH
8353do
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
5213506e
RW
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8358 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8360 break 2
8361 fi
8362done
5213506e
RW
8363 done
8364IFS=$as_save_IFS
278a7a38
AO
8365
8366fi
8367fi
8368DLLTOOL=$ac_cv_prog_DLLTOOL
8369if test -n "$DLLTOOL"; then
5213506e
RW
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8371$as_echo "$DLLTOOL" >&6; }
278a7a38 8372else
5213506e
RW
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374$as_echo "no" >&6; }
278a7a38
AO
8375fi
8376
5213506e 8377
278a7a38
AO
8378 done
8379fi
8380
8381for ncn_progname in dlltool; do
2693c0b0
PB
8382 if test -n "$ncn_tool_prefix"; then
8383 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8384set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8386$as_echo_n "checking for $ac_word... " >&6; }
8387if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8388 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8389else
8390 if test -n "$DLLTOOL"; then
8391 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8392else
1c710c3c
DJ
8393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8394for as_dir in $PATH
8395do
8396 IFS=$as_save_IFS
8397 test -z "$as_dir" && as_dir=.
5213506e
RW
8398 for ac_exec_ext in '' $ac_executable_extensions; do
8399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8400 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8402 break 2
8403 fi
8404done
5213506e
RW
8405 done
8406IFS=$as_save_IFS
1c710c3c 8407
ca9f4b81
AO
8408fi
8409fi
1c710c3c 8410DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8411if test -n "$DLLTOOL"; then
5213506e
RW
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8413$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8414else
5213506e
RW
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8416$as_echo "no" >&6; }
ca9f4b81
AO
8417fi
8418
5213506e 8419
2693c0b0
PB
8420 fi
8421 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8423set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425$as_echo_n "checking for $ac_word... " >&6; }
8426if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8427 $as_echo_n "(cached) " >&6
ca9f4b81 8428else
2693c0b0
PB
8429 if test -n "$DLLTOOL"; then
8430 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8431else
1c710c3c
DJ
8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433for as_dir in $PATH
8434do
8435 IFS=$as_save_IFS
8436 test -z "$as_dir" && as_dir=.
5213506e
RW
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8439 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8441 break 2
8442 fi
8443done
5213506e
RW
8444 done
8445IFS=$as_save_IFS
1c710c3c 8446
ca9f4b81
AO
8447fi
8448fi
1c710c3c 8449DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8450if test -n "$DLLTOOL"; then
5213506e
RW
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8452$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8453else
5213506e
RW
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
ca9f4b81 8456fi
1c710c3c 8457
5213506e 8458
2693c0b0
PB
8459 fi
8460 test -n "$ac_cv_prog_DLLTOOL" && break
8461done
8462
8463if test -z "$ac_cv_prog_DLLTOOL" ; then
8464 set dummy dlltool
8465 if test $build = $host ; then
8466 DLLTOOL="$2"
ca9f4b81 8467 else
2693c0b0 8468 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8469 fi
ca9f4b81
AO
8470fi
8471
278a7a38
AO
8472
8473
8474if test -n "$LD"; then
8475 ac_cv_prog_LD=$LD
8476elif test -n "$ac_cv_prog_LD"; then
8477 LD=$ac_cv_prog_LD
8478fi
8479
8480if test -n "$ac_cv_prog_LD"; then
8481 for ncn_progname in ld; do
8482 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8483set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485$as_echo_n "checking for $ac_word... " >&6; }
8486if test "${ac_cv_prog_LD+set}" = set; then :
8487 $as_echo_n "(cached) " >&6
278a7a38
AO
8488else
8489 if test -n "$LD"; then
8490 ac_cv_prog_LD="$LD" # Let the user override the test.
8491else
8492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493for as_dir in $PATH
8494do
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
5213506e
RW
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8499 ac_cv_prog_LD="${ncn_progname}"
5213506e 8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8501 break 2
8502 fi
8503done
5213506e
RW
8504 done
8505IFS=$as_save_IFS
278a7a38
AO
8506
8507fi
8508fi
8509LD=$ac_cv_prog_LD
8510if test -n "$LD"; then
5213506e
RW
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8512$as_echo "$LD" >&6; }
278a7a38 8513else
5213506e
RW
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515$as_echo "no" >&6; }
278a7a38
AO
8516fi
8517
5213506e 8518
278a7a38
AO
8519 done
8520fi
8521
8522for ncn_progname in ld; do
2693c0b0
PB
8523 if test -n "$ncn_tool_prefix"; then
8524 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8525set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8527$as_echo_n "checking for $ac_word... " >&6; }
8528if test "${ac_cv_prog_LD+set}" = set; then :
8529 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8530else
8531 if test -n "$LD"; then
8532 ac_cv_prog_LD="$LD" # Let the user override the test.
8533else
1c710c3c
DJ
8534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535for as_dir in $PATH
8536do
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
5213506e
RW
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8541 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8543 break 2
8544 fi
8545done
5213506e
RW
8546 done
8547IFS=$as_save_IFS
1c710c3c 8548
ca9f4b81
AO
8549fi
8550fi
1c710c3c 8551LD=$ac_cv_prog_LD
ca9f4b81 8552if test -n "$LD"; then
5213506e
RW
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8554$as_echo "$LD" >&6; }
ca9f4b81 8555else
5213506e
RW
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557$as_echo "no" >&6; }
ca9f4b81
AO
8558fi
8559
5213506e 8560
2693c0b0
PB
8561 fi
8562 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8564set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566$as_echo_n "checking for $ac_word... " >&6; }
8567if test "${ac_cv_prog_LD+set}" = set; then :
8568 $as_echo_n "(cached) " >&6
ca9f4b81 8569else
2693c0b0
PB
8570 if test -n "$LD"; then
8571 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8572else
1c710c3c
DJ
8573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574for as_dir in $PATH
8575do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
5213506e
RW
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8580 ac_cv_prog_LD="${ncn_progname}"
5213506e 8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8582 break 2
8583 fi
8584done
5213506e
RW
8585 done
8586IFS=$as_save_IFS
1c710c3c 8587
ca9f4b81
AO
8588fi
8589fi
1c710c3c 8590LD=$ac_cv_prog_LD
2693c0b0 8591if test -n "$LD"; then
5213506e
RW
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8593$as_echo "$LD" >&6; }
ca9f4b81 8594else
5213506e
RW
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
ca9f4b81 8597fi
1c710c3c 8598
5213506e 8599
2693c0b0
PB
8600 fi
8601 test -n "$ac_cv_prog_LD" && break
8602done
8603
8604if test -z "$ac_cv_prog_LD" ; then
8605 set dummy ld
8606 if test $build = $host ; then
8607 LD="$2"
ca9f4b81 8608 else
2693c0b0 8609 LD="${ncn_tool_prefix}$2"
ca9f4b81 8610 fi
ca9f4b81
AO
8611fi
8612
278a7a38
AO
8613
8614
8615if test -n "$LIPO"; then
8616 ac_cv_prog_LIPO=$LIPO
8617elif test -n "$ac_cv_prog_LIPO"; then
8618 LIPO=$ac_cv_prog_LIPO
8619fi
8620
8621if test -n "$ac_cv_prog_LIPO"; then
8622 for ncn_progname in lipo; do
8623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8624set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8626$as_echo_n "checking for $ac_word... " >&6; }
8627if test "${ac_cv_prog_LIPO+set}" = set; then :
8628 $as_echo_n "(cached) " >&6
278a7a38
AO
8629else
8630 if test -n "$LIPO"; then
8631 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8632else
8633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8634for as_dir in $PATH
8635do
8636 IFS=$as_save_IFS
8637 test -z "$as_dir" && as_dir=.
5213506e
RW
8638 for ac_exec_ext in '' $ac_executable_extensions; do
8639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8640 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8642 break 2
8643 fi
8644done
5213506e
RW
8645 done
8646IFS=$as_save_IFS
278a7a38
AO
8647
8648fi
8649fi
8650LIPO=$ac_cv_prog_LIPO
8651if test -n "$LIPO"; then
5213506e
RW
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8653$as_echo "$LIPO" >&6; }
278a7a38 8654else
5213506e
RW
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8656$as_echo "no" >&6; }
278a7a38
AO
8657fi
8658
5213506e 8659
278a7a38
AO
8660 done
8661fi
8662
8663for ncn_progname in lipo; do
2abefe3d
PB
8664 if test -n "$ncn_tool_prefix"; then
8665 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8666set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668$as_echo_n "checking for $ac_word... " >&6; }
8669if test "${ac_cv_prog_LIPO+set}" = set; then :
8670 $as_echo_n "(cached) " >&6
2abefe3d
PB
8671else
8672 if test -n "$LIPO"; then
8673 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8674else
1c710c3c
DJ
8675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676for as_dir in $PATH
8677do
8678 IFS=$as_save_IFS
8679 test -z "$as_dir" && as_dir=.
5213506e
RW
8680 for ac_exec_ext in '' $ac_executable_extensions; do
8681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8682 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8684 break 2
8685 fi
8686done
5213506e
RW
8687 done
8688IFS=$as_save_IFS
1c710c3c 8689
2abefe3d
PB
8690fi
8691fi
1c710c3c 8692LIPO=$ac_cv_prog_LIPO
2abefe3d 8693if test -n "$LIPO"; then
5213506e
RW
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8695$as_echo "$LIPO" >&6; }
2abefe3d 8696else
5213506e
RW
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698$as_echo "no" >&6; }
2abefe3d
PB
8699fi
8700
5213506e 8701
2abefe3d
PB
8702 fi
8703 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8705set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707$as_echo_n "checking for $ac_word... " >&6; }
8708if test "${ac_cv_prog_LIPO+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
2abefe3d
PB
8710else
8711 if test -n "$LIPO"; then
8712 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8713else
1c710c3c
DJ
8714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715for as_dir in $PATH
8716do
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
5213506e
RW
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8721 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8723 break 2
8724 fi
8725done
5213506e
RW
8726 done
8727IFS=$as_save_IFS
1c710c3c 8728
2abefe3d
PB
8729fi
8730fi
1c710c3c 8731LIPO=$ac_cv_prog_LIPO
2abefe3d 8732if test -n "$LIPO"; then
5213506e
RW
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8734$as_echo "$LIPO" >&6; }
2abefe3d 8735else
5213506e
RW
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737$as_echo "no" >&6; }
2abefe3d 8738fi
1c710c3c 8739
5213506e 8740
2abefe3d
PB
8741 fi
8742 test -n "$ac_cv_prog_LIPO" && break
8743done
8744
8745if test -z "$ac_cv_prog_LIPO" ; then
8746 set dummy lipo
8747 if test $build = $host ; then
8748 LIPO="$2"
8749 else
8750 LIPO="${ncn_tool_prefix}$2"
8751 fi
8752fi
8753
278a7a38
AO
8754
8755
8756if test -n "$NM"; then
8757 ac_cv_prog_NM=$NM
8758elif test -n "$ac_cv_prog_NM"; then
8759 NM=$ac_cv_prog_NM
8760fi
8761
8762if test -n "$ac_cv_prog_NM"; then
8763 for ncn_progname in nm; do
8764 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8765set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767$as_echo_n "checking for $ac_word... " >&6; }
8768if test "${ac_cv_prog_NM+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8770else
8771 if test -n "$NM"; then
8772 ac_cv_prog_NM="$NM" # Let the user override the test.
8773else
1c710c3c
DJ
8774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775for as_dir in $PATH
8776do
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
5213506e
RW
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8781 ac_cv_prog_NM="${ncn_progname}"
5213506e 8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8783 break 2
8784 fi
8785done
5213506e
RW
8786 done
8787IFS=$as_save_IFS
1c710c3c 8788
ca9f4b81
AO
8789fi
8790fi
1c710c3c 8791NM=$ac_cv_prog_NM
ca9f4b81 8792if test -n "$NM"; then
5213506e
RW
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8794$as_echo "$NM" >&6; }
ca9f4b81 8795else
5213506e
RW
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797$as_echo "no" >&6; }
ca9f4b81
AO
8798fi
8799
5213506e 8800
278a7a38
AO
8801 done
8802fi
8803
8804for ncn_progname in nm; do
8805 if test -n "$ncn_tool_prefix"; then
8806 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8807set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809$as_echo_n "checking for $ac_word... " >&6; }
8810if test "${ac_cv_prog_NM+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
ca9f4b81 8812else
2693c0b0
PB
8813 if test -n "$NM"; then
8814 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8815else
1c710c3c
DJ
8816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817for as_dir in $PATH
8818do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
5213506e
RW
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8823 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8825 break 2
8826 fi
8827done
5213506e
RW
8828 done
8829IFS=$as_save_IFS
1c710c3c 8830
ca9f4b81
AO
8831fi
8832fi
1c710c3c 8833NM=$ac_cv_prog_NM
2693c0b0 8834if test -n "$NM"; then
5213506e
RW
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8836$as_echo "$NM" >&6; }
ca9f4b81 8837else
5213506e
RW
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839$as_echo "no" >&6; }
ca9f4b81 8840fi
1c710c3c 8841
5213506e 8842
2693c0b0 8843 fi
278a7a38
AO
8844 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8846set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8848$as_echo_n "checking for $ac_word... " >&6; }
8849if test "${ac_cv_prog_NM+set}" = set; then :
8850 $as_echo_n "(cached) " >&6
278a7a38
AO
8851else
8852 if test -n "$NM"; then
8853 ac_cv_prog_NM="$NM" # Let the user override the test.
8854else
8855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856for as_dir in $PATH
8857do
8858 IFS=$as_save_IFS
8859 test -z "$as_dir" && as_dir=.
5213506e
RW
8860 for ac_exec_ext in '' $ac_executable_extensions; do
8861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8862 ac_cv_prog_NM="${ncn_progname}"
5213506e 8863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8864 break 2
8865 fi
8866done
5213506e
RW
8867 done
8868IFS=$as_save_IFS
278a7a38
AO
8869
8870fi
8871fi
8872NM=$ac_cv_prog_NM
8873if test -n "$NM"; then
5213506e
RW
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8875$as_echo "$NM" >&6; }
278a7a38 8876else
5213506e
RW
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8878$as_echo "no" >&6; }
278a7a38
AO
8879fi
8880
5213506e 8881
278a7a38
AO
8882 fi
8883 test -n "$ac_cv_prog_NM" && break
8884done
8885
8886if test -z "$ac_cv_prog_NM" ; then
8887 set dummy nm
8888 if test $build = $host ; then
8889 NM="$2"
8890 else
8891 NM="${ncn_tool_prefix}$2"
8892 fi
8893fi
8894
8895
8896
8897if test -n "$RANLIB"; then
8898 ac_cv_prog_RANLIB=$RANLIB
8899elif test -n "$ac_cv_prog_RANLIB"; then
8900 RANLIB=$ac_cv_prog_RANLIB
8901fi
8902
8903if test -n "$ac_cv_prog_RANLIB"; then
8904 for ncn_progname in ranlib; do
8905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8906set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908$as_echo_n "checking for $ac_word... " >&6; }
8909if test "${ac_cv_prog_RANLIB+set}" = set; then :
8910 $as_echo_n "(cached) " >&6
278a7a38
AO
8911else
8912 if test -n "$RANLIB"; then
8913 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8914else
8915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916for as_dir in $PATH
8917do
8918 IFS=$as_save_IFS
8919 test -z "$as_dir" && as_dir=.
5213506e
RW
8920 for ac_exec_ext in '' $ac_executable_extensions; do
8921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8922 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8924 break 2
8925 fi
8926done
5213506e
RW
8927 done
8928IFS=$as_save_IFS
278a7a38
AO
8929
8930fi
8931fi
8932RANLIB=$ac_cv_prog_RANLIB
8933if test -n "$RANLIB"; then
5213506e
RW
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8935$as_echo "$RANLIB" >&6; }
278a7a38 8936else
5213506e
RW
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938$as_echo "no" >&6; }
278a7a38
AO
8939fi
8940
5213506e 8941
278a7a38
AO
8942 done
8943fi
ca9f4b81 8944
278a7a38 8945for ncn_progname in ranlib; do
2693c0b0
PB
8946 if test -n "$ncn_tool_prefix"; then
8947 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8948set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950$as_echo_n "checking for $ac_word... " >&6; }
8951if test "${ac_cv_prog_RANLIB+set}" = set; then :
8952 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8953else
8954 if test -n "$RANLIB"; then
8955 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8956else
1c710c3c
DJ
8957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958for as_dir in $PATH
8959do
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
5213506e
RW
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8964 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8966 break 2
8967 fi
8968done
5213506e
RW
8969 done
8970IFS=$as_save_IFS
1c710c3c 8971
ca9f4b81
AO
8972fi
8973fi
1c710c3c 8974RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8975if test -n "$RANLIB"; then
5213506e
RW
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8977$as_echo "$RANLIB" >&6; }
ca9f4b81 8978else
5213506e
RW
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980$as_echo "no" >&6; }
ca9f4b81
AO
8981fi
8982
5213506e 8983
2693c0b0
PB
8984 fi
8985 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8987set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989$as_echo_n "checking for $ac_word... " >&6; }
8990if test "${ac_cv_prog_RANLIB+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
ca9f4b81 8992else
2693c0b0
PB
8993 if test -n "$RANLIB"; then
8994 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8995else
1c710c3c
DJ
8996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997for as_dir in $PATH
8998do
8999 IFS=$as_save_IFS
9000 test -z "$as_dir" && as_dir=.
5213506e
RW
9001 for ac_exec_ext in '' $ac_executable_extensions; do
9002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9003 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9005 break 2
9006 fi
9007done
5213506e
RW
9008 done
9009IFS=$as_save_IFS
1c710c3c 9010
ca9f4b81
AO
9011fi
9012fi
1c710c3c 9013RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9014if test -n "$RANLIB"; then
5213506e
RW
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9016$as_echo "$RANLIB" >&6; }
ca9f4b81 9017else
5213506e
RW
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019$as_echo "no" >&6; }
ca9f4b81 9020fi
1c710c3c 9021
5213506e 9022
ca9f4b81 9023 fi
2693c0b0
PB
9024 test -n "$ac_cv_prog_RANLIB" && break
9025done
9026
9027if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9028 RANLIB="true"
ca9f4b81
AO
9029fi
9030
278a7a38
AO
9031
9032
9033if test -n "$STRIP"; then
9034 ac_cv_prog_STRIP=$STRIP
9035elif test -n "$ac_cv_prog_STRIP"; then
9036 STRIP=$ac_cv_prog_STRIP
9037fi
9038
9039if test -n "$ac_cv_prog_STRIP"; then
9040 for ncn_progname in strip; do
9041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9042set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044$as_echo_n "checking for $ac_word... " >&6; }
9045if test "${ac_cv_prog_STRIP+set}" = set; then :
9046 $as_echo_n "(cached) " >&6
278a7a38
AO
9047else
9048 if test -n "$STRIP"; then
9049 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9050else
9051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9052for as_dir in $PATH
9053do
9054 IFS=$as_save_IFS
9055 test -z "$as_dir" && as_dir=.
5213506e
RW
9056 for ac_exec_ext in '' $ac_executable_extensions; do
9057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9058 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9060 break 2
9061 fi
9062done
5213506e
RW
9063 done
9064IFS=$as_save_IFS
278a7a38
AO
9065
9066fi
9067fi
9068STRIP=$ac_cv_prog_STRIP
9069if test -n "$STRIP"; then
5213506e
RW
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9071$as_echo "$STRIP" >&6; }
278a7a38 9072else
5213506e
RW
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074$as_echo "no" >&6; }
278a7a38
AO
9075fi
9076
5213506e 9077
278a7a38
AO
9078 done
9079fi
9080
9081for ncn_progname in strip; do
2abefe3d
PB
9082 if test -n "$ncn_tool_prefix"; then
9083 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9084set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086$as_echo_n "checking for $ac_word... " >&6; }
9087if test "${ac_cv_prog_STRIP+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
2abefe3d
PB
9089else
9090 if test -n "$STRIP"; then
9091 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9092else
1c710c3c
DJ
9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094for as_dir in $PATH
9095do
9096 IFS=$as_save_IFS
9097 test -z "$as_dir" && as_dir=.
5213506e
RW
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9100 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9102 break 2
9103 fi
9104done
5213506e
RW
9105 done
9106IFS=$as_save_IFS
1c710c3c 9107
2abefe3d
PB
9108fi
9109fi
1c710c3c 9110STRIP=$ac_cv_prog_STRIP
2abefe3d 9111if test -n "$STRIP"; then
5213506e
RW
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9113$as_echo "$STRIP" >&6; }
2abefe3d 9114else
5213506e
RW
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116$as_echo "no" >&6; }
2abefe3d
PB
9117fi
9118
5213506e 9119
2abefe3d
PB
9120 fi
9121 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9123set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125$as_echo_n "checking for $ac_word... " >&6; }
9126if test "${ac_cv_prog_STRIP+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
2abefe3d
PB
9128else
9129 if test -n "$STRIP"; then
9130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9131else
1c710c3c
DJ
9132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133for as_dir in $PATH
9134do
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
5213506e
RW
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9139 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9141 break 2
9142 fi
9143done
5213506e
RW
9144 done
9145IFS=$as_save_IFS
1c710c3c 9146
2abefe3d
PB
9147fi
9148fi
1c710c3c 9149STRIP=$ac_cv_prog_STRIP
2abefe3d 9150if test -n "$STRIP"; then
5213506e
RW
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9152$as_echo "$STRIP" >&6; }
2abefe3d 9153else
5213506e
RW
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155$as_echo "no" >&6; }
2abefe3d 9156fi
1c710c3c 9157
5213506e 9158
2abefe3d
PB
9159 fi
9160 test -n "$ac_cv_prog_STRIP" && break
9161done
9162
9163if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9164 STRIP="true"
2abefe3d
PB
9165fi
9166
278a7a38
AO
9167
9168
9169if test -n "$WINDRES"; then
9170 ac_cv_prog_WINDRES=$WINDRES
9171elif test -n "$ac_cv_prog_WINDRES"; then
9172 WINDRES=$ac_cv_prog_WINDRES
9173fi
9174
9175if test -n "$ac_cv_prog_WINDRES"; then
9176 for ncn_progname in windres; do
9177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9178set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9180$as_echo_n "checking for $ac_word... " >&6; }
9181if test "${ac_cv_prog_WINDRES+set}" = set; then :
9182 $as_echo_n "(cached) " >&6
278a7a38
AO
9183else
9184 if test -n "$WINDRES"; then
9185 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9186else
9187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188for as_dir in $PATH
9189do
9190 IFS=$as_save_IFS
9191 test -z "$as_dir" && as_dir=.
5213506e
RW
9192 for ac_exec_ext in '' $ac_executable_extensions; do
9193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9194 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9196 break 2
9197 fi
9198done
5213506e
RW
9199 done
9200IFS=$as_save_IFS
278a7a38
AO
9201
9202fi
9203fi
9204WINDRES=$ac_cv_prog_WINDRES
9205if test -n "$WINDRES"; then
5213506e
RW
9206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9207$as_echo "$WINDRES" >&6; }
278a7a38 9208else
5213506e
RW
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9210$as_echo "no" >&6; }
278a7a38
AO
9211fi
9212
5213506e 9213
278a7a38
AO
9214 done
9215fi
9216
9217for ncn_progname in windres; do
2693c0b0
PB
9218 if test -n "$ncn_tool_prefix"; then
9219 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9220set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9222$as_echo_n "checking for $ac_word... " >&6; }
9223if test "${ac_cv_prog_WINDRES+set}" = set; then :
9224 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9225else
9226 if test -n "$WINDRES"; then
9227 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9228else
1c710c3c
DJ
9229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9230for as_dir in $PATH
9231do
9232 IFS=$as_save_IFS
9233 test -z "$as_dir" && as_dir=.
5213506e
RW
9234 for ac_exec_ext in '' $ac_executable_extensions; do
9235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9236 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9238 break 2
9239 fi
9240done
5213506e
RW
9241 done
9242IFS=$as_save_IFS
1c710c3c 9243
ca9f4b81
AO
9244fi
9245fi
1c710c3c 9246WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9247if test -n "$WINDRES"; then
5213506e
RW
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9249$as_echo "$WINDRES" >&6; }
ca9f4b81 9250else
5213506e
RW
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252$as_echo "no" >&6; }
ca9f4b81
AO
9253fi
9254
5213506e 9255
2693c0b0
PB
9256 fi
9257 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9259set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261$as_echo_n "checking for $ac_word... " >&6; }
9262if test "${ac_cv_prog_WINDRES+set}" = set; then :
9263 $as_echo_n "(cached) " >&6
ca9f4b81 9264else
2693c0b0
PB
9265 if test -n "$WINDRES"; then
9266 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9267else
1c710c3c
DJ
9268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269for as_dir in $PATH
9270do
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
5213506e
RW
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9275 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9277 break 2
9278 fi
9279done
5213506e
RW
9280 done
9281IFS=$as_save_IFS
1c710c3c 9282
ca9f4b81
AO
9283fi
9284fi
1c710c3c 9285WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9286if test -n "$WINDRES"; then
5213506e
RW
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9288$as_echo "$WINDRES" >&6; }
ca9f4b81 9289else
5213506e
RW
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291$as_echo "no" >&6; }
ca9f4b81 9292fi
1c710c3c 9293
5213506e 9294
2693c0b0
PB
9295 fi
9296 test -n "$ac_cv_prog_WINDRES" && break
9297done
9298
9299if test -z "$ac_cv_prog_WINDRES" ; then
9300 set dummy windres
9301 if test $build = $host ; then
9302 WINDRES="$2"
ca9f4b81 9303 else
2693c0b0 9304 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9305 fi
ca9f4b81
AO
9306fi
9307
278a7a38
AO
9308
9309
901119ae
KT
9310if test -n "$WINDMC"; then
9311 ac_cv_prog_WINDMC=$WINDMC
9312elif test -n "$ac_cv_prog_WINDMC"; then
9313 WINDMC=$ac_cv_prog_WINDMC
9314fi
9315
9316if test -n "$ac_cv_prog_WINDMC"; then
9317 for ncn_progname in windmc; do
9318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9319set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9321$as_echo_n "checking for $ac_word... " >&6; }
9322if test "${ac_cv_prog_WINDMC+set}" = set; then :
9323 $as_echo_n "(cached) " >&6
901119ae
KT
9324else
9325 if test -n "$WINDMC"; then
9326 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9327else
9328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329for as_dir in $PATH
9330do
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
5213506e
RW
9333 for ac_exec_ext in '' $ac_executable_extensions; do
9334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9335 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9337 break 2
9338 fi
9339done
5213506e
RW
9340 done
9341IFS=$as_save_IFS
901119ae
KT
9342
9343fi
9344fi
9345WINDMC=$ac_cv_prog_WINDMC
9346if test -n "$WINDMC"; then
5213506e
RW
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9348$as_echo "$WINDMC" >&6; }
901119ae 9349else
5213506e
RW
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9351$as_echo "no" >&6; }
901119ae
KT
9352fi
9353
5213506e 9354
901119ae
KT
9355 done
9356fi
9357
9358for ncn_progname in windmc; do
9359 if test -n "$ncn_tool_prefix"; then
9360 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9361set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363$as_echo_n "checking for $ac_word... " >&6; }
9364if test "${ac_cv_prog_WINDMC+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
901119ae
KT
9366else
9367 if test -n "$WINDMC"; then
9368 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9369else
9370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9371for as_dir in $PATH
9372do
9373 IFS=$as_save_IFS
9374 test -z "$as_dir" && as_dir=.
5213506e
RW
9375 for ac_exec_ext in '' $ac_executable_extensions; do
9376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9377 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9379 break 2
9380 fi
9381done
5213506e
RW
9382 done
9383IFS=$as_save_IFS
901119ae
KT
9384
9385fi
9386fi
9387WINDMC=$ac_cv_prog_WINDMC
9388if test -n "$WINDMC"; then
5213506e
RW
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9390$as_echo "$WINDMC" >&6; }
901119ae 9391else
5213506e
RW
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9393$as_echo "no" >&6; }
901119ae
KT
9394fi
9395
5213506e 9396
901119ae
KT
9397 fi
9398 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9400set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9402$as_echo_n "checking for $ac_word... " >&6; }
9403if test "${ac_cv_prog_WINDMC+set}" = set; then :
9404 $as_echo_n "(cached) " >&6
901119ae
KT
9405else
9406 if test -n "$WINDMC"; then
9407 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9408else
9409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9410for as_dir in $PATH
9411do
9412 IFS=$as_save_IFS
9413 test -z "$as_dir" && as_dir=.
5213506e
RW
9414 for ac_exec_ext in '' $ac_executable_extensions; do
9415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9416 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9418 break 2
9419 fi
9420done
5213506e
RW
9421 done
9422IFS=$as_save_IFS
901119ae
KT
9423
9424fi
9425fi
9426WINDMC=$ac_cv_prog_WINDMC
9427if test -n "$WINDMC"; then
5213506e
RW
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9429$as_echo "$WINDMC" >&6; }
901119ae 9430else
5213506e
RW
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432$as_echo "no" >&6; }
901119ae
KT
9433fi
9434
5213506e 9435
901119ae
KT
9436 fi
9437 test -n "$ac_cv_prog_WINDMC" && break
9438done
9439
9440if test -z "$ac_cv_prog_WINDMC" ; then
9441 set dummy windmc
9442 if test $build = $host ; then
9443 WINDMC="$2"
9444 else
9445 WINDMC="${ncn_tool_prefix}$2"
9446 fi
9447fi
9448
9449
9450
278a7a38
AO
9451if test -n "$OBJCOPY"; then
9452 ac_cv_prog_OBJCOPY=$OBJCOPY
9453elif test -n "$ac_cv_prog_OBJCOPY"; then
9454 OBJCOPY=$ac_cv_prog_OBJCOPY
9455fi
9456
9457if test -n "$ac_cv_prog_OBJCOPY"; then
9458 for ncn_progname in objcopy; do
9459 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9460set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9462$as_echo_n "checking for $ac_word... " >&6; }
9463if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9464 $as_echo_n "(cached) " >&6
278a7a38
AO
9465else
9466 if test -n "$OBJCOPY"; then
9467 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9468else
9469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470for as_dir in $PATH
9471do
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
5213506e
RW
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9476 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9478 break 2
9479 fi
9480done
5213506e
RW
9481 done
9482IFS=$as_save_IFS
278a7a38
AO
9483
9484fi
9485fi
9486OBJCOPY=$ac_cv_prog_OBJCOPY
9487if test -n "$OBJCOPY"; then
5213506e
RW
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9489$as_echo "$OBJCOPY" >&6; }
278a7a38 9490else
5213506e
RW
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9492$as_echo "no" >&6; }
278a7a38
AO
9493fi
9494
5213506e 9495
278a7a38
AO
9496 done
9497fi
9498
9499for ncn_progname in objcopy; do
2693c0b0
PB
9500 if test -n "$ncn_tool_prefix"; then
9501 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9502set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9504$as_echo_n "checking for $ac_word... " >&6; }
9505if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9506 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9507else
9508 if test -n "$OBJCOPY"; then
9509 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9510else
1c710c3c
DJ
9511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512for as_dir in $PATH
9513do
9514 IFS=$as_save_IFS
9515 test -z "$as_dir" && as_dir=.
5213506e
RW
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9518 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9520 break 2
9521 fi
9522done
5213506e
RW
9523 done
9524IFS=$as_save_IFS
1c710c3c 9525
ca9f4b81
AO
9526fi
9527fi
1c710c3c 9528OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9529if test -n "$OBJCOPY"; then
5213506e
RW
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9531$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9532else
5213506e
RW
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534$as_echo "no" >&6; }
ca9f4b81
AO
9535fi
9536
5213506e 9537
2693c0b0
PB
9538 fi
9539 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9540 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9541set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543$as_echo_n "checking for $ac_word... " >&6; }
9544if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
ca9f4b81 9546else
2693c0b0
PB
9547 if test -n "$OBJCOPY"; then
9548 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9549else
1c710c3c
DJ
9550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551for as_dir in $PATH
9552do
9553 IFS=$as_save_IFS
9554 test -z "$as_dir" && as_dir=.
5213506e
RW
9555 for ac_exec_ext in '' $ac_executable_extensions; do
9556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9557 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9559 break 2
9560 fi
9561done
5213506e
RW
9562 done
9563IFS=$as_save_IFS
1c710c3c 9564
ca9f4b81
AO
9565fi
9566fi
1c710c3c 9567OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9568if test -n "$OBJCOPY"; then
5213506e
RW
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9570$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9571else
5213506e
RW
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573$as_echo "no" >&6; }
ca9f4b81 9574fi
1c710c3c 9575
5213506e 9576
2693c0b0
PB
9577 fi
9578 test -n "$ac_cv_prog_OBJCOPY" && break
9579done
9580
9581if test -z "$ac_cv_prog_OBJCOPY" ; then
9582 set dummy objcopy
9583 if test $build = $host ; then
9584 OBJCOPY="$2"
ca9f4b81 9585 else
2693c0b0 9586 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9587 fi
ca9f4b81
AO
9588fi
9589
278a7a38
AO
9590
9591
9592if test -n "$OBJDUMP"; then
9593 ac_cv_prog_OBJDUMP=$OBJDUMP
9594elif test -n "$ac_cv_prog_OBJDUMP"; then
9595 OBJDUMP=$ac_cv_prog_OBJDUMP
9596fi
9597
9598if test -n "$ac_cv_prog_OBJDUMP"; then
9599 for ncn_progname in objdump; do
9600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9601set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9603$as_echo_n "checking for $ac_word... " >&6; }
9604if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9605 $as_echo_n "(cached) " >&6
278a7a38
AO
9606else
9607 if test -n "$OBJDUMP"; then
9608 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9609else
9610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9611for as_dir in $PATH
9612do
9613 IFS=$as_save_IFS
9614 test -z "$as_dir" && as_dir=.
5213506e
RW
9615 for ac_exec_ext in '' $ac_executable_extensions; do
9616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9617 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9619 break 2
9620 fi
9621done
5213506e
RW
9622 done
9623IFS=$as_save_IFS
278a7a38
AO
9624
9625fi
9626fi
9627OBJDUMP=$ac_cv_prog_OBJDUMP
9628if test -n "$OBJDUMP"; then
5213506e
RW
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9630$as_echo "$OBJDUMP" >&6; }
278a7a38 9631else
5213506e
RW
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9633$as_echo "no" >&6; }
278a7a38
AO
9634fi
9635
5213506e 9636
278a7a38
AO
9637 done
9638fi
9639
9640for ncn_progname in objdump; do
2693c0b0
PB
9641 if test -n "$ncn_tool_prefix"; then
9642 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9643set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9645$as_echo_n "checking for $ac_word... " >&6; }
9646if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9647 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9648else
9649 if test -n "$OBJDUMP"; then
9650 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9651else
1c710c3c
DJ
9652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653for as_dir in $PATH
9654do
9655 IFS=$as_save_IFS
9656 test -z "$as_dir" && as_dir=.
5213506e
RW
9657 for ac_exec_ext in '' $ac_executable_extensions; do
9658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9659 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9661 break 2
9662 fi
9663done
5213506e
RW
9664 done
9665IFS=$as_save_IFS
1c710c3c 9666
ca9f4b81
AO
9667fi
9668fi
1c710c3c 9669OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9670if test -n "$OBJDUMP"; then
5213506e
RW
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9672$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9673else
5213506e
RW
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675$as_echo "no" >&6; }
ca9f4b81
AO
9676fi
9677
5213506e 9678
2693c0b0
PB
9679 fi
9680 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9681 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9682set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9684$as_echo_n "checking for $ac_word... " >&6; }
9685if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9686 $as_echo_n "(cached) " >&6
ca9f4b81 9687else
2693c0b0
PB
9688 if test -n "$OBJDUMP"; then
9689 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9690else
1c710c3c
DJ
9691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692for as_dir in $PATH
9693do
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
5213506e
RW
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9698 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9700 break 2
9701 fi
9702done
5213506e
RW
9703 done
9704IFS=$as_save_IFS
1c710c3c 9705
ca9f4b81
AO
9706fi
9707fi
1c710c3c 9708OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9709if test -n "$OBJDUMP"; then
5213506e
RW
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9711$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9712else
5213506e
RW
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9714$as_echo "no" >&6; }
ca9f4b81 9715fi
1c710c3c 9716
5213506e 9717
2693c0b0
PB
9718 fi
9719 test -n "$ac_cv_prog_OBJDUMP" && break
9720done
9721
9722if test -z "$ac_cv_prog_OBJDUMP" ; then
9723 set dummy objdump
9724 if test $build = $host ; then
9725 OBJDUMP="$2"
ca9f4b81 9726 else
2693c0b0 9727 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9728 fi
ca9f4b81
AO
9729fi
9730
671aa708
NN
9731
9732
e7a82751
RM
9733if test -n "$READELF"; then
9734 ac_cv_prog_READELF=$READELF
9735elif test -n "$ac_cv_prog_READELF"; then
9736 READELF=$ac_cv_prog_READELF
9737fi
9738
9739if test -n "$ac_cv_prog_READELF"; then
9740 for ncn_progname in readelf; do
9741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9742set dummy ${ncn_progname}; ac_word=$2
9743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9744$as_echo_n "checking for $ac_word... " >&6; }
9745if test "${ac_cv_prog_READELF+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747else
9748 if test -n "$READELF"; then
9749 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9750else
9751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9752for as_dir in $PATH
9753do
9754 IFS=$as_save_IFS
9755 test -z "$as_dir" && as_dir=.
9756 for ac_exec_ext in '' $ac_executable_extensions; do
9757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9758 ac_cv_prog_READELF="${ncn_progname}"
9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9760 break 2
9761 fi
9762done
9763 done
9764IFS=$as_save_IFS
9765
9766fi
9767fi
9768READELF=$ac_cv_prog_READELF
9769if test -n "$READELF"; then
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9771$as_echo "$READELF" >&6; }
9772else
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9774$as_echo "no" >&6; }
9775fi
9776
9777
9778 done
9779fi
9780
9781for ncn_progname in readelf; do
9782 if test -n "$ncn_tool_prefix"; then
9783 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9784set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9786$as_echo_n "checking for $ac_word... " >&6; }
9787if test "${ac_cv_prog_READELF+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9789else
9790 if test -n "$READELF"; then
9791 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9792else
9793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9794for as_dir in $PATH
9795do
9796 IFS=$as_save_IFS
9797 test -z "$as_dir" && as_dir=.
9798 for ac_exec_ext in '' $ac_executable_extensions; do
9799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9800 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9802 break 2
9803 fi
9804done
9805 done
9806IFS=$as_save_IFS
9807
9808fi
9809fi
9810READELF=$ac_cv_prog_READELF
9811if test -n "$READELF"; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9813$as_echo "$READELF" >&6; }
9814else
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9816$as_echo "no" >&6; }
9817fi
9818
9819
9820 fi
9821 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9822 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9823set dummy ${ncn_progname}; ac_word=$2
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825$as_echo_n "checking for $ac_word... " >&6; }
9826if test "${ac_cv_prog_READELF+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9828else
9829 if test -n "$READELF"; then
9830 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9831else
9832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9833for as_dir in $PATH
9834do
9835 IFS=$as_save_IFS
9836 test -z "$as_dir" && as_dir=.
9837 for ac_exec_ext in '' $ac_executable_extensions; do
9838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9839 ac_cv_prog_READELF="${ncn_progname}"
9840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9841 break 2
9842 fi
9843done
9844 done
9845IFS=$as_save_IFS
9846
9847fi
9848fi
9849READELF=$ac_cv_prog_READELF
9850if test -n "$READELF"; then
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9852$as_echo "$READELF" >&6; }
9853else
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855$as_echo "no" >&6; }
9856fi
9857
9858
9859 fi
9860 test -n "$ac_cv_prog_READELF" && break
9861done
9862
9863if test -z "$ac_cv_prog_READELF" ; then
9864 set dummy readelf
9865 if test $build = $host ; then
9866 READELF="$2"
9867 else
9868 READELF="${ncn_tool_prefix}$2"
9869 fi
9870fi
9871
9872
9873
671aa708
NN
9874
9875
9876
2abefe3d 9877# Target tools.
1c710c3c 9878
5213506e
RW
9879# Check whether --with-build-time-tools was given.
9880if test "${with_build_time_tools+set}" = set; then :
9881 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9882 x/*) ;;
9883 *)
9884 with_build_time_tools=
5213506e
RW
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9886$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9887 ;;
9888 esac
ca9f4b81 9889else
e8b05380 9890 with_build_time_tools=
5213506e
RW
9891fi
9892
ca9f4b81 9893
278a7a38
AO
9894
9895
9896if test -n "$CC_FOR_TARGET"; then
9897 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9898elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9899 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9900fi
9901
9902if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9903 for ncn_progname in cc gcc; do
9904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9905set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9907$as_echo_n "checking for $ac_word... " >&6; }
9908if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
278a7a38
AO
9910else
9911 if test -n "$CC_FOR_TARGET"; then
9912 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9913else
9914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $PATH
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
5213506e
RW
9919 for ac_exec_ext in '' $ac_executable_extensions; do
9920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9921 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9923 break 2
9924 fi
9925done
5213506e
RW
9926 done
9927IFS=$as_save_IFS
278a7a38
AO
9928
9929fi
9930fi
9931CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9932if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9934$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9935else
5213506e
RW
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9937$as_echo "no" >&6; }
278a7a38
AO
9938fi
9939
5213506e 9940
278a7a38
AO
9941 done
9942fi
9943
9944if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9945 for ncn_progname in cc gcc; do
5213506e
RW
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9947$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9948 if test -x $with_build_time_tools/${ncn_progname}; then
9949 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9951$as_echo "yes" >&6; }
72a7ab82 9952 break
e8b05380 9953 else
5213506e
RW
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9955$as_echo "no" >&6; }
72a7ab82
AP
9956 fi
9957 done
4de997d1
PB
9958fi
9959
e8b05380
PB
9960if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9961 for ncn_progname in cc gcc; do
9962 if test -n "$ncn_target_tool_prefix"; then
9963 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9964set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966$as_echo_n "checking for $ac_word... " >&6; }
9967if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
4de997d1
PB
9969else
9970 if test -n "$CC_FOR_TARGET"; then
9971 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9972else
1c710c3c
DJ
9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
5213506e
RW
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9980 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9982 break 2
9983 fi
9984done
5213506e
RW
9985 done
9986IFS=$as_save_IFS
1c710c3c 9987
4de997d1
PB
9988fi
9989fi
1c710c3c 9990CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9991if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9993$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9994else
5213506e
RW
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996$as_echo "no" >&6; }
4de997d1
PB
9997fi
9998
5213506e 9999
e8b05380
PB
10000 fi
10001 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10003set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10005$as_echo_n "checking for $ac_word... " >&6; }
10006if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
4de997d1 10008else
2693c0b0
PB
10009 if test -n "$CC_FOR_TARGET"; then
10010 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 10011else
1c710c3c
DJ
10012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10013for as_dir in $PATH
10014do
10015 IFS=$as_save_IFS
10016 test -z "$as_dir" && as_dir=.
5213506e
RW
10017 for ac_exec_ext in '' $ac_executable_extensions; do
10018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10019 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 10020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10021 break 2
10022 fi
10023done
5213506e
RW
10024 done
10025IFS=$as_save_IFS
1c710c3c 10026
4de997d1
PB
10027fi
10028fi
1c710c3c 10029CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 10030if test -n "$CC_FOR_TARGET"; then
5213506e
RW
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10032$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 10033else
5213506e
RW
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10035$as_echo "no" >&6; }
4de997d1 10036fi
1c710c3c 10037
5213506e 10038
e8b05380
PB
10039 fi
10040 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10041 done
10042fi
1c710c3c 10043
2693c0b0
PB
10044if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10045 set dummy cc gcc
10046 if test $build = $target ; then
10047 CC_FOR_TARGET="$2"
4de997d1 10048 else
2693c0b0 10049 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10050 fi
1c00b503
PB
10051else
10052 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
10053fi
10054
278a7a38
AO
10055
10056
10057if test -n "$CXX_FOR_TARGET"; then
10058 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10059elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10060 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10061fi
10062
10063if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10064 for ncn_progname in c++ g++ cxx gxx; do
10065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10066set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068$as_echo_n "checking for $ac_word... " >&6; }
10069if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10070 $as_echo_n "(cached) " >&6
278a7a38
AO
10071else
10072 if test -n "$CXX_FOR_TARGET"; then
10073 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10074else
10075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10076for as_dir in $PATH
10077do
10078 IFS=$as_save_IFS
10079 test -z "$as_dir" && as_dir=.
5213506e
RW
10080 for ac_exec_ext in '' $ac_executable_extensions; do
10081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10082 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10084 break 2
10085 fi
10086done
5213506e
RW
10087 done
10088IFS=$as_save_IFS
278a7a38
AO
10089
10090fi
10091fi
10092CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10093if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10095$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10096else
5213506e
RW
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10098$as_echo "no" >&6; }
278a7a38
AO
10099fi
10100
5213506e 10101
278a7a38
AO
10102 done
10103fi
10104
10105if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10106 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10108$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10109 if test -x $with_build_time_tools/${ncn_progname}; then
10110 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10112$as_echo "yes" >&6; }
e8b05380
PB
10113 break
10114 else
5213506e
RW
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116$as_echo "no" >&6; }
e8b05380
PB
10117 fi
10118 done
10119fi
10120
10121if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10122 for ncn_progname in c++ g++ cxx gxx; do
10123 if test -n "$ncn_target_tool_prefix"; then
10124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10125set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10127$as_echo_n "checking for $ac_word... " >&6; }
10128if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10129 $as_echo_n "(cached) " >&6
4de997d1
PB
10130else
10131 if test -n "$CXX_FOR_TARGET"; then
10132 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10133else
1c710c3c
DJ
10134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135for as_dir in $PATH
10136do
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
5213506e
RW
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10141 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10143 break 2
10144 fi
10145done
5213506e
RW
10146 done
10147IFS=$as_save_IFS
1c710c3c 10148
4de997d1
PB
10149fi
10150fi
1c710c3c 10151CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10152if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10154$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10155else
5213506e
RW
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157$as_echo "no" >&6; }
4de997d1
PB
10158fi
10159
5213506e 10160
e8b05380
PB
10161 fi
10162 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10164set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166$as_echo_n "checking for $ac_word... " >&6; }
10167if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
4de997d1 10169else
2693c0b0
PB
10170 if test -n "$CXX_FOR_TARGET"; then
10171 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10172else
1c710c3c
DJ
10173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174for as_dir in $PATH
10175do
10176 IFS=$as_save_IFS
10177 test -z "$as_dir" && as_dir=.
5213506e
RW
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10180 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10182 break 2
10183 fi
10184done
5213506e
RW
10185 done
10186IFS=$as_save_IFS
1c710c3c 10187
4de997d1
PB
10188fi
10189fi
1c710c3c 10190CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10191if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10193$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10194else
5213506e
RW
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196$as_echo "no" >&6; }
4de997d1 10197fi
1c710c3c 10198
5213506e 10199
e8b05380
PB
10200 fi
10201 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10202 done
10203fi
1c710c3c 10204
2693c0b0
PB
10205if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10206 set dummy c++ g++ cxx gxx
10207 if test $build = $target ; then
10208 CXX_FOR_TARGET="$2"
4de997d1 10209 else
2693c0b0 10210 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10211 fi
1c00b503
PB
10212else
10213 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10214fi
10215
278a7a38
AO
10216
10217
10218if test -n "$GCC_FOR_TARGET"; then
10219 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10220elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10221 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10222fi
10223
10224if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10225 for ncn_progname in gcc; do
10226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10227set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229$as_echo_n "checking for $ac_word... " >&6; }
10230if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10231 $as_echo_n "(cached) " >&6
278a7a38
AO
10232else
10233 if test -n "$GCC_FOR_TARGET"; then
10234 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10235else
10236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237for as_dir in $PATH
10238do
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
5213506e
RW
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10243 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10245 break 2
10246 fi
10247done
5213506e
RW
10248 done
10249IFS=$as_save_IFS
278a7a38
AO
10250
10251fi
10252fi
10253GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10254if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10256$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10257else
5213506e
RW
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259$as_echo "no" >&6; }
278a7a38
AO
10260fi
10261
5213506e 10262
278a7a38
AO
10263 done
10264fi
10265
10266if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10267 for ncn_progname in gcc; do
5213506e
RW
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10269$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10270 if test -x $with_build_time_tools/${ncn_progname}; then
10271 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10273$as_echo "yes" >&6; }
e8b05380
PB
10274 break
10275 else
5213506e
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10277$as_echo "no" >&6; }
e8b05380
PB
10278 fi
10279 done
10280fi
10281
10282if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10283 for ncn_progname in gcc; do
10284 if test -n "$ncn_target_tool_prefix"; then
10285 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10286set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288$as_echo_n "checking for $ac_word... " >&6; }
10289if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10290 $as_echo_n "(cached) " >&6
ca9f4b81 10291else
e8b05380
PB
10292 if test -n "$GCC_FOR_TARGET"; then
10293 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10294else
1c710c3c
DJ
10295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296for as_dir in $PATH
10297do
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
5213506e
RW
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10302 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10304 break 2
10305 fi
10306done
5213506e
RW
10307 done
10308IFS=$as_save_IFS
1c710c3c 10309
ca9f4b81
AO
10310fi
10311fi
1c710c3c 10312GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10313if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10315$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10316else
5213506e
RW
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318$as_echo "no" >&6; }
ca9f4b81
AO
10319fi
10320
5213506e 10321
e8b05380
PB
10322 fi
10323 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10325set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10327$as_echo_n "checking for $ac_word... " >&6; }
10328if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10329 $as_echo_n "(cached) " >&6
ca9f4b81 10330else
e8b05380
PB
10331 if test -n "$GCC_FOR_TARGET"; then
10332 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10333else
1c710c3c
DJ
10334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10335for as_dir in $PATH
10336do
10337 IFS=$as_save_IFS
10338 test -z "$as_dir" && as_dir=.
5213506e
RW
10339 for ac_exec_ext in '' $ac_executable_extensions; do
10340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10341 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10343 break 2
10344 fi
10345done
5213506e
RW
10346 done
10347IFS=$as_save_IFS
1c710c3c 10348
ca9f4b81
AO
10349fi
10350fi
1c710c3c 10351GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10352if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10354$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10355else
5213506e
RW
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10357$as_echo "no" >&6; }
ca9f4b81 10358fi
1c710c3c 10359
5213506e 10360
e8b05380
PB
10361 fi
10362 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10363 done
10364fi
1c710c3c 10365
e8b05380
PB
10366if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10367 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10368else
10369 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10370fi
10371
278a7a38
AO
10372
10373
278a7a38
AO
10374if test -n "$GFORTRAN_FOR_TARGET"; then
10375 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10376elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10377 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10378fi
10379
278a7a38
AO
10380if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10381 for ncn_progname in gfortran; do
10382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10383set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10385$as_echo_n "checking for $ac_word... " >&6; }
10386if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10387 $as_echo_n "(cached) " >&6
e8b05380 10388else
278a7a38
AO
10389 if test -n "$GFORTRAN_FOR_TARGET"; then
10390 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10391else
1c710c3c
DJ
10392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393for as_dir in $PATH
10394do
10395 IFS=$as_save_IFS
10396 test -z "$as_dir" && as_dir=.
5213506e
RW
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10399 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10401 break 2
10402 fi
10403done
5213506e
RW
10404 done
10405IFS=$as_save_IFS
1c710c3c 10406
e8b05380
PB
10407fi
10408fi
278a7a38
AO
10409GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10410if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10412$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10413else
5213506e
RW
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415$as_echo "no" >&6; }
e8b05380 10416fi
1c710c3c 10417
5213506e 10418
e8b05380
PB
10419 done
10420fi
1c710c3c 10421
278a7a38 10422if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10423 for ncn_progname in gfortran; do
5213506e
RW
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10425$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10426 if test -x $with_build_time_tools/${ncn_progname}; then
10427 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10429$as_echo "yes" >&6; }
e8b05380
PB
10430 break
10431 else
5213506e
RW
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10433$as_echo "no" >&6; }
e8b05380
PB
10434 fi
10435 done
10436fi
10437
10438if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10439 for ncn_progname in gfortran; do
10440 if test -n "$ncn_target_tool_prefix"; then
10441 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10442set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444$as_echo_n "checking for $ac_word... " >&6; }
10445if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
e8b05380
PB
10447else
10448 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10449 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10450else
10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
5213506e
RW
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10458 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10460 break 2
10461 fi
10462done
5213506e
RW
10463 done
10464IFS=$as_save_IFS
1c710c3c 10465
e8b05380
PB
10466fi
10467fi
1c710c3c 10468GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10469if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10471$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10472else
5213506e
RW
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474$as_echo "no" >&6; }
e8b05380
PB
10475fi
10476
5213506e 10477
e8b05380
PB
10478 fi
10479 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10481set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483$as_echo_n "checking for $ac_word... " >&6; }
10484if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
e8b05380
PB
10486else
10487 if test -n "$GFORTRAN_FOR_TARGET"; then
10488 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10489else
1c710c3c
DJ
10490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491for as_dir in $PATH
10492do
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
5213506e
RW
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10497 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10499 break 2
10500 fi
10501done
5213506e
RW
10502 done
10503IFS=$as_save_IFS
1c710c3c 10504
e8b05380
PB
10505fi
10506fi
1c710c3c 10507GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10508if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10510$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10511else
5213506e
RW
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513$as_echo "no" >&6; }
e8b05380 10514fi
1c710c3c 10515
5213506e 10516
e8b05380
PB
10517 fi
10518 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10519 done
10520fi
1c710c3c 10521
e8b05380
PB
10522if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10523 set dummy gfortran
2693c0b0 10524 if test $build = $target ; then
e8b05380 10525 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10526 else
e8b05380
PB
10527 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10528 fi
1c00b503
PB
10529else
10530 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10531fi
10532
10533
10534
632e2a07
ILT
10535if test -n "$GOC_FOR_TARGET"; then
10536 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10537elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10538 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10539fi
10540
10541if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10542 for ncn_progname in gccgo; do
10543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10544set dummy ${ncn_progname}; ac_word=$2
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10546$as_echo_n "checking for $ac_word... " >&6; }
10547if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10548 $as_echo_n "(cached) " >&6
10549else
10550 if test -n "$GOC_FOR_TARGET"; then
10551 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10552else
10553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10554for as_dir in $PATH
10555do
10556 IFS=$as_save_IFS
10557 test -z "$as_dir" && as_dir=.
10558 for ac_exec_ext in '' $ac_executable_extensions; do
10559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10560 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 break 2
10563 fi
10564done
10565 done
10566IFS=$as_save_IFS
10567
10568fi
10569fi
10570GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10571if test -n "$GOC_FOR_TARGET"; then
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10573$as_echo "$GOC_FOR_TARGET" >&6; }
10574else
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576$as_echo "no" >&6; }
10577fi
10578
10579
10580 done
10581fi
10582
10583if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10584 for ncn_progname in gccgo; do
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10586$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10587 if test -x $with_build_time_tools/${ncn_progname}; then
10588 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10590$as_echo "yes" >&6; }
10591 break
10592 else
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
10595 fi
10596 done
10597fi
10598
10599if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10600 for ncn_progname in gccgo; do
10601 if test -n "$ncn_target_tool_prefix"; then
10602 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10603set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10605$as_echo_n "checking for $ac_word... " >&6; }
10606if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10607 $as_echo_n "(cached) " >&6
10608else
10609 if test -n "$GOC_FOR_TARGET"; then
10610 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10611else
10612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10613for as_dir in $PATH
10614do
10615 IFS=$as_save_IFS
10616 test -z "$as_dir" && as_dir=.
10617 for ac_exec_ext in '' $ac_executable_extensions; do
10618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10619 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10621 break 2
10622 fi
10623done
10624 done
10625IFS=$as_save_IFS
10626
10627fi
10628fi
10629GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10630if test -n "$GOC_FOR_TARGET"; then
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10632$as_echo "$GOC_FOR_TARGET" >&6; }
10633else
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10635$as_echo "no" >&6; }
10636fi
10637
10638
10639 fi
10640 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10642set dummy ${ncn_progname}; ac_word=$2
10643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644$as_echo_n "checking for $ac_word... " >&6; }
10645if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10647else
10648 if test -n "$GOC_FOR_TARGET"; then
10649 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10650else
10651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652for as_dir in $PATH
10653do
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10658 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 break 2
10661 fi
10662done
10663 done
10664IFS=$as_save_IFS
10665
10666fi
10667fi
10668GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10669if test -n "$GOC_FOR_TARGET"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10671$as_echo "$GOC_FOR_TARGET" >&6; }
10672else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674$as_echo "no" >&6; }
10675fi
10676
10677
10678 fi
10679 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10680 done
10681fi
10682
10683if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10684 set dummy gccgo
10685 if test $build = $target ; then
10686 GOC_FOR_TARGET="$2"
10687 else
10688 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10689 fi
10690else
10691 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10692fi
10693
10694
10695
e8b05380
PB
10696cat > conftest.c << \EOF
10697#ifdef __GNUC__
10698 gcc_yay;
10699#endif
10700EOF
10701if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10702 have_gcc_for_target=yes
10703else
10704 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10705 have_gcc_for_target=no
10706fi
10707rm conftest.c
10708
10709
10710
10711
10712if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10713 if test -n "$with_build_time_tools"; then
5213506e
RW
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10715$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10716 if test -x $with_build_time_tools/ar; then
10717 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10718 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10720$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10721 else
5213506e
RW
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723$as_echo "no" >&6; }
d1f8db0c 10724 fi
e8b05380
PB
10725 elif test $build != $host && test $have_gcc_for_target = yes; then
10726 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10727 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10728 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10729 fi
10730fi
3e19841a 10731if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10732 # Extract the first word of "ar", so it can be a program name with args.
10733set dummy ar; ac_word=$2
5213506e
RW
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735$as_echo_n "checking for $ac_word... " >&6; }
10736if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
e8b05380 10738else
1c710c3c
DJ
10739 case $AR_FOR_TARGET in
10740 [\\/]* | ?:[\\/]*)
e8b05380
PB
10741 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10742 ;;
e8b05380 10743 *)
1c710c3c
DJ
10744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745for as_dir in $gcc_cv_tool_dirs
10746do
10747 IFS=$as_save_IFS
10748 test -z "$as_dir" && as_dir=.
5213506e
RW
10749 for ac_exec_ext in '' $ac_executable_extensions; do
10750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10751 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10753 break 2
10754 fi
10755done
5213506e
RW
10756 done
10757IFS=$as_save_IFS
1c710c3c 10758
e8b05380
PB
10759 ;;
10760esac
10761fi
1c710c3c 10762AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10763if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10765$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10766else
5213506e
RW
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768$as_echo "no" >&6; }
4de997d1
PB
10769fi
10770
5213506e 10771
e8b05380
PB
10772fi
10773if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10774
10775
10776if test -n "$AR_FOR_TARGET"; then
10777 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10778elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10779 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10780fi
10781
10782if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10783 for ncn_progname in ar; do
10784 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10785set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10787$as_echo_n "checking for $ac_word... " >&6; }
10788if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10789 $as_echo_n "(cached) " >&6
278a7a38
AO
10790else
10791 if test -n "$AR_FOR_TARGET"; then
10792 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10793else
10794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795for as_dir in $PATH
10796do
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
5213506e
RW
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10801 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10803 break 2
10804 fi
10805done
5213506e
RW
10806 done
10807IFS=$as_save_IFS
278a7a38
AO
10808
10809fi
10810fi
10811AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10812if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10814$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10815else
5213506e
RW
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10817$as_echo "no" >&6; }
278a7a38
AO
10818fi
10819
5213506e 10820
278a7a38
AO
10821 done
10822fi
10823
10824if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10825 for ncn_progname in ar; do
5213506e
RW
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10827$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10828 if test -x $with_build_time_tools/${ncn_progname}; then
10829 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10831$as_echo "yes" >&6; }
e8b05380
PB
10832 break
10833 else
5213506e
RW
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835$as_echo "no" >&6; }
e8b05380
PB
10836 fi
10837 done
10838fi
10839
10840if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10841 for ncn_progname in ar; do
10842 if test -n "$ncn_target_tool_prefix"; then
10843 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10844set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10846$as_echo_n "checking for $ac_word... " >&6; }
10847if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10848 $as_echo_n "(cached) " >&6
4de997d1 10849else
e8b05380
PB
10850 if test -n "$AR_FOR_TARGET"; then
10851 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10852else
1c710c3c
DJ
10853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10854for as_dir in $PATH
10855do
10856 IFS=$as_save_IFS
10857 test -z "$as_dir" && as_dir=.
5213506e
RW
10858 for ac_exec_ext in '' $ac_executable_extensions; do
10859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10860 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10862 break 2
10863 fi
10864done
5213506e
RW
10865 done
10866IFS=$as_save_IFS
1c710c3c 10867
4de997d1
PB
10868fi
10869fi
1c710c3c 10870AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10871if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10873$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10874else
5213506e
RW
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10876$as_echo "no" >&6; }
4de997d1
PB
10877fi
10878
5213506e 10879
e8b05380
PB
10880 fi
10881 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10883set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885$as_echo_n "checking for $ac_word... " >&6; }
10886if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10887 $as_echo_n "(cached) " >&6
e8b05380
PB
10888else
10889 if test -n "$AR_FOR_TARGET"; then
10890 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10891else
1c710c3c
DJ
10892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10893for as_dir in $PATH
10894do
10895 IFS=$as_save_IFS
10896 test -z "$as_dir" && as_dir=.
5213506e
RW
10897 for ac_exec_ext in '' $ac_executable_extensions; do
10898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10899 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10901 break 2
10902 fi
10903done
5213506e
RW
10904 done
10905IFS=$as_save_IFS
1c710c3c 10906
e8b05380
PB
10907fi
10908fi
1c710c3c 10909AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10910if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10912$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10913else
5213506e
RW
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10915$as_echo "no" >&6; }
e8b05380 10916fi
1c710c3c 10917
5213506e 10918
e8b05380
PB
10919 fi
10920 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10921 done
10922fi
1c710c3c 10923
e8b05380
PB
10924if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10925 set dummy ar
10926 if test $build = $target ; then
10927 AR_FOR_TARGET="$2"
10928 else
10929 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10930 fi
1c00b503
PB
10931else
10932 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10933fi
10934
d1f8db0c
PB
10935else
10936 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10937fi
10938
10939
10940
10941
10942if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10943 if test -n "$with_build_time_tools"; then
5213506e
RW
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10945$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10946 if test -x $with_build_time_tools/as; then
10947 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10948 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10950$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10951 else
5213506e
RW
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10953$as_echo "no" >&6; }
d1f8db0c 10954 fi
e8b05380
PB
10955 elif test $build != $host && test $have_gcc_for_target = yes; then
10956 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10957 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10958 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10959 fi
10960fi
3e19841a 10961if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10962 # Extract the first word of "as", so it can be a program name with args.
10963set dummy as; ac_word=$2
5213506e
RW
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965$as_echo_n "checking for $ac_word... " >&6; }
10966if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
e8b05380 10968else
1c710c3c
DJ
10969 case $AS_FOR_TARGET in
10970 [\\/]* | ?:[\\/]*)
e8b05380
PB
10971 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10972 ;;
e8b05380 10973 *)
1c710c3c
DJ
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975for as_dir in $gcc_cv_tool_dirs
10976do
10977 IFS=$as_save_IFS
10978 test -z "$as_dir" && as_dir=.
5213506e
RW
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10981 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10983 break 2
10984 fi
10985done
5213506e
RW
10986 done
10987IFS=$as_save_IFS
1c710c3c 10988
e8b05380
PB
10989 ;;
10990esac
10991fi
1c710c3c 10992AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10993if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10995$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10996else
5213506e
RW
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10998$as_echo "no" >&6; }
e8b05380
PB
10999fi
11000
5213506e 11001
e8b05380
PB
11002fi
11003if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11004
11005
11006if test -n "$AS_FOR_TARGET"; then
11007 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11008elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11009 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11010fi
11011
11012if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11013 for ncn_progname in as; do
11014 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11015set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11017$as_echo_n "checking for $ac_word... " >&6; }
11018if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
278a7a38
AO
11020else
11021 if test -n "$AS_FOR_TARGET"; then
11022 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11023else
11024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11025for as_dir in $PATH
11026do
11027 IFS=$as_save_IFS
11028 test -z "$as_dir" && as_dir=.
5213506e
RW
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11031 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11033 break 2
11034 fi
11035done
5213506e
RW
11036 done
11037IFS=$as_save_IFS
278a7a38
AO
11038
11039fi
11040fi
11041AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11042if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11044$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11045else
5213506e
RW
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047$as_echo "no" >&6; }
278a7a38
AO
11048fi
11049
5213506e 11050
278a7a38
AO
11051 done
11052fi
11053
11054if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11055 for ncn_progname in as; do
5213506e
RW
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11057$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11058 if test -x $with_build_time_tools/${ncn_progname}; then
11059 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11061$as_echo "yes" >&6; }
e8b05380
PB
11062 break
11063 else
5213506e
RW
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
e8b05380
PB
11066 fi
11067 done
11068fi
11069
11070if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11071 for ncn_progname in as; do
11072 if test -n "$ncn_target_tool_prefix"; then
11073 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11074set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11076$as_echo_n "checking for $ac_word... " >&6; }
11077if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11078 $as_echo_n "(cached) " >&6
e8b05380
PB
11079else
11080 if test -n "$AS_FOR_TARGET"; then
11081 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11082else
1c710c3c
DJ
11083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084for as_dir in $PATH
11085do
11086 IFS=$as_save_IFS
11087 test -z "$as_dir" && as_dir=.
5213506e
RW
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11090 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11092 break 2
11093 fi
11094done
5213506e
RW
11095 done
11096IFS=$as_save_IFS
1c710c3c 11097
e8b05380
PB
11098fi
11099fi
1c710c3c 11100AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11101if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11103$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11104else
5213506e
RW
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11106$as_echo "no" >&6; }
e8b05380
PB
11107fi
11108
5213506e 11109
e8b05380
PB
11110 fi
11111 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11113set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11115$as_echo_n "checking for $ac_word... " >&6; }
11116if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
4de997d1 11118else
e8b05380
PB
11119 if test -n "$AS_FOR_TARGET"; then
11120 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11121else
1c710c3c
DJ
11122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123for as_dir in $PATH
11124do
11125 IFS=$as_save_IFS
11126 test -z "$as_dir" && as_dir=.
5213506e
RW
11127 for ac_exec_ext in '' $ac_executable_extensions; do
11128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11129 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11131 break 2
11132 fi
11133done
5213506e
RW
11134 done
11135IFS=$as_save_IFS
1c710c3c 11136
4de997d1
PB
11137fi
11138fi
1c710c3c 11139AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11140if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11142$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11143else
5213506e
RW
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11145$as_echo "no" >&6; }
4de997d1 11146fi
1c710c3c 11147
5213506e 11148
e8b05380
PB
11149 fi
11150 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11151 done
11152fi
1c710c3c 11153
e8b05380
PB
11154if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11155 set dummy as
11156 if test $build = $target ; then
11157 AS_FOR_TARGET="$2"
11158 else
11159 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11160 fi
1c00b503
PB
11161else
11162 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11163fi
2693c0b0 11164
d1f8db0c
PB
11165else
11166 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11167fi
11168
e8b05380
PB
11169
11170
11171
11172if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11173 if test -n "$with_build_time_tools"; then
5213506e
RW
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11175$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11176 if test -x $with_build_time_tools/dlltool; then
11177 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11178 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11180$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11181 else
5213506e
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183$as_echo "no" >&6; }
d1f8db0c 11184 fi
e8b05380
PB
11185 elif test $build != $host && test $have_gcc_for_target = yes; then
11186 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11187 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11188 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11189 fi
11190fi
3e19841a 11191if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11192 # Extract the first word of "dlltool", so it can be a program name with args.
11193set dummy dlltool; ac_word=$2
5213506e
RW
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195$as_echo_n "checking for $ac_word... " >&6; }
11196if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
4de997d1 11198else
1c710c3c
DJ
11199 case $DLLTOOL_FOR_TARGET in
11200 [\\/]* | ?:[\\/]*)
e8b05380
PB
11201 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11202 ;;
e8b05380 11203 *)
1c710c3c
DJ
11204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11205for as_dir in $gcc_cv_tool_dirs
11206do
11207 IFS=$as_save_IFS
11208 test -z "$as_dir" && as_dir=.
5213506e
RW
11209 for ac_exec_ext in '' $ac_executable_extensions; do
11210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11211 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11213 break 2
11214 fi
11215done
5213506e
RW
11216 done
11217IFS=$as_save_IFS
1c710c3c 11218
e8b05380
PB
11219 ;;
11220esac
4de997d1 11221fi
1c710c3c 11222DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11223if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11225$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11226else
5213506e
RW
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11228$as_echo "no" >&6; }
4de997d1
PB
11229fi
11230
5213506e 11231
e8b05380
PB
11232fi
11233if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11234
11235
11236if test -n "$DLLTOOL_FOR_TARGET"; then
11237 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11238elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11239 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11240fi
11241
11242if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11243 for ncn_progname in dlltool; do
11244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11245set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11247$as_echo_n "checking for $ac_word... " >&6; }
11248if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11249 $as_echo_n "(cached) " >&6
278a7a38
AO
11250else
11251 if test -n "$DLLTOOL_FOR_TARGET"; then
11252 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11253else
11254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11255for as_dir in $PATH
11256do
11257 IFS=$as_save_IFS
11258 test -z "$as_dir" && as_dir=.
5213506e
RW
11259 for ac_exec_ext in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11261 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11263 break 2
11264 fi
11265done
5213506e
RW
11266 done
11267IFS=$as_save_IFS
278a7a38
AO
11268
11269fi
11270fi
11271DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11272if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11274$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11275else
5213506e
RW
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277$as_echo "no" >&6; }
278a7a38
AO
11278fi
11279
5213506e 11280
278a7a38
AO
11281 done
11282fi
11283
11284if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11285 for ncn_progname in dlltool; do
5213506e
RW
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11287$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11288 if test -x $with_build_time_tools/${ncn_progname}; then
11289 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11291$as_echo "yes" >&6; }
e8b05380
PB
11292 break
11293 else
5213506e
RW
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295$as_echo "no" >&6; }
e8b05380
PB
11296 fi
11297 done
11298fi
11299
11300if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11301 for ncn_progname in dlltool; do
11302 if test -n "$ncn_target_tool_prefix"; then
11303 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11304set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11306$as_echo_n "checking for $ac_word... " >&6; }
11307if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11308 $as_echo_n "(cached) " >&6
4de997d1 11309else
e8b05380
PB
11310 if test -n "$DLLTOOL_FOR_TARGET"; then
11311 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11312else
1c710c3c
DJ
11313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11314for as_dir in $PATH
11315do
11316 IFS=$as_save_IFS
11317 test -z "$as_dir" && as_dir=.
5213506e
RW
11318 for ac_exec_ext in '' $ac_executable_extensions; do
11319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11320 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11322 break 2
11323 fi
11324done
5213506e
RW
11325 done
11326IFS=$as_save_IFS
1c710c3c 11327
4de997d1
PB
11328fi
11329fi
1c710c3c 11330DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11331if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11333$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11334else
5213506e
RW
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11336$as_echo "no" >&6; }
4de997d1 11337fi
4de997d1 11338
5213506e 11339
e8b05380
PB
11340 fi
11341 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11343set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11345$as_echo_n "checking for $ac_word... " >&6; }
11346if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11347 $as_echo_n "(cached) " >&6
4de997d1 11348else
e8b05380
PB
11349 if test -n "$DLLTOOL_FOR_TARGET"; then
11350 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11351else
1c710c3c
DJ
11352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11353for as_dir in $PATH
11354do
11355 IFS=$as_save_IFS
11356 test -z "$as_dir" && as_dir=.
5213506e
RW
11357 for ac_exec_ext in '' $ac_executable_extensions; do
11358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11359 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11361 break 2
11362 fi
11363done
5213506e
RW
11364 done
11365IFS=$as_save_IFS
1c710c3c 11366
4de997d1
PB
11367fi
11368fi
1c710c3c 11369DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11370if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11372$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11373else
5213506e
RW
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375$as_echo "no" >&6; }
4de997d1 11376fi
1c710c3c 11377
5213506e 11378
e8b05380
PB
11379 fi
11380 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11381 done
11382fi
1c710c3c 11383
e8b05380
PB
11384if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11385 set dummy dlltool
11386 if test $build = $target ; then
11387 DLLTOOL_FOR_TARGET="$2"
11388 else
11389 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11390 fi
1c00b503
PB
11391else
11392 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11393fi
11394
d1f8db0c
PB
11395else
11396 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11397fi
11398
4de997d1 11399
e8b05380
PB
11400
11401
11402if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11403 if test -n "$with_build_time_tools"; then
5213506e
RW
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11405$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11406 if test -x $with_build_time_tools/ld; then
11407 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11408 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11410$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11411 else
5213506e
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11413$as_echo "no" >&6; }
d1f8db0c 11414 fi
e8b05380
PB
11415 elif test $build != $host && test $have_gcc_for_target = yes; then
11416 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11417 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11418 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11419 fi
e8b05380 11420fi
3e19841a 11421if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11422 # Extract the first word of "ld", so it can be a program name with args.
11423set dummy ld; ac_word=$2
5213506e
RW
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425$as_echo_n "checking for $ac_word... " >&6; }
11426if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
4de997d1 11428else
1c710c3c
DJ
11429 case $LD_FOR_TARGET in
11430 [\\/]* | ?:[\\/]*)
e8b05380
PB
11431 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11432 ;;
e8b05380 11433 *)
1c710c3c
DJ
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435for as_dir in $gcc_cv_tool_dirs
11436do
11437 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=.
5213506e
RW
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11441 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11443 break 2
11444 fi
11445done
5213506e
RW
11446 done
11447IFS=$as_save_IFS
1c710c3c 11448
e8b05380
PB
11449 ;;
11450esac
4de997d1 11451fi
1c710c3c 11452LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11453if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11455$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11456else
5213506e
RW
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
4de997d1 11459fi
2693c0b0 11460
5213506e 11461
e8b05380
PB
11462fi
11463if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11464
11465
11466if test -n "$LD_FOR_TARGET"; then
11467 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11468elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11469 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11470fi
11471
11472if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11473 for ncn_progname in ld; do
11474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11475set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11477$as_echo_n "checking for $ac_word... " >&6; }
11478if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11479 $as_echo_n "(cached) " >&6
278a7a38
AO
11480else
11481 if test -n "$LD_FOR_TARGET"; then
11482 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11483else
11484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485for as_dir in $PATH
11486do
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
5213506e
RW
11489 for ac_exec_ext in '' $ac_executable_extensions; do
11490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11491 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11493 break 2
11494 fi
11495done
5213506e
RW
11496 done
11497IFS=$as_save_IFS
278a7a38
AO
11498
11499fi
11500fi
11501LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11502if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11504$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11505else
5213506e
RW
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11507$as_echo "no" >&6; }
278a7a38
AO
11508fi
11509
5213506e 11510
278a7a38
AO
11511 done
11512fi
11513
11514if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11515 for ncn_progname in ld; do
5213506e
RW
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11517$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11518 if test -x $with_build_time_tools/${ncn_progname}; then
11519 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521$as_echo "yes" >&6; }
e8b05380
PB
11522 break
11523 else
5213506e
RW
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525$as_echo "no" >&6; }
e8b05380
PB
11526 fi
11527 done
ca9f4b81
AO
11528fi
11529
e8b05380
PB
11530if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11531 for ncn_progname in ld; do
11532 if test -n "$ncn_target_tool_prefix"; then
11533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11534set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11536$as_echo_n "checking for $ac_word... " >&6; }
11537if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11538 $as_echo_n "(cached) " >&6
ca9f4b81 11539else
4de997d1
PB
11540 if test -n "$LD_FOR_TARGET"; then
11541 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11542else
1c710c3c
DJ
11543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544for as_dir in $PATH
11545do
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
5213506e
RW
11548 for ac_exec_ext in '' $ac_executable_extensions; do
11549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11550 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11552 break 2
11553 fi
11554done
5213506e
RW
11555 done
11556IFS=$as_save_IFS
1c710c3c 11557
ca9f4b81
AO
11558fi
11559fi
1c710c3c 11560LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11561if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11563$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11564else
5213506e
RW
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566$as_echo "no" >&6; }
ca9f4b81
AO
11567fi
11568
5213506e 11569
e8b05380
PB
11570 fi
11571 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11573set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11575$as_echo_n "checking for $ac_word... " >&6; }
11576if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11577 $as_echo_n "(cached) " >&6
ca9f4b81 11578else
2693c0b0
PB
11579 if test -n "$LD_FOR_TARGET"; then
11580 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11581else
1c710c3c
DJ
11582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583for as_dir in $PATH
11584do
11585 IFS=$as_save_IFS
11586 test -z "$as_dir" && as_dir=.
5213506e
RW
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11589 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11591 break 2
11592 fi
11593done
5213506e
RW
11594 done
11595IFS=$as_save_IFS
1c710c3c 11596
ca9f4b81
AO
11597fi
11598fi
1c710c3c 11599LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11600if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11602$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11603else
5213506e
RW
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11605$as_echo "no" >&6; }
ca9f4b81 11606fi
1c710c3c 11607
5213506e 11608
e8b05380
PB
11609 fi
11610 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11611 done
11612fi
1c710c3c 11613
2693c0b0
PB
11614if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11615 set dummy ld
11616 if test $build = $target ; then
11617 LD_FOR_TARGET="$2"
ca9f4b81 11618 else
2693c0b0 11619 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11620 fi
1c00b503
PB
11621else
11622 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11623fi
11624
d1f8db0c
PB
11625else
11626 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11627fi
11628
11629
11630
11631
11632if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11633 if test -n "$with_build_time_tools"; then
5213506e
RW
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11635$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11636 if test -x $with_build_time_tools/lipo; then
11637 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11638 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11640$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11641 else
5213506e
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643$as_echo "no" >&6; }
d1f8db0c 11644 fi
e8b05380
PB
11645 elif test $build != $host && test $have_gcc_for_target = yes; then
11646 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11647 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11648 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11649 fi
11650fi
278a7a38
AO
11651if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11652 # Extract the first word of "lipo", so it can be a program name with args.
11653set dummy lipo; ac_word=$2
5213506e
RW
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655$as_echo_n "checking for $ac_word... " >&6; }
11656if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
278a7a38
AO
11658else
11659 case $LIPO_FOR_TARGET in
11660 [\\/]* | ?:[\\/]*)
11661 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11662 ;;
11663 *)
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665for as_dir in $gcc_cv_tool_dirs
11666do
11667 IFS=$as_save_IFS
11668 test -z "$as_dir" && as_dir=.
5213506e
RW
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11671 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11673 break 2
11674 fi
11675done
5213506e
RW
11676 done
11677IFS=$as_save_IFS
278a7a38
AO
11678
11679 ;;
11680esac
11681fi
11682LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11683if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11685$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11686else
5213506e
RW
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688$as_echo "no" >&6; }
278a7a38
AO
11689fi
11690
5213506e 11691
278a7a38
AO
11692fi
11693if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11694
11695
11696if test -n "$LIPO_FOR_TARGET"; then
11697 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11698elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11699 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11700fi
11701
11702if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11703 for ncn_progname in lipo; do
11704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11705set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11707$as_echo_n "checking for $ac_word... " >&6; }
11708if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11709 $as_echo_n "(cached) " >&6
e8b05380 11710else
278a7a38
AO
11711 if test -n "$LIPO_FOR_TARGET"; then
11712 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11713else
11714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715for as_dir in $PATH
1c710c3c
DJ
11716do
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
5213506e
RW
11719 for ac_exec_ext in '' $ac_executable_extensions; do
11720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11721 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11723 break 2
11724 fi
11725done
5213506e
RW
11726 done
11727IFS=$as_save_IFS
1c710c3c 11728
e8b05380 11729fi
278a7a38
AO
11730fi
11731LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11732if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11734$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11735else
5213506e
RW
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11737$as_echo "no" >&6; }
e8b05380
PB
11738fi
11739
5213506e 11740
278a7a38 11741 done
e8b05380 11742fi
278a7a38
AO
11743
11744if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11745 for ncn_progname in lipo; do
5213506e
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11747$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11748 if test -x $with_build_time_tools/${ncn_progname}; then
11749 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11751$as_echo "yes" >&6; }
e8b05380
PB
11752 break
11753 else
5213506e
RW
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755$as_echo "no" >&6; }
e8b05380
PB
11756 fi
11757 done
11758fi
11759
11760if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11761 for ncn_progname in lipo; do
11762 if test -n "$ncn_target_tool_prefix"; then
11763 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11764set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766$as_echo_n "checking for $ac_word... " >&6; }
11767if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11768 $as_echo_n "(cached) " >&6
040b1c5a
GK
11769else
11770 if test -n "$LIPO_FOR_TARGET"; then
11771 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11772else
1c710c3c
DJ
11773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774for as_dir in $PATH
11775do
11776 IFS=$as_save_IFS
11777 test -z "$as_dir" && as_dir=.
5213506e
RW
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11780 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11782 break 2
11783 fi
11784done
5213506e
RW
11785 done
11786IFS=$as_save_IFS
1c710c3c 11787
040b1c5a
GK
11788fi
11789fi
1c710c3c 11790LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11791if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11793$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11794else
5213506e
RW
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796$as_echo "no" >&6; }
040b1c5a
GK
11797fi
11798
5213506e 11799
e8b05380
PB
11800 fi
11801 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11803set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11805$as_echo_n "checking for $ac_word... " >&6; }
11806if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11807 $as_echo_n "(cached) " >&6
040b1c5a
GK
11808else
11809 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11810 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11811else
1c710c3c
DJ
11812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11813for as_dir in $PATH
11814do
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
5213506e
RW
11817 for ac_exec_ext in '' $ac_executable_extensions; do
11818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11819 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11821 break 2
11822 fi
11823done
5213506e
RW
11824 done
11825IFS=$as_save_IFS
1c710c3c 11826
040b1c5a
GK
11827fi
11828fi
1c710c3c 11829LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11830if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11832$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11833else
5213506e
RW
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11835$as_echo "no" >&6; }
040b1c5a 11836fi
1c710c3c 11837
5213506e 11838
e8b05380
PB
11839 fi
11840 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11841 done
11842fi
1c710c3c 11843
040b1c5a
GK
11844if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11845 set dummy lipo
11846 if test $build = $target ; then
11847 LIPO_FOR_TARGET="$2"
11848 else
11849 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11850 fi
1c00b503
PB
11851else
11852 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11853fi
11854
d1f8db0c
PB
11855else
11856 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11857fi
11858
11859
11860
11861
11862if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11863 if test -n "$with_build_time_tools"; then
5213506e
RW
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11865$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11866 if test -x $with_build_time_tools/nm; then
11867 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11868 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11870$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11871 else
5213506e
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873$as_echo "no" >&6; }
d1f8db0c 11874 fi
e8b05380
PB
11875 elif test $build != $host && test $have_gcc_for_target = yes; then
11876 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11877 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11878 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11879 fi
11880fi
3e19841a 11881if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11882 # Extract the first word of "nm", so it can be a program name with args.
11883set dummy nm; ac_word=$2
5213506e
RW
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885$as_echo_n "checking for $ac_word... " >&6; }
11886if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
e8b05380 11888else
1c710c3c
DJ
11889 case $NM_FOR_TARGET in
11890 [\\/]* | ?:[\\/]*)
e8b05380
PB
11891 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11892 ;;
e8b05380 11893 *)
1c710c3c
DJ
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895for as_dir in $gcc_cv_tool_dirs
11896do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
5213506e
RW
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11901 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11903 break 2
11904 fi
11905done
5213506e
RW
11906 done
11907IFS=$as_save_IFS
1c710c3c 11908
e8b05380
PB
11909 ;;
11910esac
11911fi
1c710c3c 11912NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11913if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11915$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11916else
5213506e
RW
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918$as_echo "no" >&6; }
e8b05380
PB
11919fi
11920
5213506e 11921
e8b05380
PB
11922fi
11923if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11924
11925
11926if test -n "$NM_FOR_TARGET"; then
11927 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11928elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11929 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11930fi
11931
11932if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11933 for ncn_progname in nm; do
11934 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11935set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11937$as_echo_n "checking for $ac_word... " >&6; }
11938if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11939 $as_echo_n "(cached) " >&6
278a7a38
AO
11940else
11941 if test -n "$NM_FOR_TARGET"; then
11942 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11943else
11944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11945for as_dir in $PATH
11946do
11947 IFS=$as_save_IFS
11948 test -z "$as_dir" && as_dir=.
5213506e
RW
11949 for ac_exec_ext in '' $ac_executable_extensions; do
11950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11951 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11953 break 2
11954 fi
11955done
5213506e
RW
11956 done
11957IFS=$as_save_IFS
278a7a38
AO
11958
11959fi
11960fi
11961NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11962if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11964$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11965else
5213506e
RW
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11967$as_echo "no" >&6; }
278a7a38
AO
11968fi
11969
5213506e 11970
278a7a38
AO
11971 done
11972fi
11973
11974if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11975 for ncn_progname in nm; do
5213506e
RW
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11977$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11978 if test -x $with_build_time_tools/${ncn_progname}; then
11979 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11981$as_echo "yes" >&6; }
e8b05380
PB
11982 break
11983 else
5213506e
RW
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
e8b05380
PB
11986 fi
11987 done
11988fi
11989
11990if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11991 for ncn_progname in nm; do
11992 if test -n "$ncn_target_tool_prefix"; then
11993 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11994set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11996$as_echo_n "checking for $ac_word... " >&6; }
11997if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
ca9f4b81 11999else
4de997d1
PB
12000 if test -n "$NM_FOR_TARGET"; then
12001 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12002else
1c710c3c
DJ
12003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004for as_dir in $PATH
12005do
12006 IFS=$as_save_IFS
12007 test -z "$as_dir" && as_dir=.
5213506e
RW
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12010 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12012 break 2
12013 fi
12014done
5213506e
RW
12015 done
12016IFS=$as_save_IFS
1c710c3c 12017
ca9f4b81
AO
12018fi
12019fi
1c710c3c 12020NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12021if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12023$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12024else
5213506e
RW
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12026$as_echo "no" >&6; }
ca9f4b81
AO
12027fi
12028
5213506e 12029
e8b05380
PB
12030 fi
12031 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12033set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035$as_echo_n "checking for $ac_word... " >&6; }
12036if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12037 $as_echo_n "(cached) " >&6
ca9f4b81 12038else
2693c0b0
PB
12039 if test -n "$NM_FOR_TARGET"; then
12040 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12041else
1c710c3c
DJ
12042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $PATH
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
5213506e
RW
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12049 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12051 break 2
12052 fi
12053done
5213506e
RW
12054 done
12055IFS=$as_save_IFS
1c710c3c 12056
ca9f4b81
AO
12057fi
12058fi
1c710c3c 12059NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12060if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12062$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12063else
5213506e
RW
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065$as_echo "no" >&6; }
ca9f4b81 12066fi
1c710c3c 12067
5213506e 12068
e8b05380
PB
12069 fi
12070 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12071 done
12072fi
1c710c3c 12073
2693c0b0
PB
12074if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12075 set dummy nm
12076 if test $build = $target ; then
12077 NM_FOR_TARGET="$2"
ca9f4b81 12078 else
2693c0b0 12079 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12080 fi
1c00b503
PB
12081else
12082 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12083fi
12084
d1f8db0c
PB
12085else
12086 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12087fi
12088
12089
12090
12091
9bccfdf5
AP
12092if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12093 if test -n "$with_build_time_tools"; then
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12095$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12096 if test -x $with_build_time_tools/objcopy; then
12097 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12098 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12100$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12101 else
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12103$as_echo "no" >&6; }
12104 fi
12105 elif test $build != $host && test $have_gcc_for_target = yes; then
12106 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12107 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12108 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12109 fi
12110fi
12111if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12112 # Extract the first word of "objcopy", so it can be a program name with args.
12113set dummy objcopy; ac_word=$2
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115$as_echo_n "checking for $ac_word... " >&6; }
12116if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
12118else
12119 case $OBJCOPY_FOR_TARGET in
12120 [\\/]* | ?:[\\/]*)
12121 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12122 ;;
12123 *)
12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12125for as_dir in $gcc_cv_tool_dirs
12126do
12127 IFS=$as_save_IFS
12128 test -z "$as_dir" && as_dir=.
12129 for ac_exec_ext in '' $ac_executable_extensions; do
12130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12131 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12133 break 2
12134 fi
12135done
12136 done
12137IFS=$as_save_IFS
12138
12139 ;;
12140esac
12141fi
12142OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12143if test -n "$OBJCOPY_FOR_TARGET"; then
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12145$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12146else
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12148$as_echo "no" >&6; }
12149fi
12150
12151
12152fi
12153if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12154
12155
12156if test -n "$OBJCOPY_FOR_TARGET"; then
12157 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12158elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12159 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12160fi
12161
12162if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12163 for ncn_progname in objcopy; do
12164 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12165set dummy ${ncn_progname}; ac_word=$2
12166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12167$as_echo_n "checking for $ac_word... " >&6; }
12168if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12169 $as_echo_n "(cached) " >&6
12170else
12171 if test -n "$OBJCOPY_FOR_TARGET"; then
12172 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12173else
12174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12175for as_dir in $PATH
12176do
12177 IFS=$as_save_IFS
12178 test -z "$as_dir" && as_dir=.
12179 for ac_exec_ext in '' $ac_executable_extensions; do
12180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12181 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12183 break 2
12184 fi
12185done
12186 done
12187IFS=$as_save_IFS
12188
12189fi
12190fi
12191OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12192if test -n "$OBJCOPY_FOR_TARGET"; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12194$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12195else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12197$as_echo "no" >&6; }
12198fi
12199
12200
12201 done
12202fi
12203
12204if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12205 for ncn_progname in objcopy; do
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12207$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12208 if test -x $with_build_time_tools/${ncn_progname}; then
12209 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12211$as_echo "yes" >&6; }
12212 break
12213 else
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
12216 fi
12217 done
12218fi
12219
12220if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12221 for ncn_progname in objcopy; do
12222 if test -n "$ncn_target_tool_prefix"; then
12223 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12224set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12226$as_echo_n "checking for $ac_word... " >&6; }
12227if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229else
12230 if test -n "$OBJCOPY_FOR_TARGET"; then
12231 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12232else
12233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234for as_dir in $PATH
12235do
12236 IFS=$as_save_IFS
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12240 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12242 break 2
12243 fi
12244done
12245 done
12246IFS=$as_save_IFS
12247
12248fi
12249fi
12250OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12251if test -n "$OBJCOPY_FOR_TARGET"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12253$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12254else
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12256$as_echo "no" >&6; }
12257fi
12258
12259
12260 fi
12261 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12263set dummy ${ncn_progname}; ac_word=$2
12264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12265$as_echo_n "checking for $ac_word... " >&6; }
12266if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12267 $as_echo_n "(cached) " >&6
12268else
12269 if test -n "$OBJCOPY_FOR_TARGET"; then
12270 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12271else
12272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273for as_dir in $PATH
12274do
12275 IFS=$as_save_IFS
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12279 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12281 break 2
12282 fi
12283done
12284 done
12285IFS=$as_save_IFS
12286
12287fi
12288fi
12289OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12290if test -n "$OBJCOPY_FOR_TARGET"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12292$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12293else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295$as_echo "no" >&6; }
12296fi
12297
12298
12299 fi
12300 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12301 done
12302fi
12303
12304if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12305 set dummy objcopy
12306 if test $build = $target ; then
12307 OBJCOPY_FOR_TARGET="$2"
12308 else
12309 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12310 fi
12311else
12312 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12313fi
12314
12315else
12316 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12317fi
12318
12319
12320
12321
e8b05380
PB
12322if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12323 if test -n "$with_build_time_tools"; then
5213506e
RW
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12325$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12326 if test -x $with_build_time_tools/objdump; then
12327 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12328 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12330$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12331 else
5213506e
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333$as_echo "no" >&6; }
d1f8db0c 12334 fi
e8b05380
PB
12335 elif test $build != $host && test $have_gcc_for_target = yes; then
12336 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12337 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12338 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12339 fi
12340fi
3e19841a 12341if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12342 # Extract the first word of "objdump", so it can be a program name with args.
12343set dummy objdump; ac_word=$2
5213506e
RW
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345$as_echo_n "checking for $ac_word... " >&6; }
12346if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
e8b05380 12348else
1c710c3c
DJ
12349 case $OBJDUMP_FOR_TARGET in
12350 [\\/]* | ?:[\\/]*)
e8b05380
PB
12351 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12352 ;;
e8b05380 12353 *)
1c710c3c
DJ
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355for as_dir in $gcc_cv_tool_dirs
12356do
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
5213506e
RW
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12361 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12363 break 2
12364 fi
12365done
5213506e
RW
12366 done
12367IFS=$as_save_IFS
1c710c3c 12368
e8b05380
PB
12369 ;;
12370esac
12371fi
1c710c3c 12372OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12373if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12375$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12376else
5213506e
RW
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12378$as_echo "no" >&6; }
e8b05380
PB
12379fi
12380
5213506e 12381
e8b05380
PB
12382fi
12383if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12384
12385
12386if test -n "$OBJDUMP_FOR_TARGET"; then
12387 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12388elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12389 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12390fi
12391
12392if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12393 for ncn_progname in objdump; do
12394 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12395set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12397$as_echo_n "checking for $ac_word... " >&6; }
12398if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12399 $as_echo_n "(cached) " >&6
278a7a38
AO
12400else
12401 if test -n "$OBJDUMP_FOR_TARGET"; then
12402 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12403else
12404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405for as_dir in $PATH
12406do
12407 IFS=$as_save_IFS
12408 test -z "$as_dir" && as_dir=.
5213506e
RW
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12411 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12413 break 2
12414 fi
12415done
5213506e
RW
12416 done
12417IFS=$as_save_IFS
278a7a38
AO
12418
12419fi
12420fi
12421OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12422if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12424$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12425else
5213506e
RW
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12427$as_echo "no" >&6; }
278a7a38
AO
12428fi
12429
5213506e 12430
278a7a38
AO
12431 done
12432fi
12433
12434if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12435 for ncn_progname in objdump; do
5213506e
RW
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12437$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12438 if test -x $with_build_time_tools/${ncn_progname}; then
12439 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12441$as_echo "yes" >&6; }
e8b05380
PB
12442 break
12443 else
5213506e
RW
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12445$as_echo "no" >&6; }
e8b05380
PB
12446 fi
12447 done
12448fi
12449
12450if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12451 for ncn_progname in objdump; do
12452 if test -n "$ncn_target_tool_prefix"; then
12453 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12454set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12456$as_echo_n "checking for $ac_word... " >&6; }
12457if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12458 $as_echo_n "(cached) " >&6
d739199a
DJ
12459else
12460 if test -n "$OBJDUMP_FOR_TARGET"; then
12461 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12462else
1c710c3c
DJ
12463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464for as_dir in $PATH
12465do
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
5213506e
RW
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12470 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12472 break 2
12473 fi
12474done
5213506e
RW
12475 done
12476IFS=$as_save_IFS
1c710c3c 12477
d739199a
DJ
12478fi
12479fi
1c710c3c 12480OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12481if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12483$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12484else
5213506e
RW
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486$as_echo "no" >&6; }
d739199a
DJ
12487fi
12488
5213506e 12489
e8b05380
PB
12490 fi
12491 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12493set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12495$as_echo_n "checking for $ac_word... " >&6; }
12496if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12497 $as_echo_n "(cached) " >&6
d739199a
DJ
12498else
12499 if test -n "$OBJDUMP_FOR_TARGET"; then
12500 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12501else
1c710c3c
DJ
12502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12503for as_dir in $PATH
12504do
12505 IFS=$as_save_IFS
12506 test -z "$as_dir" && as_dir=.
5213506e
RW
12507 for ac_exec_ext in '' $ac_executable_extensions; do
12508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12509 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12511 break 2
12512 fi
12513done
5213506e
RW
12514 done
12515IFS=$as_save_IFS
1c710c3c 12516
d739199a
DJ
12517fi
12518fi
1c710c3c 12519OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12520if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12522$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12523else
5213506e
RW
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12525$as_echo "no" >&6; }
d739199a 12526fi
1c710c3c 12527
5213506e 12528
e8b05380
PB
12529 fi
12530 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12531 done
12532fi
1c710c3c 12533
d739199a
DJ
12534if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12535 set dummy objdump
12536 if test $build = $target ; then
12537 OBJDUMP_FOR_TARGET="$2"
12538 else
12539 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12540 fi
1c00b503
PB
12541else
12542 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12543fi
12544
d1f8db0c
PB
12545else
12546 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12547fi
12548
12549
12550
12551
12552if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12553 if test -n "$with_build_time_tools"; then
5213506e
RW
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12555$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12556 if test -x $with_build_time_tools/ranlib; then
12557 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12558 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12560$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12561 else
5213506e
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563$as_echo "no" >&6; }
d1f8db0c 12564 fi
e8b05380
PB
12565 elif test $build != $host && test $have_gcc_for_target = yes; then
12566 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12567 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12568 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12569 fi
12570fi
3e19841a 12571if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12572 # Extract the first word of "ranlib", so it can be a program name with args.
12573set dummy ranlib; ac_word=$2
5213506e
RW
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575$as_echo_n "checking for $ac_word... " >&6; }
12576if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
e8b05380 12578else
1c710c3c
DJ
12579 case $RANLIB_FOR_TARGET in
12580 [\\/]* | ?:[\\/]*)
e8b05380
PB
12581 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12582 ;;
e8b05380 12583 *)
1c710c3c
DJ
12584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585for as_dir in $gcc_cv_tool_dirs
12586do
12587 IFS=$as_save_IFS
12588 test -z "$as_dir" && as_dir=.
5213506e
RW
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12591 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12593 break 2
12594 fi
12595done
5213506e
RW
12596 done
12597IFS=$as_save_IFS
1c710c3c 12598
e8b05380
PB
12599 ;;
12600esac
12601fi
1c710c3c 12602RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12603if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12605$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12606else
5213506e
RW
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608$as_echo "no" >&6; }
e8b05380
PB
12609fi
12610
5213506e 12611
e8b05380
PB
12612fi
12613if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12614
12615
12616if test -n "$RANLIB_FOR_TARGET"; then
12617 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12618elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12619 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12620fi
12621
12622if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12623 for ncn_progname in ranlib; do
12624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12625set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12627$as_echo_n "checking for $ac_word... " >&6; }
12628if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12629 $as_echo_n "(cached) " >&6
278a7a38
AO
12630else
12631 if test -n "$RANLIB_FOR_TARGET"; then
12632 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12633else
12634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635for as_dir in $PATH
12636do
12637 IFS=$as_save_IFS
12638 test -z "$as_dir" && as_dir=.
5213506e
RW
12639 for ac_exec_ext in '' $ac_executable_extensions; do
12640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12641 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12643 break 2
12644 fi
12645done
5213506e
RW
12646 done
12647IFS=$as_save_IFS
278a7a38
AO
12648
12649fi
12650fi
12651RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12652if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12654$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12655else
5213506e
RW
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12657$as_echo "no" >&6; }
278a7a38
AO
12658fi
12659
5213506e 12660
278a7a38
AO
12661 done
12662fi
12663
12664if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12665 for ncn_progname in ranlib; do
5213506e
RW
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12667$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12668 if test -x $with_build_time_tools/${ncn_progname}; then
12669 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12671$as_echo "yes" >&6; }
e8b05380
PB
12672 break
12673 else
5213506e
RW
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12675$as_echo "no" >&6; }
e8b05380
PB
12676 fi
12677 done
12678fi
12679
12680if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12681 for ncn_progname in ranlib; do
12682 if test -n "$ncn_target_tool_prefix"; then
12683 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12684set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12686$as_echo_n "checking for $ac_word... " >&6; }
12687if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12688 $as_echo_n "(cached) " >&6
ca9f4b81 12689else
4de997d1
PB
12690 if test -n "$RANLIB_FOR_TARGET"; then
12691 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12692else
1c710c3c
DJ
12693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694for as_dir in $PATH
12695do
12696 IFS=$as_save_IFS
12697 test -z "$as_dir" && as_dir=.
5213506e
RW
12698 for ac_exec_ext in '' $ac_executable_extensions; do
12699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12700 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12702 break 2
12703 fi
12704done
5213506e
RW
12705 done
12706IFS=$as_save_IFS
1c710c3c 12707
ca9f4b81
AO
12708fi
12709fi
1c710c3c 12710RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12711if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12713$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12714else
5213506e
RW
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716$as_echo "no" >&6; }
ca9f4b81
AO
12717fi
12718
5213506e 12719
e8b05380
PB
12720 fi
12721 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12723set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12725$as_echo_n "checking for $ac_word... " >&6; }
12726if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12727 $as_echo_n "(cached) " >&6
ca9f4b81 12728else
2693c0b0
PB
12729 if test -n "$RANLIB_FOR_TARGET"; then
12730 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12731else
1c710c3c
DJ
12732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733for as_dir in $PATH
12734do
12735 IFS=$as_save_IFS
12736 test -z "$as_dir" && as_dir=.
5213506e
RW
12737 for ac_exec_ext in '' $ac_executable_extensions; do
12738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12739 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12741 break 2
12742 fi
12743done
5213506e
RW
12744 done
12745IFS=$as_save_IFS
1c710c3c 12746
ca9f4b81
AO
12747fi
12748fi
1c710c3c 12749RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12750if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12752$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12753else
5213506e
RW
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12755$as_echo "no" >&6; }
ca9f4b81 12756fi
1c710c3c 12757
5213506e 12758
e8b05380
PB
12759 fi
12760 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12761 done
12762fi
1c710c3c 12763
e8b05380
PB
12764if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12765 set dummy ranlib
12766 if test $build = $target ; then
12767 RANLIB_FOR_TARGET="$2"
12768 else
12769 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12770 fi
1c00b503
PB
12771else
12772 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12773fi
2693c0b0 12774
d1f8db0c
PB
12775else
12776 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12777fi
12778
e8b05380
PB
12779
12780
12781
e7a82751
RM
12782if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12783 if test -n "$with_build_time_tools"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12785$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12786 if test -x $with_build_time_tools/readelf; then
12787 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12788 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12790$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12791 else
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12793$as_echo "no" >&6; }
12794 fi
12795 elif test $build != $host && test $have_gcc_for_target = yes; then
12796 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12797 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12798 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12799 fi
12800fi
12801if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12802 # Extract the first word of "readelf", so it can be a program name with args.
12803set dummy readelf; ac_word=$2
12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12805$as_echo_n "checking for $ac_word... " >&6; }
12806if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12807 $as_echo_n "(cached) " >&6
12808else
12809 case $READELF_FOR_TARGET in
12810 [\\/]* | ?:[\\/]*)
12811 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12812 ;;
12813 *)
12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12815for as_dir in $gcc_cv_tool_dirs
12816do
12817 IFS=$as_save_IFS
12818 test -z "$as_dir" && as_dir=.
12819 for ac_exec_ext in '' $ac_executable_extensions; do
12820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12821 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 break 2
12824 fi
12825done
12826 done
12827IFS=$as_save_IFS
12828
12829 ;;
12830esac
12831fi
12832READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12833if test -n "$READELF_FOR_TARGET"; then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12835$as_echo "$READELF_FOR_TARGET" >&6; }
12836else
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12838$as_echo "no" >&6; }
12839fi
12840
12841
12842fi
12843if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12844
12845
12846if test -n "$READELF_FOR_TARGET"; then
12847 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12848elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12849 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12850fi
12851
12852if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12853 for ncn_progname in readelf; do
12854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12855set dummy ${ncn_progname}; ac_word=$2
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12857$as_echo_n "checking for $ac_word... " >&6; }
12858if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12859 $as_echo_n "(cached) " >&6
12860else
12861 if test -n "$READELF_FOR_TARGET"; then
12862 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12863else
12864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865for as_dir in $PATH
12866do
12867 IFS=$as_save_IFS
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12871 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12873 break 2
12874 fi
12875done
12876 done
12877IFS=$as_save_IFS
12878
12879fi
12880fi
12881READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12882if test -n "$READELF_FOR_TARGET"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12884$as_echo "$READELF_FOR_TARGET" >&6; }
12885else
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12887$as_echo "no" >&6; }
12888fi
12889
12890
12891 done
12892fi
12893
12894if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12895 for ncn_progname in readelf; do
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12897$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12898 if test -x $with_build_time_tools/${ncn_progname}; then
12899 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12901$as_echo "yes" >&6; }
12902 break
12903 else
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12905$as_echo "no" >&6; }
12906 fi
12907 done
12908fi
12909
12910if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12911 for ncn_progname in readelf; do
12912 if test -n "$ncn_target_tool_prefix"; then
12913 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12914set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12916$as_echo_n "checking for $ac_word... " >&6; }
12917if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12918 $as_echo_n "(cached) " >&6
12919else
12920 if test -n "$READELF_FOR_TARGET"; then
12921 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12922else
12923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12924for as_dir in $PATH
12925do
12926 IFS=$as_save_IFS
12927 test -z "$as_dir" && as_dir=.
12928 for ac_exec_ext in '' $ac_executable_extensions; do
12929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12930 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12932 break 2
12933 fi
12934done
12935 done
12936IFS=$as_save_IFS
12937
12938fi
12939fi
12940READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12941if test -n "$READELF_FOR_TARGET"; then
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12943$as_echo "$READELF_FOR_TARGET" >&6; }
12944else
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946$as_echo "no" >&6; }
12947fi
12948
12949
12950 fi
12951 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12953set dummy ${ncn_progname}; ac_word=$2
12954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12955$as_echo_n "checking for $ac_word... " >&6; }
12956if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12957 $as_echo_n "(cached) " >&6
12958else
12959 if test -n "$READELF_FOR_TARGET"; then
12960 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12961else
12962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963for as_dir in $PATH
12964do
12965 IFS=$as_save_IFS
12966 test -z "$as_dir" && as_dir=.
12967 for ac_exec_ext in '' $ac_executable_extensions; do
12968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12971 break 2
12972 fi
12973done
12974 done
12975IFS=$as_save_IFS
12976
12977fi
12978fi
12979READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12980if test -n "$READELF_FOR_TARGET"; then
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12982$as_echo "$READELF_FOR_TARGET" >&6; }
12983else
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985$as_echo "no" >&6; }
12986fi
12987
12988
12989 fi
12990 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12991 done
12992fi
12993
12994if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12995 set dummy readelf
12996 if test $build = $target ; then
12997 READELF_FOR_TARGET="$2"
12998 else
12999 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13000 fi
13001else
13002 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13003fi
13004
13005else
13006 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13007fi
13008
13009
13010
13011
e8b05380
PB
13012if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13013 if test -n "$with_build_time_tools"; then
5213506e
RW
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13015$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13016 if test -x $with_build_time_tools/strip; then
13017 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13018 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13020$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13021 else
5213506e
RW
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13023$as_echo "no" >&6; }
d1f8db0c 13024 fi
e8b05380
PB
13025 elif test $build != $host && test $have_gcc_for_target = yes; then
13026 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13027 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13028 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13029 fi
13030fi
3e19841a 13031if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13032 # Extract the first word of "strip", so it can be a program name with args.
13033set dummy strip; ac_word=$2
5213506e
RW
13034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13035$as_echo_n "checking for $ac_word... " >&6; }
13036if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
e8b05380 13038else
1c710c3c
DJ
13039 case $STRIP_FOR_TARGET in
13040 [\\/]* | ?:[\\/]*)
e8b05380
PB
13041 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13042 ;;
e8b05380 13043 *)
1c710c3c
DJ
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045for as_dir in $gcc_cv_tool_dirs
13046do
13047 IFS=$as_save_IFS
13048 test -z "$as_dir" && as_dir=.
5213506e
RW
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13051 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13053 break 2
13054 fi
13055done
5213506e
RW
13056 done
13057IFS=$as_save_IFS
1c710c3c 13058
e8b05380
PB
13059 ;;
13060esac
13061fi
1c710c3c 13062STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13063if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13065$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13066else
5213506e
RW
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068$as_echo "no" >&6; }
e8b05380
PB
13069fi
13070
5213506e 13071
e8b05380
PB
13072fi
13073if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13074
13075
13076if test -n "$STRIP_FOR_TARGET"; then
13077 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13078elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13079 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13080fi
13081
13082if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13083 for ncn_progname in strip; do
13084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13085set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13087$as_echo_n "checking for $ac_word... " >&6; }
13088if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
278a7a38
AO
13090else
13091 if test -n "$STRIP_FOR_TARGET"; then
13092 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13093else
13094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13095for as_dir in $PATH
13096do
13097 IFS=$as_save_IFS
13098 test -z "$as_dir" && as_dir=.
5213506e
RW
13099 for ac_exec_ext in '' $ac_executable_extensions; do
13100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13101 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13103 break 2
13104 fi
13105done
5213506e
RW
13106 done
13107IFS=$as_save_IFS
278a7a38
AO
13108
13109fi
13110fi
13111STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13112if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13114$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13115else
5213506e
RW
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13117$as_echo "no" >&6; }
278a7a38
AO
13118fi
13119
5213506e 13120
278a7a38
AO
13121 done
13122fi
13123
13124if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13125 for ncn_progname in strip; do
5213506e
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13127$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13128 if test -x $with_build_time_tools/${ncn_progname}; then
13129 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13131$as_echo "yes" >&6; }
e8b05380
PB
13132 break
13133 else
5213506e
RW
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135$as_echo "no" >&6; }
e8b05380
PB
13136 fi
13137 done
13138fi
13139
13140if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13141 for ncn_progname in strip; do
13142 if test -n "$ncn_target_tool_prefix"; then
13143 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13144set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13146$as_echo_n "checking for $ac_word... " >&6; }
13147if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
af71363e
AS
13149else
13150 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13151 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13152else
13153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13154for as_dir in $PATH
13155do
13156 IFS=$as_save_IFS
13157 test -z "$as_dir" && as_dir=.
5213506e
RW
13158 for ac_exec_ext in '' $ac_executable_extensions; do
13159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13160 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13162 break 2
13163 fi
13164done
5213506e
RW
13165 done
13166IFS=$as_save_IFS
1c710c3c 13167
040b1c5a
GK
13168fi
13169fi
1c710c3c 13170STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13171if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13173$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13174else
5213506e
RW
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13176$as_echo "no" >&6; }
040b1c5a
GK
13177fi
13178
5213506e 13179
e8b05380
PB
13180 fi
13181 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13183set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13185$as_echo_n "checking for $ac_word... " >&6; }
13186if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13187 $as_echo_n "(cached) " >&6
040b1c5a
GK
13188else
13189 if test -n "$STRIP_FOR_TARGET"; then
13190 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13191else
1c710c3c
DJ
13192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193for as_dir in $PATH
13194do
13195 IFS=$as_save_IFS
13196 test -z "$as_dir" && as_dir=.
5213506e
RW
13197 for ac_exec_ext in '' $ac_executable_extensions; do
13198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13199 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13201 break 2
13202 fi
13203done
5213506e
RW
13204 done
13205IFS=$as_save_IFS
1c710c3c 13206
040b1c5a
GK
13207fi
13208fi
1c710c3c 13209STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13210if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13212$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13213else
5213506e
RW
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13215$as_echo "no" >&6; }
040b1c5a 13216fi
1c710c3c 13217
5213506e 13218
e8b05380
PB
13219 fi
13220 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13221 done
13222fi
1c710c3c 13223
040b1c5a
GK
13224if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13225 set dummy strip
13226 if test $build = $target ; then
13227 STRIP_FOR_TARGET="$2"
13228 else
13229 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13230 fi
1c00b503
PB
13231else
13232 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13233fi
13234
d1f8db0c
PB
13235else
13236 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13237fi
13238
13239
13240
13241
13242if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13243 if test -n "$with_build_time_tools"; then
5213506e
RW
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13245$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13246 if test -x $with_build_time_tools/windres; then
13247 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13248 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13250$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13251 else
5213506e
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253$as_echo "no" >&6; }
d1f8db0c 13254 fi
e8b05380
PB
13255 elif test $build != $host && test $have_gcc_for_target = yes; then
13256 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13257 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13258 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13259 fi
13260fi
3e19841a 13261if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13262 # Extract the first word of "windres", so it can be a program name with args.
13263set dummy windres; ac_word=$2
5213506e
RW
13264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13265$as_echo_n "checking for $ac_word... " >&6; }
13266if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13267 $as_echo_n "(cached) " >&6
e8b05380 13268else
1c710c3c
DJ
13269 case $WINDRES_FOR_TARGET in
13270 [\\/]* | ?:[\\/]*)
e8b05380
PB
13271 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13272 ;;
e8b05380 13273 *)
1c710c3c
DJ
13274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13275for as_dir in $gcc_cv_tool_dirs
13276do
13277 IFS=$as_save_IFS
13278 test -z "$as_dir" && as_dir=.
5213506e
RW
13279 for ac_exec_ext in '' $ac_executable_extensions; do
13280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13281 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13283 break 2
13284 fi
13285done
5213506e
RW
13286 done
13287IFS=$as_save_IFS
1c710c3c 13288
e8b05380
PB
13289 ;;
13290esac
13291fi
1c710c3c 13292WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13293if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13295$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13296else
5213506e
RW
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13298$as_echo "no" >&6; }
e8b05380
PB
13299fi
13300
5213506e 13301
e8b05380
PB
13302fi
13303if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13304
13305
13306if test -n "$WINDRES_FOR_TARGET"; then
13307 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13308elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13309 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13310fi
13311
13312if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13313 for ncn_progname in windres; do
13314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13315set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13317$as_echo_n "checking for $ac_word... " >&6; }
13318if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13319 $as_echo_n "(cached) " >&6
278a7a38
AO
13320else
13321 if test -n "$WINDRES_FOR_TARGET"; then
13322 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13323else
13324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13325for as_dir in $PATH
13326do
13327 IFS=$as_save_IFS
13328 test -z "$as_dir" && as_dir=.
5213506e
RW
13329 for ac_exec_ext in '' $ac_executable_extensions; do
13330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13331 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13333 break 2
13334 fi
13335done
5213506e
RW
13336 done
13337IFS=$as_save_IFS
278a7a38
AO
13338
13339fi
13340fi
13341WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13342if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13344$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13345else
5213506e
RW
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13347$as_echo "no" >&6; }
278a7a38
AO
13348fi
13349
5213506e 13350
278a7a38
AO
13351 done
13352fi
13353
13354if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13355 for ncn_progname in windres; do
5213506e
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13357$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13358 if test -x $with_build_time_tools/${ncn_progname}; then
13359 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13361$as_echo "yes" >&6; }
e8b05380
PB
13362 break
13363 else
5213506e
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365$as_echo "no" >&6; }
e8b05380
PB
13366 fi
13367 done
13368fi
13369
13370if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13371 for ncn_progname in windres; do
13372 if test -n "$ncn_target_tool_prefix"; then
13373 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13374set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13376$as_echo_n "checking for $ac_word... " >&6; }
13377if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13378 $as_echo_n "(cached) " >&6
ca9f4b81 13379else
4de997d1
PB
13380 if test -n "$WINDRES_FOR_TARGET"; then
13381 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13382else
1c710c3c
DJ
13383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384for as_dir in $PATH
13385do
13386 IFS=$as_save_IFS
13387 test -z "$as_dir" && as_dir=.
5213506e
RW
13388 for ac_exec_ext in '' $ac_executable_extensions; do
13389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13390 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13392 break 2
13393 fi
13394done
5213506e
RW
13395 done
13396IFS=$as_save_IFS
1c710c3c 13397
ca9f4b81
AO
13398fi
13399fi
1c710c3c 13400WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13401if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13403$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13404else
5213506e
RW
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13406$as_echo "no" >&6; }
ca9f4b81
AO
13407fi
13408
5213506e 13409
e8b05380
PB
13410 fi
13411 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13412 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13413set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13415$as_echo_n "checking for $ac_word... " >&6; }
13416if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13417 $as_echo_n "(cached) " >&6
ca9f4b81 13418else
2693c0b0
PB
13419 if test -n "$WINDRES_FOR_TARGET"; then
13420 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13421else
1c710c3c
DJ
13422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13423for as_dir in $PATH
13424do
13425 IFS=$as_save_IFS
13426 test -z "$as_dir" && as_dir=.
5213506e
RW
13427 for ac_exec_ext in '' $ac_executable_extensions; do
13428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13429 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13431 break 2
13432 fi
13433done
5213506e
RW
13434 done
13435IFS=$as_save_IFS
1c710c3c 13436
ca9f4b81
AO
13437fi
13438fi
1c710c3c 13439WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13440if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13442$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13443else
5213506e
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445$as_echo "no" >&6; }
ca9f4b81 13446fi
1c710c3c 13447
5213506e 13448
e8b05380
PB
13449 fi
13450 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13451 done
13452fi
1c710c3c 13453
2693c0b0
PB
13454if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13455 set dummy windres
13456 if test $build = $target ; then
13457 WINDRES_FOR_TARGET="$2"
ca9f4b81 13458 else
2693c0b0 13459 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13460 fi
1c00b503
PB
13461else
13462 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13463fi
13464
d1f8db0c
PB
13465else
13466 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13467fi
13468
4977bab6 13469
901119ae
KT
13470
13471
13472if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13473 if test -n "$with_build_time_tools"; then
5213506e
RW
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13475$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13476 if test -x $with_build_time_tools/windmc; then
13477 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13478 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13480$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13481 else
5213506e
RW
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13483$as_echo "no" >&6; }
901119ae
KT
13484 fi
13485 elif test $build != $host && test $have_gcc_for_target = yes; then
13486 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13487 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13488 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13489 fi
13490fi
13491if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13492 # Extract the first word of "windmc", so it can be a program name with args.
13493set dummy windmc; ac_word=$2
5213506e
RW
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13495$as_echo_n "checking for $ac_word... " >&6; }
13496if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13497 $as_echo_n "(cached) " >&6
901119ae
KT
13498else
13499 case $WINDMC_FOR_TARGET in
13500 [\\/]* | ?:[\\/]*)
13501 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13502 ;;
13503 *)
13504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13505for as_dir in $gcc_cv_tool_dirs
13506do
13507 IFS=$as_save_IFS
13508 test -z "$as_dir" && as_dir=.
5213506e
RW
13509 for ac_exec_ext in '' $ac_executable_extensions; do
13510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13511 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13513 break 2
13514 fi
13515done
5213506e
RW
13516 done
13517IFS=$as_save_IFS
901119ae
KT
13518
13519 ;;
13520esac
13521fi
13522WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13523if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13525$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13526else
5213506e
RW
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13528$as_echo "no" >&6; }
901119ae
KT
13529fi
13530
5213506e 13531
901119ae
KT
13532fi
13533if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13534
13535
13536if test -n "$WINDMC_FOR_TARGET"; then
13537 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13538elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13539 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13540fi
13541
13542if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13543 for ncn_progname in windmc; do
13544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13545set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13547$as_echo_n "checking for $ac_word... " >&6; }
13548if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13549 $as_echo_n "(cached) " >&6
901119ae
KT
13550else
13551 if test -n "$WINDMC_FOR_TARGET"; then
13552 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13553else
13554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13555for as_dir in $PATH
13556do
13557 IFS=$as_save_IFS
13558 test -z "$as_dir" && as_dir=.
5213506e
RW
13559 for ac_exec_ext in '' $ac_executable_extensions; do
13560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13561 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13563 break 2
13564 fi
13565done
5213506e
RW
13566 done
13567IFS=$as_save_IFS
901119ae
KT
13568
13569fi
13570fi
13571WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13572if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13574$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13575else
5213506e
RW
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13577$as_echo "no" >&6; }
901119ae
KT
13578fi
13579
5213506e 13580
901119ae
KT
13581 done
13582fi
13583
13584if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13585 for ncn_progname in windmc; do
5213506e
RW
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13587$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13588 if test -x $with_build_time_tools/${ncn_progname}; then
13589 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591$as_echo "yes" >&6; }
901119ae
KT
13592 break
13593 else
5213506e
RW
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13595$as_echo "no" >&6; }
901119ae
KT
13596 fi
13597 done
13598fi
13599
13600if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13601 for ncn_progname in windmc; do
13602 if test -n "$ncn_target_tool_prefix"; then
13603 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13604set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13606$as_echo_n "checking for $ac_word... " >&6; }
13607if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13608 $as_echo_n "(cached) " >&6
901119ae
KT
13609else
13610 if test -n "$WINDMC_FOR_TARGET"; then
13611 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13612else
13613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614for as_dir in $PATH
13615do
13616 IFS=$as_save_IFS
13617 test -z "$as_dir" && as_dir=.
5213506e
RW
13618 for ac_exec_ext in '' $ac_executable_extensions; do
13619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13620 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13622 break 2
13623 fi
13624done
5213506e
RW
13625 done
13626IFS=$as_save_IFS
901119ae
KT
13627
13628fi
13629fi
13630WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13631if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13633$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13634else
5213506e
RW
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13636$as_echo "no" >&6; }
901119ae
KT
13637fi
13638
5213506e 13639
901119ae
KT
13640 fi
13641 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13643set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13645$as_echo_n "checking for $ac_word... " >&6; }
13646if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13647 $as_echo_n "(cached) " >&6
901119ae
KT
13648else
13649 if test -n "$WINDMC_FOR_TARGET"; then
13650 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13651else
13652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13653for as_dir in $PATH
13654do
13655 IFS=$as_save_IFS
13656 test -z "$as_dir" && as_dir=.
5213506e
RW
13657 for ac_exec_ext in '' $ac_executable_extensions; do
13658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13659 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13661 break 2
13662 fi
13663done
5213506e
RW
13664 done
13665IFS=$as_save_IFS
901119ae
KT
13666
13667fi
13668fi
13669WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13670if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13672$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13673else
5213506e
RW
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13675$as_echo "no" >&6; }
901119ae
KT
13676fi
13677
5213506e 13678
901119ae
KT
13679 fi
13680 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13681 done
13682fi
13683
13684if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13685 set dummy windmc
13686 if test $build = $target ; then
13687 WINDMC_FOR_TARGET="$2"
13688 else
13689 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13690 fi
1c00b503
PB
13691else
13692 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13693fi
13694
13695else
13696 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13697fi
13698
13699
2abefe3d
PB
13700RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13701
5213506e
RW
13702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13703$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13704if test "x${build}" != "x${host}" ; then
e8b05380
PB
13705 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13706 # We already found the complete path
172e41aa 13707 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13709$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13710 else
13711 # Canadian cross, just use what we found
5213506e
RW
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13713$as_echo "pre-installed" >&6; }
e8b05380 13714 fi
2abefe3d
PB
13715else
13716 ok=yes
13717 case " ${configdirs} " in
13718 *" binutils "*) ;;
13719 *) ok=no ;;
13720 esac
1c710c3c 13721
2abefe3d
PB
13722 if test $ok = yes; then
13723 # An in-tree tool is available and we can use it
13724 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13726$as_echo "just compiled" >&6; }
e8b05380
PB
13727 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
172e41aa 13729 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13732 elif test "x$target" = "x$host"; then
13733 # We can use an host tool
13734 AR_FOR_TARGET='$(AR)'
5213506e
RW
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13736$as_echo "host tool" >&6; }
2abefe3d
PB
13737 else
13738 # We need a cross tool
5213506e
RW
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13740$as_echo "pre-installed" >&6; }
2abefe3d
PB
13741 fi
13742fi
0b0dc272 13743
5213506e
RW
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13745$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13746if test "x${build}" != "x${host}" ; then
e8b05380
PB
13747 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13748 # We already found the complete path
172e41aa 13749 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13751$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13752 else
13753 # Canadian cross, just use what we found
5213506e
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13755$as_echo "pre-installed" >&6; }
e8b05380 13756 fi
2abefe3d
PB
13757else
13758 ok=yes
13759 case " ${configdirs} " in
13760 *" gas "*) ;;
13761 *) ok=no ;;
13762 esac
1c710c3c 13763
2abefe3d
PB
13764 if test $ok = yes; then
13765 # An in-tree tool is available and we can use it
13766 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13768$as_echo "just compiled" >&6; }
e8b05380
PB
13769 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13770 # We already found the complete path
172e41aa 13771 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13773$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13774 elif test "x$target" = "x$host"; then
13775 # We can use an host tool
13776 AS_FOR_TARGET='$(AS)'
5213506e
RW
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13778$as_echo "host tool" >&6; }
2abefe3d
PB
13779 else
13780 # We need a cross tool
5213506e
RW
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13782$as_echo "pre-installed" >&6; }
2abefe3d
PB
13783 fi
13784fi
0b0dc272 13785
5213506e
RW
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13787$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13788if test "x${build}" != "x${host}" ; then
e8b05380
PB
13789 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13790 # We already found the complete path
172e41aa 13791 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13793$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13794 else
13795 # Canadian cross, just use what we found
5213506e
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13797$as_echo "pre-installed" >&6; }
e8b05380 13798 fi
2abefe3d
PB
13799else
13800 ok=yes
13801 case " ${configdirs} " in
13802 *" gcc "*) ;;
13803 *) ok=no ;;
13804 esac
1c710c3c 13805
2abefe3d
PB
13806 if test $ok = yes; then
13807 # An in-tree tool is available and we can use it
13808 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13810$as_echo "just compiled" >&6; }
e8b05380
PB
13811 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13812 # We already found the complete path
172e41aa 13813 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13815$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13816 elif test "x$target" = "x$host"; then
13817 # We can use an host tool
13818 CC_FOR_TARGET='$(CC)'
5213506e
RW
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13820$as_echo "host tool" >&6; }
2abefe3d
PB
13821 else
13822 # We need a cross tool
5213506e
RW
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13824$as_echo "pre-installed" >&6; }
2abefe3d
PB
13825 fi
13826fi
0b0dc272 13827
5213506e
RW
13828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13829$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13830if test "x${build}" != "x${host}" ; then
e8b05380
PB
13831 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13832 # We already found the complete path
172e41aa 13833 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13835$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13836 else
13837 # Canadian cross, just use what we found
5213506e
RW
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13839$as_echo "pre-installed" >&6; }
e8b05380 13840 fi
2abefe3d
PB
13841else
13842 ok=yes
13843 case " ${configdirs} " in
13844 *" gcc "*) ;;
13845 *) ok=no ;;
13846 esac
13847 case ,${enable_languages}, in
13848 *,c++,*) ;;
13849 *) ok=no ;;
13850 esac
13851 if test $ok = yes; then
13852 # An in-tree tool is available and we can use it
2077db1b 13853 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
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13855$as_echo "just compiled" >&6; }
e8b05380
PB
13856 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13857 # We already found the complete path
172e41aa 13858 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13860$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13861 elif test "x$target" = "x$host"; then
13862 # We can use an host tool
13863 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13865$as_echo "host tool" >&6; }
2abefe3d
PB
13866 else
13867 # We need a cross tool
5213506e
RW
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13869$as_echo "pre-installed" >&6; }
2abefe3d
PB
13870 fi
13871fi
0b0dc272 13872
5213506e
RW
13873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13874$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13875if test "x${build}" != "x${host}" ; then
e8b05380
PB
13876 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13877 # We already found the complete path
172e41aa 13878 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13880$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13881 else
13882 # Canadian cross, just use what we found
5213506e
RW
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13884$as_echo "pre-installed" >&6; }
e8b05380 13885 fi
2abefe3d
PB
13886else
13887 ok=yes
13888 case " ${configdirs} " in
13889 *" gcc "*) ;;
13890 *) ok=no ;;
13891 esac
13892 case ,${enable_languages}, in
13893 *,c++,*) ;;
13894 *) ok=no ;;
13895 esac
13896 if test $ok = yes; then
13897 # An in-tree tool is available and we can use it
2077db1b 13898 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
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13900$as_echo "just compiled" >&6; }
e8b05380
PB
13901 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13902 # We already found the complete path
172e41aa 13903 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13905$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13906 elif test "x$target" = "x$host"; then
13907 # We can use an host tool
13908 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13910$as_echo "host tool" >&6; }
2abefe3d
PB
13911 else
13912 # We need a cross tool
5213506e
RW
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13914$as_echo "pre-installed" >&6; }
2abefe3d
PB
13915 fi
13916fi
0b0dc272 13917
5213506e
RW
13918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13919$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13920if test "x${build}" != "x${host}" ; then
e8b05380
PB
13921 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13922 # We already found the complete path
172e41aa 13923 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13925$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13926 else
13927 # Canadian cross, just use what we found
5213506e
RW
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13929$as_echo "pre-installed" >&6; }
e8b05380 13930 fi
2abefe3d
PB
13931else
13932 ok=yes
13933 case " ${configdirs} " in
13934 *" binutils "*) ;;
13935 *) ok=no ;;
13936 esac
1c710c3c 13937
2abefe3d
PB
13938 if test $ok = yes; then
13939 # An in-tree tool is available and we can use it
13940 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13942$as_echo "just compiled" >&6; }
e8b05380
PB
13943 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13944 # We already found the complete path
172e41aa 13945 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13947$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13948 elif test "x$target" = "x$host"; then
13949 # We can use an host tool
13950 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13952$as_echo "host tool" >&6; }
2abefe3d
PB
13953 else
13954 # We need a cross tool
5213506e
RW
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13956$as_echo "pre-installed" >&6; }
2abefe3d
PB
13957 fi
13958fi
0b0dc272 13959
5213506e
RW
13960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13961$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13962if test "x${build}" != "x${host}" ; then
e8b05380
PB
13963 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13964 # We already found the complete path
172e41aa 13965 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13967$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13968 else
13969 # Canadian cross, just use what we found
5213506e
RW
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13971$as_echo "pre-installed" >&6; }
e8b05380 13972 fi
2abefe3d
PB
13973else
13974 ok=yes
13975 case " ${configdirs} " in
13976 *" gcc "*) ;;
13977 *) ok=no ;;
13978 esac
1c710c3c 13979
2abefe3d
PB
13980 if test $ok = yes; then
13981 # An in-tree tool is available and we can use it
13982 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13984$as_echo "just compiled" >&6; }
e8b05380
PB
13985 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13986 # We already found the complete path
172e41aa 13987 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13989$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13990 elif test "x$target" = "x$host"; then
13991 # We can use an host tool
13992 GCC_FOR_TARGET='$()'
5213506e
RW
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13994$as_echo "host tool" >&6; }
2abefe3d
PB
13995 else
13996 # We need a cross tool
5213506e
RW
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13998$as_echo "pre-installed" >&6; }
2abefe3d
PB
13999 fi
14000fi
0b0dc272 14001
5213506e
RW
14002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14003$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14004if test "x${build}" != "x${host}" ; then
e8b05380
PB
14005 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14006 # We already found the complete path
172e41aa 14007 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14009$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14010 else
14011 # Canadian cross, just use what we found
5213506e
RW
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14013$as_echo "pre-installed" >&6; }
e8b05380 14014 fi
2abefe3d
PB
14015else
14016 ok=yes
14017 case " ${configdirs} " in
14018 *" gcc "*) ;;
14019 *) ok=no ;;
14020 esac
14021 case ,${enable_languages}, in
14022 *,fortran,*) ;;
14023 *) ok=no ;;
14024 esac
14025 if test $ok = yes; then
14026 # An in-tree tool is available and we can use it
14027 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14029$as_echo "just compiled" >&6; }
e8b05380
PB
14030 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14031 # We already found the complete path
172e41aa 14032 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14034$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14035 elif test "x$target" = "x$host"; then
14036 # We can use an host tool
14037 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14039$as_echo "host tool" >&6; }
2abefe3d
PB
14040 else
14041 # We need a cross tool
5213506e
RW
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14043$as_echo "pre-installed" >&6; }
2abefe3d
PB
14044 fi
14045fi
0b0dc272 14046
632e2a07
ILT
14047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14048$as_echo_n "checking where to find the target gccgo... " >&6; }
14049if test "x${build}" != "x${host}" ; then
14050 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14051 # We already found the complete path
14052 ac_dir=`dirname $GOC_FOR_TARGET`
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14054$as_echo "pre-installed in $ac_dir" >&6; }
14055 else
14056 # Canadian cross, just use what we found
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14058$as_echo "pre-installed" >&6; }
14059 fi
14060else
14061 ok=yes
14062 case " ${configdirs} " in
14063 *" gcc "*) ;;
14064 *) ok=no ;;
14065 esac
14066 case ,${enable_languages}, in
14067 *,go,*) ;;
14068 *) ok=no ;;
14069 esac
14070 if test $ok = yes; then
14071 # An in-tree tool is available and we can use it
14072 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14074$as_echo "just compiled" >&6; }
14075 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14076 # We already found the complete path
14077 ac_dir=`dirname $GOC_FOR_TARGET`
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14079$as_echo "pre-installed in $ac_dir" >&6; }
14080 elif test "x$target" = "x$host"; then
14081 # We can use an host tool
14082 GOC_FOR_TARGET='$(GOC)'
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14084$as_echo "host tool" >&6; }
14085 else
14086 # We need a cross tool
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14088$as_echo "pre-installed" >&6; }
14089 fi
14090fi
14091
5213506e
RW
14092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14093$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14094if test "x${build}" != "x${host}" ; then
e8b05380
PB
14095 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14096 # We already found the complete path
172e41aa 14097 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14099$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14100 else
14101 # Canadian cross, just use what we found
5213506e
RW
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14103$as_echo "pre-installed" >&6; }
e8b05380 14104 fi
2abefe3d
PB
14105else
14106 ok=yes
14107 case " ${configdirs} " in
14108 *" ld "*) ;;
14109 *) ok=no ;;
14110 esac
1c710c3c 14111
2abefe3d
PB
14112 if test $ok = yes; then
14113 # An in-tree tool is available and we can use it
14114 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14116$as_echo "just compiled" >&6; }
e8b05380
PB
14117 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14118 # We already found the complete path
172e41aa 14119 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14121$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14122 elif test "x$target" = "x$host"; then
14123 # We can use an host tool
14124 LD_FOR_TARGET='$(LD)'
5213506e
RW
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14126$as_echo "host tool" >&6; }
2abefe3d
PB
14127 else
14128 # We need a cross tool
5213506e
RW
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14130$as_echo "pre-installed" >&6; }
2abefe3d
PB
14131 fi
14132fi
0b0dc272 14133
5213506e
RW
14134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14135$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14136if test "x${build}" != "x${host}" ; then
e8b05380
PB
14137 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14138 # We already found the complete path
172e41aa 14139 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14141$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14142 else
14143 # Canadian cross, just use what we found
5213506e
RW
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14145$as_echo "pre-installed" >&6; }
e8b05380 14146 fi
2abefe3d 14147else
e8b05380
PB
14148 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14149 # We already found the complete path
172e41aa 14150 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14152$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14153 elif test "x$target" = "x$host"; then
2abefe3d
PB
14154 # We can use an host tool
14155 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14157$as_echo "host tool" >&6; }
2abefe3d
PB
14158 else
14159 # We need a cross tool
5213506e
RW
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14161$as_echo "pre-installed" >&6; }
2abefe3d
PB
14162 fi
14163fi
0b0dc272 14164
5213506e
RW
14165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14166$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14167if test "x${build}" != "x${host}" ; then
e8b05380
PB
14168 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14169 # We already found the complete path
172e41aa 14170 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14172$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14173 else
14174 # Canadian cross, just use what we found
5213506e
RW
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14176$as_echo "pre-installed" >&6; }
e8b05380 14177 fi
2abefe3d
PB
14178else
14179 ok=yes
14180 case " ${configdirs} " in
14181 *" binutils "*) ;;
14182 *) ok=no ;;
14183 esac
1c710c3c 14184
2abefe3d
PB
14185 if test $ok = yes; then
14186 # An in-tree tool is available and we can use it
14187 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14189$as_echo "just compiled" >&6; }
e8b05380
PB
14190 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14191 # We already found the complete path
172e41aa 14192 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14194$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14195 elif test "x$target" = "x$host"; then
14196 # We can use an host tool
14197 NM_FOR_TARGET='$(NM)'
5213506e
RW
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14199$as_echo "host tool" >&6; }
2abefe3d
PB
14200 else
14201 # We need a cross tool
5213506e
RW
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14203$as_echo "pre-installed" >&6; }
2abefe3d
PB
14204 fi
14205fi
0b0dc272 14206
9bccfdf5
AP
14207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14208$as_echo_n "checking where to find the target objcopy... " >&6; }
14209if test "x${build}" != "x${host}" ; then
14210 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14211 # We already found the complete path
14212 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14214$as_echo "pre-installed in $ac_dir" >&6; }
14215 else
14216 # Canadian cross, just use what we found
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14218$as_echo "pre-installed" >&6; }
14219 fi
14220else
14221 ok=yes
14222 case " ${configdirs} " in
14223 *" binutils "*) ;;
14224 *) ok=no ;;
14225 esac
14226
14227 if test $ok = yes; then
14228 # An in-tree tool is available and we can use it
14229 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14231$as_echo "just compiled" >&6; }
14232 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14233 # We already found the complete path
14234 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14236$as_echo "pre-installed in $ac_dir" >&6; }
14237 elif test "x$target" = "x$host"; then
14238 # We can use an host tool
ec8fd1c0 14239 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14241$as_echo "host tool" >&6; }
14242 else
14243 # We need a cross tool
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14245$as_echo "pre-installed" >&6; }
14246 fi
14247fi
14248
5213506e
RW
14249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14250$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14251if test "x${build}" != "x${host}" ; then
e8b05380
PB
14252 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14253 # We already found the complete path
172e41aa 14254 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14256$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14257 else
14258 # Canadian cross, just use what we found
5213506e
RW
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14260$as_echo "pre-installed" >&6; }
e8b05380 14261 fi
2abefe3d
PB
14262else
14263 ok=yes
14264 case " ${configdirs} " in
14265 *" binutils "*) ;;
14266 *) ok=no ;;
14267 esac
1c710c3c 14268
2abefe3d
PB
14269 if test $ok = yes; then
14270 # An in-tree tool is available and we can use it
14271 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14273$as_echo "just compiled" >&6; }
e8b05380
PB
14274 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14275 # We already found the complete path
172e41aa 14276 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14278$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14279 elif test "x$target" = "x$host"; then
14280 # We can use an host tool
14281 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14283$as_echo "host tool" >&6; }
2abefe3d
PB
14284 else
14285 # We need a cross tool
5213506e
RW
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14287$as_echo "pre-installed" >&6; }
2abefe3d
PB
14288 fi
14289fi
0b0dc272 14290
5213506e
RW
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14292$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14293if test "x${build}" != "x${host}" ; then
e8b05380
PB
14294 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14295 # We already found the complete path
172e41aa 14296 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14298$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14299 else
14300 # Canadian cross, just use what we found
5213506e
RW
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14302$as_echo "pre-installed" >&6; }
e8b05380 14303 fi
2abefe3d
PB
14304else
14305 ok=yes
14306 case " ${configdirs} " in
14307 *" binutils "*) ;;
14308 *) ok=no ;;
14309 esac
1c710c3c 14310
2abefe3d
PB
14311 if test $ok = yes; then
14312 # An in-tree tool is available and we can use it
14313 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14315$as_echo "just compiled" >&6; }
e8b05380
PB
14316 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
172e41aa 14318 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14321 elif test "x$target" = "x$host"; then
14322 # We can use an host tool
14323 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14325$as_echo "host tool" >&6; }
2abefe3d
PB
14326 else
14327 # We need a cross tool
5213506e
RW
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14329$as_echo "pre-installed" >&6; }
2abefe3d
PB
14330 fi
14331fi
0b0dc272 14332
e7a82751
RM
14333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14334$as_echo_n "checking where to find the target readelf... " >&6; }
14335if test "x${build}" != "x${host}" ; then
14336 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14337 # We already found the complete path
14338 ac_dir=`dirname $READELF_FOR_TARGET`
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14340$as_echo "pre-installed in $ac_dir" >&6; }
14341 else
14342 # Canadian cross, just use what we found
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14344$as_echo "pre-installed" >&6; }
14345 fi
14346else
14347 ok=yes
14348 case " ${configdirs} " in
14349 *" binutils "*) ;;
14350 *) ok=no ;;
14351 esac
14352
14353 if test $ok = yes; then
14354 # An in-tree tool is available and we can use it
14355 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14357$as_echo "just compiled" >&6; }
14358 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
14360 ac_dir=`dirname $READELF_FOR_TARGET`
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362$as_echo "pre-installed in $ac_dir" >&6; }
14363 elif test "x$target" = "x$host"; then
14364 # We can use an host tool
14365 READELF_FOR_TARGET='$(READELF)'
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14367$as_echo "host tool" >&6; }
14368 else
14369 # We need a cross tool
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14371$as_echo "pre-installed" >&6; }
14372 fi
14373fi
14374
5213506e
RW
14375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14376$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14377if test "x${build}" != "x${host}" ; then
e8b05380
PB
14378 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14379 # We already found the complete path
172e41aa 14380 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14382$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14383 else
14384 # Canadian cross, just use what we found
5213506e
RW
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14386$as_echo "pre-installed" >&6; }
e8b05380 14387 fi
2abefe3d
PB
14388else
14389 ok=yes
14390 case " ${configdirs} " in
14391 *" binutils "*) ;;
14392 *) ok=no ;;
14393 esac
1c710c3c 14394
2abefe3d
PB
14395 if test $ok = yes; then
14396 # An in-tree tool is available and we can use it
455c8f48 14397 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14399$as_echo "just compiled" >&6; }
e8b05380
PB
14400 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
172e41aa 14402 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14404$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14405 elif test "x$target" = "x$host"; then
14406 # We can use an host tool
14407 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14409$as_echo "host tool" >&6; }
2abefe3d
PB
14410 else
14411 # We need a cross tool
5213506e
RW
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14413$as_echo "pre-installed" >&6; }
2abefe3d
PB
14414 fi
14415fi
0b0dc272 14416
5213506e
RW
14417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14418$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14419if test "x${build}" != "x${host}" ; then
e8b05380
PB
14420 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14421 # We already found the complete path
172e41aa 14422 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14424$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14425 else
14426 # Canadian cross, just use what we found
5213506e
RW
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14428$as_echo "pre-installed" >&6; }
e8b05380 14429 fi
2abefe3d
PB
14430else
14431 ok=yes
14432 case " ${configdirs} " in
14433 *" binutils "*) ;;
14434 *) ok=no ;;
14435 esac
1c710c3c 14436
2abefe3d
PB
14437 if test $ok = yes; then
14438 # An in-tree tool is available and we can use it
14439 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14441$as_echo "just compiled" >&6; }
e8b05380
PB
14442 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14443 # We already found the complete path
172e41aa 14444 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14446$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14447 elif test "x$target" = "x$host"; then
14448 # We can use an host tool
14449 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14451$as_echo "host tool" >&6; }
2abefe3d
PB
14452 else
14453 # We need a cross tool
5213506e
RW
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14455$as_echo "pre-installed" >&6; }
2abefe3d 14456 fi
671aa708 14457fi
be912515 14458
5213506e
RW
14459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14460$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14461if test "x${build}" != "x${host}" ; then
14462 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14463 # We already found the complete path
14464 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14466$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14467 else
14468 # Canadian cross, just use what we found
5213506e
RW
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14470$as_echo "pre-installed" >&6; }
901119ae
KT
14471 fi
14472else
14473 ok=yes
14474 case " ${configdirs} " in
14475 *" binutils "*) ;;
14476 *) ok=no ;;
14477 esac
14478
14479 if test $ok = yes; then
14480 # An in-tree tool is available and we can use it
14481 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14483$as_echo "just compiled" >&6; }
901119ae
KT
14484 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14485 # We already found the complete path
14486 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14488$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14489 elif test "x$target" = "x$host"; then
14490 # We can use an host tool
14491 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14493$as_echo "host tool" >&6; }
901119ae
KT
14494 else
14495 # We need a cross tool
5213506e
RW
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14497$as_echo "pre-installed" >&6; }
901119ae
KT
14498 fi
14499fi
14500
be912515
NN
14501
14502
2abefe3d 14503
0b0dc272 14504
671aa708
NN
14505# Certain tools may need extra flags.
14506AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14507RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14508NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14509
2abefe3d
PB
14510# When building target libraries, except in a Canadian cross, we use
14511# the same toolchain as the compiler we just built.
14512COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14513COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14514COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14515if test $host = $build; then
14516 case " $configdirs " in
14517 *" gcc "*)
14518 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14519 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14520 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14521 ;;
14522 esac
14523fi
14524
14525
14526
14527
14528
5213506e
RW
14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14530$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14531# Check whether --enable-maintainer-mode was given.
14532if test "${enable_maintainer_mode+set}" = set; then :
14533 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14534else
14535 USE_MAINTAINER_MODE=no
5213506e
RW
14536fi
14537
14538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14539$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14540
14541
14542if test "$USE_MAINTAINER_MODE" = yes; then
14543 MAINTAINER_MODE_TRUE=
14544 MAINTAINER_MODE_FALSE='#'
14545else
14546 MAINTAINER_MODE_TRUE='#'
14547 MAINTAINER_MODE_FALSE=
1c710c3c 14548fi
ee03dc5e
AO
14549MAINT=$MAINTAINER_MODE_TRUE
14550
2805b53a
NN
14551# ---------------------
14552# GCC bootstrap support
14553# ---------------------
14554
14555# Stage specific cflags for build.
14556stage1_cflags="-g"
14557case $build in
14558 vax-*-*)
14559 case ${GCC} in
14560 yes) stage1_cflags="-g -Wa,-J" ;;
14561 *) stage1_cflags="-g -J" ;;
14562 esac ;;
2805b53a
NN
14563esac
14564
0b50988a 14565
2805b53a 14566
8efea775 14567# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14568# Check whether --enable-stage1-checking was given.
14569if test "${enable_stage1_checking+set}" = set; then :
14570 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14571else
e643dc23 14572 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14573 # For --disable-checking or implicit --enable-checking=release, avoid
14574 # setting --enable-checking=gc in the default stage1 checking for LTO
14575 # bootstraps. See PR62077.
c10b5ea0
JJ
14576 case $BUILD_CONFIG in
14577 *lto*)
7db11a5a
JJ
14578 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14579 *)
14580 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 14581 esac
7db11a5a
JJ
14582 if test "x$enable_checking" = x && \
14583 test -d ${srcdir}/gcc && \
14584 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 14585 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 14586 fi
8efea775 14587else
e643dc23 14588 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14589fi
5213506e 14590fi
8efea775
PB
14591
14592
2aeb72e9 14593
5213506e
RW
14594# Enable -Werror in bootstrap stage2 and later.
14595# Check whether --enable-werror was given.
14596if test "${enable_werror+set}" = set; then :
14597 enableval=$enable_werror;
2805b53a 14598else
416cfb5e 14599 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14600 enable_werror=yes
88fceb68
PB
14601else
14602 enable_werror=no
14603fi
5213506e
RW
14604fi
14605
09a9c095
NN
14606case ${enable_werror} in
14607 yes) stage2_werror_flag="--enable-werror-always" ;;
14608 *) stage2_werror_flag="" ;;
2805b53a
NN
14609esac
14610
14611
459260ec
DM
14612# Enable --enable-host-shared.
14613# Check whether --enable-host-shared was given.
14614if test "${enable_host_shared+set}" = set; then :
14615 enableval=$enable_host_shared; host_shared=$enableval
14616else
14617 host_shared=no
14618fi
14619
14620
14621
231d020b
DM
14622# PR jit/64780: Require the user to explicitly specify
14623# --enable-host-shared if the jit is enabled, hinting
14624# that they might want to do a separate configure/build of
14625# the jit, to avoid users from slowing down the rest of the
14626# compiler by enabling the jit.
14627if test ${host_shared} = "no" ; then
14628 case "${enable_languages}" in
14629 *jit*)
14630 as_fn_error "
14631Enabling language \"jit\" requires --enable-host-shared.
14632
14633--enable-host-shared typically slows the rest of the compiler down by
14634a few %, so you must explicitly enable it.
14635
14636If you want to build both the jit and the regular compiler, it is often
14637best to do this via two separate configure/builds, in separate
14638directories, to avoid imposing the performance cost of
14639--enable-host-shared on the regular compiler." "$LINENO" 5
14640 ;;
14641 *)
14642 ;;
14643 esac
14644fi
14645
f2689b09
SE
14646# Specify what files to not compare during bootstrap.
14647
14648compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14649case "$target" in
14650 hppa*64*-*-hpux*) ;;
14651 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14652 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14653esac
14654
14655
5213506e
RW
14656ac_config_files="$ac_config_files Makefile"
14657
1c710c3c 14658cat >confcache <<\_ACEOF
671aa708
NN
14659# This file is a shell script that caches the results of configure
14660# tests run on this system so they can be shared between configure
1c710c3c
DJ
14661# scripts and configure runs, see configure's option --config-cache.
14662# It is not useful on other systems. If it contains results you don't
14663# want to keep, you may remove or edit it.
671aa708 14664#
1c710c3c
DJ
14665# config.status only pays attention to the cache file if you give it
14666# the --recheck option to rerun configure.
671aa708 14667#
1c710c3c
DJ
14668# `ac_cv_env_foo' variables (set or unset) will be overridden when
14669# loading this file, other *unset* `ac_cv_foo' will be assigned the
14670# following values.
14671
14672_ACEOF
14673
671aa708
NN
14674# The following way of writing the cache mishandles newlines in values,
14675# but we know of no workaround that is simple, portable, and efficient.
5213506e 14676# So, we kill variables containing newlines.
671aa708
NN
14677# Ultrix sh set writes to stderr and can't be redirected directly,
14678# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14679(
14680 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14681 eval ac_val=\$$ac_var
14682 case $ac_val in #(
14683 *${as_nl}*)
14684 case $ac_var in #(
14685 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14686$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14687 esac
14688 case $ac_var in #(
14689 _ | IFS | as_nl) ;; #(
14690 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14691 *) { eval $ac_var=; unset $ac_var;} ;;
14692 esac ;;
14693 esac
14694 done
14695
1c710c3c 14696 (set) 2>&1 |
5213506e
RW
14697 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14698 *${as_nl}ac_space=\ *)
14699 # `set' does not quote correctly, so add quotes: double-quote
14700 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14701 sed -n \
14702 "s/'/'\\\\''/g;
14703 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14704 ;; #(
1c710c3c
DJ
14705 *)
14706 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14707 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14708 ;;
5213506e
RW
14709 esac |
14710 sort
14711) |
1c710c3c 14712 sed '
5213506e 14713 /^ac_cv_env_/b end
1c710c3c 14714 t clear
5213506e 14715 :clear
1c710c3c
DJ
14716 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14717 t end
5213506e
RW
14718 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14719 :end' >>confcache
14720if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14721 if test -w "$cache_file"; then
14722 test "x$cache_file" != "x/dev/null" &&
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14724$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14725 cat confcache >$cache_file
671aa708 14726 else
5213506e
RW
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14728$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14729 fi
4977bab6 14730fi
671aa708 14731rm -f confcache
79c06341 14732
671aa708
NN
14733test "x$prefix" = xNONE && prefix=$ac_default_prefix
14734# Let make expand exec_prefix.
14735test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14736
671aa708
NN
14737# Transform confdefs.h into DEFS.
14738# Protect against shell expansion while executing Makefile rules.
14739# Protect against Makefile macro expansion.
1c710c3c
DJ
14740#
14741# If the first sed substitution is executed (which looks for macros that
5213506e 14742# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14743# look for a macro that doesn't take arguments.
5213506e
RW
14744ac_script='
14745:mline
14746/\\$/{
14747 N
14748 s,\\\n,,
14749 b mline
14750}
1c710c3c 14751t clear
5213506e
RW
14752:clear
14753s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14754t quote
5213506e 14755s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14756t quote
5213506e
RW
14757b any
14758:quote
14759s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14760s/\[/\\&/g
14761s/\]/\\&/g
14762s/\$/$$/g
14763H
14764:any
14765${
14766 g
14767 s/^\n//
14768 s/\n/ /g
14769 p
14770}
14771'
14772DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14773
14774
14775ac_libobjs=
14776ac_ltlibobjs=
14777for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14778 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14779 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14780 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14781 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14782 # will be set to the directory where LIBOBJS objects are built.
14783 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14784 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14785done
14786LIBOBJS=$ac_libobjs
fb0103e5 14787
1c710c3c 14788LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14789
af71363e 14790
1c710c3c
DJ
14791
14792: ${CONFIG_STATUS=./config.status}
5213506e 14793ac_write_fail=0
1c710c3c
DJ
14794ac_clean_files_save=$ac_clean_files
14795ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14796{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14797$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14798as_write_fail=0
14799cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14800#! $SHELL
14801# Generated by $as_me.
671aa708 14802# Run this file to recreate the current configuration.
671aa708 14803# Compiler output produced by configure, useful for debugging
1c710c3c 14804# configure, is in config.log if it exists.
0b0dc272 14805
1c710c3c
DJ
14806debug=false
14807ac_cs_recheck=false
14808ac_cs_silent=false
1c710c3c 14809
5213506e
RW
14810SHELL=\${CONFIG_SHELL-$SHELL}
14811export SHELL
14812_ASEOF
14813cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14814## -------------------- ##
14815## M4sh Initialization. ##
14816## -------------------- ##
14817
14818# Be more Bourne compatible
14819DUALCASE=1; export DUALCASE # for MKS sh
14820if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14821 emulate sh
14822 NULLCMD=:
5213506e 14823 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14824 # is contrary to our usage. Disable this feature.
14825 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14826 setopt NO_GLOB_SUBST
14827else
14828 case `(set -o) 2>/dev/null` in #(
14829 *posix*) :
14830 set -o posix ;; #(
14831 *) :
14832 ;;
14833esac
1c710c3c 14834fi
1c710c3c 14835
5213506e
RW
14836
14837as_nl='
14838'
14839export as_nl
14840# Printing a long string crashes Solaris 7 /usr/bin/printf.
14841as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14842as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14843as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14844# Prefer a ksh shell builtin over an external printf program on Solaris,
14845# but without wasting forks for bash or zsh.
14846if test -z "$BASH_VERSION$ZSH_VERSION" \
14847 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14848 as_echo='print -r --'
14849 as_echo_n='print -rn --'
14850elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14851 as_echo='printf %s\n'
14852 as_echo_n='printf %s'
14853else
14854 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14855 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14856 as_echo_n='/usr/ucb/echo -n'
14857 else
14858 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14859 as_echo_n_body='eval
14860 arg=$1;
14861 case $arg in #(
14862 *"$as_nl"*)
14863 expr "X$arg" : "X\\(.*\\)$as_nl";
14864 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14865 esac;
14866 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14867 '
14868 export as_echo_n_body
14869 as_echo_n='sh -c $as_echo_n_body as_echo'
14870 fi
14871 export as_echo_body
14872 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14873fi
14874
5213506e
RW
14875# The user is always right.
14876if test "${PATH_SEPARATOR+set}" != set; then
14877 PATH_SEPARATOR=:
14878 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14879 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14880 PATH_SEPARATOR=';'
14881 }
14882fi
14883
14884
14885# IFS
14886# We need space, tab and new line, in precisely that order. Quoting is
14887# there to prevent editors from complaining about space-tab.
14888# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14889# splitting by setting IFS to empty value.)
14890IFS=" "" $as_nl"
14891
14892# Find who we are. Look in the path if we contain no directory separator.
14893case $0 in #((
14894 *[\\/]* ) as_myself=$0 ;;
14895 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14896for as_dir in $PATH
14897do
14898 IFS=$as_save_IFS
14899 test -z "$as_dir" && as_dir=.
14900 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14901 done
14902IFS=$as_save_IFS
14903
14904 ;;
14905esac
14906# We did not find ourselves, most probably we were run as `sh COMMAND'
14907# in which case we are not to be found in the path.
14908if test "x$as_myself" = x; then
14909 as_myself=$0
14910fi
14911if test ! -f "$as_myself"; then
14912 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14913 exit 1
14914fi
1c710c3c 14915
5213506e
RW
14916# Unset variables that we do not need and which cause bugs (e.g. in
14917# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14918# suppresses any "Segmentation fault" message there. '((' could
14919# trigger a bug in pdksh 5.2.14.
14920for as_var in BASH_ENV ENV MAIL MAILPATH
14921do eval test x\${$as_var+set} = xset \
14922 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14923done
1c710c3c
DJ
14924PS1='$ '
14925PS2='> '
14926PS4='+ '
14927
14928# NLS nuisances.
5213506e
RW
14929LC_ALL=C
14930export LC_ALL
14931LANGUAGE=C
14932export LANGUAGE
14933
14934# CDPATH.
14935(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14936
14937
14938# as_fn_error ERROR [LINENO LOG_FD]
14939# ---------------------------------
14940# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14941# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14942# script with status $?, using 1 if that was 0.
14943as_fn_error ()
14944{
14945 as_status=$?; test $as_status -eq 0 && as_status=1
14946 if test "$3"; then
14947 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14948 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14949 fi
5213506e
RW
14950 $as_echo "$as_me: error: $1" >&2
14951 as_fn_exit $as_status
14952} # as_fn_error
14953
14954
14955# as_fn_set_status STATUS
14956# -----------------------
14957# Set $? to STATUS, without forking.
14958as_fn_set_status ()
14959{
14960 return $1
14961} # as_fn_set_status
14962
14963# as_fn_exit STATUS
14964# -----------------
14965# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14966as_fn_exit ()
14967{
14968 set +e
14969 as_fn_set_status $1
14970 exit $1
14971} # as_fn_exit
14972
14973# as_fn_unset VAR
14974# ---------------
14975# Portably unset VAR.
14976as_fn_unset ()
14977{
14978 { eval $1=; unset $1;}
14979}
14980as_unset=as_fn_unset
14981# as_fn_append VAR VALUE
14982# ----------------------
14983# Append the text in VALUE to the end of the definition contained in VAR. Take
14984# advantage of any shell optimizations that allow amortized linear growth over
14985# repeated appends, instead of the typical quadratic growth present in naive
14986# implementations.
14987if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14988 eval 'as_fn_append ()
14989 {
14990 eval $1+=\$2
14991 }'
14992else
14993 as_fn_append ()
14994 {
14995 eval $1=\$$1\$2
14996 }
14997fi # as_fn_append
14998
14999# as_fn_arith ARG...
15000# ------------------
15001# Perform arithmetic evaluation on the ARGs, and store the result in the
15002# global $as_val. Take advantage of shells that can avoid forks. The arguments
15003# must be portable across $(()) and expr.
15004if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15005 eval 'as_fn_arith ()
15006 {
15007 as_val=$(( $* ))
15008 }'
15009else
15010 as_fn_arith ()
15011 {
15012 as_val=`expr "$@" || test $? -eq 1`
15013 }
15014fi # as_fn_arith
15015
1c710c3c 15016
5213506e
RW
15017if expr a : '\(a\)' >/dev/null 2>&1 &&
15018 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15019 as_expr=expr
15020else
15021 as_expr=false
15022fi
15023
5213506e 15024if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15025 as_basename=basename
15026else
15027 as_basename=false
15028fi
15029
5213506e
RW
15030if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15031 as_dirname=dirname
15032else
15033 as_dirname=false
15034fi
1c710c3c 15035
5213506e 15036as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15037$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15038 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15039 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15040$as_echo X/"$0" |
15041 sed '/^.*\/\([^/][^/]*\)\/*$/{
15042 s//\1/
15043 q
15044 }
15045 /^X\/\(\/\/\)$/{
15046 s//\1/
15047 q
15048 }
15049 /^X\/\(\/\).*/{
15050 s//\1/
15051 q
15052 }
15053 s/.*/./; q'`
2aeb72e9 15054
2aeb72e9
DD
15055# Avoid depending upon Character Ranges.
15056as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15057as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15058as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15059as_cr_digits='0123456789'
15060as_cr_alnum=$as_cr_Letters$as_cr_digits
15061
5213506e
RW
15062ECHO_C= ECHO_N= ECHO_T=
15063case `echo -n x` in #(((((
15064-n*)
15065 case `echo 'xy\c'` in
15066 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15067 xy) ECHO_C='\c';;
15068 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15069 ECHO_T=' ';;
15070 esac;;
15071*)
15072 ECHO_N='-n';;
1c710c3c
DJ
15073esac
15074
5213506e
RW
15075rm -f conf$$ conf$$.exe conf$$.file
15076if test -d conf$$.dir; then
15077 rm -f conf$$.dir/conf$$.file
1c710c3c 15078else
5213506e
RW
15079 rm -f conf$$.dir
15080 mkdir conf$$.dir 2>/dev/null
1c710c3c 15081fi
5213506e
RW
15082if (echo >conf$$.file) 2>/dev/null; then
15083 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15084 as_ln_s='ln -s'
5213506e
RW
15085 # ... but there are two gotchas:
15086 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15087 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15088 # In both cases, we have to default to `cp -p'.
15089 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15090 as_ln_s='cp -p'
15091 elif ln conf$$.file conf$$ 2>/dev/null; then
15092 as_ln_s=ln
15093 else
15094 as_ln_s='cp -p'
2aeb72e9 15095 fi
1c710c3c
DJ
15096else
15097 as_ln_s='cp -p'
15098fi
5213506e
RW
15099rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15100rmdir conf$$.dir 2>/dev/null
15101
15102
15103# as_fn_mkdir_p
15104# -------------
15105# Create "$as_dir" as a directory, including parents if necessary.
15106as_fn_mkdir_p ()
15107{
15108
15109 case $as_dir in #(
15110 -*) as_dir=./$as_dir;;
15111 esac
15112 test -d "$as_dir" || eval $as_mkdir_p || {
15113 as_dirs=
15114 while :; do
15115 case $as_dir in #(
15116 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15117 *) as_qdir=$as_dir;;
15118 esac
15119 as_dirs="'$as_qdir' $as_dirs"
15120 as_dir=`$as_dirname -- "$as_dir" ||
15121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15122 X"$as_dir" : 'X\(//\)[^/]' \| \
15123 X"$as_dir" : 'X\(//\)$' \| \
15124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15125$as_echo X"$as_dir" |
15126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15127 s//\1/
15128 q
15129 }
15130 /^X\(\/\/\)[^/].*/{
15131 s//\1/
15132 q
15133 }
15134 /^X\(\/\/\)$/{
15135 s//\1/
15136 q
15137 }
15138 /^X\(\/\).*/{
15139 s//\1/
15140 q
15141 }
15142 s/.*/./; q'`
15143 test -d "$as_dir" && break
15144 done
15145 test -z "$as_dirs" || eval "mkdir $as_dirs"
15146 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15147
1c710c3c 15148
5213506e 15149} # as_fn_mkdir_p
1c710c3c 15150if mkdir -p . 2>/dev/null; then
5213506e 15151 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15152else
15153 test -d ./-p && rmdir ./-p
15154 as_mkdir_p=false
15155fi
15156
5213506e
RW
15157if test -x / >/dev/null 2>&1; then
15158 as_test_x='test -x'
15159else
15160 if ls -dL / >/dev/null 2>&1; then
15161 as_ls_L_option=L
15162 else
15163 as_ls_L_option=
15164 fi
15165 as_test_x='
15166 eval sh -c '\''
15167 if test -d "$1"; then
15168 test -d "$1/.";
15169 else
15170 case $1 in #(
15171 -*)set "./$1";;
15172 esac;
15173 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15174 ???[sx]*):;;*)false;;esac;fi
15175 '\'' sh
15176 '
15177fi
15178as_executable_p=$as_test_x
1c710c3c
DJ
15179
15180# Sed expression to map a string onto a valid CPP name.
15181as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15182
15183# Sed expression to map a string onto a valid variable name.
15184as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15185
15186
1c710c3c 15187exec 6>&1
5213506e
RW
15188## ----------------------------------- ##
15189## Main body of $CONFIG_STATUS script. ##
15190## ----------------------------------- ##
15191_ASEOF
15192test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15193
15194cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15195# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15196# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15197# values after options handling.
15198ac_log="
1c710c3c 15199This file was extended by $as_me, which was
5213506e 15200generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15201
15202 CONFIG_FILES = $CONFIG_FILES
15203 CONFIG_HEADERS = $CONFIG_HEADERS
15204 CONFIG_LINKS = $CONFIG_LINKS
15205 CONFIG_COMMANDS = $CONFIG_COMMANDS
15206 $ $0 $@
15207
5213506e
RW
15208on `(hostname || uname -n) 2>/dev/null | sed 1q`
15209"
15210
1c710c3c
DJ
15211_ACEOF
15212
5213506e
RW
15213case $ac_config_files in *"
15214"*) set x $ac_config_files; shift; ac_config_files=$*;;
15215esac
1c710c3c 15216
2aeb72e9 15217
2aeb72e9 15218
5213506e
RW
15219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15220# Files that config.status was made for.
15221config_files="$ac_config_files"
1c710c3c 15222
5213506e 15223_ACEOF
2aeb72e9 15224
5213506e 15225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15226ac_cs_usage="\
5213506e
RW
15227\`$as_me' instantiates files and other configuration actions
15228from templates according to the current configuration. Unless the files
15229and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15230
5213506e 15231Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15232
15233 -h, --help print this help, then exit
5213506e
RW
15234 -V, --version print version number and configuration settings, then exit
15235 -q, --quiet, --silent
15236 do not print progress messages
1c710c3c
DJ
15237 -d, --debug don't remove temporary files
15238 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15239 --file=FILE[:TEMPLATE]
15240 instantiate the configuration file FILE
1c710c3c
DJ
15241
15242Configuration files:
15243$config_files
15244
5213506e 15245Report bugs to the package provider."
2aeb72e9 15246
5213506e
RW
15247_ACEOF
15248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15249ac_cs_version="\\
15250config.status
5213506e
RW
15251configured by $0, generated by GNU Autoconf 2.64,
15252 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15253
5213506e 15254Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15255This config.status script is free software; the Free Software Foundation
15256gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15257
15258ac_pwd='$ac_pwd'
15259srcdir='$srcdir'
15260INSTALL='$INSTALL'
87264276 15261AWK='$AWK'
5213506e 15262test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15263_ACEOF
15264
5213506e
RW
15265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15266# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15267ac_need_defaults=:
15268while test $# != 0
a4b9e93e 15269do
1c710c3c
DJ
15270 case $1 in
15271 --*=*)
5213506e
RW
15272 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15273 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15274 ac_shift=:
15275 ;;
5213506e 15276 *)
1c710c3c
DJ
15277 ac_option=$1
15278 ac_optarg=$2
15279 ac_shift=shift
15280 ;;
1c710c3c
DJ
15281 esac
15282
15283 case $ac_option in
15284 # Handling of the options.
671aa708 15285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15286 ac_cs_recheck=: ;;
5213506e
RW
15287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15288 $as_echo "$ac_cs_version"; exit ;;
15289 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15290 debug=: ;;
15291 --file | --fil | --fi | --f )
15292 $ac_shift
5213506e
RW
15293 case $ac_optarg in
15294 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15295 esac
15296 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15297 ac_need_defaults=false;;
5213506e
RW
15298 --he | --h | --help | --hel | -h )
15299 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15302 ac_cs_silent=: ;;
15303
15304 # This is an error.
5213506e
RW
15305 -*) as_fn_error "unrecognized option: \`$1'
15306Try \`$0 --help' for more information." ;;
1c710c3c 15307
5213506e
RW
15308 *) as_fn_append ac_config_targets " $1"
15309 ac_need_defaults=false ;;
1c710c3c 15310
0b0dc272 15311 esac
1c710c3c 15312 shift
0b0dc272
AM
15313done
15314
1c710c3c 15315ac_configure_extra_args=
0b0dc272 15316
1c710c3c
DJ
15317if $ac_cs_silent; then
15318 exec 6>/dev/null
15319 ac_configure_extra_args="$ac_configure_extra_args --silent"
15320fi
0b0dc272 15321
1c710c3c 15322_ACEOF
5213506e 15323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15324if \$ac_cs_recheck; then
5213506e
RW
15325 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15326 shift
15327 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15328 CONFIG_SHELL='$SHELL'
15329 export CONFIG_SHELL
15330 exec "\$@"
1c710c3c
DJ
15331fi
15332
15333_ACEOF
5213506e
RW
15334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15335exec 5>>config.log
15336{
15337 echo
15338 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15339## Running $as_me. ##
15340_ASBOX
15341 $as_echo "$ac_log"
15342} >&5
1c710c3c 15343
5213506e
RW
15344_ACEOF
15345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15346#
15347# INIT-COMMANDS
15348#
15349extrasub_build="$extrasub_build"
15350 extrasub_host="$extrasub_host"
15351 extrasub_target="$extrasub_target"
15352
5213506e 15353_ACEOF
1c710c3c 15354
5213506e 15355cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15356
5213506e 15357# Handling of arguments.
1c710c3c
DJ
15358for ac_config_target in $ac_config_targets
15359do
5213506e
RW
15360 case $ac_config_target in
15361 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15362
15363 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15364 esac
15365done
15366
5213506e 15367
1c710c3c
DJ
15368# If the user did not use the arguments to specify the items to instantiate,
15369# then the envvar interface is used. Set only those that are not.
15370# We use the long form for the default assignment because of an extremely
15371# bizarre bug on SunOS 4.1.3.
15372if $ac_need_defaults; then
15373 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15374fi
15375
15376# Have a temporary directory for convenience. Make it in the build tree
5213506e 15377# simply because there is no reason against having it here, and in addition,
1c710c3c 15378# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15379# Hook for its removal unless debugging.
15380# Note that there is a small window in which the directory will not be cleaned:
15381# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15382$debug ||
15383{
5213506e
RW
15384 tmp=
15385 trap 'exit_status=$?
15386 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15387' 0
15388 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15389}
1c710c3c
DJ
15390# Create a (secure) tmp directory for tmp files.
15391
15392{
5213506e 15393 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15394 test -n "$tmp" && test -d "$tmp"
15395} ||
15396{
5213506e
RW
15397 tmp=./conf$$-$RANDOM
15398 (umask 077 && mkdir "$tmp")
15399} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15400
15401# Set up the scripts for CONFIG_FILES section.
15402# No need to generate them if there are no CONFIG_FILES.
15403# This happens for instance with `./config.status config.h'.
15404if test -n "$CONFIG_FILES"; then
15405
15406if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15407 ac_cs_awk_getline=:
15408 ac_cs_awk_pipe_init=
15409 ac_cs_awk_read_file='
15410 while ((getline aline < (F[key])) > 0)
15411 print(aline)
15412 close(F[key])'
15413 ac_cs_awk_pipe_fini=
15414else
15415 ac_cs_awk_getline=false
15416 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15417 ac_cs_awk_read_file='
15418 print "|#_!!_#|"
15419 print "cat " F[key] " &&"
15420 '$ac_cs_awk_pipe_init
15421 # The final `:' finishes the AND list.
15422 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15423fi
15424ac_cr=`echo X | tr X '\015'`
15425# On cygwin, bash can eat \r inside `` if the user requested igncr.
15426# But we know of no other shell where ac_cr would be empty at this
15427# point, so we can use a bashism as a fallback.
15428if test "x$ac_cr" = x; then
15429 eval ac_cr=\$\'\\r\'
15430fi
15431ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15432if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15433 ac_cs_awk_cr='\r'
15434else
15435 ac_cs_awk_cr=$ac_cr
15436fi
15437
15438echo 'BEGIN {' >"$tmp/subs1.awk" &&
15439_ACEOF
15440
15441# Create commands to substitute file output variables.
1c710c3c 15442{
5213506e
RW
15443 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15444 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15445 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15446 echo "_ACAWK" &&
15447 echo "_ACEOF"
15448} >conf$$files.sh &&
15449. ./conf$$files.sh ||
15450 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15451rm -f conf$$files.sh
1c710c3c 15452
5213506e
RW
15453{
15454 echo "cat >conf$$subs.awk <<_ACEOF" &&
15455 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15456 echo "_ACEOF"
15457} >conf$$subs.sh ||
15458 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15459ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15460ac_delim='%!_!# '
15461for ac_last_try in false false false false false :; do
15462 . ./conf$$subs.sh ||
15463 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15464
15465 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15466 if test $ac_delim_n = $ac_delim_num; then
15467 break
15468 elif $ac_last_try; then
15469 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15470 else
15471 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15472 fi
15473done
15474rm -f conf$$subs.sh
15475
15476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15477cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15478_ACEOF
5213506e
RW
15479sed -n '
15480h
15481s/^/S["/; s/!.*/"]=/
15482p
15483g
15484s/^[^!]*!//
15485:repl
15486t repl
15487s/'"$ac_delim"'$//
15488t delim
15489:nl
15490h
15491s/\(.\{148\}\).*/\1/
15492t more1
15493s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15494p
15495n
15496b repl
15497:more1
15498s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15499p
15500g
15501s/.\{148\}//
15502t nl
15503:delim
15504h
15505s/\(.\{148\}\).*/\1/
15506t more2
15507s/["\\]/\\&/g; s/^/"/; s/$/"/
15508p
15509b
15510:more2
15511s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15512p
15513g
15514s/.\{148\}//
15515t delim
15516' <conf$$subs.awk | sed '
15517/^[^""]/{
15518 N
15519 s/\n//
15520}
15521' >>$CONFIG_STATUS || ac_write_fail=1
15522rm -f conf$$subs.awk
15523cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15524_ACAWK
15525cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15526 for (key in S) S_is_set[key] = 1
15527 FS = "\a"
15528 \$ac_cs_awk_pipe_init
15529}
15530{
15531 line = $ 0
15532 nfields = split(line, field, "@")
15533 substed = 0
15534 len = length(field[1])
15535 for (i = 2; i < nfields; i++) {
15536 key = field[i]
15537 keylen = length(key)
15538 if (S_is_set[key]) {
15539 value = S[key]
15540 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15541 len += length(value) + length(field[++i])
15542 substed = 1
15543 } else
15544 len += 1 + keylen
15545 }
15546 if (nfields == 3 && !substed) {
15547 key = field[2]
15548 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15549 \$ac_cs_awk_read_file
15550 next
15551 }
15552 }
15553 print line
15554}
15555\$ac_cs_awk_pipe_fini
15556_ACAWK
15557_ACEOF
15558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15560 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15561else
15562 cat
15563fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15564 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15565_ACEOF
15566
15567# VPATH may cause trouble with some makes, so we remove $(srcdir),
15568# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15569# trailing colons and then remove the whole line if VPATH becomes empty
15570# (actually we leave an empty line to preserve line numbers).
15571if test "x$srcdir" = x.; then
15572 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15573s/:*\$(srcdir):*/:/
15574s/:*\${srcdir}:*/:/
15575s/:*@srcdir@:*/:/
15576s/^\([^=]*=[ ]*\):*/\1/
15577s/:*$//
15578s/^[^=]*=[ ]*$//
15579}'
15580fi
2aeb72e9 15581
5213506e
RW
15582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15583fi # test -n "$CONFIG_FILES"
2aeb72e9 15584
1c710c3c 15585
5213506e
RW
15586eval set X " :F $CONFIG_FILES "
15587shift
15588for ac_tag
15589do
15590 case $ac_tag in
15591 :[FHLC]) ac_mode=$ac_tag; continue;;
15592 esac
15593 case $ac_mode$ac_tag in
15594 :[FHL]*:*);;
15595 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15596 :[FH]-) ac_tag=-:-;;
15597 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15598 esac
15599 ac_save_IFS=$IFS
15600 IFS=:
15601 set x $ac_tag
15602 IFS=$ac_save_IFS
15603 shift
15604 ac_file=$1
15605 shift
79c06341 15606
5213506e
RW
15607 case $ac_mode in
15608 :L) ac_source=$1;;
15609 :[FH])
15610 ac_file_inputs=
15611 for ac_f
15612 do
15613 case $ac_f in
15614 -) ac_f="$tmp/stdin";;
15615 *) # Look for the file first in the build tree, then in the source tree
15616 # (if the path is not absolute). The absolute path cannot be DOS-style,
15617 # because $ac_f cannot contain `:'.
15618 test -f "$ac_f" ||
15619 case $ac_f in
15620 [\\/$]*) false;;
15621 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15622 esac ||
15623 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15624 esac
15625 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15626 as_fn_append ac_file_inputs " '$ac_f'"
15627 done
1c710c3c 15628
5213506e
RW
15629 # Let's still pretend it is `configure' which instantiates (i.e., don't
15630 # use $as_me), people would be surprised to read:
15631 # /* config.h. Generated by config.status. */
15632 configure_input='Generated from '`
15633 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15634 `' by configure.'
15635 if test x"$ac_file" != x-; then
15636 configure_input="$ac_file. $configure_input"
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15638$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15639 fi
5213506e
RW
15640 # Neutralize special characters interpreted by sed in replacement strings.
15641 case $configure_input in #(
15642 *\&* | *\|* | *\\* )
15643 ac_sed_conf_input=`$as_echo "$configure_input" |
15644 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15645 *) ac_sed_conf_input=$configure_input;;
15646 esac
11a67599 15647
5213506e
RW
15648 case $ac_tag in
15649 *:-:* | *:-) cat >"$tmp/stdin" \
15650 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15651 esac
15652 ;;
11a67599
ZW
15653 esac
15654
5213506e 15655 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15656$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15657 X"$ac_file" : 'X\(//\)[^/]' \| \
15658 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15659 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15660$as_echo X"$ac_file" |
15661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15662 s//\1/
15663 q
15664 }
15665 /^X\(\/\/\)[^/].*/{
15666 s//\1/
15667 q
15668 }
15669 /^X\(\/\/\)$/{
15670 s//\1/
15671 q
15672 }
15673 /^X\(\/\).*/{
15674 s//\1/
15675 q
15676 }
15677 s/.*/./; q'`
15678 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15679 ac_builddir=.
0b0dc272 15680
5213506e
RW
15681case "$ac_dir" in
15682.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15683*)
15684 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15685 # A ".." for each directory in $ac_dir_suffix.
15686 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15687 case $ac_top_builddir_sub in
15688 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15689 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15690 esac ;;
15691esac
15692ac_abs_top_builddir=$ac_pwd
15693ac_abs_builddir=$ac_pwd$ac_dir_suffix
15694# for backward compatibility:
15695ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15696
15697case $srcdir in
5213506e 15698 .) # We are building in place.
1c710c3c 15699 ac_srcdir=.
5213506e
RW
15700 ac_top_srcdir=$ac_top_builddir_sub
15701 ac_abs_top_srcdir=$ac_pwd ;;
15702 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15703 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15704 ac_top_srcdir=$srcdir
15705 ac_abs_top_srcdir=$srcdir ;;
15706 *) # Relative name.
15707 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15708 ac_top_srcdir=$ac_top_build_prefix$srcdir
15709 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15710esac
5213506e 15711ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15712
0b0dc272 15713
5213506e
RW
15714 case $ac_mode in
15715 :F)
15716 #
15717 # CONFIG_FILE
15718 #
1c710c3c
DJ
15719
15720 case $INSTALL in
15721 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15722 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15723 esac
5213506e 15724_ACEOF
11a67599 15725
5213506e
RW
15726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15727# If the template does not know about datarootdir, expand it.
15728# FIXME: This hack should be removed a few years after 2.60.
15729ac_datarootdir_hack=; ac_datarootdir_seen=
15730ac_sed_dataroot='
15731/datarootdir/ {
15732 p
15733 q
15734}
15735/@datadir@/p
15736/@docdir@/p
15737/@infodir@/p
15738/@localedir@/p
15739/@mandir@/p'
15740case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15741*datarootdir*) ac_datarootdir_seen=yes;;
15742*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15744$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15745_ACEOF
5213506e
RW
15746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15747 ac_datarootdir_hack='
15748 s&@datadir@&$datadir&g
15749 s&@docdir@&$docdir&g
15750 s&@infodir@&$infodir&g
15751 s&@localedir@&$localedir&g
15752 s&@mandir@&$mandir&g
15753 s&\\\${datarootdir}&$datarootdir&g' ;;
15754esac
15755_ACEOF
15756
15757# Neutralize VPATH when `$srcdir' = `.'.
15758# Shell code in configure.ac might set extrasub.
15759# FIXME: do we really want to maintain this feature?
15760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15761ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15762$extrasub
15763_ACEOF
5213506e 15764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15765:t
15766/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15767s|@configure_input@|$ac_sed_conf_input|;t t
15768s&@top_builddir@&$ac_top_builddir_sub&;t t
15769s&@top_build_prefix@&$ac_top_build_prefix&;t t
15770s&@srcdir@&$ac_srcdir&;t t
15771s&@abs_srcdir@&$ac_abs_srcdir&;t t
15772s&@top_srcdir@&$ac_top_srcdir&;t t
15773s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15774s&@builddir@&$ac_builddir&;t t
15775s&@abs_builddir@&$ac_abs_builddir&;t t
15776s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15777s&@INSTALL@&$ac_INSTALL&;t t
15778$ac_datarootdir_hack
15779"
15780eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15781if $ac_cs_awk_getline; then
15782 $AWK -f "$tmp/subs.awk"
15783else
15784 $AWK -f "$tmp/subs.awk" | $SHELL
15785fi >$tmp/out \
15786 || as_fn_error "could not create $ac_file" "$LINENO" 5
15787
15788test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15789 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15790 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15792which seems to be undefined. Please make sure it is defined." >&5
15793$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15794which seems to be undefined. Please make sure it is defined." >&2;}
15795
15796 rm -f "$tmp/stdin"
15797 case $ac_file in
15798 -) cat "$tmp/out" && rm -f "$tmp/out";;
15799 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15800 esac \
15801 || as_fn_error "could not create $ac_file" "$LINENO" 5
15802 ;;
11a67599 15803
11a67599 15804
79c06341 15805
5213506e
RW
15806 esac
15807
3e54529c
RW
15808
15809 case $ac_file$ac_mode in
15810 "Makefile":F) sed "$extrasub_build" Makefile |
15811 sed "$extrasub_host" |
15812 sed "$extrasub_target" > mf$$
15813 mv -f mf$$ Makefile ;;
15814
15815 esac
5213506e
RW
15816done # for ac_tag
15817
15818
15819as_fn_exit 0
1c710c3c 15820_ACEOF
1c710c3c
DJ
15821ac_clean_files=$ac_clean_files_save
15822
5213506e
RW
15823test $ac_write_fail = 0 ||
15824 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15825
1c710c3c
DJ
15826
15827# configure is writing to config.log, and then calls config.status.
15828# config.status does its own redirection, appending to config.log.
15829# Unfortunately, on DOS this fails, as config.log is still kept open
15830# by configure, so config.status won't be able to write to it; its
15831# output is simply discarded. So we exec the FD to /dev/null,
15832# effectively closing config.log, so it can be properly (re)opened and
15833# appended to by config.status. When coming back to configure, we
15834# need to make the FD available again.
15835if test "$no_create" != yes; then
15836 ac_cs_success=:
15837 ac_config_status_args=
15838 test "$silent" = yes &&
15839 ac_config_status_args="$ac_config_status_args --quiet"
15840 exec 5>/dev/null
15841 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15842 exec 5>>config.log
15843 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15844 # would make configure fail if this is the last instruction.
5213506e
RW
15845 $ac_cs_success || as_fn_exit $?
15846fi
15847if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15849$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15850fi
79c06341 15851