]> gcc.gnu.org Git - gcc.git/blame - configure
C++17 class deduction issues
[gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
459260ec 559host_shared
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
e7a82751 574READELF_FOR_TARGET
5213506e
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
9bccfdf5 577OBJCOPY_FOR_TARGET
5213506e
RW
578NM_FOR_TARGET
579LIPO_FOR_TARGET
580LD_FOR_TARGET
581DLLTOOL_FOR_TARGET
582AS_FOR_TARGET
583AR_FOR_TARGET
632e2a07 584GOC_FOR_TARGET
5213506e
RW
585GFORTRAN_FOR_TARGET
586GCJ_FOR_TARGET
587GCC_FOR_TARGET
588CXX_FOR_TARGET
589CC_FOR_TARGET
e7a82751 590READELF
5213506e
RW
591OBJDUMP
592OBJCOPY
593WINDMC
594WINDRES
595STRIP
596RANLIB
597NM
598LIPO
599LD
600DLLTOOL
601AS
602AR
603RUNTEST
604EXPECT
605MAKEINFO
606FLEX
607LEX
608M4
609BISON
610YACC
5213506e
RW
611WINDRES_FOR_BUILD
612WINDMC_FOR_BUILD
613RANLIB_FOR_BUILD
614NM_FOR_BUILD
615LD_FOR_BUILD
616LDFLAGS_FOR_BUILD
632e2a07 617GOC_FOR_BUILD
5213506e
RW
618GFORTRAN_FOR_BUILD
619GCJ_FOR_BUILD
620DLLTOOL_FOR_BUILD
621CXX_FOR_BUILD
622CXXFLAGS_FOR_BUILD
623CFLAGS_FOR_BUILD
624CC_FOR_BUILD
625AS_FOR_BUILD
626AR_FOR_BUILD
aae29963 627target_configdirs
5213506e 628configdirs
5213506e 629build_configdirs
5213506e
RW
630INSTALL_GDB_TK
631GDB_TK
632CONFIGURE_GDB_TK
633build_tooldir
634tooldir
635GCC_SHLIB_SUBDIR
636RPATH_ENVVAR
ffedf511
RW
637target_configargs
638host_configargs
639build_configargs
e12c4094 640BUILD_CONFIG
6f57bdf6 641LDFLAGS_FOR_TARGET
5213506e
RW
642CXXFLAGS_FOR_TARGET
643CFLAGS_FOR_TARGET
644DEBUG_PREFIX_CFLAGS_FOR_TARGET
645SYSROOT_CFLAGS_FOR_TARGET
1c01ebf6 646extra_host_zlib_configure_flags
d7f09764 647extra_host_libiberty_configure_flags
fca38047 648stage1_languages
45b3824d
TS
649extra_linker_plugin_flags
650extra_linker_plugin_configure_flags
33ad93b9 651islinc
eae1a5d4 652isllibs
1e050c90 653islver
5213506e 654poststage1_ldflags
ed2eaa9f 655poststage1_libs
5213506e 656stage1_ldflags
0b21f5d3 657stage1_libs
0ff2d841 658extra_isl_gmp_configure_flags
5213506e
RW
659extra_mpc_mpfr_configure_flags
660extra_mpc_gmp_configure_flags
661extra_mpfr_configure_flags
662gmpinc
663gmplibs
664do_compare
665GNATMAKE
666GNATBIND
667ac_ct_CXX
668CXXFLAGS
669CXX
670OBJEXT
671EXEEXT
672ac_ct_CC
673CPPFLAGS
674LDFLAGS
675CFLAGS
676CC
5f520819 677extra_liboffloadmic_configure_flags
5213506e
RW
678target_subdir
679host_subdir
680build_subdir
681build_libsubdir
87264276
PB
682AWK
683SED
5213506e
RW
684LN_S
685LN
686INSTALL_DATA
687INSTALL_SCRIPT
688INSTALL_PROGRAM
689target_os
690target_vendor
691target_cpu
692target
693host_os
694host_vendor
695host_cpu
696host
697target_noncanonical
698host_noncanonical
699build_noncanonical
700build_os
701build_vendor
702build_cpu
703build
704TOPLEVEL_CONFIGURE_ARGUMENTS
705target_alias
706host_alias
707build_alias
708LIBS
709ECHO_T
710ECHO_N
711ECHO_C
712DEFS
713mandir
714localedir
715libdir
716psdir
717pdfdir
718dvidir
719htmldir
720infodir
721docdir
722oldincludedir
723includedir
724localstatedir
725sharedstatedir
726sysconfdir
727datadir
728datarootdir
729libexecdir
730sbindir
731bindir
732program_transform_name
733prefix
734exec_prefix
735PACKAGE_URL
736PACKAGE_BUGREPORT
737PACKAGE_STRING
738PACKAGE_VERSION
739PACKAGE_TARNAME
740PACKAGE_NAME
741PATH_SEPARATOR
742SHELL'
743ac_subst_files='serialization_dependencies
744host_makefile_frag
745target_makefile_frag
746alphaieee_frag
747ospace_frag'
748ac_user_opts='
749enable_option_checking
750with_build_libsubdir
a05c2c75 751with_system_zlib
85c64bbe
BS
752enable_as_accelerator_for
753enable_offload_targets
5213506e 754enable_gold
21539e2e 755enable_ld
78edb32f 756enable_compressed_debug_sections
87e6d9dc
TB
757enable_libquadmath
758enable_libquadmath_support
5213506e
RW
759enable_libada
760enable_libssp
1873ec0c 761enable_libstdcxx
5f520819 762enable_liboffloadmic
ff3ac0f4 763enable_bootstrap
5213506e
RW
764with_mpc
765with_mpc_include
766with_mpc_lib
767with_mpfr_dir
768with_mpfr
769with_mpfr_include
770with_mpfr_lib
771with_gmp_dir
772with_gmp
773with_gmp_include
774with_gmp_lib
5213506e 775with_stage1_libs
0b21f5d3 776with_stage1_ldflags
5213506e 777with_boot_libs
ed2eaa9f 778with_boot_ldflags
33ad93b9
RG
779with_isl
780with_isl_include
781with_isl_lib
782enable_isl_version_check
d7f09764 783enable_lto
45b3824d
TS
784enable_linker_plugin_configure_flags
785enable_linker_plugin_flags
5213506e 786enable_stage1_languages
43c40f3e 787enable_objc_gc
5213506e
RW
788with_build_sysroot
789with_debug_prefix_map
5646b7b9 790with_build_config
beeda1d9 791enable_vtable_verify
5213506e
RW
792enable_serial_configure
793with_build_time_tools
794enable_maintainer_mode
795enable_stage1_checking
796enable_werror
459260ec 797enable_host_shared
5213506e
RW
798'
799 ac_precious_vars='build_alias
800host_alias
801target_alias
802CC
803CFLAGS
804LDFLAGS
805LIBS
806CPPFLAGS
807CXX
808CXXFLAGS
809CCC
ffedf511
RW
810build_configargs
811host_configargs
812target_configargs
5213506e
RW
813AR
814AS
815DLLTOOL
816LD
817LIPO
818NM
819RANLIB
820STRIP
821WINDRES
822WINDMC
823OBJCOPY
824OBJDUMP
e7a82751 825READELF
5213506e
RW
826CC_FOR_TARGET
827CXX_FOR_TARGET
828GCC_FOR_TARGET
829GCJ_FOR_TARGET
830GFORTRAN_FOR_TARGET
632e2a07 831GOC_FOR_TARGET
5213506e
RW
832AR_FOR_TARGET
833AS_FOR_TARGET
834DLLTOOL_FOR_TARGET
835LD_FOR_TARGET
836LIPO_FOR_TARGET
837NM_FOR_TARGET
9bccfdf5 838OBJCOPY_FOR_TARGET
5213506e
RW
839OBJDUMP_FOR_TARGET
840RANLIB_FOR_TARGET
e7a82751 841READELF_FOR_TARGET
5213506e
RW
842STRIP_FOR_TARGET
843WINDRES_FOR_TARGET
844WINDMC_FOR_TARGET'
845
671aa708
NN
846
847# Initialize some variables set by options.
1c710c3c
DJ
848ac_init_help=
849ac_init_version=false
5213506e
RW
850ac_unrecognized_opts=
851ac_unrecognized_sep=
671aa708
NN
852# The variables have the same names as the options, with
853# dashes changed to underlines.
1c710c3c 854cache_file=/dev/null
671aa708 855exec_prefix=NONE
671aa708 856no_create=
671aa708
NN
857no_recursion=
858prefix=NONE
859program_prefix=NONE
860program_suffix=NONE
861program_transform_name=s,x,x,
862silent=
863site=
864srcdir=
671aa708
NN
865verbose=
866x_includes=NONE
867x_libraries=NONE
1c710c3c
DJ
868
869# Installation directory options.
870# These are left unexpanded so users can "make install exec_prefix=/foo"
871# and all the variables that are supposed to be based on exec_prefix
872# by default will actually change.
873# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 874# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
875bindir='${exec_prefix}/bin'
876sbindir='${exec_prefix}/sbin'
877libexecdir='${exec_prefix}/libexec'
5213506e
RW
878datarootdir='${prefix}/share'
879datadir='${datarootdir}'
671aa708
NN
880sysconfdir='${prefix}/etc'
881sharedstatedir='${prefix}/com'
882localstatedir='${prefix}/var'
671aa708
NN
883includedir='${prefix}/include'
884oldincludedir='/usr/include'
5213506e
RW
885docdir='${datarootdir}/doc/${PACKAGE}'
886infodir='${datarootdir}/info'
887htmldir='${docdir}'
888dvidir='${docdir}'
889pdfdir='${docdir}'
890psdir='${docdir}'
891libdir='${exec_prefix}/lib'
892localedir='${datarootdir}/locale'
893mandir='${datarootdir}/man'
79c06341 894
671aa708 895ac_prev=
5213506e 896ac_dashdash=
671aa708
NN
897for ac_option
898do
671aa708
NN
899 # If the previous option needs an argument, assign it.
900 if test -n "$ac_prev"; then
5213506e 901 eval $ac_prev=\$ac_option
671aa708
NN
902 ac_prev=
903 continue
904 fi
79c06341 905
5213506e
RW
906 case $ac_option in
907 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
908 *) ac_optarg=yes ;;
909 esac
671aa708
NN
910
911 # Accept the important Cygnus configure options, so we can diagnose typos.
912
5213506e
RW
913 case $ac_dashdash$ac_option in
914 --)
915 ac_dashdash=yes ;;
671aa708
NN
916
917 -bindir | --bindir | --bindi | --bind | --bin | --bi)
918 ac_prev=bindir ;;
919 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 920 bindir=$ac_optarg ;;
671aa708
NN
921
922 -build | --build | --buil | --bui | --bu)
1c710c3c 923 ac_prev=build_alias ;;
671aa708 924 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 925 build_alias=$ac_optarg ;;
671aa708
NN
926
927 -cache-file | --cache-file | --cache-fil | --cache-fi \
928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
929 ac_prev=cache_file ;;
930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
932 cache_file=$ac_optarg ;;
933
934 --config-cache | -C)
935 cache_file=config.cache ;;
671aa708 936
5213506e 937 -datadir | --datadir | --datadi | --datad)
671aa708 938 ac_prev=datadir ;;
5213506e 939 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 940 datadir=$ac_optarg ;;
671aa708 941
5213506e
RW
942 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
943 | --dataroo | --dataro | --datar)
944 ac_prev=datarootdir ;;
945 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
946 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
947 datarootdir=$ac_optarg ;;
948
671aa708 949 -disable-* | --disable-*)
5213506e 950 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 951 # Reject names that are not valid shell variable names.
5213506e
RW
952 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953 as_fn_error "invalid feature name: $ac_useropt"
954 ac_useropt_orig=$ac_useropt
955 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
956 case $ac_user_opts in
957 *"
958"enable_$ac_useropt"
959"*) ;;
960 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
961 ac_unrecognized_sep=', ';;
962 esac
963 eval enable_$ac_useropt=no ;;
964
965 -docdir | --docdir | --docdi | --doc | --do)
966 ac_prev=docdir ;;
967 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 docdir=$ac_optarg ;;
969
970 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
971 ac_prev=dvidir ;;
972 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 dvidir=$ac_optarg ;;
671aa708
NN
974
975 -enable-* | --enable-*)
5213506e 976 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 977 # Reject names that are not valid shell variable names.
5213506e
RW
978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979 as_fn_error "invalid feature name: $ac_useropt"
980 ac_useropt_orig=$ac_useropt
981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982 case $ac_user_opts in
983 *"
984"enable_$ac_useropt"
985"*) ;;
986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
987 ac_unrecognized_sep=', ';;
2aeb72e9 988 esac
5213506e 989 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
990
991 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
992 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
993 | --exec | --exe | --ex)
994 ac_prev=exec_prefix ;;
995 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
996 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
997 | --exec=* | --exe=* | --ex=*)
1c710c3c 998 exec_prefix=$ac_optarg ;;
671aa708
NN
999
1000 -gas | --gas | --ga | --g)
1001 # Obsolete; use --with-gas.
1002 with_gas=yes ;;
1003
1c710c3c
DJ
1004 -help | --help | --hel | --he | -h)
1005 ac_init_help=long ;;
1006 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1007 ac_init_help=recursive ;;
1008 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1009 ac_init_help=short ;;
671aa708
NN
1010
1011 -host | --host | --hos | --ho)
1c710c3c 1012 ac_prev=host_alias ;;
671aa708 1013 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1014 host_alias=$ac_optarg ;;
671aa708 1015
5213506e
RW
1016 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1017 ac_prev=htmldir ;;
1018 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1019 | --ht=*)
1020 htmldir=$ac_optarg ;;
1021
671aa708
NN
1022 -includedir | --includedir | --includedi | --included | --include \
1023 | --includ | --inclu | --incl | --inc)
1024 ac_prev=includedir ;;
1025 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1026 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1027 includedir=$ac_optarg ;;
671aa708
NN
1028
1029 -infodir | --infodir | --infodi | --infod | --info | --inf)
1030 ac_prev=infodir ;;
1031 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1032 infodir=$ac_optarg ;;
671aa708
NN
1033
1034 -libdir | --libdir | --libdi | --libd)
1035 ac_prev=libdir ;;
1036 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1037 libdir=$ac_optarg ;;
671aa708
NN
1038
1039 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1040 | --libexe | --libex | --libe)
1041 ac_prev=libexecdir ;;
1042 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1043 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1044 libexecdir=$ac_optarg ;;
671aa708 1045
5213506e
RW
1046 -localedir | --localedir | --localedi | --localed | --locale)
1047 ac_prev=localedir ;;
1048 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1049 localedir=$ac_optarg ;;
1050
671aa708 1051 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1052 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1053 ac_prev=localstatedir ;;
1054 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1055 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1056 localstatedir=$ac_optarg ;;
671aa708
NN
1057
1058 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1059 ac_prev=mandir ;;
1060 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1061 mandir=$ac_optarg ;;
671aa708
NN
1062
1063 -nfp | --nfp | --nf)
1064 # Obsolete; use --without-fp.
1065 with_fp=no ;;
1066
1067 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1068 | --no-cr | --no-c | -n)
671aa708
NN
1069 no_create=yes ;;
1070
1071 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1072 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1073 no_recursion=yes ;;
1074
1075 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1076 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1077 | --oldin | --oldi | --old | --ol | --o)
1078 ac_prev=oldincludedir ;;
1079 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1080 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1081 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1082 oldincludedir=$ac_optarg ;;
671aa708
NN
1083
1084 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1085 ac_prev=prefix ;;
1086 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1087 prefix=$ac_optarg ;;
671aa708
NN
1088
1089 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1090 | --program-pre | --program-pr | --program-p)
1091 ac_prev=program_prefix ;;
1092 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1093 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1094 program_prefix=$ac_optarg ;;
671aa708
NN
1095
1096 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1097 | --program-suf | --program-su | --program-s)
1098 ac_prev=program_suffix ;;
1099 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1100 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1101 program_suffix=$ac_optarg ;;
671aa708
NN
1102
1103 -program-transform-name | --program-transform-name \
1104 | --program-transform-nam | --program-transform-na \
1105 | --program-transform-n | --program-transform- \
1106 | --program-transform | --program-transfor \
1107 | --program-transfo | --program-transf \
1108 | --program-trans | --program-tran \
1109 | --progr-tra | --program-tr | --program-t)
1110 ac_prev=program_transform_name ;;
1111 -program-transform-name=* | --program-transform-name=* \
1112 | --program-transform-nam=* | --program-transform-na=* \
1113 | --program-transform-n=* | --program-transform-=* \
1114 | --program-transform=* | --program-transfor=* \
1115 | --program-transfo=* | --program-transf=* \
1116 | --program-trans=* | --program-tran=* \
1117 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1118 program_transform_name=$ac_optarg ;;
671aa708 1119
5213506e
RW
1120 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1121 ac_prev=pdfdir ;;
1122 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1123 pdfdir=$ac_optarg ;;
1124
1125 -psdir | --psdir | --psdi | --psd | --ps)
1126 ac_prev=psdir ;;
1127 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1128 psdir=$ac_optarg ;;
1129
671aa708
NN
1130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1131 | -silent | --silent | --silen | --sile | --sil)
1132 silent=yes ;;
1133
1134 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135 ac_prev=sbindir ;;
1136 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137 | --sbi=* | --sb=*)
1c710c3c 1138 sbindir=$ac_optarg ;;
671aa708
NN
1139
1140 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142 | --sharedst | --shareds | --shared | --share | --shar \
1143 | --sha | --sh)
1144 ac_prev=sharedstatedir ;;
1145 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148 | --sha=* | --sh=*)
1c710c3c 1149 sharedstatedir=$ac_optarg ;;
671aa708
NN
1150
1151 -site | --site | --sit)
1152 ac_prev=site ;;
1153 -site=* | --site=* | --sit=*)
1c710c3c 1154 site=$ac_optarg ;;
671aa708
NN
1155
1156 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157 ac_prev=srcdir ;;
1158 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1159 srcdir=$ac_optarg ;;
671aa708
NN
1160
1161 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162 | --syscon | --sysco | --sysc | --sys | --sy)
1163 ac_prev=sysconfdir ;;
1164 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1166 sysconfdir=$ac_optarg ;;
671aa708
NN
1167
1168 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1169 ac_prev=target_alias ;;
671aa708 1170 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1171 target_alias=$ac_optarg ;;
671aa708
NN
1172
1173 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174 verbose=yes ;;
1175
1c710c3c
DJ
1176 -version | --version | --versio | --versi | --vers | -V)
1177 ac_init_version=: ;;
671aa708
NN
1178
1179 -with-* | --with-*)
5213506e 1180 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1181 # Reject names that are not valid shell variable names.
5213506e
RW
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
2aeb72e9 1192 esac
5213506e 1193 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1194
1195 -without-* | --without-*)
5213506e 1196 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1197 # Reject names that are not valid shell variable names.
5213506e
RW
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204"with_$ac_useropt"
1205"*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=no ;;
671aa708
NN
1210
1211 --x)
1212 # Obsolete; use --with-x.
1213 with_x=yes ;;
1214
1215 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216 | --x-incl | --x-inc | --x-in | --x-i)
1217 ac_prev=x_includes ;;
1218 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1220 x_includes=$ac_optarg ;;
671aa708
NN
1221
1222 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224 ac_prev=x_libraries ;;
1225 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1227 x_libraries=$ac_optarg ;;
671aa708 1228
5213506e
RW
1229 -*) as_fn_error "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information."
671aa708
NN
1231 ;;
1232
1c710c3c
DJ
1233 *=*)
1234 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235 # Reject names that are not valid shell variable names.
5213506e
RW
1236 case $ac_envvar in #(
1237 '' | [0-9]* | *[!_$as_cr_alnum]* )
1238 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1239 esac
1240 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1241 export $ac_envvar ;;
1242
671aa708 1243 *)
1c710c3c 1244 # FIXME: should be removed in autoconf 3.0.
5213506e 1245 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1246 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1247 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1248 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1249 ;;
1250
1251 esac
1252done
1253
1254if test -n "$ac_prev"; then
1c710c3c 1255 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1256 as_fn_error "missing argument to $ac_option"
af71363e 1257fi
af71363e 1258
5213506e
RW
1259if test -n "$ac_unrecognized_opts"; then
1260 case $enable_option_checking in
1261 no) ;;
1262 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1263 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1264 esac
5213506e 1265fi
2aeb72e9 1266
5213506e
RW
1267# Check all directory arguments for consistency.
1268for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269 datadir sysconfdir sharedstatedir localstatedir includedir \
1270 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271 libdir localedir mandir
2aeb72e9 1272do
5213506e
RW
1273 eval ac_val=\$$ac_var
1274 # Remove trailing slashes.
1275 case $ac_val in
1276 */ )
1277 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278 eval $ac_var=\$ac_val;;
1279 esac
1280 # Be sure to have absolute directory names.
2aeb72e9 1281 case $ac_val in
5213506e
RW
1282 [\\/$]* | ?:[\\/]* ) continue;;
1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1284 esac
5213506e 1285 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1286done
1287
1c710c3c
DJ
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
0b0dc272 1294
1c710c3c
DJ
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297 if test "x$build_alias" = x; then
1298 cross_compiling=maybe
5213506e 1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1302 cross_compiling=yes
1303 fi
1304fi
1305
1306ac_tool_prefix=
1307test -n "$host_alias" && ac_tool_prefix=$host_alias-
1308
1309test "$silent" = yes && exec 6>/dev/null
671aa708 1310
671aa708 1311
5213506e
RW
1312ac_pwd=`pwd` && test -n "$ac_pwd" &&
1313ac_ls_di=`ls -di .` &&
1314ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1315 as_fn_error "working directory cannot be determined"
1316test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317 as_fn_error "pwd does not report name of working directory"
1318
1319
671aa708
NN
1320# Find the source files, if location was not specified.
1321if test -z "$srcdir"; then
1322 ac_srcdir_defaulted=yes
5213506e
RW
1323 # Try the directory containing this script, then the parent directory.
1324 ac_confdir=`$as_dirname -- "$as_myself" ||
1325$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1326 X"$as_myself" : 'X\(//\)[^/]' \| \
1327 X"$as_myself" : 'X\(//\)$' \| \
1328 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1329$as_echo X"$as_myself" |
1330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)[^/].*/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)$/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\).*/{
1343 s//\1/
1344 q
1345 }
1346 s/.*/./; q'`
671aa708 1347 srcdir=$ac_confdir
5213506e 1348 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1349 srcdir=..
1350 fi
1351else
1352 ac_srcdir_defaulted=no
1353fi
5213506e
RW
1354if test ! -r "$srcdir/$ac_unique_file"; then
1355 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1356 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1357fi
1358ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359ac_abs_confdir=`(
1360 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1361 pwd)`
1362# When building in place, set srcdir=.
1363if test "$ac_abs_confdir" = "$ac_pwd"; then
1364 srcdir=.
1365fi
1366# Remove unnecessary trailing slashes from srcdir.
1367# Double slashes in file names in object file debugging info
1368# mess up M-x gdb in Emacs.
1369case $srcdir in
1370*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1371esac
87841584
AM
1372case $srcdir in
1373 *" "*)
1374 as_fn_error "path to source, $srcdir, contains spaces"
1375 ;;
1376esac
ac9e6043
RW
1377ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1378
5213506e
RW
1379for ac_var in $ac_precious_vars; do
1380 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1381 eval ac_env_${ac_var}_value=\$${ac_var}
1382 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1384done
1c710c3c
DJ
1385
1386#
1387# Report the --help message.
1388#
1389if test "$ac_init_help" = "long"; then
1390 # Omit some internal or obsolete options to make the list less imposing.
1391 # This message is too long to be a string in the A/UX 3.1 sh.
1392 cat <<_ACEOF
1393\`configure' configures this package to adapt to many kinds of systems.
1394
1395Usage: $0 [OPTION]... [VAR=VALUE]...
1396
1397To assign environment variables (e.g., CC, CFLAGS...), specify them as
1398VAR=VALUE. See below for descriptions of some of the useful variables.
1399
1400Defaults for the options are specified in brackets.
1401
1402Configuration:
1403 -h, --help display this help and exit
1404 --help=short display options specific to this package
1405 --help=recursive display the short help of all the included packages
1406 -V, --version display version information and exit
1407 -q, --quiet, --silent do not print \`checking...' messages
1408 --cache-file=FILE cache test results in FILE [disabled]
1409 -C, --config-cache alias for \`--cache-file=config.cache'
1410 -n, --no-create do not create output files
1411 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1412
1c710c3c
DJ
1413Installation directories:
1414 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1415 [$ac_default_prefix]
1c710c3c 1416 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1417 [PREFIX]
1c710c3c
DJ
1418
1419By default, \`make install' will install all the files in
1420\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1421an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1422for instance \`--prefix=\$HOME'.
1423
1424For better control, use the options below.
1425
1426Fine tuning of the installation directories:
5213506e
RW
1427 --bindir=DIR user executables [EPREFIX/bin]
1428 --sbindir=DIR system admin executables [EPREFIX/sbin]
1429 --libexecdir=DIR program executables [EPREFIX/libexec]
1430 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1431 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1432 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1433 --libdir=DIR object code libraries [EPREFIX/lib]
1434 --includedir=DIR C header files [PREFIX/include]
1435 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1436 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1437 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1438 --infodir=DIR info documentation [DATAROOTDIR/info]
1439 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1440 --mandir=DIR man documentation [DATAROOTDIR/man]
1441 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1442 --htmldir=DIR html documentation [DOCDIR]
1443 --dvidir=DIR dvi documentation [DOCDIR]
1444 --pdfdir=DIR pdf documentation [DOCDIR]
1445 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1446_ACEOF
1447
1448 cat <<\_ACEOF
1449
1450Program names:
1451 --program-prefix=PREFIX prepend PREFIX to installed program names
1452 --program-suffix=SUFFIX append SUFFIX to installed program names
1453 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1454
1455System types:
1456 --build=BUILD configure for building on BUILD [guessed]
1457 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1458 --target=TARGET configure for building compilers for TARGET [HOST]
1459_ACEOF
1460fi
1461
1462if test -n "$ac_init_help"; then
1463
1464 cat <<\_ACEOF
1465
1466Optional Features:
5213506e 1467 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85c64bbe
BS
1470 --enable-as-accelerator-for=ARG
1471 build as offload target compiler. Specify offload
1472 host triple by ARG
1473 --enable-offload-targets=LIST
1474 enable offloading to devices from comma-separated
1475 LIST of TARGET[=DIR]. Use optional path to find
1476 offload target compiler during the build
21539e2e 1477 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1478 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
324402a0 1479 --enable-compressed-debug-sections={all,gas,gold,ld,none}
78edb32f
L
1480 Enable compressed debug sections for gas, gold or ld
1481 by default
87e6d9dc
TB
1482 --disable-libquadmath do not build libquadmath directory
1483 --disable-libquadmath-support
1484 disable libquadmath support for Fortran
30b74385
RW
1485 --enable-libada build libada directory
1486 --enable-libssp build libssp directory
1873ec0c 1487 --disable-libstdcxx do not build libstdc++-v3 directory
5f520819
KY
1488 --enable-liboffloadmic=ARG
1489 build liboffloadmic [ARG={no,host,target}]
ff3ac0f4 1490 --enable-bootstrap enable bootstrapping [yes if native build]
33ad93b9 1491 --disable-isl-version-check
560d18d3 1492 disable check for isl version
d7f09764 1493 --enable-lto enable link time optimization support
45b3824d
TS
1494 --enable-linker-plugin-configure-flags=FLAGS
1495 additional flags for configuring linker plugins
1496 [none]
1497 --enable-linker-plugin-flags=FLAGS
1498 additional flags for configuring and building linker
1499 plugins [none]
33e39b66
AS
1500 --enable-stage1-languages[=all]
1501 choose additional languages to build during stage1.
1502 Mostly useful for compiler development
43c40f3e
RO
1503 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1504 Objective-C runtime
318a4e6d 1505 --enable-vtable-verify Enable vtable verification feature
30b74385 1506 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1507 force sequential configuration of sub-packages for
1508 the host, target or build machine, or all
1509 sub-packages
1510 --enable-maintainer-mode
1511 enable make rules and dependencies not useful (and
1512 sometimes confusing) to the casual installer
1513 --enable-stage1-checking[=all]
1514 choose additional checking for stage1 of the
1515 compiler
1c710c3c 1516 --enable-werror enable -Werror in bootstrap stage2 and later
459260ec 1517 --enable-host-shared build host code as shared libraries
1c710c3c
DJ
1518
1519Optional Packages:
1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1522 --with-build-libsubdir=DIR Directory where to find libraries for build system
a05c2c75 1523 --with-system-zlib use installed libz
33e39b66
AS
1524 --with-mpc=PATH specify prefix directory for installed MPC package.
1525 Equivalent to --with-mpc-include=PATH/include plus
1526 --with-mpc-lib=PATH/lib
1527 --with-mpc-include=PATH specify directory for installed MPC include files
1528 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1529 --with-mpfr-dir=PATH this option has been REMOVED
1530 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1531 Equivalent to --with-mpfr-include=PATH/include plus
1532 --with-mpfr-lib=PATH/lib
1c710c3c 1533 --with-mpfr-include=PATH
30b74385
RW
1534 specify directory for installed MPFR include files
1535 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1536 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1537 --with-gmp=PATH specify prefix directory for the installed GMP
1538 package. Equivalent to
1539 --with-gmp-include=PATH/include plus
1540 --with-gmp-lib=PATH/lib
30b74385
RW
1541 --with-gmp-include=PATH specify directory for installed GMP include files
1542 --with-gmp-lib=PATH specify directory for the installed GMP library
0b21f5d3 1543 --with-stage1-libs=LIBS libraries for stage1
33e39b66
AS
1544 --with-stage1-ldflags=FLAGS
1545 linker flags for stage1
33e39b66
AS
1546 --with-boot-libs=LIBS libraries for stage2 and later
1547 --with-boot-ldflags=FLAGS
1548 linker flags for stage2 and later
e357a5e0 1549 --with-isl=PATH Specify prefix directory for the installed isl
33e39b66 1550 package. Equivalent to
33ad93b9
RG
1551 --with-isl-include=PATH/include plus
1552 --with-isl-lib=PATH/lib
560d18d3
AK
1553 --with-isl-include=PATH Specify directory for installed isl include files
1554 --with-isl-lib=PATH Specify the directory for the installed isl library
30b74385 1555 --with-build-sysroot=SYSROOT
1c710c3c 1556 use sysroot as the system root during the build
c8aea42c 1557 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1558 map A to B, C to D ... in debug information
1559 --with-build-config='NAME NAME2...'
1560 use config/NAME.mk build configuration
30b74385 1561 --with-build-time-tools=PATH
1c710c3c 1562 use given path to find target tools during the build
1c710c3c
DJ
1563
1564Some influential environment variables:
1565 CC C compiler command
1566 CFLAGS C compiler flags
1567 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1568 nonstandard directory <lib dir>
5213506e
RW
1569 LIBS libraries to pass to the linker, e.g. -l<library>
1570 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1572 CXX C++ compiler command
1573 CXXFLAGS C++ compiler flags
ffedf511
RW
1574 build_configargs
1575 additional configure arguments for build directories
1576 host_configargs
1577 additional configure arguments for host directories
1578 target_configargs
1579 additional configure arguments for target directories
278a7a38
AO
1580 AR AR for the host
1581 AS AS for the host
1582 DLLTOOL DLLTOOL for the host
1583 LD LD for the host
1584 LIPO LIPO for the host
1585 NM NM for the host
1586 RANLIB RANLIB for the host
1587 STRIP STRIP for the host
1588 WINDRES WINDRES for the host
901119ae 1589 WINDMC WINDMC for the host
278a7a38
AO
1590 OBJCOPY OBJCOPY for the host
1591 OBJDUMP OBJDUMP for the host
e7a82751 1592 READELF READELF for the host
278a7a38
AO
1593 CC_FOR_TARGET
1594 CC for the target
1595 CXX_FOR_TARGET
1596 CXX for the target
1597 GCC_FOR_TARGET
1598 GCC for the target
1599 GCJ_FOR_TARGET
1600 GCJ for the target
1601 GFORTRAN_FOR_TARGET
1602 GFORTRAN for the target
632e2a07
ILT
1603 GOC_FOR_TARGET
1604 GOC for the target
278a7a38
AO
1605 AR_FOR_TARGET
1606 AR for the target
1607 AS_FOR_TARGET
1608 AS for the target
1609 DLLTOOL_FOR_TARGET
1610 DLLTOOL for the target
1611 LD_FOR_TARGET
1612 LD for the target
1613 LIPO_FOR_TARGET
1614 LIPO for the target
1615 NM_FOR_TARGET
1616 NM for the target
9bccfdf5
AP
1617 OBJCOPY_FOR_TARGET
1618 OBJCOPY for the target
278a7a38
AO
1619 OBJDUMP_FOR_TARGET
1620 OBJDUMP for the target
1621 RANLIB_FOR_TARGET
1622 RANLIB for the target
e7a82751
RM
1623 READELF_FOR_TARGET
1624 READELF for the target
278a7a38
AO
1625 STRIP_FOR_TARGET
1626 STRIP for the target
1627 WINDRES_FOR_TARGET
1628 WINDRES for the target
901119ae
KT
1629 WINDMC_FOR_TARGET
1630 WINDMC for the target
1c710c3c
DJ
1631
1632Use these variables to override the choices made by `configure' or to help
1633it to find libraries and programs with nonstandard names/locations.
1634
5213506e 1635Report bugs to the package provider.
1c710c3c 1636_ACEOF
5213506e 1637ac_status=$?
1c710c3c
DJ
1638fi
1639
1640if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1c710c3c 1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645 continue
1c710c3c
DJ
1646 ac_builddir=.
1647
5213506e
RW
1648case "$ac_dir" in
1649.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650*)
1651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657 esac ;;
1658esac
1659ac_abs_top_builddir=$ac_pwd
1660ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661# for backward compatibility:
1662ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1663
1664case $srcdir in
5213506e 1665 .) # We are building in place.
1c710c3c 1666 ac_srcdir=.
5213506e
RW
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1670 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1673 *) # Relative name.
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1677esac
5213506e
RW
1678ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1686 echo &&
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1688 else
5213506e
RW
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 fi || ac_status=$?
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1692 done
1693fi
1694
5213506e 1695test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1696if $ac_init_version; then
1697 cat <<\_ACEOF
5213506e
RW
1698configure
1699generated by GNU Autoconf 2.64
1c710c3c 1700
5213506e 1701Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1702This configure script is free software; the Free Software Foundation
1703gives unlimited permission to copy, distribute and modify it.
1704_ACEOF
5213506e 1705 exit
0b0dc272 1706fi
5213506e
RW
1707
1708## ------------------------ ##
1709## Autoconf initialization. ##
1710## ------------------------ ##
1711
1712# ac_fn_c_try_compile LINENO
1713# --------------------------
1714# Try to compile conftest.$ac_ext, and return whether this succeeded.
1715ac_fn_c_try_compile ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.$ac_objext; then :
1738 ac_retval=0
1739else
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744fi
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 return $ac_retval
1747
1748} # ac_fn_c_try_compile
1749
1750# ac_fn_cxx_try_compile LINENO
1751# ----------------------------
1752# Try to compile conftest.$ac_ext, and return whether this succeeded.
1753ac_fn_cxx_try_compile ()
1754{
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 rm -f conftest.$ac_objext
1757 if { { ac_try="$ac_compile"
1758case "(($ac_try" in
1759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1761esac
1762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763$as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_compile") 2>conftest.err
1765 ac_status=$?
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1770 fi
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } && {
1773 test -z "$ac_cxx_werror_flag" ||
1774 test ! -s conftest.err
1775 } && test -s conftest.$ac_objext; then :
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
1780
1781 ac_retval=1
1782fi
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1784 return $ac_retval
1785
1786} # ac_fn_cxx_try_compile
1787
0b21f5d3
EB
1788# ac_fn_cxx_try_link LINENO
1789# -------------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_cxx_try_link ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_cxx_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1831
1832} # ac_fn_cxx_try_link
1833
5213506e
RW
1834# ac_fn_c_try_link LINENO
1835# -----------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded.
1837ac_fn_c_try_link ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_c_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864else
1865 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 return $ac_retval
1877
1878} # ac_fn_c_try_link
1879cat >config.log <<_ACEOF
1c710c3c
DJ
1880This file contains any messages produced by compilers while
1881running configure, to aid debugging if configure makes a mistake.
1882
1883It was created by $as_me, which was
5213506e 1884generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1885
1886 $ $0 $@
1887
1888_ACEOF
5213506e 1889exec 5>>config.log
1c710c3c
DJ
1890{
1891cat <<_ASUNAME
1892## --------- ##
1893## Platform. ##
1894## --------- ##
1895
1896hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1904
1905/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1908/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1909/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1912
1913_ASUNAME
1914
1915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916for as_dir in $PATH
1917do
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
5213506e
RW
1920 $as_echo "PATH: $as_dir"
1921 done
1922IFS=$as_save_IFS
1c710c3c
DJ
1923
1924} >&5
1925
1926cat >&5 <<_ACEOF
1927
1928
1929## ----------- ##
1930## Core tests. ##
1931## ----------- ##
1932
1933_ACEOF
1934
1935
1936# Keep a trace of the command line.
1937# Strip out --no-create and --no-recursion so they do not pile up.
1938# Strip out --silent because we don't want to record it for future runs.
1939# Also quote any args containing shell meta-characters.
1940# Make two passes to allow for proper duplicate-argument suppression.
1941ac_configure_args=
1942ac_configure_args0=
1943ac_configure_args1=
1c710c3c
DJ
1944ac_must_keep_next=false
1945for ac_pass in 1 2
1946do
1947 for ac_arg
1948 do
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
5213506e
RW
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1956 esac
1957 case $ac_pass in
5213506e 1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1959 2)
5213506e 1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1972 ;;
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1975 fi
5213506e 1976 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1977 ;;
1978 esac
1979 done
1980done
5213506e
RW
1981{ ac_configure_args0=; unset ac_configure_args0;}
1982{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1983
1984# When interrupted or exit'd, cleanup temporary files, and complete
1985# config.log. We remove comments because anyway the quotes in there
1986# would cause problems or look ugly.
5213506e
RW
1987# WARNING: Use '\'' to represent an apostrophe within the trap.
1988# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1989trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1991 {
1992 echo
1993
1994 cat <<\_ASBOX
1995## ---------------- ##
1996## Cache variables. ##
1997## ---------------- ##
1998_ASBOX
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
2001(
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
1c710c3c 2017 (set) 2>&1 |
5213506e
RW
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
1c710c3c 2020 sed -n \
5213506e
RW
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
1c710c3c 2024 *)
5213506e 2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 2026 ;;
5213506e
RW
2027 esac |
2028 sort
2029)
1c710c3c
DJ
2030 echo
2031
2032 cat <<\_ASBOX
2033## ----------------- ##
2034## Output variables. ##
2035## ----------------- ##
2036_ASBOX
2037 echo
2038 for ac_var in $ac_subst_vars
2039 do
5213506e
RW
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2045 done | sort
2046 echo
2047
2048 if test -n "$ac_subst_files"; then
2049 cat <<\_ASBOX
5213506e
RW
2050## ------------------- ##
2051## File substitutions. ##
2052## ------------------- ##
1c710c3c
DJ
2053_ASBOX
2054 echo
2055 for ac_var in $ac_subst_files
2056 do
5213506e
RW
2057 eval ac_val=\$$ac_var
2058 case $ac_val in
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 esac
2061 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
2062 done | sort
2063 echo
2064 fi
2065
2066 if test -s confdefs.h; then
2067 cat <<\_ASBOX
2068## ----------- ##
2069## confdefs.h. ##
2070## ----------- ##
2071_ASBOX
2072 echo
5213506e 2073 cat confdefs.h
1c710c3c
DJ
2074 echo
2075 fi
2076 test "$ac_signal" != 0 &&
5213506e
RW
2077 $as_echo "$as_me: caught signal $ac_signal"
2078 $as_echo "$as_me: exit $exit_status"
1c710c3c 2079 } >&5
5213506e
RW
2080 rm -f core *.core core.conftest.* &&
2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2082 exit $exit_status
5213506e 2083' 0
1c710c3c 2084for ac_signal in 1 2 13 15; do
5213506e 2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2086done
2087ac_signal=0
2088
2089# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2090rm -f -r conftest* confdefs.h
2091
2092$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2093
2094# Predefined preprocessor variables.
2095
2096cat >>confdefs.h <<_ACEOF
2097#define PACKAGE_NAME "$PACKAGE_NAME"
2098_ACEOF
2099
1c710c3c
DJ
2100cat >>confdefs.h <<_ACEOF
2101#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2102_ACEOF
2103
1c710c3c
DJ
2104cat >>confdefs.h <<_ACEOF
2105#define PACKAGE_VERSION "$PACKAGE_VERSION"
2106_ACEOF
0b0dc272 2107
1c710c3c
DJ
2108cat >>confdefs.h <<_ACEOF
2109#define PACKAGE_STRING "$PACKAGE_STRING"
2110_ACEOF
2111
1c710c3c
DJ
2112cat >>confdefs.h <<_ACEOF
2113#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2114_ACEOF
2115
5213506e
RW
2116cat >>confdefs.h <<_ACEOF
2117#define PACKAGE_URL "$PACKAGE_URL"
2118_ACEOF
2119
1c710c3c
DJ
2120
2121# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2122# Prefer an explicitly selected file to automatically selected ones.
2123ac_site_file1=NONE
2124ac_site_file2=NONE
2125if test -n "$CONFIG_SITE"; then
2126 ac_site_file1=$CONFIG_SITE
2127elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2133fi
5213506e
RW
2134for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2135do
2136 test "x$ac_site_file" = xNONE && continue
671aa708 2137 if test -r "$ac_site_file"; then
5213506e
RW
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2140 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2141 . "$ac_site_file"
2142 fi
2143done
2144
2145if test -r "$cache_file"; then
1c710c3c
DJ
2146 # Some versions of bash will fail to source /dev/null (special
2147 # files actually), so we avoid doing that.
2148 if test -f "$cache_file"; then
5213506e
RW
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2151 case $cache_file in
5213506e
RW
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
1c710c3c
DJ
2154 esac
2155 fi
671aa708 2156else
5213506e
RW
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2159 >$cache_file
2160fi
2161
2162# Check that the precious variables saved in the cache have kept the same
2163# value.
2164ac_cache_corrupted=false
5213506e 2165for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2170 case $ac_old_set,$ac_new_set in
2171 set,)
5213506e
RW
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2174 ac_cache_corrupted=: ;;
2175 ,set)
5213506e
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2178 ac_cache_corrupted=: ;;
2179 ,);;
2180 *)
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2193 fi
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
5213506e 2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2209 esac
2210 fi
2211done
2212if $ac_cache_corrupted; then
5213506e
RW
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2218fi
5213506e
RW
2219## -------------------- ##
2220## Main body of script. ##
2221## -------------------- ##
671aa708 2222
2aeb72e9
DD
2223ac_ext=c
2224ac_cpp='$CPP $CPPFLAGS'
2225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
1c710c3c
DJ
2229
2230
2231
1c710c3c
DJ
2232
2233
0115d4a3 2234
1c710c3c 2235
ad33ff57
RW
2236
2237progname=$0
2238# if PWD already has a value, it is probably wrong.
2239if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2240
2241# Export original configure arguments for use by sub-configures.
2242# Quote arguments with shell meta charatcers.
2243TOPLEVEL_CONFIGURE_ARGUMENTS=
2244set -- "$progname" "$@"
2245for ac_arg
2246do
2247 case "$ac_arg" in
2248 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2249 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2250 # if the argument is of the form -foo=baz, quote the baz part only
2251 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2252 *) ;;
2253 esac
2254 # Add the quoted argument to the list.
2255 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2256done
2257if test "$silent" = yes; then
2258 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2259fi
2260# Remove the initial space we just introduced and, as these will be
2261# expanded by make, quote '$'.
2262TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2263
1c710c3c
DJ
2264
2265# Find the build, host, and target systems.
671aa708 2266ac_aux_dir=
5213506e
RW
2267for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2268 for ac_t in install-sh install.sh shtool; do
2269 if test -f "$ac_dir/$ac_t"; then
2270 ac_aux_dir=$ac_dir
2271 ac_install_sh="$ac_aux_dir/$ac_t -c"
2272 break 2
2273 fi
2274 done
671aa708
NN
2275done
2276if test -z "$ac_aux_dir"; then
5213506e 2277 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2278fi
5213506e
RW
2279
2280# These three variables are undocumented and unsupported,
2281# and are intended to be withdrawn in a future Autoconf release.
2282# They can cause serious problems if a builder's source tree is in a directory
2283# whose full name contains unusual characters.
2284ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2285ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2286ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2287
671aa708 2288
1c710c3c 2289# Make sure we can run config.sub.
5213506e
RW
2290$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2291 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2292
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2294$as_echo_n "checking build system type... " >&6; }
2295if test "${ac_cv_build+set}" = set; then :
2296 $as_echo_n "(cached) " >&6
2297else
2298 ac_build_alias=$build_alias
2299test "x$ac_build_alias" = x &&
2300 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2301test "x$ac_build_alias" = x &&
2302 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2303ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2304 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2305
2306fi
2307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2308$as_echo "$ac_cv_build" >&6; }
2309case $ac_cv_build in
2310*-*-*) ;;
2311*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2312esac
1c710c3c 2313build=$ac_cv_build
5213506e
RW
2314ac_save_IFS=$IFS; IFS='-'
2315set x $ac_cv_build
2316shift
2317build_cpu=$1
2318build_vendor=$2
2319shift; shift
2320# Remember, the first character of IFS is used to create $*,
2321# except with old shells:
2322build_os=$*
2323IFS=$ac_save_IFS
2324case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2325
671aa708 2326
1c710c3c
DJ
2327 case ${build_alias} in
2328 "") build_noncanonical=${build} ;;
2329 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2330esac
2331
2332
af71363e 2333
1c710c3c
DJ
2334 case ${host_alias} in
2335 "") host_noncanonical=${build_noncanonical} ;;
2336 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2337esac
2338
af71363e 2339
1c710c3c
DJ
2340
2341 case ${target_alias} in
2342 "") target_noncanonical=${host_noncanonical} ;;
2343 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2344esac
2345
af71363e 2346
1c710c3c
DJ
2347
2348
2349test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2350 test "$program_prefix$program_suffix$program_transform_name" = \
2351 NONENONEs,x,x, &&
1c710c3c 2352 program_transform_name=s,y,y,
af71363e 2353
5213506e
RW
2354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2355$as_echo_n "checking host system type... " >&6; }
2356if test "${ac_cv_host+set}" = set; then :
2357 $as_echo_n "(cached) " >&6
af71363e 2358else
5213506e
RW
2359 if test "x$host_alias" = x; then
2360 ac_cv_host=$ac_cv_build
2361else
2362 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2363 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2364fi
1c710c3c 2365
af71363e 2366fi
5213506e
RW
2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2368$as_echo "$ac_cv_host" >&6; }
2369case $ac_cv_host in
2370*-*-*) ;;
2371*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2372esac
1c710c3c 2373host=$ac_cv_host
5213506e
RW
2374ac_save_IFS=$IFS; IFS='-'
2375set x $ac_cv_host
2376shift
2377host_cpu=$1
2378host_vendor=$2
2379shift; shift
2380# Remember, the first character of IFS is used to create $*,
2381# except with old shells:
2382host_os=$*
2383IFS=$ac_save_IFS
2384case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2385
2386
5213506e
RW
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2388$as_echo_n "checking target system type... " >&6; }
2389if test "${ac_cv_target+set}" = set; then :
2390 $as_echo_n "(cached) " >&6
1c710c3c 2391else
5213506e
RW
2392 if test "x$target_alias" = x; then
2393 ac_cv_target=$ac_cv_host
2394else
2395 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2396 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2397fi
1c710c3c
DJ
2398
2399fi
5213506e
RW
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2401$as_echo "$ac_cv_target" >&6; }
2402case $ac_cv_target in
2403*-*-*) ;;
2404*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2405esac
1c710c3c 2406target=$ac_cv_target
5213506e
RW
2407ac_save_IFS=$IFS; IFS='-'
2408set x $ac_cv_target
2409shift
2410target_cpu=$1
2411target_vendor=$2
2412shift; shift
2413# Remember, the first character of IFS is used to create $*,
2414# except with old shells:
2415target_os=$*
2416IFS=$ac_save_IFS
2417case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2418
2419
2420# The aliases save the names the user supplied, while $host etc.
2421# will get canonicalized.
2422test -n "$target_alias" &&
2423 test "$program_prefix$program_suffix$program_transform_name" = \
2424 NONENONEs,x,x, &&
2425 program_prefix=${target_alias}-
5213506e 2426
671aa708 2427test "$program_prefix" != NONE &&
5213506e 2428 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2429# Use a double $ so make ignores it.
2430test "$program_suffix" != NONE &&
5213506e
RW
2431 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2432# Double any \ or $.
1c710c3c 2433# By default was `s,x,x', remove it if useless.
5213506e
RW
2434ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2435program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2436
671aa708
NN
2437
2438
775956d0
NN
2439# Get 'install' or 'install-sh' and its variants.
2440# Find a good install program. We prefer a C program (faster),
2441# so one script is as good as another. But avoid the broken or
2442# incompatible versions:
2443# SysV /etc/install, /usr/sbin/install
2444# SunOS /usr/etc/install
2445# IRIX /sbin/install
2446# AIX /bin/install
1c710c3c 2447# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2448# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2449# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2450# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2451# OS/2's system install, which has a completely different semantic
775956d0 2452# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2453# Reject install programs that cannot install multiple files.
5213506e
RW
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2455$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2456if test -z "$INSTALL"; then
5213506e
RW
2457if test "${ac_cv_path_install+set}" = set; then :
2458 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2459else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461for as_dir in $PATH
2462do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
5213506e
RW
2465 # Account for people who put trailing slashes in PATH elements.
2466case $as_dir/ in #((
2467 ./ | .// | /[cC]/* | \
1c710c3c 2468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2469 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2470 /usr/ucb/* ) ;;
2471 *)
2472 # OSF1 and SCO ODT 3.0 have their own names for install.
2473 # Don't use installbsd from OSF since it installs stuff as root
2474 # by default.
2475 for ac_prog in ginstall scoinst install; do
2476 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2477 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2478 if test $ac_prog = install &&
1c710c3c 2479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2480 # AIX install. It has an incompatible calling convention.
2481 :
1c710c3c
DJ
2482 elif test $ac_prog = install &&
2483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2484 # program-specific install script used by HP pwplus--don't use.
2485 :
775956d0 2486 else
38d24731
RW
2487 rm -rf conftest.one conftest.two conftest.dir
2488 echo one > conftest.one
2489 echo two > conftest.two
2490 mkdir conftest.dir
2491 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2492 test -s conftest.one && test -s conftest.two &&
2493 test -s conftest.dir/conftest.one &&
2494 test -s conftest.dir/conftest.two
2495 then
2496 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2497 break 3
2498 fi
775956d0
NN
2499 fi
2500 fi
2501 done
1c710c3c
DJ
2502 done
2503 ;;
2504esac
5213506e
RW
2505
2506 done
2507IFS=$as_save_IFS
1c710c3c 2508
38d24731 2509rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2510
2511fi
2512 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2513 INSTALL=$ac_cv_path_install
775956d0 2514 else
38d24731
RW
2515 # As a last resort, use the slow shell script. Don't cache a
2516 # value for INSTALL within a source directory, because that will
775956d0 2517 # break other packages using the cache if that directory is
38d24731 2518 # removed, or if the value is a relative name.
1c710c3c 2519 INSTALL=$ac_install_sh
775956d0
NN
2520 fi
2521fi
5213506e
RW
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2523$as_echo "$INSTALL" >&6; }
775956d0
NN
2524
2525# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2526# It thinks the first close brace ends the variable substitution.
2527test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2528
1c710c3c 2529test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2530
2531test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2532
5213506e
RW
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2534$as_echo_n "checking whether ln works... " >&6; }
2535if test "${acx_cv_prog_LN+set}" = set; then :
2536 $as_echo_n "(cached) " >&6
ad6717df
PB
2537else
2538 rm -f conftestdata_t
2539echo >conftestdata_f
2540if ln conftestdata_f conftestdata_t 2>/dev/null
2541then
2542 acx_cv_prog_LN=ln
2543else
2544 acx_cv_prog_LN=no
2545fi
2546rm -f conftestdata_f conftestdata_t
2547
2548fi
2549if test $acx_cv_prog_LN = no; then
2550 LN="cp"
5213506e
RW
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2552$as_echo "no, using $LN" >&6; }
ad6717df
PB
2553else
2554 LN="$acx_cv_prog_LN"
5213506e
RW
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2556$as_echo "yes" >&6; }
ad6717df
PB
2557fi
2558
5213506e
RW
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2560$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2561LN_S=$as_ln_s
2562if test "$LN_S" = "ln -s"; then
5213506e
RW
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2564$as_echo "yes" >&6; }
fb0103e5 2565else
5213506e
RW
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2567$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2568fi
2569
87264276
PB
2570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2571$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2572if test "${ac_cv_path_SED+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2574else
2575 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2576 for ac_i in 1 2 3 4 5 6 7; do
2577 ac_script="$ac_script$as_nl$ac_script"
2578 done
2579 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2580 { ac_script=; unset ac_script;}
2581 if test -z "$SED"; then
2582 ac_path_SED_found=false
2583 # Loop through the user's path and test for each of PROGNAME-LIST
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_prog in sed gsed; do
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2592 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2593# Check for GNU ac_path_SED and select it if it is found.
2594 # Check for GNU $ac_path_SED
2595case `"$ac_path_SED" --version 2>&1` in
2596*GNU*)
2597 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2598*)
2599 ac_count=0
2600 $as_echo_n 0123456789 >"conftest.in"
2601 while :
2602 do
2603 cat "conftest.in" "conftest.in" >"conftest.tmp"
2604 mv "conftest.tmp" "conftest.in"
2605 cp "conftest.in" "conftest.nl"
2606 $as_echo '' >> "conftest.nl"
2607 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2608 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2609 as_fn_arith $ac_count + 1 && ac_count=$as_val
2610 if test $ac_count -gt ${ac_path_SED_max-0}; then
2611 # Best one so far, save it but keep looking for a better one
2612 ac_cv_path_SED="$ac_path_SED"
2613 ac_path_SED_max=$ac_count
2614 fi
2615 # 10*(2^10) chars as input seems more than enough
2616 test $ac_count -gt 10 && break
2617 done
2618 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2619esac
2620
2621 $ac_path_SED_found && break 3
2622 done
2623 done
2624 done
2625IFS=$as_save_IFS
2626 if test -z "$ac_cv_path_SED"; then
2627 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2628 fi
2629else
2630 ac_cv_path_SED=$SED
2631fi
2632
2633fi
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2635$as_echo "$ac_cv_path_SED" >&6; }
2636 SED="$ac_cv_path_SED"
2637 rm -f conftest.sed
2638
2639for ac_prog in gawk mawk nawk awk
2640do
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642set dummy $ac_prog; ac_word=$2
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644$as_echo_n "checking for $ac_word... " >&6; }
2645if test "${ac_cv_prog_AWK+set}" = set; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 if test -n "$AWK"; then
2649 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2650else
2651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652for as_dir in $PATH
2653do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_AWK="$ac_prog"
2659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662done
2663 done
2664IFS=$as_save_IFS
2665
2666fi
2667fi
2668AWK=$ac_cv_prog_AWK
2669if test -n "$AWK"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2671$as_echo "$AWK" >&6; }
2672else
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674$as_echo "no" >&6; }
2675fi
2676
2677
2678 test -n "$AWK" && break
2679done
2680
775956d0 2681
ee6a22df
L
2682srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2683
2684# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2685# a relative path.
2686if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2687 INSTALL="${srcpwd}/install-sh -c"
2688fi
2689
671aa708
NN
2690# Set srcdir to "." if that's what it is.
2691# This is important for multilib support.
2692pwd=`${PWDCMD-pwd}`
671aa708
NN
2693if test "${pwd}" = "${srcpwd}" ; then
2694 srcdir=.
79c06341
JL
2695fi
2696
671aa708 2697topsrcdir=$srcpwd
5d4a5ee6 2698
671aa708 2699extra_host_args=
afabd8e6 2700
671aa708
NN
2701### To add a new directory to the tree, first choose whether it is a target
2702### or a host dependent tool. Then put it into the appropriate list
2703### (library or tools, host or target), doing a dependency sort.
79c06341 2704
1c710c3c 2705# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2706# configdirs, or target_configdirs; see the serialization section below.
79c06341 2707
1c710c3c
DJ
2708# Dependency sorting is only needed when *configuration* must be done in
2709# a particular order. In all cases a dependency should be specified in
671aa708 2710# the Makefile, whether or not it's implicitly specified here.
79c06341 2711
671aa708
NN
2712# Double entries in build_configdirs, configdirs, or target_configdirs may
2713# cause circular dependencies and break everything horribly.
79c06341 2714
23f6b2f9
PB
2715# these library is used by various programs built for the build
2716# environment
2717#
929315a9 2718build_libs="build-libiberty build-libcpp"
23f6b2f9
PB
2719
2720# these tools are built for the build environment
85bfb75e 2721build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2722
671aa708 2723# these libraries are used by various programs built for the host environment
eae1a5d4 2724#f
4a9bb2aa 2725host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv"
671aa708 2726
671aa708
NN
2727# these tools are built for the host environment
2728# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2729# know that we are building the simulator.
2730# binutils, gas and ld appear in that order because it makes sense to run
2731# "make check" in that particular order.
38e3d868 2732# If --enable-gold is used, "gold" may replace "ld".
bf1de3f0 2733host_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 2734
671aa708
NN
2735# these libraries are built for the target environment, and are built after
2736# the host libraries and the host tools (which may be a cross compiler)
8499116a 2737# Note that libiberty is not a target library.
291f172e 2738target_libraries="target-libgcc \
eff02e4f 2739 target-libbacktrace \
671aa708
NN
2740 target-libgloss \
2741 target-newlib \
6d3b5aea 2742 target-libgomp \
3038054c 2743 target-libcilkrts \
5f520819 2744 target-liboffloadmic \
48310492 2745 target-libatomic \
0a35513e 2746 target-libitm \
cb543528 2747 target-libstdc++-v3 \
f35db108 2748 target-libsanitizer \
2077db1b 2749 target-libvtv \
5373cd33 2750 target-libmpx \
77008252 2751 target-libssp \
1ec601bf 2752 target-libquadmath \
6de9cd9a 2753 target-libgfortran \
43c40f3e 2754 target-boehm-gc \
012447ea 2755 target-libffi \
d9cdb878 2756 target-libobjc \
632e2a07
ILT
2757 target-libada \
2758 target-libgo"
671aa708 2759
4dbda6f0
NN
2760# these tools are built using the target libraries, and are intended to
2761# run only in the target environment
671aa708 2762#
4dbda6f0 2763# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2764# list belongs in this list.
671aa708 2765#
85bfb75e 2766target_tools="target-rda"
79c06341 2767
671aa708 2768################################################################################
79c06341 2769
671aa708
NN
2770## All tools belong in one of the four categories, and are assigned above
2771## We assign ${configdirs} this way to remove all embedded newlines. This
2772## is important because configure will choke if they ever get through.
2773## ${configdirs} is directories we build using the host tools.
2774## ${target_configdirs} is directories we build using the target tools.
671aa708 2775configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2776target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2777build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2778
ac9e6043
RW
2779
2780
671aa708 2781################################################################################
79c06341 2782
671aa708 2783srcname="gnu development package"
79c06341 2784
671aa708
NN
2785# This gets set non-empty for some net releases of packages.
2786appdirs=""
79c06341 2787
671aa708
NN
2788# Define is_cross_compiler to save on calls to 'test'.
2789is_cross_compiler=
2790if test x"${host}" = x"${target}" ; then
2791 is_cross_compiler=no
79c06341 2792else
671aa708 2793 is_cross_compiler=yes
1c710c3c 2794fi
79c06341 2795
b4acb5ef 2796# Find the build and target subdir names.
8b87bb96 2797
2e9e6f68
DJ
2798# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2799# have matching libraries, they should use host libraries: Makefile.tpl
2800# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2801# However, they still use the build modules, because the corresponding
2802# host modules (e.g. bison) are only built for the host when bootstrap
2803# finishes. So:
2804# - build_subdir is where we find build modules, and never changes.
2805# - build_libsubdir is where we find build libraries, and can be overridden.
2806
2807# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2808build_subdir="build-${build_noncanonical}"
1c710c3c 2809
5213506e
RW
2810# Check whether --with-build-libsubdir was given.
2811if test "${with_build_libsubdir+set}" = set; then :
2812 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2813else
2814 build_libsubdir="$build_subdir"
5213506e
RW
2815fi
2816
215c351a
PB
2817# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2818if ( test $srcdir = . && test -d gcc ) \
2819 || test -d $srcdir/../host-${host_noncanonical}; then
2820 host_subdir="host-${host_noncanonical}"
2821else
2822 host_subdir=.
2823fi
8b87bb96
NN
2824# No prefix.
2825target_subdir=${target_noncanonical}
1c710c3c 2826
0db770bd
RW
2827# Be sure to cover against remnants of an in-tree build.
2828if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2829 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2830Use a pristine source tree when building in a separate tree" "$LINENO" 5
2831fi
79c06341 2832
671aa708
NN
2833# Skipdirs are removed silently.
2834skipdirs=
2835# Noconfigdirs are removed loudly.
2836noconfigdirs=""
79c06341 2837
671aa708
NN
2838use_gnu_ld=
2839# Make sure we don't let GNU ld be added if we didn't want it.
2840if test x$with_gnu_ld = xno ; then
2841 use_gnu_ld=no
5afab7ad 2842 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2843fi
2844
671aa708
NN
2845use_gnu_as=
2846# Make sure we don't let GNU as be added if we didn't want it.
2847if test x$with_gnu_as = xno ; then
2848 use_gnu_as=no
2849 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2850fi
2851
d7f09764 2852use_included_zlib=
a05c2c75
L
2853
2854# Check whether --with-system-zlib was given.
2855if test "${with_system_zlib+set}" = set; then :
2856 withval=$with_system_zlib;
2857fi
2858
d7f09764
DN
2859# Make sure we don't let ZLIB be added if we didn't want it.
2860if test x$with_system_zlib = xyes ; then
2861 use_included_zlib=no
2862 noconfigdirs="$noconfigdirs zlib"
2863fi
2864
1c710c3c 2865# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2866# it's not even worth trying to configure, much less build, that tool.
79c06341 2867
671aa708
NN
2868case ${with_x} in
2869 yes | "") ;; # the default value for this tree is that X11 is available
2870 no)
b4f96efe 2871 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2872 # We won't be able to build gdbtk without X.
1c710c3c 2873 enable_gdbtk=no
671aa708
NN
2874 ;;
2875 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2876esac
79c06341 2877
1bcce263 2878# Some are only suitable for cross toolchains.
671aa708
NN
2879# Remove these if host=target.
2880cross_only="target-libgloss target-newlib target-opcodes"
2881
2882case $is_cross_compiler in
2883 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2884esac
79c06341 2885
671aa708
NN
2886# If both --with-headers and --with-libs are specified, default to
2887# --without-newlib.
ee6a22df
L
2888if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2889 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2890 if test x"${with_newlib}" = x ; then
2891 with_newlib=no
2892 fi
79c06341
JL
2893fi
2894
671aa708
NN
2895# Recognize --with-newlib/--without-newlib.
2896case ${with_newlib} in
2897 no) skipdirs="${skipdirs} target-newlib" ;;
2898 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2899esac
79c06341 2900
85c64bbe
BS
2901# Check whether --enable-as-accelerator-for was given.
2902if test "${enable_as_accelerator_for+set}" = set; then :
4b4f2e35 2903 enableval=$enable_as_accelerator_for;
85c64bbe
BS
2904fi
2905
2906
2907# Check whether --enable-offload-targets was given.
2908if test "${enable_offload_targets+set}" = set; then :
2909 enableval=$enable_offload_targets;
2910 if test x"$enable_offload_targets" = x; then
2911 as_fn_error "no offload targets specified" "$LINENO" 5
2912 fi
2913
2914else
2915 enable_offload_targets=
2916fi
2917
2918
21539e2e
MK
2919# Handle --enable-gold, --enable-ld.
2920# --disable-gold [--enable-ld]
2921# Build only ld. Default option.
9580395f
L
2922# --enable-gold [--enable-ld]
2923# Build both gold and ld. Install gold as "ld.gold", install ld
2924# as "ld.bfd" and "ld".
2925# --enable-gold=default [--enable-ld]
21539e2e
MK
2926# Build both gold and ld. Install gold as "ld.gold" and "ld",
2927# install ld as "ld.bfd".
2928# --enable-gold[=default] --disable-ld
2929# Build only gold, which is then installed as both "ld.gold" and "ld".
2930# --enable-gold --enable-ld=default
9580395f
L
2931# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2932# and ld.bfd).
21539e2e
MK
2933# In other words, ld is default
2934# --enable-gold=default --enable-ld=default
2935# Error.
2936
2937default_ld=
5213506e
RW
2938# Check whether --enable-gold was given.
2939if test "${enable_gold+set}" = set; then :
2940 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2941else
2942 ENABLE_GOLD=no
5213506e
RW
2943fi
2944
21539e2e
MK
2945case "${ENABLE_GOLD}" in
2946 yes|default)
38e3d868
RM
2947 # Check for ELF target.
2948 is_elf=no
2949 case "${target}" in
2950 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
0e76460f 2951 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a 2952 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
ff4b7a7e 2953 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
38e3d868
RM
2954 case "${target}" in
2955 *-*-linux*aout* | *-*-linux*oldld*)
2956 ;;
2957 *)
2958 is_elf=yes
2959 ;;
2960 esac
2961 esac
2962
2963 if test "$is_elf" = "yes"; then
2964 # Check for target supported by gold.
5afab7ad 2965 case "${target}" in
7705dfd1 2966 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
1b858e76 2967 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
21539e2e
MK
2968 configdirs="$configdirs gold"
2969 if test x${ENABLE_GOLD} = xdefault; then
2970 default_ld=gold
2971 fi
38e3d868 2972 ENABLE_GOLD=yes
5afab7ad
ILT
2973 ;;
2974 esac
38e3d868
RM
2975 fi
2976 ;;
2977 no)
2978 ;;
2979 *)
2980 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2981 ;;
21539e2e
MK
2982esac
2983
2984# Check whether --enable-ld was given.
2985if test "${enable_ld+set}" = set; then :
2986 enableval=$enable_ld; ENABLE_LD=$enableval
2987else
2988 ENABLE_LD=yes
2989fi
2990
2991
2992case "${ENABLE_LD}" in
2993 default)
9580395f 2994 if test x${default_ld} != x; then
21539e2e
MK
2995 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2996 fi
2997 ;;
2998 yes)
2999 ;;
3000 no)
3001 if test x${ENABLE_GOLD} != xyes; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3003$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3004 fi
3005 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3006 ;;
3007 *)
3008 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3009 ;;
3010esac
5afab7ad 3011
78edb32f
L
3012# PR gas/19109
3013# Decide the default method for compressing debug sections.
3014# Provide a configure time option to override our default.
3015# Check whether --enable-compressed_debug_sections was given.
3016if test "${enable_compressed_debug_sections+set}" = set; then :
3017 enableval=$enable_compressed_debug_sections;
3018 if test x"$enable_compressed_debug_sections" = xyes; then
3019 as_fn_error "no program with compressed debug sections specified" "$LINENO" 5
3020 fi
3021
3022else
3023 enable_compressed_debug_sections=
3024fi
3025
3026
671aa708 3027# Configure extra directories which are host specific
79c06341 3028
671aa708
NN
3029case "${host}" in
3030 *-cygwin*)
3031 configdirs="$configdirs libtermcap" ;;
3032esac
79c06341 3033
4fab7234
HPN
3034# A target can indicate whether a language isn't supported for some reason.
3035# Only spaces may be used in this macro; not newlines or tabs.
3036unsupported_languages=
3037
1c710c3c 3038# Remove more programs from consideration, based on the host or
671aa708
NN
3039# target this usually means that a port of the program doesn't
3040# exist yet.
ec8d6ddc 3041
671aa708 3042case "${host}" in
111eeb6e 3043 i[3456789]86-*-msdosdjgpp*)
c9bdb152 3044 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 3045 ;;
671aa708 3046esac
ec8d6ddc 3047
6de9cd9a 3048
87e6d9dc
TB
3049# Check whether --enable-libquadmath was given.
3050if test "${enable_libquadmath+set}" = set; then :
3051 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3052else
3053 ENABLE_LIBQUADMATH=yes
3054fi
3055
3056if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3057 noconfigdirs="$noconfigdirs target-libquadmath"
3058fi
3059
3060
3061# Check whether --enable-libquadmath-support was given.
3062if test "${enable_libquadmath_support+set}" = set; then :
3063 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3064else
3065 ENABLE_LIBQUADMATH_SUPPORT=yes
3066fi
3067
3068enable_libquadmath_support=
3069if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3070 enable_libquadmath_support=no
3071fi
3072
3073
5213506e
RW
3074# Check whether --enable-libada was given.
3075if test "${enable_libada+set}" = set; then :
3076 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3077else
3078 ENABLE_LIBADA=yes
5213506e
RW
3079fi
3080
d9cdb878 3081if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3082 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3083fi
3084
5213506e
RW
3085# Check whether --enable-libssp was given.
3086if test "${enable_libssp+set}" = set; then :
3087 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3088else
3089 ENABLE_LIBSSP=yes
5213506e
RW
3090fi
3091
ef0087a7 3092
1873ec0c
L
3093# Check whether --enable-libstdcxx was given.
3094if test "${enable_libstdcxx+set}" = set; then :
3095 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3096else
3097 ENABLE_LIBSTDCXX=default
3098fi
3099
3100if test "${ENABLE_LIBSTDCXX}" = "no" ; then
1007a55c 3101 noconfigdirs="$noconfigdirs target-libstdc++-v3"
1873ec0c
L
3102fi
3103
5f520819
KY
3104# If this is accelerator compiler and its target is intelmic we enable
3105# target liboffloadmic by default. If this is compiler with offloading
3106# for intelmic we enable host liboffloadmic by default. Otherwise
3107# liboffloadmic is disabled by default.
3108# Check whether --enable-liboffloadmic was given.
3109if test "${enable_liboffloadmic+set}" = set; then :
3110 enableval=$enable_liboffloadmic; case "$enableval" in
3111 no | host | target)
3112 enable_liboffloadmic=$enableval ;;
3113 *)
3114 as_fn_error "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3115esac
3116else
4b4f2e35 3117 if test x"$enable_as_accelerator_for" != x; then
5f520819
KY
3118 case "${target}" in
3119 *-intelmic-* | *-intelmicemul-*)
3120 enable_liboffloadmic=target
3121 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3122 ;;
3123 *)
3124 enable_liboffloadmic=no
3125 ;;
3126 esac
3127else
3128 case "${enable_offload_targets}" in
3129 *-intelmic-* | *-intelmicemul-*)
3130 enable_liboffloadmic=host
3131 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3132 ;;
3133 *)
3134 enable_liboffloadmic=no
3135 ;;
3136 esac
3137fi
3138fi
3139
3140
3141
44a7d18d 3142# Enable libgomp by default on hosted POSIX systems, and a few others.
27079765 3143if test x$enable_libgomp = x ; then
953ff289 3144 case "${target}" in
416ac4d4 3145 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3146 ;;
8c6d158a 3147 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3148 ;;
b24513a1 3149 *-*-solaris2* | *-*-hpux11*)
953ff289 3150 ;;
cac90078 3151 *-*-darwin* | *-*-aix*)
953ff289 3152 ;;
44a7d18d
TS
3153 nvptx*-*-*)
3154 ;;
953ff289
DN
3155 *)
3156 noconfigdirs="$noconfigdirs target-libgomp"
3157 ;;
3158 esac
27079765 3159fi
953ff289 3160
48310492
RH
3161# Disable libatomic on unsupported systems.
3162if test -d ${srcdir}/libatomic; then
3163 if test x$enable_libatomic = x; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3165$as_echo_n "checking for libatomic support... " >&6; }
3166 if (srcdir=${srcdir}/libatomic; \
3167 . ${srcdir}/configure.tgt; \
3168 test -n "$UNSUPPORTED")
3169 then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
3172 noconfigdirs="$noconfigdirs target-libatomic"
3173 else
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3175$as_echo "yes" >&6; }
3176 fi
3177 fi
3178fi
3179
3038054c
BI
3180# Disable libcilkrts on unsupported systems.
3181if test -d ${srcdir}/libcilkrts; then
3182 if test x$enable_libcilkrts = x; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcilkrts support" >&5
3184$as_echo_n "checking for libcilkrts support... " >&6; }
3185 if (srcdir=${srcdir}/libcilkrts; \
3186 . ${srcdir}/configure.tgt; \
3187 test -n "$UNSUPPORTED")
3188 then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191 noconfigdirs="$noconfigdirs target-libcilkrts"
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194$as_echo "yes" >&6; }
3195 fi
3196 fi
3197fi
3198
5f520819
KY
3199# Disable liboffloadmic on unsupported systems.
3200if test -d ${srcdir}/liboffloadmic; then
3201 if test x$enable_liboffloadmic != xno; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3203$as_echo_n "checking for liboffloadmic support... " >&6; }
3204 if (srcdir=${srcdir}/liboffloadmic; \
3205 . ${srcdir}/configure.tgt; \
3206 test -n "$UNSUPPORTED")
3207 then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209$as_echo "no" >&6; }
3210 noconfigdirs="$noconfigdirs target-liboffloadmic"
3211 else
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213$as_echo "yes" >&6; }
3214 fi
3215 fi
3216fi
3217
e948157d
RH
3218# Disable libitm on unsupported systems.
3219if test -d ${srcdir}/libitm; then
3220 if test x$enable_libitm = x; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3222$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3223 if (srcdir=${srcdir}/libitm; \
3224 . ${srcdir}/configure.tgt; \
3225 test -n "$UNSUPPORTED")
3226 then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3228$as_echo "no" >&6; }
e948157d
RH
3229 noconfigdirs="$noconfigdirs target-libitm"
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3232$as_echo "yes" >&6; }
e948157d
RH
3233 fi
3234 fi
0a35513e
AH
3235fi
3236
93bf5390
RH
3237# Disable libsanitizer on unsupported systems.
3238if test -d ${srcdir}/libsanitizer; then
3239 if test x$enable_libsanitizer = x; then
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3241$as_echo_n "checking for libsanitizer support... " >&6; }
3242 if (srcdir=${srcdir}/libsanitizer; \
3243 . ${srcdir}/configure.tgt; \
3244 test -n "$UNSUPPORTED")
3245 then
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247$as_echo "no" >&6; }
3248 noconfigdirs="$noconfigdirs target-libsanitizer"
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3251$as_echo "yes" >&6; }
3252 fi
3253 fi
3254fi
3255
2077db1b
CT
3256# Disable libvtv on unsupported systems.
3257if test -d ${srcdir}/libvtv; then
3258 if test x$enable_libvtv = x; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3260$as_echo_n "checking for libvtv support... " >&6; }
3261 if (srcdir=${srcdir}/libvtv; \
3262 . ${srcdir}/configure.tgt; \
1e74b850 3263 test "$VTV_SUPPORTED" != "yes")
2077db1b
CT
3264 then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266$as_echo "no" >&6; }
3267 noconfigdirs="$noconfigdirs target-libvtv"
3268 else
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270$as_echo "yes" >&6; }
3271 fi
3272 fi
3273fi
3274
5373cd33
IE
3275
3276# Enable libmpx on supported systems by request.
3277if test -d ${srcdir}/libmpx; then
54985c70 3278 if test x$enable_libmpx = x; then
5373cd33
IE
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmpx support" >&5
3280$as_echo_n "checking for libmpx support... " >&6; }
3281 if (srcdir=${srcdir}/libmpx; \
3282 . ${srcdir}/configure.tgt; \
3283 test "$LIBMPX_SUPPORTED" != "yes")
3284 then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3286$as_echo "no" >&6; }
3287 noconfigdirs="$noconfigdirs target-libmpx"
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290$as_echo "yes" >&6; }
3291 fi
5373cd33
IE
3292 fi
3293fi
3294
3295
3296
d91491e5
SE
3297# Disable libquadmath for some systems.
3298case "${target}" in
e7fae550
DE
3299 avr-*-*)
3300 noconfigdirs="$noconfigdirs target-libquadmath"
3301 ;;
d91491e5
SE
3302 # libquadmath is unused on AIX and libquadmath build process use of
3303 # LD_LIBRARY_PATH can break AIX bootstrap.
3304 powerpc-*-aix* | rs6000-*-aix*)
3305 noconfigdirs="$noconfigdirs target-libquadmath"
3306 ;;
3307esac
3308
1e9e0e23
JM
3309# Disable libssp for some systems.
3310case "${target}" in
3311 avr-*-*)
b318fb4b 3312 # No hosted I/O support.
1e9e0e23
JM
3313 noconfigdirs="$noconfigdirs target-libssp"
3314 ;;
3315 powerpc-*-aix* | rs6000-*-aix*)
3316 noconfigdirs="$noconfigdirs target-libssp"
85b8555e
DD
3317 ;;
3318 rl78-*-*)
7cb62ef1
EB
3319 # libssp uses a misaligned load to trigger a fault, but the RL78
3320 # doesn't fault for those - instead, it gives a build-time error
3321 # for explicit misaligned loads.
85b8555e 3322 noconfigdirs="$noconfigdirs target-libssp"
1e9e0e23 3323 ;;
0969ec7d
EB
3324 visium-*-*)
3325 # No hosted I/O support.
3326 noconfigdirs="$noconfigdirs target-libssp"
3327 ;;
1e9e0e23
JM
3328esac
3329
1e9e0e23 3330# Disable libstdc++-v3 for some systems.
1873ec0c
L
3331# Allow user to override this if they pass --enable-libstdc++-v3
3332if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3333 case "${target}" in
3334 *-*-vxworks*)
3335 # VxWorks uses the Dinkumware C++ library.
3336 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3337 ;;
3338 arm*-wince-pe*)
3339 # the C++ libraries don't build on top of CE's C libraries
3340 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3341 ;;
3342 avr-*-*)
3343 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3344 ;;
fef939d6
JB
3345 ft32-*-*)
3346 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3347 ;;
1873ec0c
L
3348 esac
3349fi
1e9e0e23
JM
3350
3351# Disable Fortran for some systems.
3352case "${target}" in
3353 mmix-*-*)
3354 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3355 unsupported_languages="$unsupported_languages fortran"
3356 ;;
3357esac
3358
012447ea
JJ
3359# Disable libffi for some systems.
3360case "${target}" in
3361 powerpc-*-darwin*)
3362 ;;
3363 i[3456789]86-*-darwin*)
3364 ;;
3365 x86_64-*-darwin[912]*)
3366 ;;
3367 *-*-darwin*)
3368 noconfigdirs="$noconfigdirs target-libffi"
3369 ;;
3370 *-*-netware*)
3371 noconfigdirs="$noconfigdirs target-libffi"
3372 ;;
3373 *-*-phoenix*)
3374 noconfigdirs="$noconfigdirs target-libffi"
3375 ;;
3376 *-*-rtems*)
3377 noconfigdirs="$noconfigdirs target-libffi"
3378 ;;
3379 *-*-tpf*)
3380 noconfigdirs="$noconfigdirs target-libffi"
3381 ;;
3382 *-*-uclinux*)
3383 noconfigdirs="$noconfigdirs target-libffi"
3384 ;;
3385 *-*-vxworks*)
3386 noconfigdirs="$noconfigdirs target-libffi"
3387 ;;
3388 alpha*-*-*vms*)
3389 noconfigdirs="$noconfigdirs target-libffi"
3390 ;;
3391 arm*-*-freebsd*)
3392 noconfigdirs="$noconfigdirs target-libffi"
3393 ;;
3394 arm-wince-pe)
3395 noconfigdirs="$noconfigdirs target-libffi"
3396 ;;
3397 arm*-*-symbianelf*)
3398 noconfigdirs="$noconfigdirs target-libffi"
3399 ;;
3400 cris-*-* | crisv32-*-*)
3401 case "${target}" in
3402 *-*-linux*)
3403 ;;
3404 *) # See PR46792 regarding target-libffi.
3405 noconfigdirs="$noconfigdirs target-libffi";;
3406 esac
3407 ;;
3408 hppa*64*-*-hpux*)
3409 noconfigdirs="$noconfigdirs target-libffi"
3410 ;;
3411 hppa*-hp-hpux11*)
3412 ;;
3413 hppa*-*-hpux*)
3414 noconfigdirs="$noconfigdirs target-libffi"
3415 ;;
3416 ia64*-*-*vms*)
3417 noconfigdirs="$noconfigdirs target-libffi"
3418 ;;
3419 i[3456789]86-w64-mingw*)
3420 noconfigdirs="$noconfigdirs target-libffi"
3421 ;;
3422 i[3456789]86-*-mingw*)
3423 noconfigdirs="$noconfigdirs target-libffi"
3424 ;;
3425 x86_64-*-mingw*)
3426 noconfigdirs="$noconfigdirs target-libffi"
3427 ;;
3428 mmix-*-*)
3429 noconfigdirs="$noconfigdirs target-libffi"
3430 ;;
3431 powerpc-*-aix*)
3432 # copied from rs6000-*-* entry
3433 noconfigdirs="$noconfigdirs target-libffi"
3434 ;;
3435 rs6000-*-aix*)
3436 noconfigdirs="$noconfigdirs target-libffi"
3437 ;;
3438 ft32-*-*)
3439 noconfigdirs="$noconfigdirs target-libffi"
3440 ;;
3441 *-*-lynxos*)
3442 noconfigdirs="$noconfigdirs target-libffi"
3443 ;;
3444esac
3445
3446# Disable the go frontend on systems where it is known to not work. Please keep
3447# this in sync with contrib/config-list.mk.
3448case "${target}" in
3449*-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*)
3450 unsupported_languages="$unsupported_languages go"
3451 ;;
3452esac
3453
cdbc9e92
ILT
3454# Disable libgo for some systems where it is known to not work.
3455# For testing, you can easily override this with --enable-libgo.
3456if test x$enable_libgo = x; then
3457 case "${target}" in
3458 *-*-darwin*)
3459 # PR 46986
3460 noconfigdirs="$noconfigdirs target-libgo"
3461 ;;
3462 *-*-cygwin* | *-*-mingw*)
3463 noconfigdirs="$noconfigdirs target-libgo"
3464 ;;
3465 *-*-aix*)
3466 noconfigdirs="$noconfigdirs target-libgo"
3467 ;;
3468 esac
3469fi
3470
c03353e2
RIL
3471# Default libgloss CPU subdirectory.
3472libgloss_dir="$target_cpu"
6de9cd9a 3473
fbcf0dca
JM
3474case "${target}" in
3475 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3476 libgloss_dir=wince
3477 ;;
4dddfc74
YZ
3478 aarch64*-*-* )
3479 libgloss_dir=aarch64
3480 ;;
fbcf0dca
JM
3481 arm*-*-*)
3482 libgloss_dir=arm
3483 ;;
3484 cris-*-* | crisv32-*-*)
3485 libgloss_dir=cris
3486 ;;
3487 hppa*-*-*)
3488 libgloss_dir=pa
3489 ;;
3490 i[3456789]86-*-*)
3491 libgloss_dir=i386
3492 ;;
3493 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3494 libgloss_dir=m68hc11
3495 ;;
3496 m68*-*-* | fido-*-*)
3497 libgloss_dir=m68k
3498 ;;
3499 mips*-*-*)
3500 libgloss_dir=mips
3501 ;;
3502 powerpc*-*-*)
3503 libgloss_dir=rs6000
3504 ;;
3505 sparc*-*-*)
3506 libgloss_dir=sparc
3507 ;;
3508esac
3509
6a789d5e 3510# Disable newlib and libgloss for various target OSes.
671aa708 3511case "${target}" in
6a789d5e
JM
3512 alpha*-dec-osf*)
3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3514 ;;
3515 i[3456789]86-*-linux*)
3516 # This section makes it possible to build newlib natively on linux.
3517 # If we are using a cross compiler then don't configure newlib.
3518 if test x${is_cross_compiler} != xno ; then
3519 noconfigdirs="$noconfigdirs target-newlib"
3520 fi
3521 noconfigdirs="$noconfigdirs target-libgloss"
3522 # If we are not using a cross compiler, do configure newlib.
3523 # Note however, that newlib will only be configured in this situation
3524 # if the --with-newlib option has been given, because otherwise
3525 # 'target-newlib' will appear in skipdirs.
3526 ;;
3527 i[3456789]86-*-rdos*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3529 ;;
3530 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 ;;
3533 sparc-*-sunos4*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535 ;;
3536 *-*-aix*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538 ;;
3539 *-*-beos*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3541 ;;
671aa708 3542 *-*-chorusos)
0036370f 3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3544 ;;
6a789d5e
JM
3545 *-*-dragonfly*)
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547 ;;
3548 *-*-freebsd*)
3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3550 ;;
3551 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3552 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3553 ;;
3554 *-*-lynxos*)
3555 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3556 ;;
3557 *-*-mingw*)
3558 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3559 ;;
3560 *-*-netbsd*)
3561 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3562 ;;
3563 *-*-netware*)
3564 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3565 ;;
3566 *-*-tpf*)
3567 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3568 ;;
3569 *-*-uclinux*)
3570 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3571 ;;
3572 *-*-vxworks*)
3573 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3574 ;;
3575esac
3576
3577case "${target}" in
3578 *-*-chorusos)
3579 ;;
3be96231
TG
3580 aarch64-*-darwin*)
3581 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3582 noconfigdirs="$noconfigdirs sim target-rda"
3583 ;;
3584 arm-*-darwin*)
3585 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3586 noconfigdirs="$noconfigdirs sim target-rda"
3587 ;;
75eeae1a 3588 powerpc-*-darwin*)
e1514c3f 3589 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3590 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3591 ;;
354ebf88
RW
3592 i[3456789]86-*-darwin*)
3593 noconfigdirs="$noconfigdirs ld gprof"
3594 noconfigdirs="$noconfigdirs sim target-rda"
3595 ;;
3596 x86_64-*-darwin[912]*)
0db3a858
TG
3597 noconfigdirs="$noconfigdirs ld gas gprof"
3598 noconfigdirs="$noconfigdirs sim target-rda"
3599 ;;
42c1cd8a
AT
3600 *-*-darwin*)
3601 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3602 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3603 ;;
8c6d158a 3604 *-*-dragonfly*)
8c6d158a 3605 ;;
c3f84f61 3606 *-*-freebsd*)
6de9cd9a
DN
3607 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3608 && test -f /usr/local/include/gmp.h; then
3609 with_gmp=/usr/local
3610 fi
6de9cd9a 3611 ;;
ef4e7569
US
3612 *-*-kaos*)
3613 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3614 noconfigdirs="$noconfigdirs target-libgloss"
3615 ;;
671aa708 3616 *-*-netbsd*)
671aa708 3617 ;;
61fec9ff 3618 *-*-netware*)
671aa708 3619 ;;
fd6487af
JS
3620 *-*-phoenix*)
3621 noconfigdirs="$noconfigdirs target-libgloss"
3622 ;;
671aa708 3623 *-*-rtems*)
2909494b 3624 noconfigdirs="$noconfigdirs target-libgloss"
d896cc4d
JBG
3625 # this is not caught below because this stanza matches earlier
3626 case $target in
3627 or1k*-*-*) noconfigdirs="$noconfigdirs gdb" ;;
3628 esac
671aa708 3629 ;;
a8ba31f2
EC
3630 # The tpf target doesn't support gdb yet.
3631 *-*-tpf*)
6a789d5e 3632 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3633 ;;
5785c0ed 3634 *-*-uclinux*)
6a789d5e 3635 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3636 ;;
671aa708 3637 *-*-vxworks*)
671aa708
NN
3638 ;;
3639 alpha*-dec-osf*)
3640 # ld works, but does not support shared libraries.
671aa708 3641 # gas doesn't generate exception information.
6a789d5e 3642 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3643 ;;
3644 alpha*-*-*vms*)
2909494b 3645 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3646 ;;
671aa708
NN
3647 alpha*-*-*)
3648 # newlib is not 64 bit ready
2909494b 3649 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3650 ;;
671aa708 3651 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3652 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3653 ;;
2fd88f4f
AK
3654 arc*-*-*)
3655 noconfigdirs="$noconfigdirs sim"
3656 ;;
671aa708 3657 arm-*-pe*)
2909494b 3658 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3659 ;;
671aa708 3660 arm-*-riscix*)
0036370f 3661 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3662 ;;
b588ae30
GJL
3663 avr-*-*)
3664 if test x${with_avrlibc} != xno; then
3665 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3666 fi
3667 ;;
671aa708 3668 c4x-*-* | tic4x-*-*)
0036370f 3669 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3670 ;;
0036370f
JM
3671 tic54x-*-*)
3672 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3673 ;;
671aa708 3674 d10v-*-*)
0036370f 3675 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3676 ;;
3677 d30v-*-*)
0036370f 3678 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3679 ;;
3680 fr30-*-elf*)
2909494b 3681 noconfigdirs="$noconfigdirs gdb"
671aa708 3682 ;;
a05c2c75
L
3683 ft32-*-*)
3684 noconfigdirs="$noconfigdirs target-rda gprof"
3685 ;;
55f2d967 3686 moxie-*-*)
a05c2c75 3687 noconfigdirs="$noconfigdirs"
55f2d967 3688 ;;
671aa708 3689 h8300*-*-*)
2909494b 3690 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3691 ;;
3692 h8500-*-*)
0036370f 3693 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3694 ;;
ee6a22df 3695 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3696 ;;
a05c2c75
L
3697 hppa*64*-*-hpux*)
3698 noconfigdirs="$noconfigdirs gdb"
3699 ;;
3700 hppa*-*-hpux11*)
3701 noconfigdirs="$noconfigdirs gdb ld"
3702 ;;
4569f85e 3703 hppa*64*-*-linux*)
671aa708 3704 ;;
56f8587a 3705 hppa*-*-linux*)
3e732ba0 3706 ;;
671aa708 3707 hppa*-*-*elf* | \
671aa708
NN
3708 hppa*-*-lites* | \
3709 hppa*-*-openbsd* | \
3710 hppa*64*-*-*)
671aa708 3711 ;;
c03353e2 3712 hppa*-*-pro*)
c03353e2 3713 ;;
671aa708 3714 hppa*-*-*)
2909494b 3715 noconfigdirs="$noconfigdirs ld"
671aa708 3716 ;;
fb87ad5d 3717 i960-*-*)
0036370f 3718 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3719 ;;
671aa708
NN
3720 ia64*-*-elf*)
3721 # No gdb support yet.
1bcce263 3722 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3723 ;;
3724 ia64*-**-hpux*)
5a2931d1 3725 # No ld support yet.
a05c2c75 3726 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
671aa708 3727 ;;
52535a64 3728 ia64*-*-*vms*)
091fe9ca
TG
3729 # No ld support yet.
3730 noconfigdirs="$noconfigdirs libgui itcl ld"
52535a64 3731 ;;
ef4c4300 3732 i[3456789]86-w64-mingw*)
ef4c4300
KT
3733 ;;
3734 i[3456789]86-*-mingw*)
b91f0a41 3735 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3736 ;;
671aa708
NN
3737 *-*-cygwin*)
3738 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3739 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3740 # always build newlib if winsup directory is present.
b91f0a41 3741 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3742 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3743 elif test -d "$srcdir/newlib"; then
b91f0a41 3744 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3745 fi
1c710c3c 3746 ;;
f2a0e225 3747 i[3456789]86-*-pe)
ebb9f8b0 3748 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3749 ;;
f2a0e225 3750 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3751 # The linker does not yet know about weak symbols in COFF,
3752 # and is not configured to handle mixed ELF and COFF.
0036370f 3753 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3754 ;;
f2a0e225 3755 i[3456789]86-*-sco*)
0036370f 3756 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3757 ;;
fbdd5d87 3758 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3759 noconfigdirs="$noconfigdirs target-libgloss"
3760 ;;
f2a0e225 3761 i[3456789]86-*-sysv4*)
0036370f 3762 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3763 ;;
f2a0e225 3764 i[3456789]86-*-beos*)
6a789d5e 3765 noconfigdirs="$noconfigdirs gdb"
3aa83176 3766 ;;
d1f8db0c 3767 i[3456789]86-*-rdos*)
6a789d5e 3768 noconfigdirs="$noconfigdirs gdb"
c03353e2 3769 ;;
671aa708 3770 mmix-*-*)
2909494b 3771 noconfigdirs="$noconfigdirs gdb"
671aa708 3772 ;;
ab34901f 3773 mt-*-*)
79dd769c
AH
3774 noconfigdirs="$noconfigdirs sim"
3775 ;;
671aa708
NN
3776 powerpc-*-aix*)
3777 # copied from rs6000-*-* entry
6a789d5e 3778 noconfigdirs="$noconfigdirs gprof"
671aa708 3779 ;;
4569f85e 3780 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3781 target_configdirs="$target_configdirs target-winsup"
0036370f 3782 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3783 # always build newlib.
3784 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3785 ;;
3786 # This is temporary until we can link against shared libraries
3787 powerpcle-*-solaris*)
0036370f 3788 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3789 ;;
3790 powerpc-*-beos*)
6a789d5e 3791 noconfigdirs="$noconfigdirs gdb"
671aa708 3792 ;;
671aa708 3793 rs6000-*-lynxos*)
6a789d5e 3794 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3795 ;;
3796 rs6000-*-aix*)
6a789d5e 3797 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3798 ;;
3799 rs6000-*-*)
2909494b 3800 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3801 ;;
3802 m68k-apollo-*)
0036370f 3803 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3804 ;;
ca9fe997 3805 microblaze*)
2909494b 3806 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3807 ;;
d896cc4d 3808 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
d9dced13
RS
3809 if test x$with_newlib = xyes; then
3810 noconfigdirs="$noconfigdirs gprof"
3811 fi
d9dced13 3812 ;;
671aa708 3813 mips*-*-irix5*)
0036370f 3814 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3815 ;;
3816 mips*-*-irix6*)
2909494b 3817 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3818 ;;
671aa708 3819 mips*-*-bsd*)
bc98bcc4 3820 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
671aa708 3821 ;;
671aa708 3822 mips*-*-linux*)
671aa708 3823 ;;
bc98bcc4
JBG
3824 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3825 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3826 noconfigdirs="$noconfigdirs ld gas gprof"
3827 ;;
671aa708 3828 mips*-*-*)
2909494b 3829 noconfigdirs="$noconfigdirs gprof"
671aa708 3830 ;;
738f2522 3831 nvptx*-*-*)
738f2522
BS
3832 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3833 ;;
d896cc4d
JBG
3834 or1k*-*-*)
3835 noconfigdirs="$noconfigdirs gdb"
3836 ;;
bc6d9014 3837 sh-*-*)
ea2002ba
CB
3838 case "${target}" in
3839 sh*-*-elf)
2909494b 3840 ;;
ea2002ba 3841 *)
2909494b 3842 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3843 esac
671aa708 3844 ;;
671aa708 3845 sparc-*-sunos4*)
6a789d5e 3846 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3847 use_gnu_ld=no
3848 fi
3849 ;;
b42f0d7e 3850 tic6x-*-*)
0d557ff8 3851 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3852 ;;
341c653c 3853 tilepro*-*-* | tilegx*-*-*)
db1d217c
WL
3854 noconfigdirs="$noconfigdirs sim"
3855 ;;
671aa708 3856 v810-*-*)
0036370f 3857 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3858 ;;
3859 vax-*-*)
2909494b 3860 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3861 ;;
671aa708 3862esac
79c06341 3863
671aa708
NN
3864# If we aren't building newlib, then don't build libgloss, since libgloss
3865# depends upon some newlib header files.
3866case "${noconfigdirs}" in
3867 *target-libgloss*) ;;
3868 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3869esac
3870
671aa708 3871# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3872host_makefile_frag=/dev/null
3873if test -d ${srcdir}/config ; then
3874case "${host}" in
f2a0e225 3875 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3876 host_makefile_frag="config/mh-djgpp"
3877 ;;
3878 *-cygwin*)
2a79c47f 3879
5213506e
RW
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3881$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3882echo a >cygwin-cat-check
e25a8c82 3883if test `cat cygwin-cat-check` = a ; then
2a79c47f 3884 rm cygwin-cat-check
5213506e
RW
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3886$as_echo "yes" >&6; }
2a79c47f
NC
3887else
3888 rm cygwin-cat-check
5213506e
RW
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890$as_echo "no" >&6; }
3891 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3892 Please either mount the build directory in binary mode or run the following
3893 commands before running any configure script:
3894set -o igncr
3895export SHELLOPTS
5213506e 3896 " "$LINENO" 5
2a79c47f
NC
3897fi
3898
671aa708
NN
3899 host_makefile_frag="config/mh-cygwin"
3900 ;;
c53a18d3 3901 *-mingw*)
1f5a6b84 3902 host_makefile_frag="config/mh-mingw"
95af8923 3903 ;;
cabb9d59 3904 alpha*-linux*)
13be44ed
UB
3905 host_makefile_frag="config/mh-alpha-linux"
3906 ;;
efd41714 3907 hppa*-hp-hpux10*)
efd41714 3908 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3909 ;;
111eeb6e 3910 hppa*-hp-hpux*)
efd41714
PB
3911 host_makefile_frag="config/mh-pa"
3912 ;;
3913 hppa*-*)
3914 host_makefile_frag="config/mh-pa"
3915 ;;
d8ed14ce
IS
3916 *-*-darwin*)
3917 host_makefile_frag="config/mh-darwin"
be8fff81 3918 ;;
d19bca38
PB
3919 powerpc-*-aix*)
3920 host_makefile_frag="config/mh-ppc-aix"
3921 ;;
3922 rs6000-*-aix*)
3923 host_makefile_frag="config/mh-ppc-aix"
3924 ;;
671aa708
NN
3925esac
3926fi
3927
55ffb5ed 3928if test "${build}" != "${host}" ; then
0999159b
PB
3929 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3930 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3931 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3932 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3933 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3934 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3935 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3936 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3937 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3938 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3939 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3940 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3941 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3942else
3943 AR_FOR_BUILD="\$(AR)"
3944 AS_FOR_BUILD="\$(AS)"
fb0103e5 3945 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3946 CXX_FOR_BUILD="\$(CXX)"
3947 GCJ_FOR_BUILD="\$(GCJ)"
3948 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3949 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3950 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3951 LD_FOR_BUILD="\$(LD)"
3952 NM_FOR_BUILD="\$(NM)"
3953 RANLIB_FOR_BUILD="\$(RANLIB)"
3954 WINDRES_FOR_BUILD="\$(WINDRES)"
3955 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3956fi
3957
3958ac_ext=c
1c710c3c
DJ
3959ac_cpp='$CPP $CPPFLAGS'
3960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3965set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967$as_echo_n "checking for $ac_word... " >&6; }
3968if test "${ac_cv_prog_CC+set}" = set; then :
3969 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3970else
3971 if test -n "$CC"; then
3972 ac_cv_prog_CC="$CC" # Let the user override the test.
3973else
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH
3976do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
5213506e
RW
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3981 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3983 break 2
3984 fi
3985done
5213506e
RW
3986 done
3987IFS=$as_save_IFS
1c710c3c
DJ
3988
3989fi
3990fi
3991CC=$ac_cv_prog_CC
3992if test -n "$CC"; then
5213506e
RW
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994$as_echo "$CC" >&6; }
1c710c3c 3995else
5213506e
RW
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997$as_echo "no" >&6; }
1c710c3c
DJ
3998fi
3999
5213506e 4000
1c710c3c
DJ
4001fi
4002if test -z "$ac_cv_prog_CC"; then
4003 ac_ct_CC=$CC
fb0103e5
RG
4004 # Extract the first word of "gcc", so it can be a program name with args.
4005set dummy gcc; ac_word=$2
5213506e
RW
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007$as_echo_n "checking for $ac_word... " >&6; }
4008if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
1c710c3c
DJ
4010else
4011 if test -n "$ac_ct_CC"; then
4012 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4013else
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
5213506e
RW
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4021 ac_cv_prog_ac_ct_CC="gcc"
5213506e 4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4023 break 2
4024 fi
4025done
5213506e
RW
4026 done
4027IFS=$as_save_IFS
1c710c3c
DJ
4028
4029fi
4030fi
4031ac_ct_CC=$ac_cv_prog_ac_ct_CC
4032if test -n "$ac_ct_CC"; then
5213506e
RW
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4034$as_echo "$ac_ct_CC" >&6; }
1c710c3c 4035else
5213506e
RW
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
1c710c3c
DJ
4038fi
4039
5213506e
RW
4040 if test "x$ac_ct_CC" = x; then
4041 CC=""
4042 else
4043 case $cross_compiling:$ac_tool_warned in
4044yes:)
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4047ac_tool_warned=yes ;;
4048esac
4049 CC=$ac_ct_CC
4050 fi
1c710c3c
DJ
4051else
4052 CC="$ac_cv_prog_CC"
4053fi
4054
4055if test -z "$CC"; then
5213506e
RW
4056 if test -n "$ac_tool_prefix"; then
4057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 4058set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060$as_echo_n "checking for $ac_word... " >&6; }
4061if test "${ac_cv_prog_CC+set}" = set; then :
4062 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4063else
4064 if test -n "$CC"; then
4065 ac_cv_prog_CC="$CC" # Let the user override the test.
4066else
1c710c3c
DJ
4067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068for as_dir in $PATH
4069do
4070 IFS=$as_save_IFS
4071 test -z "$as_dir" && as_dir=.
5213506e
RW
4072 for ac_exec_ext in '' $ac_executable_extensions; do
4073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4074 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 4075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4076 break 2
4077 fi
4078done
5213506e
RW
4079 done
4080IFS=$as_save_IFS
1c710c3c 4081
0b0dc272 4082fi
0b0dc272 4083fi
1c710c3c 4084CC=$ac_cv_prog_CC
af71363e 4085if test -n "$CC"; then
5213506e
RW
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4087$as_echo "$CC" >&6; }
2aeb72e9 4088else
5213506e
RW
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090$as_echo "no" >&6; }
2aeb72e9
DD
4091fi
4092
2aeb72e9 4093
5213506e 4094 fi
1c710c3c 4095fi
55ffb5ed
NN
4096if test -z "$CC"; then
4097 # Extract the first word of "cc", so it can be a program name with args.
4098set dummy cc; ac_word=$2
5213506e
RW
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100$as_echo_n "checking for $ac_word... " >&6; }
4101if test "${ac_cv_prog_CC+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4103else
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4106else
0b0dc272 4107 ac_prog_rejected=no
1c710c3c
DJ
4108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
5213506e
RW
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
4115 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4116 ac_prog_rejected=yes
4117 continue
4118 fi
4119 ac_cv_prog_CC="cc"
5213506e 4120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4121 break 2
4122 fi
4123done
5213506e
RW
4124 done
4125IFS=$as_save_IFS
1c710c3c 4126
55ffb5ed
NN
4127if test $ac_prog_rejected = yes; then
4128 # We found a bogon in the path, so make sure we never use it.
4129 set dummy $ac_cv_prog_CC
4130 shift
1c710c3c 4131 if test $# != 0; then
55ffb5ed
NN
4132 # We chose a different compiler from the bogus one.
4133 # However, it has the same basename, so the bogon will be chosen
4134 # first if we set CC to just the basename; use the full file name.
4135 shift
1c710c3c 4136 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4137 fi
4138fi
4139fi
4140fi
1c710c3c 4141CC=$ac_cv_prog_CC
55ffb5ed 4142if test -n "$CC"; then
5213506e
RW
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4144$as_echo "$CC" >&6; }
55ffb5ed 4145else
5213506e
RW
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147$as_echo "no" >&6; }
55ffb5ed
NN
4148fi
4149
5213506e 4150
1c710c3c
DJ
4151fi
4152if test -z "$CC"; then
4153 if test -n "$ac_tool_prefix"; then
5213506e 4154 for ac_prog in cl.exe
1c710c3c
DJ
4155 do
4156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4157set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159$as_echo_n "checking for $ac_word... " >&6; }
4160if test "${ac_cv_prog_CC+set}" = set; then :
4161 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4162else
4163 if test -n "$CC"; then
4164 ac_cv_prog_CC="$CC" # Let the user override the test.
4165else
1c710c3c
DJ
4166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167for as_dir in $PATH
4168do
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
5213506e
RW
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4173 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4175 break 2
4176 fi
4177done
5213506e
RW
4178 done
4179IFS=$as_save_IFS
1c710c3c 4180
55ffb5ed
NN
4181fi
4182fi
1c710c3c 4183CC=$ac_cv_prog_CC
55ffb5ed 4184if test -n "$CC"; then
5213506e
RW
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4186$as_echo "$CC" >&6; }
a4b9e93e 4187else
5213506e
RW
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189$as_echo "no" >&6; }
fb0103e5 4190fi
af71363e 4191
5213506e 4192
1c710c3c
DJ
4193 test -n "$CC" && break
4194 done
af71363e 4195fi
1c710c3c
DJ
4196if test -z "$CC"; then
4197 ac_ct_CC=$CC
5213506e 4198 for ac_prog in cl.exe
1c710c3c
DJ
4199do
4200 # Extract the first word of "$ac_prog", so it can be a program name with args.
4201set dummy $ac_prog; ac_word=$2
5213506e
RW
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203$as_echo_n "checking for $ac_word... " >&6; }
4204if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4205 $as_echo_n "(cached) " >&6
0b0dc272 4206else
1c710c3c
DJ
4207 if test -n "$ac_ct_CC"; then
4208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4209else
1c710c3c
DJ
4210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211for as_dir in $PATH
4212do
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
5213506e
RW
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4217 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4219 break 2
4220 fi
4221done
5213506e
RW
4222 done
4223IFS=$as_save_IFS
1c710c3c 4224
af71363e
AS
4225fi
4226fi
1c710c3c
DJ
4227ac_ct_CC=$ac_cv_prog_ac_ct_CC
4228if test -n "$ac_ct_CC"; then
5213506e
RW
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4230$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4231else
5213506e
RW
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233$as_echo "no" >&6; }
af71363e 4234fi
0b0dc272 4235
5213506e 4236
1c710c3c
DJ
4237 test -n "$ac_ct_CC" && break
4238done
4239
5213506e
RW
4240 if test "x$ac_ct_CC" = x; then
4241 CC=""
4242 else
4243 case $cross_compiling:$ac_tool_warned in
4244yes:)
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4246$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4247ac_tool_warned=yes ;;
4248esac
4249 CC=$ac_ct_CC
4250 fi
1c710c3c
DJ
4251fi
4252
4253fi
4254
4255
5213506e
RW
4256test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258as_fn_error "no acceptable C compiler found in \$PATH
4259See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4260
4261# Provide some information about the compiler.
5213506e
RW
4262$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4263set X $ac_compile
4264ac_compiler=$2
4265for ac_option in --version -v -V -qversion; do
4266 { { ac_try="$ac_compiler $ac_option >&5"
4267case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270esac
4271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4272$as_echo "$ac_try_echo"; } >&5
4273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4274 ac_status=$?
5213506e
RW
4275 if test -s conftest.err; then
4276 sed '10a\
4277... rest of stderr output deleted ...
4278 10q' conftest.err >conftest.er1
4279 cat conftest.er1 >&5
4280 rm -f conftest.er1 conftest.err
4281 fi
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; }
4284done
1c710c3c 4285
5213506e 4286cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4287/* end confdefs.h. */
4288
4289int
4290main ()
4291{
4292
4293 ;
4294 return 0;
4295}
4296_ACEOF
4297ac_clean_files_save=$ac_clean_files
5213506e 4298ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4299# Try to create an executable without -o first, disregard a.out.
4300# It will help us diagnose broken compilers, and finding out an intuition
4301# of exeext.
5213506e
RW
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4303$as_echo_n "checking for C compiler default output file name... " >&6; }
4304ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4305
4306# The possible output files:
4307ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4308
4309ac_rmfiles=
4310for ac_file in $ac_files
4311do
4312 case $ac_file in
4313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4315 esac
4316done
4317rm -f $ac_rmfiles
4318
4319if { { ac_try="$ac_link_default"
4320case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323esac
4324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325$as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_link_default") 2>&5
1c710c3c 4327 ac_status=$?
5213506e
RW
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }; then :
4330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4331# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4332# in a Makefile. We should not override ac_cv_exeext if it was cached,
4333# so that the user can short-circuit this test for compilers unknown to
4334# Autoconf.
4335for ac_file in $ac_files ''
1c710c3c
DJ
4336do
4337 test -f "$ac_file" || continue
4338 case $ac_file in
5213506e 4339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4340 ;;
4341 [ab].out )
4342 # We found the default executable, but exeext='' is most
4343 # certainly right.
4344 break;;
4345 *.* )
5213506e
RW
4346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4347 then :; else
4348 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4349 fi
4350 # We set ac_cv_exeext here because the later test for it is not
4351 # safe: cross compilers may not add the suffix if given an `-o'
4352 # argument, so we may need to know it at that point already.
4353 # Even if this section looks crufty: it has the advantage of
4354 # actually working.
1c710c3c
DJ
4355 break;;
4356 * )
4357 break;;
4358 esac
4359done
5213506e
RW
4360test "$ac_cv_exeext" = no && ac_cv_exeext=
4361
1c710c3c 4362else
5213506e
RW
4363 ac_file=''
4364fi
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4366$as_echo "$ac_file" >&6; }
4367if test -z "$ac_file"; then :
4368 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4369sed 's/^/| /' conftest.$ac_ext >&5
4370
5213506e
RW
4371{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4373{ as_fn_set_status 77
4374as_fn_error "C compiler cannot create executables
4375See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4376fi
1c710c3c 4377ac_exeext=$ac_cv_exeext
1c710c3c 4378
5213506e 4379# Check that the compiler produces executables we can run. If not, either
1c710c3c 4380# the compiler is broken, or we cross compile.
5213506e
RW
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4382$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4383# If not cross compiling, check that we can run a simple program.
4384if test "$cross_compiling" != yes; then
4385 if { ac_try='./$ac_file'
5213506e
RW
4386 { { case "(($ac_try" in
4387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4388 *) ac_try_echo=$ac_try;;
4389esac
4390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4391$as_echo "$ac_try_echo"; } >&5
4392 (eval "$ac_try") 2>&5
1c710c3c 4393 ac_status=$?
5213506e
RW
4394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4395 test $ac_status = 0; }; }; then
1c710c3c
DJ
4396 cross_compiling=no
4397 else
4398 if test "$cross_compiling" = maybe; then
4399 cross_compiling=yes
4400 else
5213506e
RW
4401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4403as_fn_error "cannot run C compiled programs.
1c710c3c 4404If you meant to cross compile, use \`--host'.
5213506e 4405See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4406 fi
4407 fi
4408fi
5213506e
RW
4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4410$as_echo "yes" >&6; }
1c710c3c 4411
5213506e 4412rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4413ac_clean_files=$ac_clean_files_save
5213506e 4414# Check that the compiler produces executables we can run. If not, either
1c710c3c 4415# the compiler is broken, or we cross compile.
5213506e
RW
4416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4417$as_echo_n "checking whether we are cross compiling... " >&6; }
4418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4419$as_echo "$cross_compiling" >&6; }
4420
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4422$as_echo_n "checking for suffix of executables... " >&6; }
4423if { { ac_try="$ac_link"
4424case "(($ac_try" in
4425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426 *) ac_try_echo=$ac_try;;
4427esac
4428eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429$as_echo "$ac_try_echo"; } >&5
4430 (eval "$ac_link") 2>&5
1c710c3c 4431 ac_status=$?
5213506e
RW
4432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; }; then :
1c710c3c
DJ
4434 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4435# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4436# work properly (i.e., refer to `conftest.exe'), while it won't with
4437# `rm'.
4438for ac_file in conftest.exe conftest conftest.*; do
4439 test -f "$ac_file" || continue
4440 case $ac_file in
5213506e 4441 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4442 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4443 break;;
4444 * ) break;;
4445 esac
4446done
af71363e 4447else
5213506e
RW
4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4450as_fn_error "cannot compute suffix of executables: cannot compile and link
4451See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4452fi
1c710c3c 4453rm -f conftest$ac_cv_exeext
5213506e
RW
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4455$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4456
4457rm -f conftest.$ac_ext
4458EXEEXT=$ac_cv_exeext
4459ac_exeext=$EXEEXT
5213506e
RW
4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4461$as_echo_n "checking for suffix of object files... " >&6; }
4462if test "${ac_cv_objext+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
1c710c3c 4464else
5213506e 4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4466/* end confdefs.h. */
4467
4468int
4469main ()
4470{
4471
4472 ;
4473 return 0;
4474}
4475_ACEOF
4476rm -f conftest.o conftest.obj
5213506e
RW
4477if { { ac_try="$ac_compile"
4478case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481esac
4482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483$as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_compile") 2>&5
1c710c3c 4485 ac_status=$?
5213506e
RW
4486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487 test $ac_status = 0; }; then :
4488 for ac_file in conftest.o conftest.obj conftest.*; do
4489 test -f "$ac_file" || continue;
1c710c3c 4490 case $ac_file in
5213506e 4491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4493 break;;
4494 esac
4495done
4496else
5213506e 4497 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4498sed 's/^/| /' conftest.$ac_ext >&5
4499
5213506e
RW
4500{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4502as_fn_error "cannot compute suffix of object files: cannot compile
4503See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4504fi
1c710c3c
DJ
4505rm -f conftest.$ac_cv_objext conftest.$ac_ext
4506fi
5213506e
RW
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4508$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4509OBJEXT=$ac_cv_objext
4510ac_objext=$OBJEXT
5213506e
RW
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4512$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4513if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
1c710c3c 4515else
5213506e 4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4517/* end confdefs.h. */
4518
4519int
4520main ()
4521{
4522#ifndef __GNUC__
4523 choke me
4524#endif
4525
4526 ;
4527 return 0;
4528}
4529_ACEOF
5213506e 4530if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4531 ac_compiler_gnu=yes
4532else
5213506e 4533 ac_compiler_gnu=no
1c710c3c 4534fi
5213506e 4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4536ac_cv_c_compiler_gnu=$ac_compiler_gnu
4537
4538fi
5213506e
RW
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4540$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4541if test $ac_compiler_gnu = yes; then
4542 GCC=yes
4543else
4544 GCC=
4545fi
1c710c3c
DJ
4546ac_test_CFLAGS=${CFLAGS+set}
4547ac_save_CFLAGS=$CFLAGS
5213506e
RW
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4549$as_echo_n "checking whether $CC accepts -g... " >&6; }
4550if test "${ac_cv_prog_cc_g+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552else
4553 ac_save_c_werror_flag=$ac_c_werror_flag
4554 ac_c_werror_flag=yes
4555 ac_cv_prog_cc_g=no
4556 CFLAGS="-g"
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4558/* end confdefs.h. */
4559
4560int
4561main ()
4562{
4563
4564 ;
4565 return 0;
4566}
4567_ACEOF
5213506e 4568if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4569 ac_cv_prog_cc_g=yes
4570else
5213506e
RW
4571 CFLAGS=""
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573/* end confdefs.h. */
4574
4575int
4576main ()
4577{
4578
4579 ;
4580 return 0;
4581}
4582_ACEOF
4583if ac_fn_c_try_compile "$LINENO"; then :
4584
4585else
4586 ac_c_werror_flag=$ac_save_c_werror_flag
4587 CFLAGS="-g"
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4589/* end confdefs.h. */
af71363e 4590
5213506e
RW
4591int
4592main ()
4593{
4594
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_cv_prog_cc_g=yes
4601fi
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4603fi
5213506e 4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4605fi
5213506e
RW
4606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_c_werror_flag=$ac_save_c_werror_flag
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4610$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4611if test "$ac_test_CFLAGS" = set; then
1c710c3c 4612 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4613elif test $ac_cv_prog_cc_g = yes; then
4614 if test "$GCC" = yes; then
4615 CFLAGS="-g -O2"
4616 else
4617 CFLAGS="-g"
4618 fi
4619else
4620 if test "$GCC" = yes; then
4621 CFLAGS="-O2"
4622 else
4623 CFLAGS=
4624 fi
4625fi
5213506e
RW
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4627$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4628if test "${ac_cv_prog_cc_c89+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
1c710c3c 4630else
5213506e 4631 ac_cv_prog_cc_c89=no
1c710c3c 4632ac_save_CC=$CC
5213506e 4633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4634/* end confdefs.h. */
4635#include <stdarg.h>
4636#include <stdio.h>
4637#include <sys/types.h>
4638#include <sys/stat.h>
4639/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4640struct buf { int x; };
4641FILE * (*rcsopen) (struct buf *, struct stat *, int);
4642static char *e (p, i)
4643 char **p;
4644 int i;
4645{
4646 return p[i];
4647}
4648static char *f (char * (*g) (char **, int), char **p, ...)
4649{
4650 char *s;
4651 va_list v;
4652 va_start (v,p);
4653 s = g (p, va_arg (v,int));
4654 va_end (v);
4655 return s;
4656}
4657
4658/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4659 function prototypes and stuff, but not '\xHH' hex character constants.
4660 These don't provoke an error unfortunately, instead are silently treated
5213506e 4661 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4662 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4663 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4664 that's true only with -std. */
1c710c3c
DJ
4665int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4666
5213506e
RW
4667/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4668 inside strings and character constants. */
4669#define FOO(x) 'x'
4670int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4671
1c710c3c
DJ
4672int test (int i, double x);
4673struct s1 {int (*f) (int a);};
4674struct s2 {int (*f) (double a);};
4675int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4676int argc;
4677char **argv;
4678int
4679main ()
4680{
4681return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4682 ;
4683 return 0;
4684}
4685_ACEOF
5213506e
RW
4686for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4687 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4688do
4689 CC="$ac_save_CC $ac_arg"
5213506e
RW
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4692fi
5213506e
RW
4693rm -f core conftest.err conftest.$ac_objext
4694 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4695done
5213506e 4696rm -f conftest.$ac_ext
1c710c3c
DJ
4697CC=$ac_save_CC
4698
4699fi
5213506e
RW
4700# AC_CACHE_VAL
4701case "x$ac_cv_prog_cc_c89" in
4702 x)
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4704$as_echo "none needed" >&6; } ;;
4705 xno)
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4707$as_echo "unsupported" >&6; } ;;
1c710c3c 4708 *)
5213506e
RW
4709 CC="$CC $ac_cv_prog_cc_c89"
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4711$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4712esac
5213506e 4713if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4714
2aeb72e9
DD
4715fi
4716
2aeb72e9
DD
4717ac_ext=c
4718ac_cpp='$CPP $CPPFLAGS'
4719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722
5213506e 4723ac_ext=cpp
2aeb72e9
DD
4724ac_cpp='$CXXCPP $CPPFLAGS'
4725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4728if test -z "$CXX"; then
4729 if test -n "$CCC"; then
4730 CXX=$CCC
4731 else
4732 if test -n "$ac_tool_prefix"; then
4733 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4734 do
4735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4736set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738$as_echo_n "checking for $ac_word... " >&6; }
4739if test "${ac_cv_prog_CXX+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4741else
4742 if test -n "$CXX"; then
4743 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4744else
4745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746for as_dir in $PATH
4747do
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
5213506e
RW
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4752 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4754 break 2
4755 fi
4756done
5213506e
RW
4757 done
4758IFS=$as_save_IFS
55ffb5ed 4759
c3a86da9
DJ
4760fi
4761fi
4762CXX=$ac_cv_prog_CXX
4763if test -n "$CXX"; then
5213506e
RW
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4765$as_echo "$CXX" >&6; }
c3a86da9 4766else
5213506e
RW
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768$as_echo "no" >&6; }
c3a86da9
DJ
4769fi
4770
5213506e 4771
c3a86da9
DJ
4772 test -n "$CXX" && break
4773 done
4774fi
4775if test -z "$CXX"; then
4776 ac_ct_CXX=$CXX
5213506e 4777 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4778do
4779 # Extract the first word of "$ac_prog", so it can be a program name with args.
4780set dummy $ac_prog; ac_word=$2
5213506e
RW
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782$as_echo_n "checking for $ac_word... " >&6; }
4783if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4784 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4785else
4786 if test -n "$ac_ct_CXX"; then
4787 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792 IFS=$as_save_IFS
4793 test -z "$as_dir" && as_dir=.
5213506e
RW
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4796 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4798 break 2
4799 fi
4800done
5213506e
RW
4801 done
4802IFS=$as_save_IFS
c3a86da9
DJ
4803
4804fi
4805fi
4806ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4807if test -n "$ac_ct_CXX"; then
5213506e
RW
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4809$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4810else
5213506e
RW
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812$as_echo "no" >&6; }
c3a86da9
DJ
4813fi
4814
5213506e 4815
c3a86da9
DJ
4816 test -n "$ac_ct_CXX" && break
4817done
c3a86da9 4818
5213506e
RW
4819 if test "x$ac_ct_CXX" = x; then
4820 CXX="g++"
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823yes:)
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826ac_tool_warned=yes ;;
4827esac
4828 CXX=$ac_ct_CXX
4829 fi
c3a86da9
DJ
4830fi
4831
5213506e
RW
4832 fi
4833fi
c3a86da9 4834# Provide some information about the compiler.
5213506e
RW
4835$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4836set X $ac_compile
4837ac_compiler=$2
4838for ac_option in --version -v -V -qversion; do
4839 { { ac_try="$ac_compiler $ac_option >&5"
4840case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843esac
4844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4845$as_echo "$ac_try_echo"; } >&5
4846 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4847 ac_status=$?
5213506e
RW
4848 if test -s conftest.err; then
4849 sed '10a\
4850... rest of stderr output deleted ...
4851 10q' conftest.err >conftest.er1
4852 cat conftest.er1 >&5
4853 rm -f conftest.er1 conftest.err
4854 fi
4855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4856 test $ac_status = 0; }
4857done
c3a86da9 4858
5213506e
RW
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4860$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4861if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4862 $as_echo_n "(cached) " >&6
c3a86da9 4863else
5213506e 4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4865/* end confdefs.h. */
4866
4867int
4868main ()
4869{
4870#ifndef __GNUC__
4871 choke me
4872#endif
4873
4874 ;
4875 return 0;
4876}
4877_ACEOF
5213506e 4878if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4879 ac_compiler_gnu=yes
4880else
5213506e 4881 ac_compiler_gnu=no
c3a86da9 4882fi
5213506e 4883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4884ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4885
4886fi
5213506e
RW
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4888$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4889if test $ac_compiler_gnu = yes; then
4890 GXX=yes
4891else
4892 GXX=
4893fi
c3a86da9
DJ
4894ac_test_CXXFLAGS=${CXXFLAGS+set}
4895ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4897$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4898if test "${ac_cv_prog_cxx_g+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
4900else
4901 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4902 ac_cxx_werror_flag=yes
4903 ac_cv_prog_cxx_g=no
4904 CXXFLAGS="-g"
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4906/* end confdefs.h. */
4907
4908int
4909main ()
4910{
4911
4912 ;
4913 return 0;
4914}
4915_ACEOF
5213506e 4916if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4917 ac_cv_prog_cxx_g=yes
4918else
5213506e
RW
4919 CXXFLAGS=""
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4921/* end confdefs.h. */
5213506e 4922
c3a86da9
DJ
4923int
4924main ()
4925{
5213506e 4926
c3a86da9
DJ
4927 ;
4928 return 0;
4929}
4930_ACEOF
5213506e 4931if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4932
5213506e
RW
4933else
4934 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4935 CXXFLAGS="-g"
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4937/* end confdefs.h. */
5213506e 4938
c3a86da9
DJ
4939int
4940main ()
4941{
5213506e 4942
c3a86da9
DJ
4943 ;
4944 return 0;
4945}
4946_ACEOF
5213506e
RW
4947if ac_fn_cxx_try_compile "$LINENO"; then :
4948 ac_cv_prog_cxx_g=yes
11a67599 4949fi
5213506e
RW
4950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951fi
4952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953fi
4954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4955 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4958$as_echo "$ac_cv_prog_cxx_g" >&6; }
4959if test "$ac_test_CXXFLAGS" = set; then
4960 CXXFLAGS=$ac_save_CXXFLAGS
4961elif test $ac_cv_prog_cxx_g = yes; then
4962 if test "$GXX" = yes; then
4963 CXXFLAGS="-g -O2"
4964 else
4965 CXXFLAGS="-g"
4966 fi
4967else
4968 if test "$GXX" = yes; then
4969 CXXFLAGS="-O2"
4970 else
4971 CXXFLAGS=
4972 fi
c3a86da9 4973fi
c3a86da9
DJ
4974ac_ext=c
4975ac_cpp='$CPP $CPPFLAGS'
4976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979
4980
4981# We must set the default linker to the linker used by gcc for the correct
4982# operation of libtool. If LD is not defined and we are using gcc, try to
4983# set the LD default to the ld used by gcc.
4984if test -z "$LD"; then
4985 if test "$GCC" = yes; then
4986 case $build in
4987 *-*-mingw*)
4988 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4989 *)
4990 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4991 esac
4992 case $gcc_prog_ld in
4993 # Accept absolute paths.
4994 [\\/]* | [A-Za-z]:[\\/]*)
4995 LD="$gcc_prog_ld" ;;
4996 esac
4997 fi
23f6b2f9
PB
4998fi
4999
0b21f5d3
EB
5000# Check whether -static-libstdc++ -static-libgcc is supported.
5001have_static_libs=no
5002if test "$GCC" = yes; then
5003 saved_LDFLAGS="$LDFLAGS"
5004
5005 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5007$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5008 ac_ext=cpp
5009ac_cpp='$CXXCPP $CPPFLAGS'
5010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5013
5014
5015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016/* end confdefs.h. */
0d6414b2
EB
5017
5018#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5019#error -static-libstdc++ not implemented
5020#endif
0b21f5d3
EB
5021int main() {}
5022_ACEOF
5023if ac_fn_cxx_try_link "$LINENO"; then :
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5025$as_echo "yes" >&6; }; have_static_libs=yes
5026else
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028$as_echo "no" >&6; }
5029fi
5030rm -f core conftest.err conftest.$ac_objext \
5031 conftest$ac_exeext conftest.$ac_ext
5032 ac_ext=c
5033ac_cpp='$CPP $CPPFLAGS'
5034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5036ac_compiler_gnu=$ac_cv_c_compiler_gnu
5037
5038
5039 LDFLAGS="$saved_LDFLAGS"
5040fi
5041
23f6b2f9
PB
5042
5043
55ffb5ed 5044
1c710c3c
DJ
5045if test -n "$ac_tool_prefix"; then
5046 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 5047set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049$as_echo_n "checking for $ac_word... " >&6; }
5050if test "${ac_cv_prog_GNATBIND+set}" = set; then :
5051 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5052else
5053 if test -n "$GNATBIND"; then
5054 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5055else
1c710c3c
DJ
5056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5213506e
RW
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5063 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5065 break 2
5066 fi
5067done
5213506e
RW
5068 done
5069IFS=$as_save_IFS
1c710c3c 5070
55ffb5ed
NN
5071fi
5072fi
1c710c3c 5073GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 5074if test -n "$GNATBIND"; then
5213506e
RW
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5076$as_echo "$GNATBIND" >&6; }
55ffb5ed 5077else
5213506e
RW
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079$as_echo "no" >&6; }
55ffb5ed
NN
5080fi
5081
5213506e 5082
1c710c3c 5083fi
55ffb5ed 5084if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 5085 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
5086 # Extract the first word of "gnatbind", so it can be a program name with args.
5087set dummy gnatbind; ac_word=$2
5213506e
RW
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089$as_echo_n "checking for $ac_word... " >&6; }
5090if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
55ffb5ed 5092else
1c710c3c
DJ
5093 if test -n "$ac_ct_GNATBIND"; then
5094 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 5095else
1c710c3c
DJ
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5213506e
RW
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5103 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5105 break 2
5106 fi
5107done
5213506e
RW
5108 done
5109IFS=$as_save_IFS
1c710c3c 5110
55ffb5ed
NN
5111fi
5112fi
1c710c3c
DJ
5113ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5114if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5116$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 5117else
5213506e
RW
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119$as_echo "no" >&6; }
55ffb5ed
NN
5120fi
5121
5213506e
RW
5122 if test "x$ac_ct_GNATBIND" = x; then
5123 GNATBIND="no"
5124 else
5125 case $cross_compiling:$ac_tool_warned in
5126yes:)
5127{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5128$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5129ac_tool_warned=yes ;;
5130esac
5131 GNATBIND=$ac_ct_GNATBIND
5132 fi
55ffb5ed 5133else
1c710c3c 5134 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
5135fi
5136
1c710c3c
DJ
5137if test -n "$ac_tool_prefix"; then
5138 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5139set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
5142if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5305be7e
RG
5144else
5145 if test -n "$GNATMAKE"; then
5146 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5147else
1c710c3c
DJ
5148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5213506e
RW
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5155 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5157 break 2
5158 fi
5159done
5213506e
RW
5160 done
5161IFS=$as_save_IFS
1c710c3c 5162
5305be7e
RG
5163fi
5164fi
1c710c3c 5165GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5166if test -n "$GNATMAKE"; then
5213506e
RW
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5168$as_echo "$GNATMAKE" >&6; }
5305be7e 5169else
5213506e
RW
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171$as_echo "no" >&6; }
5305be7e
RG
5172fi
5173
5213506e 5174
1c710c3c 5175fi
5305be7e 5176if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5177 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5178 # Extract the first word of "gnatmake", so it can be a program name with args.
5179set dummy gnatmake; ac_word=$2
5213506e
RW
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181$as_echo_n "checking for $ac_word... " >&6; }
5182if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5183 $as_echo_n "(cached) " >&6
5305be7e 5184else
1c710c3c
DJ
5185 if test -n "$ac_ct_GNATMAKE"; then
5186 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5187else
1c710c3c
DJ
5188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189for as_dir in $PATH
5190do
5191 IFS=$as_save_IFS
5192 test -z "$as_dir" && as_dir=.
5213506e
RW
5193 for ac_exec_ext in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5195 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5197 break 2
5198 fi
5199done
5213506e
RW
5200 done
5201IFS=$as_save_IFS
1c710c3c 5202
5305be7e
RG
5203fi
5204fi
1c710c3c
DJ
5205ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5206if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5208$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5209else
5213506e
RW
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
5305be7e
RG
5212fi
5213
5213506e
RW
5214 if test "x$ac_ct_GNATMAKE" = x; then
5215 GNATMAKE="no"
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218yes:)
5219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221ac_tool_warned=yes ;;
5222esac
5223 GNATMAKE=$ac_ct_GNATMAKE
5224 fi
5305be7e 5225else
1c710c3c 5226 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5227fi
5228
5213506e
RW
5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5230$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5231if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5232 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5233else
5234 cat >conftest.adb <<EOF
5235procedure conftest is begin null; end conftest;
5236EOF
5237acx_cv_cc_gcc_supports_ada=no
5238# There is a bug in old released versions of GCC which causes the
5239# driver to exit successfully when the appropriate language module
5240# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5241# Therefore we must check for the error message as well as an
5242# unsuccessful exit.
1db673ca
RO
5243# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5244# given a .adb file, but produce no object file. So we must check
5245# if an object file was really produced to guard against this.
55ffb5ed 5246errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5247if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5248 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5249fi
5250rm -f conftest.*
5251fi
5213506e
RW
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5253$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5254
7cb62ef1 5255if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5256 have_gnat=yes
5257else
5258 have_gnat=no
5259fi
5260
5213506e
RW
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5262$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5263if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5264 $as_echo_n "(cached) " >&6
a76494aa
PB
5265else
5266 echo abfoo >t1
5267 echo cdfoo >t2
5268 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5269 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5270 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5271 :
5272 else
5273 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5274 fi
5275 fi
a76494aa
PB
5276 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5277 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5278 :
a76494aa
PB
5279 else
5280 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5281 fi
5282 fi
5283 rm t1 t2
5284
5285fi
5213506e
RW
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5287$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5288do_compare="$gcc_cv_prog_cmp_skip"
5289
5290
55ffb5ed 5291
ff3ac0f4
ILT
5292# Check whether --enable-bootstrap was given.
5293if test "${enable_bootstrap+set}" = set; then :
5294 enableval=$enable_bootstrap;
5295else
5296 enable_bootstrap=default
5297fi
5298
5299
5300# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5301if test -r $srcdir/gcc/configure; then
5302 have_compiler=yes
5303else
5304 have_compiler=no
5305fi
ff3ac0f4
ILT
5306
5307case "$have_compiler:$host:$target:$enable_bootstrap" in
5308 *:*:*:no) ;;
5309
5310 # Default behavior. Enable bootstrap if we have a compiler
5311 # and we are in a native configuration.
5312 yes:$build:$build:default)
5313 enable_bootstrap=yes ;;
5314
5315 *:*:*:default)
5316 enable_bootstrap=no ;;
5317
5318 # We have a compiler and we are in a native configuration, bootstrap is ok
5319 yes:$build:$build:yes)
5320 ;;
5321
5322 # Other configurations, but we have a compiler. Assume the user knows
5323 # what he's doing.
5324 yes:*:*:yes)
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5326$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5327 ;;
5328
5329 # No compiler: if they passed --enable-bootstrap explicitly, fail
5330 no:*:*:yes)
5331 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5332
5333 # Fail if wrong command line
5334 *)
5335 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5336 ;;
5337esac
5338
46070488
JM
5339# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
5340# C++98 compiler can still start the bootstrap.
5341if test "$enable_bootstrap:$GXX" = "yes:yes"; then
8ca528d9 5342 CXX="$CXX -std=gnu++98"
46070488
JM
5343fi
5344
592c90ff
KG
5345# Used for setting $lt_cv_objdir
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5347$as_echo_n "checking for objdir... " >&6; }
5348if test "${lt_cv_objdir+set}" = set; then :
5349 $as_echo_n "(cached) " >&6
5350else
5351 rm -f .libs 2>/dev/null
5352mkdir .libs 2>/dev/null
5353if test -d .libs; then
5354 lt_cv_objdir=.libs
5355else
5356 # MS-DOS does not allow filenames that begin with a dot.
5357 lt_cv_objdir=_libs
5358fi
5359rmdir .libs 2>/dev/null
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5362$as_echo "$lt_cv_objdir" >&6; }
5363objdir=$lt_cv_objdir
5364
5365
5366
5367
5368
5369cat >>confdefs.h <<_ACEOF
5370#define LT_OBJDIR "$lt_cv_objdir/"
5371_ACEOF
5372
5373
5374
acd26225 5375# Check for GMP, MPFR and MPC
3a5729ea 5376gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5377gmpinc=
e69bf64b 5378have_gmp=no
acd26225
KG
5379
5380# Specify a location for mpc
5381# check for this first so it ends up on the link line before mpfr.
5382
5213506e
RW
5383# Check whether --with-mpc was given.
5384if test "${with_mpc+set}" = set; then :
5385 withval=$with_mpc;
5386fi
acd26225 5387
acd26225 5388
9965e3cd 5389# Check whether --with-mpc-include was given.
5213506e
RW
5390if test "${with_mpc_include+set}" = set; then :
5391 withval=$with_mpc_include;
5392fi
acd26225 5393
acd26225 5394
9965e3cd 5395# Check whether --with-mpc-lib was given.
5213506e
RW
5396if test "${with_mpc_lib+set}" = set; then :
5397 withval=$with_mpc_lib;
5398fi
acd26225 5399
acd26225
KG
5400
5401if test "x$with_mpc" != x; then
3a5729ea
KG
5402 gmplibs="-L$with_mpc/lib $gmplibs"
5403 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5404fi
5405if test "x$with_mpc_include" != x; then
3a5729ea 5406 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5407fi
5408if test "x$with_mpc_lib" != x; then
3a5729ea 5409 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5410fi
5411if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5412 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5413 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5414 # Do not test the mpc version. Assume that it is sufficient, since
5415 # it is in the source tree, and the library has not been built yet
5416 # but it would be included on the link line in the version check below
5417 # hence making the test fail.
3a5729ea 5418 have_gmp=yes
acd26225 5419fi
e69bf64b 5420
bebf829d
PB
5421# Specify a location for mpfr
5422# check for this first so it ends up on the link line before gmp.
1c710c3c 5423
5213506e
RW
5424# Check whether --with-mpfr-dir was given.
5425if test "${with_mpfr_dir+set}" = set; then :
5426 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5427Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5428fi
5429
bebf829d
PB
5430
5431
5213506e
RW
5432# Check whether --with-mpfr was given.
5433if test "${with_mpfr+set}" = set; then :
5434 withval=$with_mpfr;
5435fi
1c710c3c 5436
bebf829d 5437
9965e3cd 5438# Check whether --with-mpfr-include was given.
5213506e
RW
5439if test "${with_mpfr_include+set}" = set; then :
5440 withval=$with_mpfr_include;
5441fi
1c710c3c 5442
8a877c9c 5443
9965e3cd 5444# Check whether --with-mpfr-lib was given.
5213506e
RW
5445if test "${with_mpfr_lib+set}" = set; then :
5446 withval=$with_mpfr_lib;
5447fi
8a877c9c 5448
bebf829d
PB
5449
5450if test "x$with_mpfr" != x; then
5451 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5452 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5453fi
8a877c9c 5454if test "x$with_mpfr_include" != x; then
3a5729ea 5455 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5456fi
5457if test "x$with_mpfr_lib" != x; then
5458 gmplibs="-L$with_mpfr_lib $gmplibs"
5459fi
e69bf64b 5460if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
8f3675f8
MR
5461 # MPFR v3.1.0 moved the sources into a src sub-directory.
5462 if ! test -d ${srcdir}/mpfr/src; then
5463 as_fn_error "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
5464 fi
00f35794
BE
5465 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5466 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5467 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
e69bf64b
PB
5468 # Do not test the mpfr version. Assume that it is sufficient, since
5469 # it is in the source tree, and the library has not been built yet
5470 # but it would be included on the link line in the version check below
5471 # hence making the test fail.
5472 have_gmp=yes
5473fi
bebf829d 5474
6de9cd9a 5475# Specify a location for gmp
1c710c3c 5476
5213506e
RW
5477# Check whether --with-gmp-dir was given.
5478if test "${with_gmp_dir+set}" = set; then :
5479 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5480Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5481fi
5482
6de9cd9a 5483
6de9cd9a 5484
5213506e
RW
5485# Check whether --with-gmp was given.
5486if test "${with_gmp+set}" = set; then :
5487 withval=$with_gmp;
5488fi
1c710c3c 5489
6de9cd9a 5490
9965e3cd 5491# Check whether --with-gmp-include was given.
5213506e
RW
5492if test "${with_gmp_include+set}" = set; then :
5493 withval=$with_gmp_include;
5494fi
1c710c3c 5495
8a877c9c 5496
9965e3cd 5497# Check whether --with-gmp-lib was given.
5213506e
RW
5498if test "${with_gmp_lib+set}" = set; then :
5499 withval=$with_gmp_lib;
5500fi
8a877c9c
KG
5501
5502
6de9cd9a 5503
bebf829d
PB
5504if test "x$with_gmp" != x; then
5505 gmplibs="-L$with_gmp/lib $gmplibs"
5506 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5507fi
8a877c9c
KG
5508if test "x$with_gmp_include" != x; then
5509 gmpinc="-I$with_gmp_include $gmpinc"
5510fi
5511if test "x$with_gmp_lib" != x; then
5512 gmplibs="-L$with_gmp_lib $gmplibs"
5513fi
e69bf64b 5514if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5515 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5516 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5517 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5518 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
0ff2d841 5519 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
e69bf64b
PB
5520 # Do not test the gmp version. Assume that it is sufficient, since
5521 # it is in the source tree, and the library has not been built yet
5522 # but it would be included on the link line in the version check below
5523 # hence making the test fail.
5524 have_gmp=yes
5525fi
6de9cd9a 5526
d943d7c4 5527if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5528 have_gmp=yes
5529 saved_CFLAGS="$CFLAGS"
5530 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5531 # Check for the recommended and required versions of GMP.
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5533$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5534
5535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5536/* end confdefs.h. */
5537#include "gmp.h"
5538int
5539main ()
5540{
5541
5542 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5543 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
385c0681 5544 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
362c6d2f
KG
5545 choke me
5546 #endif
5547
5548 ;
5549 return 0;
5550}
5551_ACEOF
5552if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5554/* end confdefs.h. */
362c6d2f 5555#include <gmp.h>
1c710c3c
DJ
5556int
5557main ()
5558{
6de9cd9a 5559
362c6d2f
KG
5560 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5561 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5562 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5563 choke me
5564 #endif
1c710c3c
DJ
5565
5566 ;
5567 return 0;
5568}
5569_ACEOF
5213506e
RW
5570if ac_fn_c_try_compile "$LINENO"; then :
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5572$as_echo "yes" >&6; }
362c6d2f
KG
5573else
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5575$as_echo "buggy but acceptable" >&6; }
5576fi
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5578else
5213506e
RW
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5581fi
5213506e 5582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5583
acd26225 5584 # If we have GMP, check the MPFR version.
e69bf64b 5585 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5586 # Check for the recommended and required versions of MPFR.
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5588$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5590/* end confdefs.h. */
70ec446f 5591#include <gmp.h>
e69bf64b 5592 #include <mpfr.h>
1c710c3c
DJ
5593int
5594main ()
5595{
e48d66a9 5596
f7d6bc01 5597 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
e69bf64b
PB
5598 choke me
5599 #endif
1c710c3c
DJ
5600
5601 ;
5602 return 0;
5603}
5604_ACEOF
5213506e
RW
5605if ac_fn_c_try_compile "$LINENO"; then :
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5607/* end confdefs.h. */
a3993f33 5608#include <gmp.h>
e69bf64b 5609 #include <mpfr.h>
1c710c3c
DJ
5610int
5611main ()
5612{
a3993f33 5613
362c6d2f 5614 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5615 choke me
5616 #endif
acd26225
KG
5617
5618 ;
5619 return 0;
5620}
5621_ACEOF
5213506e
RW
5622if ac_fn_c_try_compile "$LINENO"; then :
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5624$as_echo "yes" >&6; }
acd26225 5625else
5213506e
RW
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5627$as_echo "buggy but acceptable" >&6; }
acd26225 5628fi
5213506e 5629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5630else
5213506e
RW
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632$as_echo "no" >&6; }; have_gmp=no
acd26225 5633fi
5213506e 5634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5635 fi
5636
5637 # Check for the MPC header version.
3a5729ea 5638 if test x"$have_gmp" = xyes ; then
362c6d2f 5639 # Check for the recommended and required versions of MPC.
5213506e
RW
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5641$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5643/* end confdefs.h. */
5644#include <mpc.h>
5645int
5646main ()
5647{
5648
362c6d2f
KG
5649 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5650 choke me
5651 #endif
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657if ac_fn_c_try_compile "$LINENO"; then :
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659/* end confdefs.h. */
5660#include <mpc.h>
5661int
5662main ()
5663{
5664
5665 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5666 choke me
5667 #endif
5668
5669 ;
5670 return 0;
5671}
5672_ACEOF
5213506e
RW
5673if ac_fn_c_try_compile "$LINENO"; then :
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5675$as_echo "yes" >&6; }
362c6d2f
KG
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5678$as_echo "buggy but acceptable" >&6; }
5679fi
5680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5681else
5213506e 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5683$as_echo "no" >&6; }; have_gmp=no
acd26225 5684fi
5213506e 5685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5686 fi
5687
5688 # Now check the MPFR library.
5689 if test x"$have_gmp" = xyes; then
5690 saved_LIBS="$LIBS"
5691 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5693$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5695/* end confdefs.h. */
3a5729ea 5696#include <mpc.h>
acd26225
KG
5697int
5698main ()
5699{
5700
5701 mpfr_t n;
5702 mpfr_t x;
3a5729ea 5703 mpc_t c;
acd26225
KG
5704 int t;
5705 mpfr_init (n);
5706 mpfr_init (x);
5707 mpfr_atan2 (n, n, x, GMP_RNDN);
5708 mpfr_erfc (n, x, GMP_RNDN);
5709 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5710 mpfr_clear(n);
5711 mpfr_clear(x);
5712 mpc_init2 (c, 53);
5713 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5714 mpc_cosh (c, c, MPC_RNDNN);
5715 mpc_pow (c, c, c, MPC_RNDNN);
5716 mpc_acosh (c, c, MPC_RNDNN);
5717 mpc_clear (c);
1c710c3c
DJ
5718
5719 ;
5720 return 0;
5721}
5722_ACEOF
5213506e
RW
5723if ac_fn_c_try_link "$LINENO"; then :
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725$as_echo "yes" >&6; }
1c710c3c 5726else
5213506e
RW
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5729fi
5213506e
RW
5730rm -f core conftest.err conftest.$ac_objext \
5731 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5732 LIBS="$saved_LIBS"
5733 fi
5734
e69bf64b 5735 CFLAGS="$saved_CFLAGS"
6de9cd9a 5736
362c6d2f
KG
5737# The library versions listed in the error message below should match
5738# the HARD-minimums enforced above.
e69bf64b 5739 if test x$have_gmp != xyes; then
f7d6bc01 5740 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
3a5729ea
KG
5741Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5742their locations. Source code for these libraries can be found at
5743their respective hosting sites as well as at
5744ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5745http://gcc.gnu.org/install/prerequisites.html for additional info. If
5746you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5747make sure that you have installed both the libraries and the header
5748files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5749 fi
70ec446f
KG
5750fi
5751
acd26225
KG
5752# Flags needed for both GMP, MPFR and/or MPC.
5753
5754
6de9cd9a
DN
5755
5756
5757
9e3eba15 5758
0ff2d841 5759
0b21f5d3 5760# Libraries to use for stage1 or when not bootstrapping.
00020c16 5761
0b21f5d3
EB
5762# Check whether --with-stage1-libs was given.
5763if test "${with_stage1_libs+set}" = set; then :
5764 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5765 stage1_libs=
00020c16 5766 else
0b21f5d3 5767 stage1_libs=$withval
00020c16
ILT
5768 fi
5769else
5dc85f7e 5770 stage1_libs=
5213506e
RW
5771fi
5772
00020c16
ILT
5773
5774
0b21f5d3 5775# Linker flags to use for stage1 or when not bootstrapping.
00020c16 5776
0b21f5d3
EB
5777# Check whether --with-stage1-ldflags was given.
5778if test "${with_stage1_ldflags+set}" = set; then :
5779 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5780 stage1_ldflags=
00020c16 5781 else
0b21f5d3 5782 stage1_ldflags=$withval
00020c16
ILT
5783 fi
5784else
0b21f5d3
EB
5785 stage1_ldflags=
5786 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5787 # if supported. But if the user explicitly specified the libraries to use,
5788 # trust that they are doing what they want.
5789 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5790 stage1_ldflags="-static-libstdc++ -static-libgcc"
5791 fi
5213506e
RW
5792fi
5793
00020c16
ILT
5794
5795
5dc85f7e 5796# Libraries to use for stage2 and later builds.
00020c16 5797
5213506e
RW
5798# Check whether --with-boot-libs was given.
5799if test "${with_boot_libs+set}" = set; then :
5800 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5801 poststage1_libs=
5802 else
5803 poststage1_libs=$withval
5804 fi
5805else
5dc85f7e 5806 poststage1_libs=
5213506e
RW
5807fi
5808
00020c16
ILT
5809
5810
ed2eaa9f
ILT
5811# Linker flags to use for stage2 and later builds.
5812
5813# Check whether --with-boot-ldflags was given.
5814if test "${with_boot_ldflags+set}" = set; then :
5815 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5816 poststage1_ldflags=
5817 else
5818 poststage1_ldflags=$withval
5819 fi
5820else
5821 poststage1_ldflags=
bec93d73
ILT
5822 # In stages 2 and 3, default to linking libstdc++ and libgcc
5823 # statically. But if the user explicitly specified the libraries to
5824 # use, trust that they are doing what they want.
5825 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5826 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5827 fi
5828fi
5829
5830
5831
e357a5e0 5832# GCC GRAPHITE dependency isl.
4a9bb2aa 5833# Basic setup is inlined here, actual checks are in config/isl.m4
f8bf9252
SP
5834
5835
33ad93b9
RG
5836# Check whether --with-isl was given.
5837if test "${with_isl+set}" = set; then :
5838 withval=$with_isl;
5213506e 5839fi
f8bf9252 5840
f8bf9252 5841
eae1a5d4 5842# Treat --without-isl as a request to disable
625afa23 5843# GRAPHITE support and skip all following checks.
eae1a5d4 5844if test "x$with_isl" != "xno"; then
e357a5e0 5845 # Check for isl
625afa23
RG
5846
5847
33ad93b9
RG
5848# Check whether --with-isl-include was given.
5849if test "${with_isl_include+set}" = set; then :
5850 withval=$with_isl_include;
5213506e
RW
5851fi
5852
f8bf9252 5853
33ad93b9
RG
5854# Check whether --with-isl-lib was given.
5855if test "${with_isl_lib+set}" = set; then :
5856 withval=$with_isl_lib;
5213506e 5857fi
f8bf9252 5858
f8bf9252 5859
33ad93b9
RG
5860 # Check whether --enable-isl-version-check was given.
5861if test "${enable_isl_version_check+set}" = set; then :
5862 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5863else
5864 ENABLE_ISL_CHECK=yes
7d32a440
SP
5865fi
5866
5867
33ad93b9
RG
5868 # Initialize isllibs and islinc.
5869 case $with_isl in
5870 no)
5871 isllibs=
5872 islinc=
5873 ;;
5874 "" | yes)
5875 ;;
5876 *)
5877 isllibs="-L$with_isl/lib"
5878 islinc="-I$with_isl/include"
5879 ;;
5880 esac
5881 if test "x${with_isl_include}" != x ; then
5882 islinc="-I$with_isl_include"
5883 fi
5884 if test "x${with_isl_lib}" != x; then
5885 isllibs="-L$with_isl_lib"
5886 fi
5887 if test "x${islinc}" = x && test "x${isllibs}" = x \
5888 && test -d ${srcdir}/isl; then
5889 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5890 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5891 ENABLE_ISL_CHECK=no
560d18d3
AK
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
5893$as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
33ad93b9 5894 fi
7d32a440 5895
eae1a5d4
RG
5896 isllibs="${isllibs} -lisl"
5897
7d32a440 5898
7d32a440 5899
9847828b
RB
5900 if test "${ENABLE_ISL_CHECK}" = yes ; then
5901 _isl_saved_CFLAGS=$CFLAGS
5902 _isl_saved_LDFLAGS=$LDFLAGS
5903 _isl_saved_LIBS=$LIBS
5904
5905 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
70decafb
NS
5906 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
5907 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
9847828b 5908
c661a43d
SP
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16, 0.15, or deprecated 0.14" >&5
5910$as_echo_n "checking for isl 0.16, 0.15, or deprecated 0.14... " >&6; }
e0c0c325 5911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
622dbadf 5912/* end confdefs.h. */
560d18d3 5913#include <isl/ctx.h>
622dbadf
BC
5914int
5915main ()
5916{
560d18d3 5917isl_ctx_get_max_operations (isl_ctx_alloc ());
622dbadf
BC
5918 ;
5919 return 0;
5920}
5921_ACEOF
5922if ac_fn_c_try_link "$LINENO"; then :
9847828b 5923 gcc_cv_isl=yes
622dbadf
BC
5924else
5925 gcc_cv_isl=no
5926fi
5927rm -f core conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
9847828b
RB
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5930$as_echo "$gcc_cv_isl" >&6; }
5931
560d18d3 5932 if test "${gcc_cv_isl}" = no ; then
c661a43d
SP
5933 { $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
5934$as_echo "recommended isl version is 0.16 or 0.15, the minimum required isl version 0.14 is deprecated" >&6; }
560d18d3
AK
5935 fi
5936
c661a43d
SP
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.16 or 0.15" >&5
5938$as_echo_n "checking for isl 0.16 or 0.15... " >&6; }
1e050c90
AK
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940/* end confdefs.h. */
5941#include <isl/schedule.h>
5942int
5943main ()
5944{
5945isl_options_set_schedule_serialize_sccs (NULL, 0);
5946 ;
5947 return 0;
5948}
5949_ACEOF
5950if ac_fn_c_try_link "$LINENO"; then :
5951 ac_has_isl_options_set_schedule_serialize_sccs=yes
5952else
5953 ac_has_isl_options_set_schedule_serialize_sccs=no
5954fi
5955rm -f core conftest.err conftest.$ac_objext \
5956 conftest$ac_exeext conftest.$ac_ext
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_isl_options_set_schedule_serialize_sccs" >&5
5958$as_echo "$ac_has_isl_options_set_schedule_serialize_sccs" >&6; }
5959
5960 if test x"$ac_has_isl_options_set_schedule_serialize_sccs" = x"yes"; then
5961 islver="0.15"
5962
5963 fi
5964
9847828b
RB
5965 CFLAGS=$_isl_saved_CFLAGS
5966 LDFLAGS=$_isl_saved_LDFLAGS
5967 LIBS=$_isl_saved_LIBS
5968 fi
5969
5970
f8bf9252 5971
f8bf9252 5972
33ad93b9
RG
5973
5974
33ad93b9
RG
5975 if test "x${with_isl}" = xno; then
5976 graphite_requested=no
5977 elif test "x${with_isl}" != x \
5978 || test "x${with_isl_include}" != x \
5979 || test "x${with_isl_lib}" != x ; then
5980 graphite_requested=yes
5981 else
5982 graphite_requested=no
7d32a440 5983 fi
d789184e 5984
d789184e
SP
5985
5986
33ad93b9
RG
5987 if test "${gcc_cv_isl}" = no ; then
5988 isllibs=
5989 islinc=
5990 fi
5991
5992 if test "${graphite_requested}" = yes \
5993 && test "x${isllibs}" = x \
5994 && test "x${islinc}" = x ; then
f8bf9252 5995
e357a5e0 5996 as_fn_error "Unable to find a usable isl. See config.log for details." "$LINENO" 5
33ad93b9 5997 fi
f8bf9252 5998
d32ef397 5999
d32ef397
AS
6000fi
6001
e357a5e0 6002# If the isl check failed, disable builds of in-tree variant of isl
625afa23 6003if test "x$with_isl" = xno ||
625afa23 6004 test "x$gcc_cv_isl" = xno; then
4a9bb2aa 6005 noconfigdirs="$noconfigdirs isl"
625afa23 6006 islinc=
32d024bf
RG
6007fi
6008
625afa23
RG
6009
6010
6011
d7f09764
DN
6012# Check for LTO support.
6013# Check whether --enable-lto was given.
6014if test "${enable_lto+set}" = set; then :
6015 enableval=$enable_lto; enable_lto=$enableval
6016else
6017 enable_lto=yes; default_enable_lto=yes
6018fi
6019
6020
7413962d 6021
9a02962b
DK
6022
6023
6024target_elf=no
6025case $target in
6026 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6027 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
3e326935 6028 alpha*-dec-osf* | hppa[12]*-*-hpux* | \
8ae12d71 6029 nvptx-*-none)
9a02962b
DK
6030 target_elf=no
6031 ;;
6032 *)
6033 target_elf=yes
6034 ;;
6035esac
6036
6037if test $target_elf = yes; then :
48215350
DK
6038 # ELF platforms build the lto-plugin always.
6039 build_lto_plugin=yes
9a02962b 6040
9a02962b
DK
6041else
6042 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6043 case $target in
9e530bcd 6044 *-apple-darwin9* | *-cygwin* | *-mingw* | *djgpp*) ;;
48215350 6045 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6046 *) enable_lto=no ;;
6047 esac
9a02962b 6048 else
db50fe7d
IS
6049 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6050 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6051 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6052 # warn during gcc/ subconfigure; unless you're bootstrapping with
6053 # -flto it won't be needed until after installation anyway.
6054 case $target in
9e530bcd 6055 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
9a02962b
DK
6056 *) if test x"$enable_lto" = x"yes"; then
6057 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6058 fi
6059 ;;
6060 esac
6061 fi
1cd0b716 6062 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6063 # Build it unless LTO was explicitly disabled.
1cd0b716 6064 case $target in
48215350 6065 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6066 *) ;;
6067 esac
48215350 6068
9a02962b
DK
6069fi
6070
d7f09764 6071
45b3824d
TS
6072# Check whether --enable-linker-plugin-configure-flags was given.
6073if test "${enable_linker_plugin_configure_flags+set}" = set; then :
6074 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
6075else
6076 extra_linker_plugin_configure_flags=
6077fi
6078
6079
6080# Check whether --enable-linker-plugin-flags was given.
6081if test "${enable_linker_plugin_flags+set}" = set; then :
6082 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
6083else
6084 extra_linker_plugin_flags=
6085fi
6086
6087
6088
f8bf9252 6089
0823efed 6090# By default, C and C++ are the only stage 1 languages.
e1888513 6091stage1_languages=,c,
2805b53a 6092
00020c16 6093# Target libraries that we bootstrap.
ad1e5170 6094bootstrap_target_libs=,target-libgcc,
00020c16 6095
55ffb5ed
NN
6096# Figure out what language subdirectories are present.
6097# Look if the user specified --enable-languages="..."; if not, use
6098# the environment variable $LANGUAGES if defined. $LANGUAGES might
6099# go away some day.
6100# NB: embedded tabs in this IF block -- do not untabify
6101if test -d ${srcdir}/gcc; then
6102 if test x"${enable_languages+set}" != xset; then
6103 if test x"${LANGUAGES+set}" = xset; then
6104 enable_languages="${LANGUAGES}"
6b1786aa 6105 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
55ffb5ed
NN
6106 else
6107 enable_languages=all
6108 fi
6109 else
6110 if test x"${enable_languages}" = x ||
6111 test x"${enable_languages}" = xyes;
6112 then
6b1786aa 6113 echo configure.ac: --enable-languages needs at least one language argument 1>&2
55ffb5ed
NN
6114 exit 1
6115 fi
6116 fi
6117 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6118
7f26dfa3
FXC
6119 # 'f95' is the old name for the 'fortran' language. We issue a warning
6120 # and make the substitution.
6121 case ,${enable_languages}, in
6122 *,f95,*)
6b1786aa 6123 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
7f26dfa3
FXC
6124 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6125 ;;
6126 esac
6127
0823efed
DN
6128 # If bootstrapping, C++ must be enabled.
6129 case ",$enable_languages,:$enable_bootstrap" in
6130 *,c++,*:*) ;;
6131 *:yes)
ff3ac0f4
ILT
6132 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6133 enable_languages="${enable_languages},c++"
6134 else
0823efed 6135 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ff3ac0f4
ILT
6136 fi
6137 ;;
6138 esac
6139
55ffb5ed
NN
6140 # First scan to see if an enabled language requires some other language.
6141 # We assume that a given config-lang.in will list all the language
6142 # front ends it requires, even if some are required indirectly.
6143 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6144 case ${lang_frag} in
6145 ..) ;;
6146 # The odd quoting in the next line works around
6147 # an apparent bug in bash 1.12 on linux.
6148 ${srcdir}/gcc/[*]/config-lang.in) ;;
6149 *)
69ecd18f
ILT
6150 # From the config-lang.in, get $language, $lang_requires, and
6151 # $lang_requires_boot_languages.
55ffb5ed
NN
6152 language=
6153 lang_requires=
69ecd18f 6154 lang_requires_boot_languages=
55ffb5ed 6155 . ${lang_frag}
69ecd18f 6156 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6157 case ,${enable_languages}, in
6158 *,$other,*) ;;
6159 *,all,*) ;;
6160 *,$language,*)
6161 echo " \`$other' language required by \`$language'; enabling" 1>&2
6162 enable_languages="${enable_languages},${other}"
6163 ;;
6164 esac
6165 done
69ecd18f
ILT
6166 for other in ${lang_requires_boot_languages} ; do
6167 if test "$other" != "c"; then
6168 case ,${enable_stage1_languages}, in
6169 *,$other,*) ;;
6170 *,all,*) ;;
6171 *)
6172 case ,${enable_languages}, in
6173 *,$language,*)
6174 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6175 enable_stage1_languages="$enable_stage1_languages,${other}"
6176 ;;
6177 esac
6178 ;;
6179 esac
6180 fi
6181 done
55ffb5ed
NN
6182 ;;
6183 esac
6184 done
6185
e1888513 6186 new_enable_languages=,c,
d7f09764
DN
6187
6188 # If LTO is enabled, add the LTO front end.
d7f09764 6189 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6190 case ,${enable_languages}, in
6191 *,lto,*) ;;
6192 *) enable_languages="${enable_languages},lto" ;;
6193 esac
1cd0b716 6194 if test "${build_lto_plugin}" = "yes" ; then
d7f09764 6195 configdirs="$configdirs lto-plugin"
d7f09764
DN
6196 fi
6197 fi
6198
426c1eb0
TS
6199 # If we're building an offloading compiler, add the LTO front end.
6200 if test x"$enable_as_accelerator_for" != x ; then
6201 case ,${enable_languages}, in
6202 *,lto,*) ;;
6203 *) enable_languages="${enable_languages},lto" ;;
6204 esac
6205 fi
6206
55ffb5ed 6207 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6208 potential_languages=,c,
55ffb5ed 6209
4da3b0f8
ILT
6210 enabled_target_libs=
6211 disabled_target_libs=
6212
55ffb5ed
NN
6213 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6214 case ${lang_frag} in
6215 ..) ;;
6216 # The odd quoting in the next line works around
6217 # an apparent bug in bash 1.12 on linux.
6218 ${srcdir}/gcc/[*]/config-lang.in) ;;
6219 *)
1c710c3c 6220 # From the config-lang.in, get $language, $target_libs,
2805b53a 6221 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6222 language=
6223 target_libs=
6224 lang_dirs=
1546bb64 6225 subdir_requires=
e1888513
PB
6226 boot_language=no
6227 build_by_default=yes
55ffb5ed 6228 . ${lang_frag}
e1888513
PB
6229 if test x${language} = x; then
6230 echo "${lang_frag} doesn't set \$language." 1>&2
6231 exit 1
6232 fi
6233
78767fd9 6234 if test "$language" = "c++"; then
0823efed 6235 boot_language=yes
00020c16
ILT
6236 fi
6237
178f875a 6238 add_this_lang=no
e1888513
PB
6239 case ,${enable_languages}, in
6240 *,${language},*)
d4a10d0a
SB
6241 # Language was explicitly selected; include it
6242 # unless it is C, which is enabled by default.
6243 if test "$language" != "c"; then
6244 add_this_lang=yes
6245 fi
55ffb5ed 6246 ;;
e1888513
PB
6247 *,all,*)
6248 # 'all' was selected, select it if it is a default language
178f875a
JM
6249 if test "$language" != "c"; then
6250 add_this_lang=${build_by_default}
6251 fi
55ffb5ed
NN
6252 ;;
6253 esac
6de9cd9a 6254
1546bb64 6255 # Disable languages that need other directories if these aren't available.
95695ad3 6256 for i in $subdir_requires; do
b6348cb3 6257 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6258 case ,${enable_languages}, in
6259 *,${language},*)
6260 # Specifically requested language; tell them.
5213506e 6261 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6262 ;;
6263 *)
6264 # Silently disable.
e1888513 6265 add_this_lang=unsupported
1546bb64
PB
6266 ;;
6267 esac
6268 done
6269
e1888513
PB
6270 # Disable Ada if no preexisting GNAT is available.
6271 case ,${enable_languages},:${language}:${have_gnat} in
6272 *,${language},*:ada:no)
6273 # Specifically requested language; tell them.
5213506e 6274 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6275 ;;
6276 *:ada:no)
6277 # Silently disable.
6278 add_this_lang=unsupported
6279 ;;
6280 esac
6281
4fab7234
HPN
6282 # Disable a language that is unsupported by the target.
6283 case " $unsupported_languages " in
6284 *" $language "*)
e1888513 6285 add_this_lang=unsupported
4fab7234
HPN
6286 ;;
6287 esac
6288
6de9cd9a 6289 case $add_this_lang in
e1888513 6290 unsupported)
55ffb5ed 6291 # Remove language-dependent dirs.
4da3b0f8
ILT
6292 disabled_target_libs="$disabled_target_libs $target_libs"
6293 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6294 ;;
e1888513
PB
6295 no)
6296 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6297 disabled_target_libs="$disabled_target_libs $target_libs"
6298 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6299 potential_languages="${potential_languages}${language},"
6300 ;;
6301 yes)
6302 new_enable_languages="${new_enable_languages}${language},"
6303 potential_languages="${potential_languages}${language},"
2805b53a 6304 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6305 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6306 case "${boot_language}:,$enable_stage1_languages," in
6307 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6308 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6309 case ",$stage1_languages," in
6310 *,$language,* | ,yes, | ,all,) ;;
6311 *) stage1_languages="${stage1_languages}${language}," ;;
6312 esac
00020c16
ILT
6313 # We need to bootstrap any supporting libraries.
6314 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6315 ;;
6316 esac
6317 ;;
55ffb5ed
NN
6318 esac
6319 ;;
6320 esac
6321 done
6322
4da3b0f8
ILT
6323 # Add target libraries which are only needed for disabled languages
6324 # to noconfigdirs.
6325 if test -n "$disabled_target_libs"; then
6326 for dir in $disabled_target_libs; do
6327 case " $enabled_target_libs " in
6328 *" ${dir} "*) ;;
6329 *) noconfigdirs="$noconfigdirs $dir" ;;
6330 esac
6331 done
6332 fi
6333
5213506e
RW
6334 # Check whether --enable-stage1-languages was given.
6335if test "${enable_stage1_languages+set}" = set; then :
6336 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6337 ,no,|,,)
6338 # Set it to something that will have no effect in the loop below
6339 enable_stage1_languages=c ;;
6340 ,yes,)
6341 enable_stage1_languages=`echo $new_enable_languages | \
6342 sed -e "s/^,//" -e "s/,$//" ` ;;
6343 *,all,*)
6344 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6345 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6346 esac
6347
6348 # Add "good" languages from enable_stage1_languages to stage1_languages,
6349 # while "bad" languages go in missing_languages. Leave no duplicates.
6350 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6351 case $potential_languages in
6352 *,$i,*)
6353 case $stage1_languages in
6354 *,$i,*) ;;
6355 *) stage1_languages="$stage1_languages$i," ;;
6356 esac ;;
6357 *)
6358 case $missing_languages in
6359 *,$i,*) ;;
6360 *) missing_languages="$missing_languages$i," ;;
6361 esac ;;
6362 esac
6363 done
5213506e
RW
6364fi
6365
e1888513
PB
6366
6367 # Remove leading/trailing commas that were added for simplicity
6368 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6369 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6370 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6371 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6372
55ffb5ed 6373 if test "x$missing_languages" != x; then
5213506e 6374 as_fn_error "
0cf085e4 6375The following requested languages could not be built: ${missing_languages}
5213506e 6376Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6377 fi
55ffb5ed
NN
6378 if test "x$new_enable_languages" != "x$enable_languages"; then
6379 echo The following languages will be built: ${new_enable_languages}
e1888513 6380 enable_languages="$new_enable_languages"
55ffb5ed 6381 fi
e1888513 6382
1c710c3c 6383
b2eaac4a 6384 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6385fi
6386
27079765
AH
6387# Handle --disable-<component> generically.
6388for dir in $configdirs $build_configdirs $target_configdirs ; do
6389 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6390 varname=`echo $dirname | sed -e s/+/_/g`
6391 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6392 noconfigdirs="$noconfigdirs $dir"
6393 fi
6394done
6395
43c40f3e
RO
6396# Check for Boehm's garbage collector
6397# Check whether --enable-objc-gc was given.
6398if test "${enable_objc_gc+set}" = set; then :
6399 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
6400 *,objc,*:*:yes:*target-boehm-gc*)
6401 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
6402 ;;
6403esac
6404fi
6405
6406
6407# Make sure we only build Boehm's garbage collector if required.
6408case ,${enable_languages},:${enable_objc_gc} in
6409 *,objc,*:yes)
6410 # Keep target-boehm-gc if requested for Objective-C.
6411 ;;
6412 *)
6413 # Otherwise remove target-boehm-gc.
6414 noconfigdirs="$noconfigdirs target-boehm-gc"
6415 ;;
6416esac
6417
5f520819 6418# Disable libcilkrts, libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
99776ebd 6419case ,${enable_languages}, in
1007a55c
JW
6420 *,c++,*)
6421 # Disable libcilkrts, libitm, libsanitizer if we're not building libstdc++
6422 case "${noconfigdirs}" in
6423 *target-libstdc++-v3*)
6424 noconfigdirs="$noconfigdirs target-libcilkrts target-libitm target-libsanitizer"
6425 ;;
6426 *) ;;
6427 esac
6428 ;;
99776ebd 6429 *)
5f520819 6430 noconfigdirs="$noconfigdirs target-libcilkrts target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
99776ebd
RH
6431 ;;
6432esac
6433
ee6a22df
L
6434# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6435# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6436# If we have the source for $noconfigdirs entries, add them to $notsupp.
6437
6438notsupp=""
6439for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6440 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6441 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6442 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6443 if test -r $srcdir/$dirname/configure ; then
6444 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6445 true
6446 else
6447 notsupp="$notsupp $dir"
6448 fi
6449 fi
6450 fi
ee6a22df
L
6451 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6452 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6453 if test -r $srcdir/$dirname/configure ; then
6454 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6455 true
6456 else
6457 notsupp="$notsupp $dir"
6458 fi
6459 fi
6460 fi
55ffb5ed
NN
6461 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6462 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6463 if test -r $srcdir/$dirname/configure ; then
6464 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6465 true
6466 else
6467 notsupp="$notsupp $dir"
6468 fi
6469 fi
6470 fi
6471done
6472
55ffb5ed
NN
6473# Quietly strip out all directories which aren't configurable in this tree.
6474# This relies on all configurable subdirectories being autoconfiscated, which
6475# is now the case.
23f6b2f9
PB
6476build_configdirs_all="$build_configdirs"
6477build_configdirs=
6478for i in ${build_configdirs_all} ; do
1c710c3c 6479 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6480 if test -f ${srcdir}/$j/configure ; then
6481 build_configdirs="${build_configdirs} $i"
6482 fi
6483done
6484
55ffb5ed
NN
6485configdirs_all="$configdirs"
6486configdirs=
6487for i in ${configdirs_all} ; do
6488 if test -f ${srcdir}/$i/configure ; then
6489 configdirs="${configdirs} $i"
6490 fi
6491done
23f6b2f9 6492
55ffb5ed
NN
6493target_configdirs_all="$target_configdirs"
6494target_configdirs=
6495for i in ${target_configdirs_all} ; do
1c710c3c 6496 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6497 if test -f ${srcdir}/$j/configure ; then
6498 target_configdirs="${target_configdirs} $i"
6499 fi
6500done
6501
45b3824d
TS
6502# libiberty-linker-plugin is special: it doesn't have its own source directory,
6503# so we have to add it after the preceding checks.
6504if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
6505then
6506 case " $configdirs " in
6507 *" libiberty "*)
6508 # If we can build libiberty, we can also build libiberty-linker-plugin.
6509 configdirs="$configdirs libiberty-linker-plugin"
6510 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
6511 --with-libiberty=../libiberty-linker-plugin";;
6512 *)
6513 as_fn_error "libiberty missing" "$LINENO" 5;;
6514 esac
6515fi
6516
fca38047
TS
6517# Sometimes we have special requirements for the host libiberty.
6518extra_host_libiberty_configure_flags=
1c01ebf6 6519extra_host_zlib_configure_flags=
fca38047
TS
6520case " $configdirs " in
6521 *" lto-plugin "* | *" libcc1 "*)
6522 # When these are to be built as shared libraries, the same applies to
6523 # libiberty.
6524 extra_host_libiberty_configure_flags=--enable-shared
6525 ;;
1c01ebf6
L
6526 *" bfd "*)
6527 # When bfd is to be built as a shared library, the same applies to
6528 # zlib.
6529 if test "$enable_shared" = "yes"; then
6530 extra_host_zlib_configure_flags=--enable-host-shared
6531 fi
6532 ;;
fca38047
TS
6533esac
6534
6535
1c01ebf6 6536
55ffb5ed
NN
6537# Produce a warning message for the subdirs we can't configure.
6538# This isn't especially interesting in the Cygnus tree, but in the individual
6539# FSF releases, it's important to let people know when their machine isn't
6540# supported by the one or two programs in a package.
6541
6542if test -n "${notsupp}" && test -z "${norecursion}" ; then
6543 # If $appdirs is non-empty, at least one of those directories must still
6544 # be configured, or we error out. (E.g., if the gas release supports a
6545 # specified target in some subdirs but not the gas subdir, we shouldn't
6546 # pretend that all is well.)
6547 if test -n "$appdirs" ; then
6548 for dir in $appdirs ; do
6549 if test -r $dir/Makefile.in ; then
6550 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6551 appdirs=""
6552 break
6553 fi
23f6b2f9 6554 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6555 appdirs=""
6556 break
6557 fi
6558 fi
6559 done
6560 if test -n "$appdirs" ; then
6561 echo "*** This configuration is not supported by this package." 1>&2
6562 exit 1
6563 fi
6564 fi
6565 # Okay, some application will build, or we don't care to check. Still
6566 # notify of subdirs not getting built.
6567 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6568 echo " ${notsupp}" 1>&2
6569 echo " (Any other directories should still work fine.)" 1>&2
6570fi
6571
6572case "$host" in
6573 *msdosdjgpp*)
6574 enable_gdbtk=no ;;
6575esac
6576
c3a86da9
DJ
6577# To find our prefix, in gcc_cv_tool_prefix.
6578
6579# The user is always right.
6580if test "${PATH_SEPARATOR+set}" != set; then
6581 echo "#! /bin/sh" >conf$$.sh
6582 echo "exit 0" >>conf$$.sh
6583 chmod +x conf$$.sh
6584 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6585 PATH_SEPARATOR=';'
6586 else
6587 PATH_SEPARATOR=:
6588 fi
6589 rm -f conf$$.sh
6590fi
6591
6592
6593
6594if test "x$exec_prefix" = xNONE; then
6595 if test "x$prefix" = xNONE; then
6596 gcc_cv_tool_prefix=$ac_default_prefix
6597 else
6598 gcc_cv_tool_prefix=$prefix
6599 fi
6600else
6601 gcc_cv_tool_prefix=$exec_prefix
6602fi
6603
6604# If there is no compiler in the tree, use the PATH only. In any
6605# case, if there is no compiler in the tree nobody should use
6606# AS_FOR_TARGET and LD_FOR_TARGET.
6607if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6608 gcc_version=`cat $srcdir/gcc/BASE-VER`
6609 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6610 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6611 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6612 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6613 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6614 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6615else
6616 gcc_cv_tool_dirs=
6617fi
6618
6619if test x$build = x$target && test -n "$md_exec_prefix"; then
6620 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6621fi
6622
6623
6624
55ffb5ed
NN
6625copy_dirs=
6626
1c710c3c 6627
5213506e
RW
6628# Check whether --with-build-sysroot was given.
6629if test "${with_build_sysroot+set}" = set; then :
6630 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6631 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6632 fi
6633else
6634 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6635fi
526635cb
MM
6636
6637
c8aea42c 6638
5213506e
RW
6639
6640# Check whether --with-debug-prefix-map was given.
6641if test "${with_debug_prefix_map+set}" = set; then :
6642 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6643 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6644 for debug_map in $withval; do
6645 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6646 done
6647 fi
6648else
6649 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6650fi
6651
c8aea42c
PB
6652
6653
1c8bd6a3
PB
6654# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6655# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6656# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6657# We want to ensure that TARGET libraries (which we know are built with
6658# gcc) are built with "-O2 -g", so include those options when setting
6659# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6660if test "x$CFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6661 if test "x${is_cross_compiler}" = xyes; then
6662 CFLAGS_FOR_TARGET="-g -O2"
6663 else
6664 CFLAGS_FOR_TARGET=$CFLAGS
6665 case " $CFLAGS " in
6666 *" -O2 "*) ;;
6667 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
6668 esac
6669 case " $CFLAGS " in
6670 *" -g "* | *" -g3 "*) ;;
6671 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
6672 esac
6673 fi
1c8bd6a3
PB
6674fi
6675
6676
6677if test "x$CXXFLAGS_FOR_TARGET" = x; then
fc30054e
AH
6678 if test "x${is_cross_compiler}" = xyes; then
6679 CXXFLAGS_FOR_TARGET="-g -O2"
6680 else
6681 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6682 case " $CXXFLAGS " in
6683 *" -O2 "*) ;;
6684 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
6685 esac
6686 case " $CXXFLAGS " in
6687 *" -g "* | *" -g3 "*) ;;
6688 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
6689 esac
6690 fi
1c8bd6a3
PB
6691fi
6692
6693
6f57bdf6
DK
6694
6695
55ffb5ed
NN
6696# Handle --with-headers=XXX. If the value is not "yes", the contents of
6697# the named directory are copied to $(tooldir)/sys-include.
6698if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6699 if test x${is_cross_compiler} = xno ; then
6700 echo 1>&2 '***' --with-headers is only supported when cross compiling
6701 exit 1
6702 fi
6703 if test x"${with_headers}" != xyes ; then
c3a86da9 6704 x=${gcc_cv_tool_prefix}
1c710c3c 6705 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6706 fi
6707fi
6708
6709# Handle --with-libs=XXX. If the value is not "yes", the contents of
6710# the name directories are copied to $(tooldir)/lib. Multiple directories
6711# are permitted.
6712if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6713 if test x${is_cross_compiler} = xno ; then
6714 echo 1>&2 '***' --with-libs is only supported when cross compiling
6715 exit 1
6716 fi
6717 if test x"${with_libs}" != xyes ; then
6718 # Copy the libraries in reverse order, so that files in the first named
6719 # library override files in subsequent libraries.
c3a86da9 6720 x=${gcc_cv_tool_prefix}
55ffb5ed 6721 for l in ${with_libs}; do
1c710c3c 6722 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6723 done
6724 fi
6725fi
6726
d7f09764 6727# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6728#
6729# This is done by determining whether or not the appropriate directory
6730# is available, and by checking whether or not specific configurations
6731# have requested that this magic not happen.
1c710c3c
DJ
6732#
6733# The command line options always override the explicit settings in
6b1786aa 6734# configure.ac, and the settings in configure.ac override this magic.
e8b05380 6735#
1c710c3c 6736# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6737# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6738# --without-gnu-ld options for the configure script. Similarly, if
6739# the default is to use the included zlib and you don't want to do that,
6740# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6741
6742if test x${use_gnu_as} = x &&
6743 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6744 with_gnu_as=yes
6745 extra_host_args="$extra_host_args --with-gnu-as"
6746fi
6747
6748if test x${use_gnu_ld} = x &&
5afab7ad 6749 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6750 with_gnu_ld=yes
6751 extra_host_args="$extra_host_args --with-gnu-ld"
6752fi
6753
d7f09764
DN
6754if test x${use_included_zlib} = x &&
6755 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6756 :
6757else
6758 with_system_zlib=yes
6759 extra_host_args="$extra_host_args --with-system-zlib"
6760fi
6761
e8b05380
PB
6762# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6763# can detect this case.
6764
6765if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6766 with_newlib=yes
6767 extra_host_args="$extra_host_args --with-newlib"
6768fi
6769
55ffb5ed
NN
6770# Handle ${copy_dirs}
6771set fnord ${copy_dirs}
6772shift
6773while test $# != 0 ; do
6774 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6775 :
6776 else
6777 echo Copying $1 to $2
6778
6779 # Use the install script to create the directory and all required
6780 # parent directories.
6781 if test -d $2 ; then
6782 :
6783 else
6784 echo >config.temp
6785 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6786 fi
6787
6788 # Copy the directory, assuming we have tar.
6789 # FIXME: Should we use B in the second tar? Not all systems support it.
6790 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6791
6792 # It is the responsibility of the user to correctly adjust all
6793 # symlinks. If somebody can figure out how to handle them correctly
6794 # here, feel free to add the code.
6795
6796 echo $1 > $2/COPIED
6797 fi
6798 shift; shift
6799done
6800
e8b05380
PB
6801# Determine a target-dependent exec_prefix that the installed
6802# gcc will search in. Keep this list sorted by triplet, with
6803# the *-*-osname triplets last.
6804md_exec_prefix=
6805case "${target}" in
30b74385 6806 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6807 md_exec_prefix=/dev/env/DJDIR/bin
6808 ;;
e8b05380 6809 *-*-hpux* | \
e8b05380 6810 *-*-nto-qnx* | \
6de66370 6811 *-*-solaris2*)
e8b05380
PB
6812 md_exec_prefix=/usr/ccs/bin
6813 ;;
6814esac
6815
671aa708
NN
6816extra_arflags_for_target=
6817extra_nmflags_for_target=
6818extra_ranlibflags_for_target=
6819target_makefile_frag=/dev/null
6820case "${target}" in
58e24147
AM
6821 spu-*-*)
6822 target_makefile_frag="config/mt-spu"
6823 ;;
d896cc4d 6824 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
4bf6c438
RS
6825 target_makefile_frag="config/mt-sde"
6826 ;;
1ec3b87b
RS
6827 mipsisa*-*-elfoabi*)
6828 target_makefile_frag="config/mt-mips-elfoabi"
6829 ;;
08d0963a
RS
6830 mips*-*-*linux* | mips*-*-gnu*)
6831 target_makefile_frag="config/mt-mips-gnu"
6832 ;;
707f1839
SL
6833 nios2-*-elf*)
6834 target_makefile_frag="config/mt-nios2-elf"
6835 ;;
416ac4d4 6836 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6837 target_makefile_frag="config/mt-gnu"
671aa708
NN
6838 ;;
6839 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6840 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6841 # commands to handle both 32-bit and 64-bit objects. These flags are
6842 # harmless if we're using GNU nm or ar.
6843 extra_arflags_for_target=" -X32_64"
6844 extra_nmflags_for_target=" -B -X32_64"
6845 ;;
671aa708
NN
6846esac
6847
6848alphaieee_frag=/dev/null
6849case $target in
6850 alpha*-*-*)
6851 # This just makes sure to use the -mieee option to build target libs.
6852 # This should probably be set individually by each library.
6853 alphaieee_frag="config/mt-alphaieee"
6854 ;;
6855esac
6856
6857# If --enable-target-optspace always use -Os instead of -O2 to build
6858# the target libraries, similarly if it is not specified, use -Os
6859# on selected platforms.
6860ospace_frag=/dev/null
6861case "${enable_target_optspace}:${target}" in
6862 yes:*)
6863 ospace_frag="config/mt-ospace"
6864 ;;
6865 :d30v-*)
6866 ospace_frag="config/mt-d30v"
6867 ;;
d9063947 6868 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
671aa708
NN
6869 ospace_frag="config/mt-ospace"
6870 ;;
6871 no:* | :*)
6872 ;;
6873 *)
6874 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6875 ;;
6876esac
6877
671aa708
NN
6878# Some systems (e.g., one of the i386-aix systems the gas testers are
6879# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6880tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6881build_tooldir=${tooldir}
6882
671aa708
NN
6883# Create a .gdbinit file which runs the one in srcdir
6884# and tells GDB to look there for source files.
6885
6886if test -r ${srcdir}/.gdbinit ; then
6887 case ${srcdir} in
6888 .) ;;
6889 *) cat > ./.gdbinit <<EOF
6890# ${NO_EDIT}
6891dir ${srcdir}
6892dir .
6893source ${srcdir}/.gdbinit
6894EOF
6895 ;;
6896 esac
6897fi
6898
671aa708
NN
6899# Make sure that the compiler is able to generate an executable. If it
6900# can't, we are probably in trouble. We don't care whether we can run the
6901# executable--we might be using a cross compiler--we only care whether it
6902# can be created. At this point the main configure script has set CC.
6903we_are_ok=no
6904echo "int main () { return 0; }" > conftest.c
6905${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6906if test $? = 0 ; then
6907 if test -s conftest || test -s conftest.exe ; then
6908 we_are_ok=yes
6909 fi
1c710c3c 6910fi
671aa708
NN
6911case $we_are_ok in
6912 no)
6913 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6914 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6915 rm -f conftest*
6916 exit 1
6917 ;;
6918esac
6919rm -f conftest*
6920
d89f0ad6 6921# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6922case "${host}" in
6923 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6924 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6925 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6926 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6927esac
6928
d89f0ad6
AL
6929# On systems where the dynamic library environment variable is PATH,
6930# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6931# built executables to PATH.
6932if test "$RPATH_ENVVAR" = PATH; then
6933 GCC_SHLIB_SUBDIR=/shlib
6934else
6935 GCC_SHLIB_SUBDIR=
6936fi
6937
beeda1d9
JJ
6938# Adjust the toplevel makefile according to whether bootstrap was selected.
6939case $enable_bootstrap in
6940 yes)
6941 bootstrap_suffix=bootstrap
6942 BUILD_CONFIG=bootstrap-debug
6943 ;;
6944 no)
6945 bootstrap_suffix=no-bootstrap
6946 BUILD_CONFIG=
6947 ;;
6948esac
6949
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6951$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6952
6953
6954# Check whether --with-build-config was given.
6955if test "${with_build_config+set}" = set; then :
6956 withval=$with_build_config; case $with_build_config in
6957 yes) with_build_config= ;;
6958 no) with_build_config= BUILD_CONFIG= ;;
6959 esac
6960fi
6961
6962
6963if test "x${with_build_config}" != x; then
6964 BUILD_CONFIG=$with_build_config
6965else
6966 case $BUILD_CONFIG in
6967 bootstrap-debug)
6968 if echo "int f (void) { return 0; }" > conftest.c &&
6969 ${CC} -c conftest.c &&
6970 mv conftest.o conftest.o.g0 &&
6971 ${CC} -c -g conftest.c &&
6972 mv conftest.o conftest.o.g &&
6973 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
6974 :
6975 else
6976 BUILD_CONFIG=
6977 fi
6978 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6979 ;;
6980 esac
6981fi
6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6983$as_echo "$BUILD_CONFIG" >&6; }
6984
6985
6986# Use same top-level configure hooks in libgcc/libstdc++/libvtv.
6987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
6988$as_echo_n "checking for --enable-vtable-verify... " >&6; }
6989# Check whether --enable-vtable-verify was given.
6990if test "${enable_vtable_verify+set}" = set; then :
6991 enableval=$enable_vtable_verify; case "$enableval" in
6992 yes) enable_vtable_verify=yes ;;
6993 no) enable_vtable_verify=no ;;
6994 *) enable_vtable_verify=no;;
6995 esac
6996else
6997 enable_vtable_verify=no
6998fi
6999
7000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
7001$as_echo "$enable_vtable_verify" >&6; }
7002
671aa708
NN
7003# Record target_configdirs and the configure arguments for target and
7004# build configuration in Makefile.
7005target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7006build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9e1c8fc1 7007bootstrap_fixincludes=no
671aa708 7008
ad1e5170
JR
7009# If we are building libgomp, bootstrap it.
7010if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7011 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7012fi
7013
beeda1d9
JJ
7014# If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
7015# or bootstrap-ubsan, bootstrap it.
7016if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
7017 case "$BUILD_CONFIG" in
7018 *bootstrap-asan* | *bootstrap-ubsan* )
7019 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9e1c8fc1 7020 bootstrap_fixincludes=yes
beeda1d9
JJ
7021 ;;
7022 esac
ac8701fe
L
7023fi
7024
beeda1d9
JJ
7025# If we are building libvtv and --enable-vtable-verify, bootstrap it.
7026if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
7027 test "$enable_vtable_verify" != no; then
2077db1b
CT
7028 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7029fi
7030
5373cd33
IE
7031# If we are building libmpx, bootstrap it.
7032if echo " ${target_configdirs} " | grep " libmpx " > /dev/null 2>&1; then
7033 bootstrap_target_libs=${bootstrap_target_libs}target-libmpx,
7034fi
7035
671aa708
NN
7036# Determine whether gdb needs tk/tcl or not.
7037# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7038# and in that case we want gdb to be built without tk. Ugh!
7039# In fact I believe gdb is the *only* package directly dependent on tk,
7040# so we should be able to put the 'maybe's in unconditionally and
7041# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7042# 100% sure that that's safe though.
e914a571 7043
b4f96efe 7044gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7045case "$enable_gdbtk" in
7046 no)
7047 GDB_TK="" ;;
e914a571
AC
7048 yes)
7049 GDB_TK="${gdb_tk}" ;;
671aa708 7050 *)
e914a571
AC
7051 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7052 # distro. Eventually someone will fix this and move Insight, nee
7053 # gdbtk to a separate directory.
7054 if test -d ${srcdir}/gdb/gdbtk ; then
7055 GDB_TK="${gdb_tk}"
7056 else
7057 GDB_TK=""
7058 fi
7059 ;;
671aa708 7060esac
ef9db8d5
DJ
7061CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7062INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7063
60975492 7064# Strip out unwanted targets.
8b87bb96
NN
7065
7066# While at that, we remove Makefiles if we were started for recursive
7067# configuration, so that the top-level Makefile reconfigures them,
7068# like we used to do when configure itself was recursive.
8b87bb96 7069
3e54529c
RW
7070# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7071# but now we're fixing up the Makefile ourselves with the additional
7072# commands passed to AC_CONFIG_FILES. Use separate variables
7073# extrasub-{build,host,target} not because there is any reason to split
7074# the substitutions up that way, but only to remain below the limit of
7075# 99 commands in a script, for HP-UX sed.
7076# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7077
79cd2b23
RW
7078case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7079 yes:yes:*\ gold\ *:*,c++,*) ;;
7080 yes:yes:*\ gold\ *:*)
7081 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7082 ;;
7083esac
7084
3e54529c 7085extrasub_build=
23f6b2f9 7086for module in ${build_configdirs} ; do
5607edfd
PB
7087 if test -z "${no_recursion}" \
7088 && test -f ${build_subdir}/${module}/Makefile; then
7089 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7090 rm -f ${build_subdir}/${module}/Makefile
7091 fi
3e54529c 7092 extrasub_build="$extrasub_build
5607edfd
PB
7093/^@if build-$module\$/d
7094/^@endif build-$module\$/d
7095/^@if build-$module-$bootstrap_suffix\$/d
7096/^@endif build-$module-$bootstrap_suffix\$/d"
7097done
3e54529c 7098extrasub_host=
5607edfd 7099for module in ${configdirs} ; do
a6fbc1e2 7100 if test -z "${no_recursion}"; then
f063a9ed 7101 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7102 if test -f ${file}; then
7103 echo 1>&2 "*** removing ${file} to force reconfigure"
7104 rm -f ${file}
7105 fi
7106 done
5607edfd 7107 fi
9e1c8fc1
JJ
7108 case ${module},${bootstrap_fixincludes} in
7109 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
7110 *) host_bootstrap_suffix=$bootstrap_suffix ;;
7111 esac
3e54529c 7112 extrasub_host="$extrasub_host
5607edfd
PB
7113/^@if $module\$/d
7114/^@endif $module\$/d
9e1c8fc1
JJ
7115/^@if $module-$host_bootstrap_suffix\$/d
7116/^@endif $module-$host_bootstrap_suffix\$/d"
5607edfd 7117done
3e54529c 7118extrasub_target=
5607edfd
PB
7119for module in ${target_configdirs} ; do
7120 if test -z "${no_recursion}" \
7121 && test -f ${target_subdir}/${module}/Makefile; then
7122 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7123 rm -f ${target_subdir}/${module}/Makefile
7124 fi
00020c16
ILT
7125
7126 # We only bootstrap target libraries listed in bootstrap_target_libs.
7127 case $bootstrap_target_libs in
7128 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7129 *) target_bootstrap_suffix=no-bootstrap ;;
7130 esac
7131
3e54529c 7132 extrasub_target="$extrasub_target
5607edfd
PB
7133/^@if target-$module\$/d
7134/^@endif target-$module\$/d
00020c16
ILT
7135/^@if target-$module-$target_bootstrap_suffix\$/d
7136/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7137done
7138
3e54529c
RW
7139# Do the final fixup along with target modules.
7140extrasub_target="$extrasub_target
60975492 7141/^@if /,/^@endif /d"
671aa708
NN
7142
7143# Create the serialization dependencies. This uses a temporary file.
7144
5213506e
RW
7145# Check whether --enable-serial-configure was given.
7146if test "${enable_serial_configure+set}" = set; then :
7147 enableval=$enable_serial_configure;
7148fi
ade82b16
AO
7149
7150
bf1d3e81
NN
7151case ${enable_serial_configure} in
7152 yes)
7153 enable_serial_build_configure=yes
7154 enable_serial_host_configure=yes
7155 enable_serial_target_configure=yes
7156 ;;
7157esac
7158
671aa708
NN
7159# These force 'configure's to be done one at a time, to avoid problems
7160# with contention over a shared config.cache.
7161rm -f serdep.tmp
ade82b16 7162echo '# serdep.tmp' > serdep.tmp
671aa708 7163olditem=
bf1d3e81 7164test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7165for item in ${build_configdirs} ; do
7166 case ${olditem} in
7167 "") ;;
ade82b16 7168 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7169 esac
7170 olditem=${item}
7171done
7172olditem=
bf1d3e81 7173test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7174for item in ${configdirs} ; do
7175 case ${olditem} in
7176 "") ;;
ade82b16 7177 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7178 esac
7179 olditem=${item}
7180done
7181olditem=
bf1d3e81 7182test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7183for item in ${target_configdirs} ; do
7184 case ${olditem} in
7185 "") ;;
ade82b16 7186 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7187 esac
7188 olditem=${item}
7189done
7190serialization_dependencies=serdep.tmp
7191
7192
ade82b16 7193# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7194# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7195# might not want to pass down to subconfigures. The exception being
7196# --cache-file=/dev/null, which is used to turn off the use of cache
7197# files altogether, and which should be passed on to subconfigures.
7198# Also strip program-prefix, program-suffix, and program-transform-name,
7199# so that we can pass down a consistent program-transform-name.
1c710c3c 7200baseargs=
29a63921 7201tbaseargs=
1c710c3c
DJ
7202keep_next=no
7203skip_next=no
7204eval "set -- $ac_configure_args"
44bfc3ac
DJ
7205for ac_arg
7206do
1c710c3c
DJ
7207 if test X"$skip_next" = X"yes"; then
7208 skip_next=no
7209 continue
7210 fi
7211 if test X"$keep_next" = X"yes"; then
7212 case $ac_arg in
7213 *\'*)
7214 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7215 esac
7216 baseargs="$baseargs '$ac_arg'"
29a63921 7217 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7218 keep_next=no
7219 continue
7220 fi
7221
7222 # Handle separated arguments. Based on the logic generated by
7223 # autoconf 2.59.
7224 case $ac_arg in
7225 *=* | --config-cache | -C | -disable-* | --disable-* \
7226 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7227 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7228 | -with-* | --with-* | -without-* | --without-* | --x)
7229 separate_arg=no
7230 ;;
7231 -*)
7232 separate_arg=yes
7233 ;;
7234 *)
7235 separate_arg=no
7236 ;;
7237 esac
7238
29a63921
AO
7239 skip_targ=no
7240 case $ac_arg in
7241
7242 --with-* | --without-*)
7243 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7244
7245 case $libopt in
7246 *[-_]include)
7247 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7248 ;;
7249 *[-_]lib)
7250 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7251 ;;
7252 *)
7253 lib=$libopt
7254 ;;
7255 esac
7256
7257
7258 case $lib in
4a9bb2aa 7259 mpc | mpfr | gmp | isl)
29a63921
AO
7260 # If we're processing --with-$lib, --with-$lib-include or
7261 # --with-$lib-lib, for one of the libs above, and target is
7262 # different from host, don't pass the current argument to any
7263 # target library's configure.
7264 if test x$is_cross_compiler = xyes; then
7265 skip_targ=yes
7266 fi
7267 ;;
7268 esac
7269 ;;
7270 esac
7271
1c710c3c 7272 case "$ac_arg" in
f1a036e4
NC
7273 --cache-file=/dev/null | \
7274 -cache-file=/dev/null )
7275 # Handled here to avoid the test to skip args below.
7276 baseargs="$baseargs '$ac_arg'"
29a63921 7277 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7278 # Assert: $separate_arg should always be no.
7279 keep_next=$separate_arg
7280 ;;
1c710c3c
DJ
7281 --no*)
7282 continue
7283 ;;
7284 --c* | \
7285 --sr* | \
7286 --ho* | \
7287 --bu* | \
7288 --t* | \
7289 --program-* | \
7290 -cache_file* | \
7291 -srcdir* | \
7292 -host* | \
7293 -build* | \
7294 -target* | \
7295 -program-prefix* | \
7296 -program-suffix* | \
7297 -program-transform-name* )
7298 skip_next=$separate_arg
7299 continue
7300 ;;
7301 -*)
7302 # An option. Add it.
7303 case $ac_arg in
7304 *\'*)
7305 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7306 esac
7307 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7308 if test X"$skip_targ" = Xno; then
7309 tbaseargs="$tbaseargs '$ac_arg'"
7310 fi
1c710c3c
DJ
7311 keep_next=$separate_arg
7312 ;;
7313 *)
7314 # Either a variable assignment, or a nonopt (triplet). Don't
7315 # pass it down; let the Makefile handle this.
7316 continue
7317 ;;
7318 esac
7319done
7320# Remove the initial space we just introduced and, as these will be
7321# expanded by make, quote '$'.
7322baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7323
43bb47c2
DJ
7324# Add in --program-transform-name, after --program-prefix and
7325# --program-suffix have been applied to it. Autoconf has already
7326# doubled dollar signs and backslashes in program_transform_name; we want
7327# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7328# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7329# Also, because we want to override the logic in subdir configure scripts to
7330# choose program_transform_name, replace any s,x,x, with s,y,y,.
7331sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7332${program_transform_name}
7333EOF_SED
7334gcc_transform_name=`cat conftestsed.out`
7335rm -f conftestsed.out
7336baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7337tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7338if test "$silent" = yes; then
7339 baseargs="$baseargs --silent"
29a63921 7340 tbaseargs="$tbaseargs --silent"
d9acb717 7341fi
0115d4a3 7342baseargs="$baseargs --disable-option-checking"
29a63921 7343tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7344
ffedf511
RW
7345# Record and document user additions to sub configure arguments.
7346
7347
7348
7349
671aa708
NN
7350# For the build-side libraries, we just need to pretend we're native,
7351# and not use the same cache file. Multilibs are neither needed nor
3d96b0d0
HPN
7352# desired. We can't even use the same cache file for all build-side
7353# libraries, as they're compiled differently; some with C, some with
7354# C++ or with different feature-enabling options.
7355build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
671aa708
NN
7356
7357# For host modules, accept cache file option, or specification as blank.
7358case "${cache_file}" in
7359"") # empty
7360 cache_file_option="" ;;
7361/* | [A-Za-z]:[\\/]* ) # absolute path
7362 cache_file_option="--cache-file=${cache_file}" ;;
7363*) # relative path
7364 cache_file_option="--cache-file=../${cache_file}" ;;
7365esac
7366
09438bde
NN
7367# Host dirs don't like to share a cache file either, horribly enough.
7368# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7369host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7370
29a63921 7371target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7372
7373# Passing a --with-cross-host argument lets the target libraries know
7374# whether they are being built with a cross-compiler or being built
7375# native. However, it would be better to use other mechanisms to make the
7376# sorts of decisions they want to make on this basis. Please consider
7377# this option to be deprecated. FIXME.
7378if test x${is_cross_compiler} = xyes ; then
1c710c3c 7379 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7380fi
7381
79e0604d
FXC
7382# Special user-friendly check for native x86_64-linux build, if
7383# multilib is not explicitly enabled.
7384case "$target:$have_compiler:$host:$target:$enable_multilib" in
7385 x86_64-*linux*:yes:$build:$build:)
e640447c 7386 # Make sure we have a development environment that handles 32-bit
79e0604d
FXC
7387 dev64=no
7388 echo "int main () { return 0; }" > conftest.c
7389 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7390 if test $? = 0 ; then
7391 if test -s conftest || test -s conftest.exe ; then
7392 dev64=yes
7393 fi
7394 fi
7395 rm -f conftest*
7396 if test x${dev64} != xyes ; then
e640447c 7397 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
7398 fi
7399 ;;
7400esac
7401
dc683a3f
RW
7402# Default to --enable-multilib.
7403if test x${enable_multilib} = x ; then
671aa708 7404 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7405fi
671aa708
NN
7406
7407# Pass --with-newlib if appropriate. Note that target_configdirs has
7408# changed from the earlier setting of with_newlib.
7409if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7410 target_configargs="--with-newlib ${target_configargs}"
7411fi
7412
6b9eb62c
NN
7413# Different target subdirs use different values of certain variables
7414# (notably CXX). Worse, multilibs use *lots* of different values.
7415# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7416# it doesn't automatically accept command-line overrides of them.
7417# This means it's not safe for target subdirs to share a cache file,
7418# which is disgusting, but there you have it. Hopefully this can be
7419# fixed in future. It's still worthwhile to use a cache file for each
7420# directory. I think.
7421
bebcd931
MS
7422# Pass the appropriate --build, --host, --target and --cache-file arguments.
7423# We need to pass --target, as newer autoconf's requires consistency
7424# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7425target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7426
671aa708
NN
7427FLAGS_FOR_TARGET=
7428case " $target_configdirs " in
7429 *" newlib "*)
7430 case " $target_configargs " in
7431 *" --with-newlib "*)
7432 case "$target" in
5d571eaa 7433 *-cygwin*)
443e6238 7434 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
5d571eaa 7435 ;;
671aa708
NN
7436 esac
7437
7438 # If we're not building GCC, don't discard standard headers.
7439 if test -d ${srcdir}/gcc; then
7440 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7441
7442 if test "${build}" != "${host}"; then
7443 # On Canadian crosses, CC_FOR_TARGET will have already been set
7444 # by `configure', so we won't have an opportunity to add -Bgcc/
7445 # to it. This is right: we don't want to search that directory
7446 # for binaries, but we want the header files in there, so add
7447 # them explicitly.
0463992b 7448 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7449
7450 # Someone might think of using the pre-installed headers on
7451 # Canadian crosses, in case the installed compiler is not fully
7452 # compatible with the compiler being built. In this case, it
7453 # would be better to flag an error than risking having
7454 # incompatible object files being constructed. We can't
7455 # guarantee that an error will be flagged, but let's hope the
7456 # compiler will do it, when presented with incompatible header
7457 # files.
7458 fi
7459 fi
7460
7461 case "${target}-${is_cross_compiler}" in
f2a0e225 7462 i[3456789]86-*-linux*-no)
671aa708
NN
7463 # Here host == target, so we don't need to build gcc,
7464 # so we don't want to discard standard headers.
7465 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7466 ;;
7467 *)
7468 # If we're building newlib, use its generic headers last, but search
7469 # for any libc-related directories first (so make it the last -B
7470 # switch).
7471 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
7472
7473 # If we're building libgloss, find the startup file, simulator library
7474 # and linker script.
7475 case " $target_configdirs " in
7476 *" libgloss "*)
7477 # Look for startup file, simulator library and maybe linker script.
7478 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7479 # Look for libnosys.a in case the target needs it.
7480 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7481 # Most targets have the linker script in the source directory.
7482 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7483 ;;
7484 esac
671aa708
NN
7485 ;;
7486 esac
7487 ;;
7488 esac
7489 ;;
7490esac
5d571eaa 7491
b91f0a41 7492case "$target" in
5d571eaa
OS
7493 x86_64-*mingw* | *-w64-mingw*)
7494 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7495 # however, use a symlink named 'mingw' in ${prefix} .
7496 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7497 ;;
7498 *-mingw*)
7499 # MinGW can't be handled as Cygwin above since it does not use newlib.
7500 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'
7501 ;;
b91f0a41 7502esac
671aa708 7503
6691a79e
ME
7504# Allow the user to override the flags for
7505# our build compiler if desired.
f019adc1
MF
7506if test x"${build}" = x"${host}" ; then
7507 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7508 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7509 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7510fi
6691a79e 7511
671aa708
NN
7512# On Canadian crosses, we'll be searching the right directories for
7513# the previously-installed cross compiler, so don't bother to add
7514# flags for directories within the install tree of the compiler
7515# being built; programs in there won't even run.
7516if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7517 # Search for pre-installed headers if nothing else fits.
9124bc53 7518 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
7519fi
7520
7521if test "x${use_gnu_ld}" = x &&
7522 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7523 # Arrange for us to find uninstalled linker scripts.
215c351a 7524 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7525fi
7526
e88a2c09
DD
7527# Search for other target-specific linker scripts and such.
7528case "${target}" in
3e19841a
PB
7529 mep*)
7530 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7531 ;;
e88a2c09
DD
7532esac
7533
671aa708 7534# Makefile fragments.
7b61653a
PE
7535for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7536do
7537 eval fragval=\$$frag
7538 if test $fragval != /dev/null; then
7539 eval $frag=${srcdir}/$fragval
7540 fi
7541done
671aa708
NN
7542
7543
7544
7545
7546
7547# Miscellanea: directories, flags, etc.
7548
7549
7550
7551
7552
7553
7554
d89f0ad6 7555
23f6b2f9 7556# Build module lists & subconfigure args.
671aa708
NN
7557
7558
7559
2abefe3d
PB
7560# Host module lists & subconfigure args.
7561
7562
7563
aae29963 7564
2abefe3d
PB
7565# Target module lists & subconfigure args.
7566
7567
7568
7569# Build tools.
7570
7571
7572
0999159b
PB
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
2abefe3d
PB
7587# Generate default definitions for YACC, M4, LEX and other programs that run
7588# on the build machine. These are used if the Makefile can't locate these
7589# programs in objdir.
7590MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7591
7592for ac_prog in 'bison -y' byacc yacc
7593do
1c710c3c 7594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7595set dummy $ac_prog; ac_word=$2
5213506e
RW
7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7597$as_echo_n "checking for $ac_word... " >&6; }
7598if test "${ac_cv_prog_YACC+set}" = set; then :
7599 $as_echo_n "(cached) " >&6
2abefe3d
PB
7600else
7601 if test -n "$YACC"; then
7602 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7603else
1c710c3c
DJ
7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7605for as_dir in $PATH
7606do
7607 IFS=$as_save_IFS
7608 test -z "$as_dir" && as_dir=.
5213506e
RW
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7611 ac_cv_prog_YACC="$ac_prog"
5213506e 7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7613 break 2
7614 fi
7615done
5213506e
RW
7616 done
7617IFS=$as_save_IFS
1c710c3c 7618
2abefe3d
PB
7619fi
7620fi
1c710c3c 7621YACC=$ac_cv_prog_YACC
2abefe3d 7622if test -n "$YACC"; then
5213506e
RW
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7624$as_echo "$YACC" >&6; }
2abefe3d 7625else
5213506e
RW
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7627$as_echo "no" >&6; }
2abefe3d
PB
7628fi
7629
5213506e 7630
1c710c3c 7631 test -n "$YACC" && break
2abefe3d
PB
7632done
7633test -n "$YACC" || YACC="$MISSING bison -y"
7634
7635case " $build_configdirs " in
7636 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7637esac
7638
7639for ac_prog in bison
7640do
1c710c3c 7641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7642set dummy $ac_prog; ac_word=$2
5213506e
RW
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7644$as_echo_n "checking for $ac_word... " >&6; }
7645if test "${ac_cv_prog_BISON+set}" = set; then :
7646 $as_echo_n "(cached) " >&6
2abefe3d
PB
7647else
7648 if test -n "$BISON"; then
7649 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7650else
1c710c3c
DJ
7651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7652for as_dir in $PATH
7653do
7654 IFS=$as_save_IFS
7655 test -z "$as_dir" && as_dir=.
5213506e
RW
7656 for ac_exec_ext in '' $ac_executable_extensions; do
7657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7658 ac_cv_prog_BISON="$ac_prog"
5213506e 7659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7660 break 2
7661 fi
7662done
5213506e
RW
7663 done
7664IFS=$as_save_IFS
1c710c3c 7665
2abefe3d
PB
7666fi
7667fi
1c710c3c 7668BISON=$ac_cv_prog_BISON
2abefe3d 7669if test -n "$BISON"; then
5213506e
RW
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7671$as_echo "$BISON" >&6; }
2abefe3d 7672else
5213506e
RW
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7674$as_echo "no" >&6; }
2abefe3d
PB
7675fi
7676
5213506e 7677
1c710c3c 7678 test -n "$BISON" && break
2abefe3d
PB
7679done
7680test -n "$BISON" || BISON="$MISSING bison"
7681
7682case " $build_configdirs " in
7683 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7684esac
7685
7686for ac_prog in gm4 gnum4 m4
7687do
1c710c3c 7688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7689set dummy $ac_prog; ac_word=$2
5213506e
RW
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691$as_echo_n "checking for $ac_word... " >&6; }
7692if test "${ac_cv_prog_M4+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
2abefe3d
PB
7694else
7695 if test -n "$M4"; then
7696 ac_cv_prog_M4="$M4" # Let the user override the test.
7697else
1c710c3c
DJ
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
5213506e
RW
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7705 ac_cv_prog_M4="$ac_prog"
5213506e 7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7707 break 2
7708 fi
7709done
5213506e
RW
7710 done
7711IFS=$as_save_IFS
1c710c3c 7712
2abefe3d
PB
7713fi
7714fi
1c710c3c 7715M4=$ac_cv_prog_M4
2abefe3d 7716if test -n "$M4"; then
5213506e
RW
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7718$as_echo "$M4" >&6; }
2abefe3d 7719else
5213506e
RW
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721$as_echo "no" >&6; }
2abefe3d
PB
7722fi
7723
5213506e 7724
1c710c3c 7725 test -n "$M4" && break
2abefe3d
PB
7726done
7727test -n "$M4" || M4="$MISSING m4"
7728
7729case " $build_configdirs " in
7730 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7731esac
7732
7733for ac_prog in flex lex
7734do
1c710c3c 7735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7736set dummy $ac_prog; ac_word=$2
5213506e
RW
7737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738$as_echo_n "checking for $ac_word... " >&6; }
7739if test "${ac_cv_prog_LEX+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
2abefe3d
PB
7741else
7742 if test -n "$LEX"; then
7743 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7744else
1c710c3c
DJ
7745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746for as_dir in $PATH
7747do
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
5213506e
RW
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7752 ac_cv_prog_LEX="$ac_prog"
5213506e 7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7754 break 2
7755 fi
7756done
5213506e
RW
7757 done
7758IFS=$as_save_IFS
1c710c3c 7759
2abefe3d
PB
7760fi
7761fi
1c710c3c 7762LEX=$ac_cv_prog_LEX
2abefe3d 7763if test -n "$LEX"; then
5213506e
RW
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7765$as_echo "$LEX" >&6; }
2abefe3d 7766else
5213506e
RW
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768$as_echo "no" >&6; }
2abefe3d
PB
7769fi
7770
5213506e 7771
1c710c3c 7772 test -n "$LEX" && break
2abefe3d
PB
7773done
7774test -n "$LEX" || LEX="$MISSING flex"
7775
7776case " $build_configdirs " in
7777 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7778 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7779esac
7780
7781for ac_prog in flex
7782do
1c710c3c 7783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7784set dummy $ac_prog; ac_word=$2
5213506e
RW
7785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786$as_echo_n "checking for $ac_word... " >&6; }
7787if test "${ac_cv_prog_FLEX+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
2abefe3d
PB
7789else
7790 if test -n "$FLEX"; then
7791 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7792else
1c710c3c
DJ
7793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794for as_dir in $PATH
7795do
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
5213506e
RW
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7800 ac_cv_prog_FLEX="$ac_prog"
5213506e 7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7802 break 2
7803 fi
7804done
5213506e
RW
7805 done
7806IFS=$as_save_IFS
1c710c3c 7807
2abefe3d
PB
7808fi
7809fi
1c710c3c 7810FLEX=$ac_cv_prog_FLEX
2abefe3d 7811if test -n "$FLEX"; then
5213506e
RW
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7813$as_echo "$FLEX" >&6; }
2abefe3d 7814else
5213506e
RW
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816$as_echo "no" >&6; }
2abefe3d
PB
7817fi
7818
5213506e 7819
1c710c3c 7820 test -n "$FLEX" && break
2abefe3d
PB
7821done
7822test -n "$FLEX" || FLEX="$MISSING flex"
7823
7824case " $build_configdirs " in
7825 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7826esac
7827
7828for ac_prog in makeinfo
7829do
1c710c3c 7830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7831set dummy $ac_prog; ac_word=$2
5213506e
RW
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833$as_echo_n "checking for $ac_word... " >&6; }
7834if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
2abefe3d
PB
7836else
7837 if test -n "$MAKEINFO"; then
7838 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7839else
1c710c3c
DJ
7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841for as_dir in $PATH
7842do
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
5213506e
RW
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7847 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7849 break 2
7850 fi
7851done
5213506e
RW
7852 done
7853IFS=$as_save_IFS
1c710c3c 7854
2abefe3d
PB
7855fi
7856fi
1c710c3c 7857MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7858if test -n "$MAKEINFO"; then
5213506e
RW
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7860$as_echo "$MAKEINFO" >&6; }
2abefe3d 7861else
5213506e
RW
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863$as_echo "no" >&6; }
2abefe3d
PB
7864fi
7865
5213506e 7866
1c710c3c 7867 test -n "$MAKEINFO" && break
2abefe3d
PB
7868done
7869test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7870
7871case " $build_configdirs " in
7872 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7873 *)
7874
d18ff35a 7875 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7876 # higher, else we use the "missing" dummy.
7877 if ${MAKEINFO} --version \
d18ff35a 7878 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7879 :
7880 else
7881 MAKEINFO="$MISSING makeinfo"
7882 fi
7883 ;;
7884
7885esac
671aa708 7886
2abefe3d 7887# FIXME: expect and dejagnu may become build tools?
671aa708 7888
2abefe3d
PB
7889for ac_prog in expect
7890do
1c710c3c 7891 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7892set dummy $ac_prog; ac_word=$2
5213506e
RW
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7894$as_echo_n "checking for $ac_word... " >&6; }
7895if test "${ac_cv_prog_EXPECT+set}" = set; then :
7896 $as_echo_n "(cached) " >&6
2abefe3d
PB
7897else
7898 if test -n "$EXPECT"; then
7899 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7900else
1c710c3c
DJ
7901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902for as_dir in $PATH
7903do
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
5213506e
RW
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7908 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7910 break 2
7911 fi
7912done
5213506e
RW
7913 done
7914IFS=$as_save_IFS
1c710c3c 7915
2abefe3d
PB
7916fi
7917fi
1c710c3c 7918EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7919if test -n "$EXPECT"; then
5213506e
RW
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7921$as_echo "$EXPECT" >&6; }
2abefe3d 7922else
5213506e
RW
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7924$as_echo "no" >&6; }
2abefe3d 7925fi
671aa708 7926
5213506e 7927
1c710c3c 7928 test -n "$EXPECT" && break
2abefe3d
PB
7929done
7930test -n "$EXPECT" || EXPECT="expect"
671aa708 7931
2abefe3d
PB
7932case " $configdirs " in
7933 *" expect "*)
7934 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7935 ;;
7936esac
671aa708 7937
2abefe3d
PB
7938for ac_prog in runtest
7939do
1c710c3c 7940 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7941set dummy $ac_prog; ac_word=$2
5213506e
RW
7942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7943$as_echo_n "checking for $ac_word... " >&6; }
7944if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7945 $as_echo_n "(cached) " >&6
2abefe3d
PB
7946else
7947 if test -n "$RUNTEST"; then
7948 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7949else
1c710c3c
DJ
7950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951for as_dir in $PATH
7952do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
5213506e
RW
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7957 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7959 break 2
7960 fi
7961done
5213506e
RW
7962 done
7963IFS=$as_save_IFS
1c710c3c 7964
2abefe3d
PB
7965fi
7966fi
1c710c3c 7967RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7968if test -n "$RUNTEST"; then
5213506e
RW
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7970$as_echo "$RUNTEST" >&6; }
2abefe3d 7971else
5213506e
RW
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973$as_echo "no" >&6; }
2abefe3d 7974fi
671aa708 7975
5213506e 7976
1c710c3c 7977 test -n "$RUNTEST" && break
2abefe3d
PB
7978done
7979test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7980
2abefe3d
PB
7981case " $configdirs " in
7982 *" dejagnu "*)
c394e891 7983 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7984 ;;
7985esac
671aa708
NN
7986
7987
671aa708 7988# Host tools.
ca9f4b81
AO
7989ncn_tool_prefix=
7990test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7991ncn_target_tool_prefix=
7992test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7993
278a7a38
AO
7994
7995
7996if test -n "$AR"; then
7997 ac_cv_prog_AR=$AR
7998elif test -n "$ac_cv_prog_AR"; then
7999 AR=$ac_cv_prog_AR
8000fi
8001
8002if test -n "$ac_cv_prog_AR"; then
8003 for ncn_progname in ar; do
8004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8005set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8007$as_echo_n "checking for $ac_word... " >&6; }
8008if test "${ac_cv_prog_AR+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
278a7a38
AO
8010else
8011 if test -n "$AR"; then
8012 ac_cv_prog_AR="$AR" # Let the user override the test.
8013else
8014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015for as_dir in $PATH
8016do
8017 IFS=$as_save_IFS
8018 test -z "$as_dir" && as_dir=.
5213506e
RW
8019 for ac_exec_ext in '' $ac_executable_extensions; do
8020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8021 ac_cv_prog_AR="${ncn_progname}"
5213506e 8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8023 break 2
8024 fi
8025done
5213506e
RW
8026 done
8027IFS=$as_save_IFS
278a7a38
AO
8028
8029fi
8030fi
8031AR=$ac_cv_prog_AR
8032if test -n "$AR"; then
5213506e
RW
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8034$as_echo "$AR" >&6; }
278a7a38 8035else
5213506e
RW
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8037$as_echo "no" >&6; }
278a7a38
AO
8038fi
8039
5213506e 8040
278a7a38
AO
8041 done
8042fi
8043
8044for ncn_progname in ar; do
2693c0b0
PB
8045 if test -n "$ncn_tool_prefix"; then
8046 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8047set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049$as_echo_n "checking for $ac_word... " >&6; }
8050if test "${ac_cv_prog_AR+set}" = set; then :
8051 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8052else
8053 if test -n "$AR"; then
8054 ac_cv_prog_AR="$AR" # Let the user override the test.
8055else
1c710c3c
DJ
8056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057for as_dir in $PATH
8058do
8059 IFS=$as_save_IFS
8060 test -z "$as_dir" && as_dir=.
5213506e
RW
8061 for ac_exec_ext in '' $ac_executable_extensions; do
8062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8063 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8065 break 2
8066 fi
8067done
5213506e
RW
8068 done
8069IFS=$as_save_IFS
1c710c3c 8070
ca9f4b81
AO
8071fi
8072fi
1c710c3c 8073AR=$ac_cv_prog_AR
ca9f4b81 8074if test -n "$AR"; then
5213506e
RW
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8076$as_echo "$AR" >&6; }
ca9f4b81 8077else
5213506e
RW
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079$as_echo "no" >&6; }
ca9f4b81
AO
8080fi
8081
5213506e 8082
2693c0b0
PB
8083 fi
8084 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8086set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088$as_echo_n "checking for $ac_word... " >&6; }
8089if test "${ac_cv_prog_AR+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
ca9f4b81 8091else
2693c0b0 8092 if test -n "$AR"; then
af71363e
AS
8093 ac_cv_prog_AR="$AR" # Let the user override the test.
8094else
1c710c3c
DJ
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
5213506e
RW
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8102 ac_cv_prog_AR="${ncn_progname}"
5213506e 8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8104 break 2
8105 fi
8106done
5213506e
RW
8107 done
8108IFS=$as_save_IFS
1c710c3c 8109
ca9f4b81
AO
8110fi
8111fi
1c710c3c 8112AR=$ac_cv_prog_AR
2693c0b0 8113if test -n "$AR"; then
5213506e
RW
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8115$as_echo "$AR" >&6; }
ca9f4b81 8116else
5213506e
RW
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
ca9f4b81 8119fi
1c710c3c 8120
5213506e 8121
2693c0b0
PB
8122 fi
8123 test -n "$ac_cv_prog_AR" && break
8124done
8125
8126if test -z "$ac_cv_prog_AR" ; then
8127 set dummy ar
8128 if test $build = $host ; then
8129 AR="$2"
ca9f4b81 8130 else
2693c0b0 8131 AR="${ncn_tool_prefix}$2"
ca9f4b81 8132 fi
ca9f4b81
AO
8133fi
8134
278a7a38
AO
8135
8136
8137if test -n "$AS"; then
8138 ac_cv_prog_AS=$AS
8139elif test -n "$ac_cv_prog_AS"; then
8140 AS=$ac_cv_prog_AS
8141fi
8142
8143if test -n "$ac_cv_prog_AS"; then
8144 for ncn_progname in as; do
8145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8146set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8148$as_echo_n "checking for $ac_word... " >&6; }
8149if test "${ac_cv_prog_AS+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
278a7a38
AO
8151else
8152 if test -n "$AS"; then
8153 ac_cv_prog_AS="$AS" # Let the user override the test.
8154else
8155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156for as_dir in $PATH
8157do
8158 IFS=$as_save_IFS
8159 test -z "$as_dir" && as_dir=.
5213506e
RW
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8162 ac_cv_prog_AS="${ncn_progname}"
5213506e 8163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8164 break 2
8165 fi
8166done
5213506e
RW
8167 done
8168IFS=$as_save_IFS
278a7a38
AO
8169
8170fi
8171fi
8172AS=$ac_cv_prog_AS
8173if test -n "$AS"; then
5213506e
RW
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8175$as_echo "$AS" >&6; }
278a7a38 8176else
5213506e
RW
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8178$as_echo "no" >&6; }
278a7a38
AO
8179fi
8180
5213506e 8181
278a7a38
AO
8182 done
8183fi
8184
8185for ncn_progname in as; do
2693c0b0
PB
8186 if test -n "$ncn_tool_prefix"; then
8187 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8188set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8190$as_echo_n "checking for $ac_word... " >&6; }
8191if test "${ac_cv_prog_AS+set}" = set; then :
8192 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8193else
8194 if test -n "$AS"; then
8195 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8196else
1c710c3c
DJ
8197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8198for as_dir in $PATH
8199do
8200 IFS=$as_save_IFS
8201 test -z "$as_dir" && as_dir=.
5213506e
RW
8202 for ac_exec_ext in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8204 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8206 break 2
8207 fi
8208done
5213506e
RW
8209 done
8210IFS=$as_save_IFS
1c710c3c 8211
ca9f4b81
AO
8212fi
8213fi
1c710c3c 8214AS=$ac_cv_prog_AS
ca9f4b81 8215if test -n "$AS"; then
5213506e
RW
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8217$as_echo "$AS" >&6; }
ca9f4b81 8218else
5213506e
RW
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220$as_echo "no" >&6; }
ca9f4b81
AO
8221fi
8222
5213506e 8223
2693c0b0
PB
8224 fi
8225 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8227set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229$as_echo_n "checking for $ac_word... " >&6; }
8230if test "${ac_cv_prog_AS+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
ca9f4b81 8232else
2693c0b0
PB
8233 if test -n "$AS"; then
8234 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8235else
1c710c3c
DJ
8236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
5213506e
RW
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8243 ac_cv_prog_AS="${ncn_progname}"
5213506e 8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8245 break 2
8246 fi
8247done
5213506e
RW
8248 done
8249IFS=$as_save_IFS
1c710c3c 8250
ca9f4b81
AO
8251fi
8252fi
1c710c3c 8253AS=$ac_cv_prog_AS
2693c0b0 8254if test -n "$AS"; then
5213506e
RW
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8256$as_echo "$AS" >&6; }
ca9f4b81 8257else
5213506e
RW
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
ca9f4b81 8260fi
1c710c3c 8261
5213506e 8262
2693c0b0
PB
8263 fi
8264 test -n "$ac_cv_prog_AS" && break
8265done
8266
8267if test -z "$ac_cv_prog_AS" ; then
8268 set dummy as
8269 if test $build = $host ; then
8270 AS="$2"
ca9f4b81 8271 else
2693c0b0 8272 AS="${ncn_tool_prefix}$2"
ca9f4b81 8273 fi
ca9f4b81
AO
8274fi
8275
278a7a38
AO
8276
8277
8278if test -n "$DLLTOOL"; then
8279 ac_cv_prog_DLLTOOL=$DLLTOOL
8280elif test -n "$ac_cv_prog_DLLTOOL"; then
8281 DLLTOOL=$ac_cv_prog_DLLTOOL
8282fi
8283
8284if test -n "$ac_cv_prog_DLLTOOL"; then
8285 for ncn_progname in dlltool; do
8286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8287set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289$as_echo_n "checking for $ac_word... " >&6; }
8290if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
278a7a38
AO
8292else
8293 if test -n "$DLLTOOL"; then
8294 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8295else
8296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8297for as_dir in $PATH
8298do
8299 IFS=$as_save_IFS
8300 test -z "$as_dir" && as_dir=.
5213506e
RW
8301 for ac_exec_ext in '' $ac_executable_extensions; do
8302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8303 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8305 break 2
8306 fi
8307done
5213506e
RW
8308 done
8309IFS=$as_save_IFS
278a7a38
AO
8310
8311fi
8312fi
8313DLLTOOL=$ac_cv_prog_DLLTOOL
8314if test -n "$DLLTOOL"; then
5213506e
RW
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8316$as_echo "$DLLTOOL" >&6; }
278a7a38 8317else
5213506e
RW
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319$as_echo "no" >&6; }
278a7a38
AO
8320fi
8321
5213506e 8322
278a7a38
AO
8323 done
8324fi
8325
8326for ncn_progname in dlltool; do
2693c0b0
PB
8327 if test -n "$ncn_tool_prefix"; then
8328 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8329set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331$as_echo_n "checking for $ac_word... " >&6; }
8332if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8333 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8334else
8335 if test -n "$DLLTOOL"; then
8336 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8337else
1c710c3c
DJ
8338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339for as_dir in $PATH
8340do
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
5213506e
RW
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8345 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8347 break 2
8348 fi
8349done
5213506e
RW
8350 done
8351IFS=$as_save_IFS
1c710c3c 8352
ca9f4b81
AO
8353fi
8354fi
1c710c3c 8355DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8356if test -n "$DLLTOOL"; then
5213506e
RW
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8358$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8359else
5213506e
RW
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361$as_echo "no" >&6; }
ca9f4b81
AO
8362fi
8363
5213506e 8364
2693c0b0
PB
8365 fi
8366 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8368set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370$as_echo_n "checking for $ac_word... " >&6; }
8371if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
ca9f4b81 8373else
2693c0b0
PB
8374 if test -n "$DLLTOOL"; then
8375 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8376else
1c710c3c
DJ
8377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378for as_dir in $PATH
8379do
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
5213506e
RW
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8384 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8386 break 2
8387 fi
8388done
5213506e
RW
8389 done
8390IFS=$as_save_IFS
1c710c3c 8391
ca9f4b81
AO
8392fi
8393fi
1c710c3c 8394DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8395if test -n "$DLLTOOL"; then
5213506e
RW
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8397$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8398else
5213506e
RW
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400$as_echo "no" >&6; }
ca9f4b81 8401fi
1c710c3c 8402
5213506e 8403
2693c0b0
PB
8404 fi
8405 test -n "$ac_cv_prog_DLLTOOL" && break
8406done
8407
8408if test -z "$ac_cv_prog_DLLTOOL" ; then
8409 set dummy dlltool
8410 if test $build = $host ; then
8411 DLLTOOL="$2"
ca9f4b81 8412 else
2693c0b0 8413 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8414 fi
ca9f4b81
AO
8415fi
8416
278a7a38
AO
8417
8418
8419if test -n "$LD"; then
8420 ac_cv_prog_LD=$LD
8421elif test -n "$ac_cv_prog_LD"; then
8422 LD=$ac_cv_prog_LD
8423fi
8424
8425if test -n "$ac_cv_prog_LD"; then
8426 for ncn_progname in ld; do
8427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8428set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430$as_echo_n "checking for $ac_word... " >&6; }
8431if test "${ac_cv_prog_LD+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
278a7a38
AO
8433else
8434 if test -n "$LD"; then
8435 ac_cv_prog_LD="$LD" # Let the user override the test.
8436else
8437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438for as_dir in $PATH
8439do
8440 IFS=$as_save_IFS
8441 test -z "$as_dir" && as_dir=.
5213506e
RW
8442 for ac_exec_ext in '' $ac_executable_extensions; do
8443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8444 ac_cv_prog_LD="${ncn_progname}"
5213506e 8445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8446 break 2
8447 fi
8448done
5213506e
RW
8449 done
8450IFS=$as_save_IFS
278a7a38
AO
8451
8452fi
8453fi
8454LD=$ac_cv_prog_LD
8455if test -n "$LD"; then
5213506e
RW
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8457$as_echo "$LD" >&6; }
278a7a38 8458else
5213506e
RW
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8460$as_echo "no" >&6; }
278a7a38
AO
8461fi
8462
5213506e 8463
278a7a38
AO
8464 done
8465fi
8466
8467for ncn_progname in ld; do
2693c0b0
PB
8468 if test -n "$ncn_tool_prefix"; then
8469 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8470set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472$as_echo_n "checking for $ac_word... " >&6; }
8473if test "${ac_cv_prog_LD+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8475else
8476 if test -n "$LD"; then
8477 ac_cv_prog_LD="$LD" # Let the user override the test.
8478else
1c710c3c
DJ
8479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480for as_dir in $PATH
8481do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
5213506e
RW
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8486 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8488 break 2
8489 fi
8490done
5213506e
RW
8491 done
8492IFS=$as_save_IFS
1c710c3c 8493
ca9f4b81
AO
8494fi
8495fi
1c710c3c 8496LD=$ac_cv_prog_LD
ca9f4b81 8497if test -n "$LD"; then
5213506e
RW
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8499$as_echo "$LD" >&6; }
ca9f4b81 8500else
5213506e
RW
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502$as_echo "no" >&6; }
ca9f4b81
AO
8503fi
8504
5213506e 8505
2693c0b0
PB
8506 fi
8507 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8509set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511$as_echo_n "checking for $ac_word... " >&6; }
8512if test "${ac_cv_prog_LD+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
ca9f4b81 8514else
2693c0b0
PB
8515 if test -n "$LD"; then
8516 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8517else
1c710c3c
DJ
8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
8520do
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
5213506e
RW
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8525 ac_cv_prog_LD="${ncn_progname}"
5213506e 8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8527 break 2
8528 fi
8529done
5213506e
RW
8530 done
8531IFS=$as_save_IFS
1c710c3c 8532
ca9f4b81
AO
8533fi
8534fi
1c710c3c 8535LD=$ac_cv_prog_LD
2693c0b0 8536if test -n "$LD"; then
5213506e
RW
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8538$as_echo "$LD" >&6; }
ca9f4b81 8539else
5213506e
RW
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
ca9f4b81 8542fi
1c710c3c 8543
5213506e 8544
2693c0b0
PB
8545 fi
8546 test -n "$ac_cv_prog_LD" && break
8547done
8548
8549if test -z "$ac_cv_prog_LD" ; then
8550 set dummy ld
8551 if test $build = $host ; then
8552 LD="$2"
ca9f4b81 8553 else
2693c0b0 8554 LD="${ncn_tool_prefix}$2"
ca9f4b81 8555 fi
ca9f4b81
AO
8556fi
8557
278a7a38
AO
8558
8559
8560if test -n "$LIPO"; then
8561 ac_cv_prog_LIPO=$LIPO
8562elif test -n "$ac_cv_prog_LIPO"; then
8563 LIPO=$ac_cv_prog_LIPO
8564fi
8565
8566if test -n "$ac_cv_prog_LIPO"; then
8567 for ncn_progname in lipo; do
8568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8569set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571$as_echo_n "checking for $ac_word... " >&6; }
8572if test "${ac_cv_prog_LIPO+set}" = set; then :
8573 $as_echo_n "(cached) " >&6
278a7a38
AO
8574else
8575 if test -n "$LIPO"; then
8576 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8577else
8578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579for as_dir in $PATH
8580do
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
5213506e
RW
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8585 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8587 break 2
8588 fi
8589done
5213506e
RW
8590 done
8591IFS=$as_save_IFS
278a7a38
AO
8592
8593fi
8594fi
8595LIPO=$ac_cv_prog_LIPO
8596if test -n "$LIPO"; then
5213506e
RW
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8598$as_echo "$LIPO" >&6; }
278a7a38 8599else
5213506e
RW
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601$as_echo "no" >&6; }
278a7a38
AO
8602fi
8603
5213506e 8604
278a7a38
AO
8605 done
8606fi
8607
8608for ncn_progname in lipo; do
2abefe3d
PB
8609 if test -n "$ncn_tool_prefix"; then
8610 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8611set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8613$as_echo_n "checking for $ac_word... " >&6; }
8614if test "${ac_cv_prog_LIPO+set}" = set; then :
8615 $as_echo_n "(cached) " >&6
2abefe3d
PB
8616else
8617 if test -n "$LIPO"; then
8618 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8619else
1c710c3c
DJ
8620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621for as_dir in $PATH
8622do
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
5213506e
RW
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8627 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8629 break 2
8630 fi
8631done
5213506e
RW
8632 done
8633IFS=$as_save_IFS
1c710c3c 8634
2abefe3d
PB
8635fi
8636fi
1c710c3c 8637LIPO=$ac_cv_prog_LIPO
2abefe3d 8638if test -n "$LIPO"; then
5213506e
RW
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8640$as_echo "$LIPO" >&6; }
2abefe3d 8641else
5213506e
RW
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643$as_echo "no" >&6; }
2abefe3d
PB
8644fi
8645
5213506e 8646
2abefe3d
PB
8647 fi
8648 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8650set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652$as_echo_n "checking for $ac_word... " >&6; }
8653if test "${ac_cv_prog_LIPO+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
2abefe3d
PB
8655else
8656 if test -n "$LIPO"; then
8657 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8658else
1c710c3c
DJ
8659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660for as_dir in $PATH
8661do
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
5213506e
RW
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8666 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8668 break 2
8669 fi
8670done
5213506e
RW
8671 done
8672IFS=$as_save_IFS
1c710c3c 8673
2abefe3d
PB
8674fi
8675fi
1c710c3c 8676LIPO=$ac_cv_prog_LIPO
2abefe3d 8677if test -n "$LIPO"; then
5213506e
RW
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8679$as_echo "$LIPO" >&6; }
2abefe3d 8680else
5213506e
RW
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682$as_echo "no" >&6; }
2abefe3d 8683fi
1c710c3c 8684
5213506e 8685
2abefe3d
PB
8686 fi
8687 test -n "$ac_cv_prog_LIPO" && break
8688done
8689
8690if test -z "$ac_cv_prog_LIPO" ; then
8691 set dummy lipo
8692 if test $build = $host ; then
8693 LIPO="$2"
8694 else
8695 LIPO="${ncn_tool_prefix}$2"
8696 fi
8697fi
8698
278a7a38
AO
8699
8700
8701if test -n "$NM"; then
8702 ac_cv_prog_NM=$NM
8703elif test -n "$ac_cv_prog_NM"; then
8704 NM=$ac_cv_prog_NM
8705fi
8706
8707if test -n "$ac_cv_prog_NM"; then
8708 for ncn_progname in nm; do
8709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8710set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712$as_echo_n "checking for $ac_word... " >&6; }
8713if test "${ac_cv_prog_NM+set}" = set; then :
8714 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8715else
8716 if test -n "$NM"; then
8717 ac_cv_prog_NM="$NM" # Let the user override the test.
8718else
1c710c3c
DJ
8719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720for as_dir in $PATH
8721do
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
5213506e
RW
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8726 ac_cv_prog_NM="${ncn_progname}"
5213506e 8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8728 break 2
8729 fi
8730done
5213506e
RW
8731 done
8732IFS=$as_save_IFS
1c710c3c 8733
ca9f4b81
AO
8734fi
8735fi
1c710c3c 8736NM=$ac_cv_prog_NM
ca9f4b81 8737if test -n "$NM"; then
5213506e
RW
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8739$as_echo "$NM" >&6; }
ca9f4b81 8740else
5213506e
RW
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742$as_echo "no" >&6; }
ca9f4b81
AO
8743fi
8744
5213506e 8745
278a7a38
AO
8746 done
8747fi
8748
8749for ncn_progname in nm; do
8750 if test -n "$ncn_tool_prefix"; then
8751 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8752set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754$as_echo_n "checking for $ac_word... " >&6; }
8755if test "${ac_cv_prog_NM+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
ca9f4b81 8757else
2693c0b0
PB
8758 if test -n "$NM"; then
8759 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8760else
1c710c3c
DJ
8761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $PATH
8763do
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
5213506e
RW
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8768 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8770 break 2
8771 fi
8772done
5213506e
RW
8773 done
8774IFS=$as_save_IFS
1c710c3c 8775
ca9f4b81
AO
8776fi
8777fi
1c710c3c 8778NM=$ac_cv_prog_NM
2693c0b0 8779if test -n "$NM"; then
5213506e
RW
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8781$as_echo "$NM" >&6; }
ca9f4b81 8782else
5213506e
RW
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784$as_echo "no" >&6; }
ca9f4b81 8785fi
1c710c3c 8786
5213506e 8787
2693c0b0 8788 fi
278a7a38
AO
8789 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8791set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793$as_echo_n "checking for $ac_word... " >&6; }
8794if test "${ac_cv_prog_NM+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
278a7a38
AO
8796else
8797 if test -n "$NM"; then
8798 ac_cv_prog_NM="$NM" # Let the user override the test.
8799else
8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
5213506e
RW
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8807 ac_cv_prog_NM="${ncn_progname}"
5213506e 8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8809 break 2
8810 fi
8811done
5213506e
RW
8812 done
8813IFS=$as_save_IFS
278a7a38
AO
8814
8815fi
8816fi
8817NM=$ac_cv_prog_NM
8818if test -n "$NM"; then
5213506e
RW
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8820$as_echo "$NM" >&6; }
278a7a38 8821else
5213506e
RW
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823$as_echo "no" >&6; }
278a7a38
AO
8824fi
8825
5213506e 8826
278a7a38
AO
8827 fi
8828 test -n "$ac_cv_prog_NM" && break
8829done
8830
8831if test -z "$ac_cv_prog_NM" ; then
8832 set dummy nm
8833 if test $build = $host ; then
8834 NM="$2"
8835 else
8836 NM="${ncn_tool_prefix}$2"
8837 fi
8838fi
8839
8840
8841
8842if test -n "$RANLIB"; then
8843 ac_cv_prog_RANLIB=$RANLIB
8844elif test -n "$ac_cv_prog_RANLIB"; then
8845 RANLIB=$ac_cv_prog_RANLIB
8846fi
8847
8848if test -n "$ac_cv_prog_RANLIB"; then
8849 for ncn_progname in ranlib; do
8850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8851set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8853$as_echo_n "checking for $ac_word... " >&6; }
8854if test "${ac_cv_prog_RANLIB+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
278a7a38
AO
8856else
8857 if test -n "$RANLIB"; then
8858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8859else
8860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861for as_dir in $PATH
8862do
8863 IFS=$as_save_IFS
8864 test -z "$as_dir" && as_dir=.
5213506e
RW
8865 for ac_exec_ext in '' $ac_executable_extensions; do
8866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8867 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8869 break 2
8870 fi
8871done
5213506e
RW
8872 done
8873IFS=$as_save_IFS
278a7a38
AO
8874
8875fi
8876fi
8877RANLIB=$ac_cv_prog_RANLIB
8878if test -n "$RANLIB"; then
5213506e
RW
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8880$as_echo "$RANLIB" >&6; }
278a7a38 8881else
5213506e
RW
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883$as_echo "no" >&6; }
278a7a38
AO
8884fi
8885
5213506e 8886
278a7a38
AO
8887 done
8888fi
ca9f4b81 8889
278a7a38 8890for ncn_progname in ranlib; do
2693c0b0
PB
8891 if test -n "$ncn_tool_prefix"; then
8892 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8893set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895$as_echo_n "checking for $ac_word... " >&6; }
8896if test "${ac_cv_prog_RANLIB+set}" = set; then :
8897 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8898else
8899 if test -n "$RANLIB"; then
8900 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8901else
1c710c3c
DJ
8902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903for as_dir in $PATH
8904do
8905 IFS=$as_save_IFS
8906 test -z "$as_dir" && as_dir=.
5213506e
RW
8907 for ac_exec_ext in '' $ac_executable_extensions; do
8908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8909 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8911 break 2
8912 fi
8913done
5213506e
RW
8914 done
8915IFS=$as_save_IFS
1c710c3c 8916
ca9f4b81
AO
8917fi
8918fi
1c710c3c 8919RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8920if test -n "$RANLIB"; then
5213506e
RW
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8922$as_echo "$RANLIB" >&6; }
ca9f4b81 8923else
5213506e
RW
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925$as_echo "no" >&6; }
ca9f4b81
AO
8926fi
8927
5213506e 8928
2693c0b0
PB
8929 fi
8930 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8932set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934$as_echo_n "checking for $ac_word... " >&6; }
8935if test "${ac_cv_prog_RANLIB+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
ca9f4b81 8937else
2693c0b0
PB
8938 if test -n "$RANLIB"; then
8939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8940else
1c710c3c
DJ
8941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942for as_dir in $PATH
8943do
8944 IFS=$as_save_IFS
8945 test -z "$as_dir" && as_dir=.
5213506e
RW
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8948 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8950 break 2
8951 fi
8952done
5213506e
RW
8953 done
8954IFS=$as_save_IFS
1c710c3c 8955
ca9f4b81
AO
8956fi
8957fi
1c710c3c 8958RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8959if test -n "$RANLIB"; then
5213506e
RW
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8961$as_echo "$RANLIB" >&6; }
ca9f4b81 8962else
5213506e
RW
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964$as_echo "no" >&6; }
ca9f4b81 8965fi
1c710c3c 8966
5213506e 8967
ca9f4b81 8968 fi
2693c0b0
PB
8969 test -n "$ac_cv_prog_RANLIB" && break
8970done
8971
8972if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8973 RANLIB="true"
ca9f4b81
AO
8974fi
8975
278a7a38
AO
8976
8977
8978if test -n "$STRIP"; then
8979 ac_cv_prog_STRIP=$STRIP
8980elif test -n "$ac_cv_prog_STRIP"; then
8981 STRIP=$ac_cv_prog_STRIP
8982fi
8983
8984if test -n "$ac_cv_prog_STRIP"; then
8985 for ncn_progname in strip; do
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_STRIP+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
278a7a38
AO
8992else
8993 if test -n "$STRIP"; then
8994 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8995else
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
278a7a38 9003 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9005 break 2
9006 fi
9007done
5213506e
RW
9008 done
9009IFS=$as_save_IFS
278a7a38
AO
9010
9011fi
9012fi
9013STRIP=$ac_cv_prog_STRIP
9014if test -n "$STRIP"; then
5213506e
RW
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9016$as_echo "$STRIP" >&6; }
278a7a38 9017else
5213506e
RW
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019$as_echo "no" >&6; }
278a7a38
AO
9020fi
9021
5213506e 9022
278a7a38
AO
9023 done
9024fi
9025
9026for ncn_progname in strip; do
2abefe3d
PB
9027 if test -n "$ncn_tool_prefix"; then
9028 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9029set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031$as_echo_n "checking for $ac_word... " >&6; }
9032if test "${ac_cv_prog_STRIP+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
2abefe3d
PB
9034else
9035 if test -n "$STRIP"; then
9036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9037else
1c710c3c
DJ
9038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039for as_dir in $PATH
9040do
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
5213506e
RW
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9045 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9047 break 2
9048 fi
9049done
5213506e
RW
9050 done
9051IFS=$as_save_IFS
1c710c3c 9052
2abefe3d
PB
9053fi
9054fi
1c710c3c 9055STRIP=$ac_cv_prog_STRIP
2abefe3d 9056if test -n "$STRIP"; then
5213506e
RW
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9058$as_echo "$STRIP" >&6; }
2abefe3d 9059else
5213506e
RW
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061$as_echo "no" >&6; }
2abefe3d
PB
9062fi
9063
5213506e 9064
2abefe3d
PB
9065 fi
9066 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9068set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070$as_echo_n "checking for $ac_word... " >&6; }
9071if test "${ac_cv_prog_STRIP+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
2abefe3d
PB
9073else
9074 if test -n "$STRIP"; then
9075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9076else
1c710c3c
DJ
9077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078for as_dir in $PATH
9079do
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
5213506e
RW
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9084 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9086 break 2
9087 fi
9088done
5213506e
RW
9089 done
9090IFS=$as_save_IFS
1c710c3c 9091
2abefe3d
PB
9092fi
9093fi
1c710c3c 9094STRIP=$ac_cv_prog_STRIP
2abefe3d 9095if test -n "$STRIP"; then
5213506e
RW
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9097$as_echo "$STRIP" >&6; }
2abefe3d 9098else
5213506e
RW
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100$as_echo "no" >&6; }
2abefe3d 9101fi
1c710c3c 9102
5213506e 9103
2abefe3d
PB
9104 fi
9105 test -n "$ac_cv_prog_STRIP" && break
9106done
9107
9108if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9109 STRIP="true"
2abefe3d
PB
9110fi
9111
278a7a38
AO
9112
9113
9114if test -n "$WINDRES"; then
9115 ac_cv_prog_WINDRES=$WINDRES
9116elif test -n "$ac_cv_prog_WINDRES"; then
9117 WINDRES=$ac_cv_prog_WINDRES
9118fi
9119
9120if test -n "$ac_cv_prog_WINDRES"; then
9121 for ncn_progname in windres; do
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_WINDRES+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
278a7a38
AO
9128else
9129 if test -n "$WINDRES"; then
9130 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9131else
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
278a7a38 9139 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9141 break 2
9142 fi
9143done
5213506e
RW
9144 done
9145IFS=$as_save_IFS
278a7a38
AO
9146
9147fi
9148fi
9149WINDRES=$ac_cv_prog_WINDRES
9150if test -n "$WINDRES"; then
5213506e
RW
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9152$as_echo "$WINDRES" >&6; }
278a7a38 9153else
5213506e
RW
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9155$as_echo "no" >&6; }
278a7a38
AO
9156fi
9157
5213506e 9158
278a7a38
AO
9159 done
9160fi
9161
9162for ncn_progname in windres; do
2693c0b0
PB
9163 if test -n "$ncn_tool_prefix"; then
9164 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9165set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9167$as_echo_n "checking for $ac_word... " >&6; }
9168if test "${ac_cv_prog_WINDRES+set}" = set; then :
9169 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9170else
9171 if test -n "$WINDRES"; then
9172 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9173else
1c710c3c
DJ
9174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9175for as_dir in $PATH
9176do
9177 IFS=$as_save_IFS
9178 test -z "$as_dir" && as_dir=.
5213506e
RW
9179 for ac_exec_ext in '' $ac_executable_extensions; do
9180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9181 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9183 break 2
9184 fi
9185done
5213506e
RW
9186 done
9187IFS=$as_save_IFS
1c710c3c 9188
ca9f4b81
AO
9189fi
9190fi
1c710c3c 9191WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9192if test -n "$WINDRES"; then
5213506e
RW
9193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9194$as_echo "$WINDRES" >&6; }
ca9f4b81 9195else
5213506e
RW
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9197$as_echo "no" >&6; }
ca9f4b81
AO
9198fi
9199
5213506e 9200
2693c0b0
PB
9201 fi
9202 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9204set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206$as_echo_n "checking for $ac_word... " >&6; }
9207if test "${ac_cv_prog_WINDRES+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
ca9f4b81 9209else
2693c0b0
PB
9210 if test -n "$WINDRES"; then
9211 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9212else
1c710c3c
DJ
9213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214for as_dir in $PATH
9215do
9216 IFS=$as_save_IFS
9217 test -z "$as_dir" && as_dir=.
5213506e
RW
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9220 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9222 break 2
9223 fi
9224done
5213506e
RW
9225 done
9226IFS=$as_save_IFS
1c710c3c 9227
ca9f4b81
AO
9228fi
9229fi
1c710c3c 9230WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9231if test -n "$WINDRES"; then
5213506e
RW
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9233$as_echo "$WINDRES" >&6; }
ca9f4b81 9234else
5213506e
RW
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236$as_echo "no" >&6; }
ca9f4b81 9237fi
1c710c3c 9238
5213506e 9239
2693c0b0
PB
9240 fi
9241 test -n "$ac_cv_prog_WINDRES" && break
9242done
9243
9244if test -z "$ac_cv_prog_WINDRES" ; then
9245 set dummy windres
9246 if test $build = $host ; then
9247 WINDRES="$2"
ca9f4b81 9248 else
2693c0b0 9249 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9250 fi
ca9f4b81
AO
9251fi
9252
278a7a38
AO
9253
9254
901119ae
KT
9255if test -n "$WINDMC"; then
9256 ac_cv_prog_WINDMC=$WINDMC
9257elif test -n "$ac_cv_prog_WINDMC"; then
9258 WINDMC=$ac_cv_prog_WINDMC
9259fi
9260
9261if test -n "$ac_cv_prog_WINDMC"; then
9262 for ncn_progname in windmc; do
9263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9264set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266$as_echo_n "checking for $ac_word... " >&6; }
9267if test "${ac_cv_prog_WINDMC+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
901119ae
KT
9269else
9270 if test -n "$WINDMC"; then
9271 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9272else
9273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274for as_dir in $PATH
9275do
9276 IFS=$as_save_IFS
9277 test -z "$as_dir" && as_dir=.
5213506e
RW
9278 for ac_exec_ext in '' $ac_executable_extensions; do
9279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9280 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9282 break 2
9283 fi
9284done
5213506e
RW
9285 done
9286IFS=$as_save_IFS
901119ae
KT
9287
9288fi
9289fi
9290WINDMC=$ac_cv_prog_WINDMC
9291if test -n "$WINDMC"; then
5213506e
RW
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9293$as_echo "$WINDMC" >&6; }
901119ae 9294else
5213506e
RW
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9296$as_echo "no" >&6; }
901119ae
KT
9297fi
9298
5213506e 9299
901119ae
KT
9300 done
9301fi
9302
9303for ncn_progname in windmc; do
9304 if test -n "$ncn_tool_prefix"; then
9305 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9306set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9308$as_echo_n "checking for $ac_word... " >&6; }
9309if test "${ac_cv_prog_WINDMC+set}" = set; then :
9310 $as_echo_n "(cached) " >&6
901119ae
KT
9311else
9312 if test -n "$WINDMC"; then
9313 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9314else
9315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9316for as_dir in $PATH
9317do
9318 IFS=$as_save_IFS
9319 test -z "$as_dir" && as_dir=.
5213506e
RW
9320 for ac_exec_ext in '' $ac_executable_extensions; do
9321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9322 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9324 break 2
9325 fi
9326done
5213506e
RW
9327 done
9328IFS=$as_save_IFS
901119ae
KT
9329
9330fi
9331fi
9332WINDMC=$ac_cv_prog_WINDMC
9333if test -n "$WINDMC"; then
5213506e
RW
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9335$as_echo "$WINDMC" >&6; }
901119ae 9336else
5213506e
RW
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9338$as_echo "no" >&6; }
901119ae
KT
9339fi
9340
5213506e 9341
901119ae
KT
9342 fi
9343 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9345set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347$as_echo_n "checking for $ac_word... " >&6; }
9348if test "${ac_cv_prog_WINDMC+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
901119ae
KT
9350else
9351 if test -n "$WINDMC"; then
9352 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9353else
9354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
5213506e
RW
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9361 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9363 break 2
9364 fi
9365done
5213506e
RW
9366 done
9367IFS=$as_save_IFS
901119ae
KT
9368
9369fi
9370fi
9371WINDMC=$ac_cv_prog_WINDMC
9372if test -n "$WINDMC"; then
5213506e
RW
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9374$as_echo "$WINDMC" >&6; }
901119ae 9375else
5213506e
RW
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377$as_echo "no" >&6; }
901119ae
KT
9378fi
9379
5213506e 9380
901119ae
KT
9381 fi
9382 test -n "$ac_cv_prog_WINDMC" && break
9383done
9384
9385if test -z "$ac_cv_prog_WINDMC" ; then
9386 set dummy windmc
9387 if test $build = $host ; then
9388 WINDMC="$2"
9389 else
9390 WINDMC="${ncn_tool_prefix}$2"
9391 fi
9392fi
9393
9394
9395
278a7a38
AO
9396if test -n "$OBJCOPY"; then
9397 ac_cv_prog_OBJCOPY=$OBJCOPY
9398elif test -n "$ac_cv_prog_OBJCOPY"; then
9399 OBJCOPY=$ac_cv_prog_OBJCOPY
9400fi
9401
9402if test -n "$ac_cv_prog_OBJCOPY"; then
9403 for ncn_progname in objcopy; do
9404 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9405set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407$as_echo_n "checking for $ac_word... " >&6; }
9408if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9409 $as_echo_n "(cached) " >&6
278a7a38
AO
9410else
9411 if test -n "$OBJCOPY"; then
9412 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9413else
9414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9415for as_dir in $PATH
9416do
9417 IFS=$as_save_IFS
9418 test -z "$as_dir" && as_dir=.
5213506e
RW
9419 for ac_exec_ext in '' $ac_executable_extensions; do
9420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9421 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9423 break 2
9424 fi
9425done
5213506e
RW
9426 done
9427IFS=$as_save_IFS
278a7a38
AO
9428
9429fi
9430fi
9431OBJCOPY=$ac_cv_prog_OBJCOPY
9432if test -n "$OBJCOPY"; then
5213506e
RW
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9434$as_echo "$OBJCOPY" >&6; }
278a7a38 9435else
5213506e
RW
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9437$as_echo "no" >&6; }
278a7a38
AO
9438fi
9439
5213506e 9440
278a7a38
AO
9441 done
9442fi
9443
9444for ncn_progname in objcopy; do
2693c0b0
PB
9445 if test -n "$ncn_tool_prefix"; then
9446 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9447set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9449$as_echo_n "checking for $ac_word... " >&6; }
9450if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9452else
9453 if test -n "$OBJCOPY"; then
9454 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9455else
1c710c3c
DJ
9456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9457for as_dir in $PATH
9458do
9459 IFS=$as_save_IFS
9460 test -z "$as_dir" && as_dir=.
5213506e
RW
9461 for ac_exec_ext in '' $ac_executable_extensions; do
9462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9463 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9465 break 2
9466 fi
9467done
5213506e
RW
9468 done
9469IFS=$as_save_IFS
1c710c3c 9470
ca9f4b81
AO
9471fi
9472fi
1c710c3c 9473OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9474if test -n "$OBJCOPY"; then
5213506e
RW
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9476$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9477else
5213506e
RW
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9479$as_echo "no" >&6; }
ca9f4b81
AO
9480fi
9481
5213506e 9482
2693c0b0
PB
9483 fi
9484 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9486set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488$as_echo_n "checking for $ac_word... " >&6; }
9489if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
ca9f4b81 9491else
2693c0b0
PB
9492 if test -n "$OBJCOPY"; then
9493 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9494else
1c710c3c
DJ
9495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496for as_dir in $PATH
9497do
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
5213506e
RW
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9502 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9504 break 2
9505 fi
9506done
5213506e
RW
9507 done
9508IFS=$as_save_IFS
1c710c3c 9509
ca9f4b81
AO
9510fi
9511fi
1c710c3c 9512OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9513if test -n "$OBJCOPY"; then
5213506e
RW
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9515$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9516else
5213506e
RW
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518$as_echo "no" >&6; }
ca9f4b81 9519fi
1c710c3c 9520
5213506e 9521
2693c0b0
PB
9522 fi
9523 test -n "$ac_cv_prog_OBJCOPY" && break
9524done
9525
9526if test -z "$ac_cv_prog_OBJCOPY" ; then
9527 set dummy objcopy
9528 if test $build = $host ; then
9529 OBJCOPY="$2"
ca9f4b81 9530 else
2693c0b0 9531 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9532 fi
ca9f4b81
AO
9533fi
9534
278a7a38
AO
9535
9536
9537if test -n "$OBJDUMP"; then
9538 ac_cv_prog_OBJDUMP=$OBJDUMP
9539elif test -n "$ac_cv_prog_OBJDUMP"; then
9540 OBJDUMP=$ac_cv_prog_OBJDUMP
9541fi
9542
9543if test -n "$ac_cv_prog_OBJDUMP"; then
9544 for ncn_progname in objdump; do
9545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9546set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548$as_echo_n "checking for $ac_word... " >&6; }
9549if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
278a7a38
AO
9551else
9552 if test -n "$OBJDUMP"; then
9553 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9554else
9555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9556for as_dir in $PATH
9557do
9558 IFS=$as_save_IFS
9559 test -z "$as_dir" && as_dir=.
5213506e
RW
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9562 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9564 break 2
9565 fi
9566done
5213506e
RW
9567 done
9568IFS=$as_save_IFS
278a7a38
AO
9569
9570fi
9571fi
9572OBJDUMP=$ac_cv_prog_OBJDUMP
9573if test -n "$OBJDUMP"; then
5213506e
RW
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9575$as_echo "$OBJDUMP" >&6; }
278a7a38 9576else
5213506e
RW
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578$as_echo "no" >&6; }
278a7a38
AO
9579fi
9580
5213506e 9581
278a7a38
AO
9582 done
9583fi
9584
9585for ncn_progname in objdump; do
2693c0b0
PB
9586 if test -n "$ncn_tool_prefix"; then
9587 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9588set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9590$as_echo_n "checking for $ac_word... " >&6; }
9591if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9592 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9593else
9594 if test -n "$OBJDUMP"; then
9595 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9596else
1c710c3c
DJ
9597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598for as_dir in $PATH
9599do
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
5213506e
RW
9602 for ac_exec_ext in '' $ac_executable_extensions; do
9603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9604 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9606 break 2
9607 fi
9608done
5213506e
RW
9609 done
9610IFS=$as_save_IFS
1c710c3c 9611
ca9f4b81
AO
9612fi
9613fi
1c710c3c 9614OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9615if test -n "$OBJDUMP"; then
5213506e
RW
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9617$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9618else
5213506e
RW
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9620$as_echo "no" >&6; }
ca9f4b81
AO
9621fi
9622
5213506e 9623
2693c0b0
PB
9624 fi
9625 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629$as_echo_n "checking for $ac_word... " >&6; }
9630if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
ca9f4b81 9632else
2693c0b0
PB
9633 if test -n "$OBJDUMP"; then
9634 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9635else
1c710c3c
DJ
9636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637for as_dir in $PATH
9638do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
5213506e
RW
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9643 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9645 break 2
9646 fi
9647done
5213506e
RW
9648 done
9649IFS=$as_save_IFS
1c710c3c 9650
ca9f4b81
AO
9651fi
9652fi
1c710c3c 9653OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9654if test -n "$OBJDUMP"; then
5213506e
RW
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9656$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9657else
5213506e
RW
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659$as_echo "no" >&6; }
ca9f4b81 9660fi
1c710c3c 9661
5213506e 9662
2693c0b0
PB
9663 fi
9664 test -n "$ac_cv_prog_OBJDUMP" && break
9665done
9666
9667if test -z "$ac_cv_prog_OBJDUMP" ; then
9668 set dummy objdump
9669 if test $build = $host ; then
9670 OBJDUMP="$2"
ca9f4b81 9671 else
2693c0b0 9672 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9673 fi
ca9f4b81
AO
9674fi
9675
671aa708
NN
9676
9677
e7a82751
RM
9678if test -n "$READELF"; then
9679 ac_cv_prog_READELF=$READELF
9680elif test -n "$ac_cv_prog_READELF"; then
9681 READELF=$ac_cv_prog_READELF
9682fi
9683
9684if test -n "$ac_cv_prog_READELF"; then
9685 for ncn_progname in readelf; do
9686 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9687set dummy ${ncn_progname}; ac_word=$2
9688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9689$as_echo_n "checking for $ac_word... " >&6; }
9690if test "${ac_cv_prog_READELF+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9692else
9693 if test -n "$READELF"; then
9694 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9695else
9696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697for as_dir in $PATH
9698do
9699 IFS=$as_save_IFS
9700 test -z "$as_dir" && as_dir=.
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9703 ac_cv_prog_READELF="${ncn_progname}"
9704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9705 break 2
9706 fi
9707done
9708 done
9709IFS=$as_save_IFS
9710
9711fi
9712fi
9713READELF=$ac_cv_prog_READELF
9714if test -n "$READELF"; then
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9716$as_echo "$READELF" >&6; }
9717else
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9719$as_echo "no" >&6; }
9720fi
9721
9722
9723 done
9724fi
9725
9726for ncn_progname in readelf; do
9727 if test -n "$ncn_tool_prefix"; then
9728 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9729set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731$as_echo_n "checking for $ac_word... " >&6; }
9732if test "${ac_cv_prog_READELF+set}" = set; then :
9733 $as_echo_n "(cached) " >&6
9734else
9735 if test -n "$READELF"; then
9736 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9737else
9738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739for as_dir in $PATH
9740do
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
9743 for ac_exec_ext in '' $ac_executable_extensions; do
9744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9745 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9747 break 2
9748 fi
9749done
9750 done
9751IFS=$as_save_IFS
9752
9753fi
9754fi
9755READELF=$ac_cv_prog_READELF
9756if test -n "$READELF"; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9758$as_echo "$READELF" >&6; }
9759else
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9761$as_echo "no" >&6; }
9762fi
9763
9764
9765 fi
9766 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9768set dummy ${ncn_progname}; ac_word=$2
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770$as_echo_n "checking for $ac_word... " >&6; }
9771if test "${ac_cv_prog_READELF+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
9773else
9774 if test -n "$READELF"; then
9775 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9776else
9777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778for as_dir in $PATH
9779do
9780 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_prog_READELF="${ncn_progname}"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 break 2
9787 fi
9788done
9789 done
9790IFS=$as_save_IFS
9791
9792fi
9793fi
9794READELF=$ac_cv_prog_READELF
9795if test -n "$READELF"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9797$as_echo "$READELF" >&6; }
9798else
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800$as_echo "no" >&6; }
9801fi
9802
9803
9804 fi
9805 test -n "$ac_cv_prog_READELF" && break
9806done
9807
9808if test -z "$ac_cv_prog_READELF" ; then
9809 set dummy readelf
9810 if test $build = $host ; then
9811 READELF="$2"
9812 else
9813 READELF="${ncn_tool_prefix}$2"
9814 fi
9815fi
9816
9817
9818
671aa708
NN
9819
9820
9821
2abefe3d 9822# Target tools.
1c710c3c 9823
5213506e
RW
9824# Check whether --with-build-time-tools was given.
9825if test "${with_build_time_tools+set}" = set; then :
9826 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9827 x/*) ;;
9828 *)
9829 with_build_time_tools=
5213506e
RW
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9831$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9832 ;;
9833 esac
ca9f4b81 9834else
e8b05380 9835 with_build_time_tools=
5213506e
RW
9836fi
9837
ca9f4b81 9838
278a7a38
AO
9839
9840
9841if test -n "$CC_FOR_TARGET"; then
9842 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9843elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9844 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9845fi
9846
9847if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9848 for ncn_progname in cc gcc; do
9849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9850set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9852$as_echo_n "checking for $ac_word... " >&6; }
9853if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9854 $as_echo_n "(cached) " >&6
278a7a38
AO
9855else
9856 if test -n "$CC_FOR_TARGET"; then
9857 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9858else
9859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860for as_dir in $PATH
9861do
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
5213506e
RW
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9866 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9868 break 2
9869 fi
9870done
5213506e
RW
9871 done
9872IFS=$as_save_IFS
278a7a38
AO
9873
9874fi
9875fi
9876CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9877if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9879$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9880else
5213506e
RW
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9882$as_echo "no" >&6; }
278a7a38
AO
9883fi
9884
5213506e 9885
278a7a38
AO
9886 done
9887fi
9888
9889if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9890 for ncn_progname in cc gcc; do
5213506e
RW
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9892$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9893 if test -x $with_build_time_tools/${ncn_progname}; then
9894 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9896$as_echo "yes" >&6; }
72a7ab82 9897 break
e8b05380 9898 else
5213506e
RW
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9900$as_echo "no" >&6; }
72a7ab82
AP
9901 fi
9902 done
4de997d1
PB
9903fi
9904
e8b05380
PB
9905if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9906 for ncn_progname in cc gcc; do
9907 if test -n "$ncn_target_tool_prefix"; then
9908 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9909set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9911$as_echo_n "checking for $ac_word... " >&6; }
9912if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9913 $as_echo_n "(cached) " >&6
4de997d1
PB
9914else
9915 if test -n "$CC_FOR_TARGET"; then
9916 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9917else
1c710c3c
DJ
9918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919for as_dir in $PATH
9920do
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
5213506e
RW
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9925 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9927 break 2
9928 fi
9929done
5213506e
RW
9930 done
9931IFS=$as_save_IFS
1c710c3c 9932
4de997d1
PB
9933fi
9934fi
1c710c3c 9935CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9936if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9938$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9939else
5213506e
RW
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9941$as_echo "no" >&6; }
4de997d1
PB
9942fi
9943
5213506e 9944
e8b05380
PB
9945 fi
9946 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9948set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950$as_echo_n "checking for $ac_word... " >&6; }
9951if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9952 $as_echo_n "(cached) " >&6
4de997d1 9953else
2693c0b0
PB
9954 if test -n "$CC_FOR_TARGET"; then
9955 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9956else
1c710c3c
DJ
9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
5213506e
RW
9962 for ac_exec_ext in '' $ac_executable_extensions; do
9963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9964 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9966 break 2
9967 fi
9968done
5213506e
RW
9969 done
9970IFS=$as_save_IFS
1c710c3c 9971
4de997d1
PB
9972fi
9973fi
1c710c3c 9974CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9975if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9977$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9978else
5213506e
RW
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9980$as_echo "no" >&6; }
4de997d1 9981fi
1c710c3c 9982
5213506e 9983
e8b05380
PB
9984 fi
9985 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9986 done
9987fi
1c710c3c 9988
2693c0b0
PB
9989if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9990 set dummy cc gcc
9991 if test $build = $target ; then
9992 CC_FOR_TARGET="$2"
4de997d1 9993 else
2693c0b0 9994 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9995 fi
1c00b503
PB
9996else
9997 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9998fi
9999
278a7a38
AO
10000
10001
10002if test -n "$CXX_FOR_TARGET"; then
10003 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10004elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10005 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10006fi
10007
10008if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10009 for ncn_progname in c++ g++ cxx gxx; do
10010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10011set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013$as_echo_n "checking for $ac_word... " >&6; }
10014if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10015 $as_echo_n "(cached) " >&6
278a7a38
AO
10016else
10017 if test -n "$CXX_FOR_TARGET"; then
10018 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10019else
10020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021for as_dir in $PATH
10022do
10023 IFS=$as_save_IFS
10024 test -z "$as_dir" && as_dir=.
5213506e
RW
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10027 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10029 break 2
10030 fi
10031done
5213506e
RW
10032 done
10033IFS=$as_save_IFS
278a7a38
AO
10034
10035fi
10036fi
10037CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10038if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10040$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 10041else
5213506e
RW
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043$as_echo "no" >&6; }
278a7a38
AO
10044fi
10045
5213506e 10046
278a7a38
AO
10047 done
10048fi
10049
10050if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10051 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10053$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10054 if test -x $with_build_time_tools/${ncn_progname}; then
10055 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10057$as_echo "yes" >&6; }
e8b05380
PB
10058 break
10059 else
5213506e
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061$as_echo "no" >&6; }
e8b05380
PB
10062 fi
10063 done
10064fi
10065
10066if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10067 for ncn_progname in c++ g++ cxx gxx; do
10068 if test -n "$ncn_target_tool_prefix"; then
10069 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10070set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10072$as_echo_n "checking for $ac_word... " >&6; }
10073if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10074 $as_echo_n "(cached) " >&6
4de997d1
PB
10075else
10076 if test -n "$CXX_FOR_TARGET"; then
10077 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10078else
1c710c3c
DJ
10079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10080for as_dir in $PATH
10081do
10082 IFS=$as_save_IFS
10083 test -z "$as_dir" && as_dir=.
5213506e
RW
10084 for ac_exec_ext in '' $ac_executable_extensions; do
10085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10086 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10088 break 2
10089 fi
10090done
5213506e
RW
10091 done
10092IFS=$as_save_IFS
1c710c3c 10093
4de997d1
PB
10094fi
10095fi
1c710c3c 10096CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10097if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10099$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10100else
5213506e
RW
10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10102$as_echo "no" >&6; }
4de997d1
PB
10103fi
10104
5213506e 10105
e8b05380
PB
10106 fi
10107 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10109set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111$as_echo_n "checking for $ac_word... " >&6; }
10112if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10113 $as_echo_n "(cached) " >&6
4de997d1 10114else
2693c0b0
PB
10115 if test -n "$CXX_FOR_TARGET"; then
10116 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10117else
1c710c3c
DJ
10118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10119for as_dir in $PATH
10120do
10121 IFS=$as_save_IFS
10122 test -z "$as_dir" && as_dir=.
5213506e
RW
10123 for ac_exec_ext in '' $ac_executable_extensions; do
10124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10125 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10127 break 2
10128 fi
10129done
5213506e
RW
10130 done
10131IFS=$as_save_IFS
1c710c3c 10132
4de997d1
PB
10133fi
10134fi
1c710c3c 10135CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10136if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10138$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10139else
5213506e
RW
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10141$as_echo "no" >&6; }
4de997d1 10142fi
1c710c3c 10143
5213506e 10144
e8b05380
PB
10145 fi
10146 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10147 done
10148fi
1c710c3c 10149
2693c0b0
PB
10150if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10151 set dummy c++ g++ cxx gxx
10152 if test $build = $target ; then
10153 CXX_FOR_TARGET="$2"
4de997d1 10154 else
2693c0b0 10155 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10156 fi
1c00b503
PB
10157else
10158 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10159fi
10160
278a7a38
AO
10161
10162
10163if test -n "$GCC_FOR_TARGET"; then
10164 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10165elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10166 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10167fi
10168
10169if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10170 for ncn_progname in gcc; do
10171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10172set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174$as_echo_n "checking for $ac_word... " >&6; }
10175if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
278a7a38
AO
10177else
10178 if test -n "$GCC_FOR_TARGET"; then
10179 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10180else
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
5213506e
RW
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10188 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10190 break 2
10191 fi
10192done
5213506e
RW
10193 done
10194IFS=$as_save_IFS
278a7a38
AO
10195
10196fi
10197fi
10198GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10199if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10201$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10202else
5213506e
RW
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
278a7a38
AO
10205fi
10206
5213506e 10207
278a7a38
AO
10208 done
10209fi
10210
10211if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10212 for ncn_progname in gcc; do
5213506e
RW
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10214$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10215 if test -x $with_build_time_tools/${ncn_progname}; then
10216 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10218$as_echo "yes" >&6; }
e8b05380
PB
10219 break
10220 else
5213506e
RW
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222$as_echo "no" >&6; }
e8b05380
PB
10223 fi
10224 done
10225fi
10226
10227if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10228 for ncn_progname in gcc; do
10229 if test -n "$ncn_target_tool_prefix"; then
10230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10231set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233$as_echo_n "checking for $ac_word... " >&6; }
10234if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
ca9f4b81 10236else
e8b05380
PB
10237 if test -n "$GCC_FOR_TARGET"; then
10238 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10239else
1c710c3c
DJ
10240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
5213506e
RW
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10247 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10249 break 2
10250 fi
10251done
5213506e
RW
10252 done
10253IFS=$as_save_IFS
1c710c3c 10254
ca9f4b81
AO
10255fi
10256fi
1c710c3c 10257GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10258if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10260$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10261else
5213506e
RW
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
ca9f4b81
AO
10264fi
10265
5213506e 10266
e8b05380
PB
10267 fi
10268 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10270set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10272$as_echo_n "checking for $ac_word... " >&6; }
10273if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10274 $as_echo_n "(cached) " >&6
ca9f4b81 10275else
e8b05380
PB
10276 if test -n "$GCC_FOR_TARGET"; then
10277 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10278else
1c710c3c
DJ
10279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10280for as_dir in $PATH
10281do
10282 IFS=$as_save_IFS
10283 test -z "$as_dir" && as_dir=.
5213506e
RW
10284 for ac_exec_ext in '' $ac_executable_extensions; do
10285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10286 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10288 break 2
10289 fi
10290done
5213506e
RW
10291 done
10292IFS=$as_save_IFS
1c710c3c 10293
ca9f4b81
AO
10294fi
10295fi
1c710c3c 10296GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10297if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10299$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10300else
5213506e
RW
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10302$as_echo "no" >&6; }
ca9f4b81 10303fi
1c710c3c 10304
5213506e 10305
e8b05380
PB
10306 fi
10307 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10308 done
10309fi
1c710c3c 10310
e8b05380
PB
10311if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10312 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10313else
10314 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10315fi
10316
278a7a38
AO
10317
10318
10319if test -n "$GCJ_FOR_TARGET"; then
10320 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10321elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10322 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10323fi
10324
10325if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10326 for ncn_progname in gcj; do
10327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10328set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10330$as_echo_n "checking for $ac_word... " >&6; }
10331if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10332 $as_echo_n "(cached) " >&6
278a7a38
AO
10333else
10334 if test -n "$GCJ_FOR_TARGET"; then
10335 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10336else
10337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338for as_dir in $PATH
10339do
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
5213506e
RW
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10344 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10346 break 2
10347 fi
10348done
5213506e
RW
10349 done
10350IFS=$as_save_IFS
278a7a38
AO
10351
10352fi
10353fi
10354GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10355if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10357$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10358else
5213506e
RW
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360$as_echo "no" >&6; }
278a7a38
AO
10361fi
10362
5213506e 10363
278a7a38
AO
10364 done
10365fi
10366
10367if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10368 for ncn_progname in gcj; do
5213506e
RW
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10370$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10371 if test -x $with_build_time_tools/${ncn_progname}; then
10372 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10374$as_echo "yes" >&6; }
e8b05380
PB
10375 break
10376 else
5213506e
RW
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378$as_echo "no" >&6; }
e8b05380
PB
10379 fi
10380 done
10381fi
10382
10383if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10384 for ncn_progname in gcj; do
10385 if test -n "$ncn_target_tool_prefix"; then
10386 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10387set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389$as_echo_n "checking for $ac_word... " >&6; }
10390if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
e8b05380 10392else
fb0103e5
RG
10393 if test -n "$GCJ_FOR_TARGET"; then
10394 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10395else
1c710c3c
DJ
10396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397for as_dir in $PATH
10398do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
5213506e
RW
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10403 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10405 break 2
10406 fi
10407done
5213506e
RW
10408 done
10409IFS=$as_save_IFS
1c710c3c 10410
e8b05380
PB
10411fi
10412fi
278a7a38
AO
10413GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10414if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10416$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10417else
5213506e
RW
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419$as_echo "no" >&6; }
278a7a38
AO
10420fi
10421
5213506e 10422
278a7a38
AO
10423 fi
10424 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10426set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10428$as_echo_n "checking for $ac_word... " >&6; }
10429if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10430 $as_echo_n "(cached) " >&6
278a7a38
AO
10431else
10432 if test -n "$GCJ_FOR_TARGET"; then
10433 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10434else
10435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436for as_dir in $PATH
10437do
10438 IFS=$as_save_IFS
10439 test -z "$as_dir" && as_dir=.
5213506e
RW
10440 for ac_exec_ext in '' $ac_executable_extensions; do
10441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10442 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10444 break 2
10445 fi
10446done
5213506e
RW
10447 done
10448IFS=$as_save_IFS
278a7a38
AO
10449
10450fi
10451fi
10452GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10453if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10455$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10456else
5213506e
RW
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10458$as_echo "no" >&6; }
278a7a38
AO
10459fi
10460
5213506e 10461
278a7a38
AO
10462 fi
10463 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10464 done
10465fi
10466
10467if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10468 set dummy gcj
10469 if test $build = $target ; then
10470 GCJ_FOR_TARGET="$2"
10471 else
10472 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10473 fi
1c00b503
PB
10474else
10475 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10476fi
10477
10478
10479
10480if test -n "$GFORTRAN_FOR_TARGET"; then
10481 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10482elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10483 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10484fi
10485
278a7a38
AO
10486if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10487 for ncn_progname in gfortran; do
10488 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10489set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10491$as_echo_n "checking for $ac_word... " >&6; }
10492if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
e8b05380 10494else
278a7a38
AO
10495 if test -n "$GFORTRAN_FOR_TARGET"; then
10496 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10497else
1c710c3c
DJ
10498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499for as_dir in $PATH
10500do
10501 IFS=$as_save_IFS
10502 test -z "$as_dir" && as_dir=.
5213506e
RW
10503 for ac_exec_ext in '' $ac_executable_extensions; do
10504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10505 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10507 break 2
10508 fi
10509done
5213506e
RW
10510 done
10511IFS=$as_save_IFS
1c710c3c 10512
e8b05380
PB
10513fi
10514fi
278a7a38
AO
10515GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10516if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10518$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10519else
5213506e
RW
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10521$as_echo "no" >&6; }
e8b05380 10522fi
1c710c3c 10523
5213506e 10524
e8b05380
PB
10525 done
10526fi
1c710c3c 10527
278a7a38 10528if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10529 for ncn_progname in gfortran; do
5213506e
RW
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10531$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10532 if test -x $with_build_time_tools/${ncn_progname}; then
10533 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10535$as_echo "yes" >&6; }
e8b05380
PB
10536 break
10537 else
5213506e
RW
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539$as_echo "no" >&6; }
e8b05380
PB
10540 fi
10541 done
10542fi
10543
10544if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10545 for ncn_progname in gfortran; do
10546 if test -n "$ncn_target_tool_prefix"; then
10547 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10548set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10550$as_echo_n "checking for $ac_word... " >&6; }
10551if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10552 $as_echo_n "(cached) " >&6
e8b05380
PB
10553else
10554 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10555 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10556else
10557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10558for as_dir in $PATH
10559do
10560 IFS=$as_save_IFS
10561 test -z "$as_dir" && as_dir=.
5213506e
RW
10562 for ac_exec_ext in '' $ac_executable_extensions; do
10563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10564 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10566 break 2
10567 fi
10568done
5213506e
RW
10569 done
10570IFS=$as_save_IFS
1c710c3c 10571
e8b05380
PB
10572fi
10573fi
1c710c3c 10574GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10575if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10577$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10578else
5213506e
RW
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10580$as_echo "no" >&6; }
e8b05380
PB
10581fi
10582
5213506e 10583
e8b05380
PB
10584 fi
10585 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10587set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10589$as_echo_n "checking for $ac_word... " >&6; }
10590if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10591 $as_echo_n "(cached) " >&6
e8b05380
PB
10592else
10593 if test -n "$GFORTRAN_FOR_TARGET"; then
10594 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10595else
1c710c3c
DJ
10596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597for as_dir in $PATH
10598do
10599 IFS=$as_save_IFS
10600 test -z "$as_dir" && as_dir=.
5213506e
RW
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10603 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10605 break 2
10606 fi
10607done
5213506e
RW
10608 done
10609IFS=$as_save_IFS
1c710c3c 10610
e8b05380
PB
10611fi
10612fi
1c710c3c 10613GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10614if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10616$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10617else
5213506e
RW
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10619$as_echo "no" >&6; }
e8b05380 10620fi
1c710c3c 10621
5213506e 10622
e8b05380
PB
10623 fi
10624 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10625 done
10626fi
1c710c3c 10627
e8b05380
PB
10628if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10629 set dummy gfortran
2693c0b0 10630 if test $build = $target ; then
e8b05380 10631 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10632 else
e8b05380
PB
10633 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10634 fi
1c00b503
PB
10635else
10636 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10637fi
10638
10639
10640
632e2a07
ILT
10641if test -n "$GOC_FOR_TARGET"; then
10642 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10643elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10644 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10645fi
10646
10647if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10648 for ncn_progname in gccgo; do
10649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10650set dummy ${ncn_progname}; ac_word=$2
10651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10652$as_echo_n "checking for $ac_word... " >&6; }
10653if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
10655else
10656 if test -n "$GOC_FOR_TARGET"; then
10657 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10658else
10659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660for as_dir in $PATH
10661do
10662 IFS=$as_save_IFS
10663 test -z "$as_dir" && as_dir=.
10664 for ac_exec_ext in '' $ac_executable_extensions; do
10665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10666 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10668 break 2
10669 fi
10670done
10671 done
10672IFS=$as_save_IFS
10673
10674fi
10675fi
10676GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10677if test -n "$GOC_FOR_TARGET"; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10679$as_echo "$GOC_FOR_TARGET" >&6; }
10680else
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10682$as_echo "no" >&6; }
10683fi
10684
10685
10686 done
10687fi
10688
10689if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10690 for ncn_progname in gccgo; do
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10692$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10693 if test -x $with_build_time_tools/${ncn_progname}; then
10694 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10696$as_echo "yes" >&6; }
10697 break
10698 else
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700$as_echo "no" >&6; }
10701 fi
10702 done
10703fi
10704
10705if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10706 for ncn_progname in gccgo; do
10707 if test -n "$ncn_target_tool_prefix"; then
10708 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10709set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10711$as_echo_n "checking for $ac_word... " >&6; }
10712if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10713 $as_echo_n "(cached) " >&6
10714else
10715 if test -n "$GOC_FOR_TARGET"; then
10716 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10717else
10718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719for as_dir in $PATH
10720do
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10728 fi
10729done
10730 done
10731IFS=$as_save_IFS
10732
10733fi
10734fi
10735GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10736if test -n "$GOC_FOR_TARGET"; then
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10738$as_echo "$GOC_FOR_TARGET" >&6; }
10739else
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
10742fi
10743
10744
10745 fi
10746 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10748set dummy ${ncn_progname}; ac_word=$2
10749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10750$as_echo_n "checking for $ac_word... " >&6; }
10751if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10752 $as_echo_n "(cached) " >&6
10753else
10754 if test -n "$GOC_FOR_TARGET"; then
10755 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10756else
10757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10758for as_dir in $PATH
10759do
10760 IFS=$as_save_IFS
10761 test -z "$as_dir" && as_dir=.
10762 for ac_exec_ext in '' $ac_executable_extensions; do
10763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10764 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10766 break 2
10767 fi
10768done
10769 done
10770IFS=$as_save_IFS
10771
10772fi
10773fi
10774GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10775if test -n "$GOC_FOR_TARGET"; then
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10777$as_echo "$GOC_FOR_TARGET" >&6; }
10778else
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10780$as_echo "no" >&6; }
10781fi
10782
10783
10784 fi
10785 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10786 done
10787fi
10788
10789if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10790 set dummy gccgo
10791 if test $build = $target ; then
10792 GOC_FOR_TARGET="$2"
10793 else
10794 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10795 fi
10796else
10797 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10798fi
10799
10800
10801
e8b05380
PB
10802cat > conftest.c << \EOF
10803#ifdef __GNUC__
10804 gcc_yay;
10805#endif
10806EOF
10807if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10808 have_gcc_for_target=yes
10809else
10810 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10811 have_gcc_for_target=no
10812fi
10813rm conftest.c
10814
10815
10816
10817
10818if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10819 if test -n "$with_build_time_tools"; then
5213506e
RW
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10821$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10822 if test -x $with_build_time_tools/ar; then
10823 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10824 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10826$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10827 else
5213506e
RW
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10829$as_echo "no" >&6; }
d1f8db0c 10830 fi
e8b05380
PB
10831 elif test $build != $host && test $have_gcc_for_target = yes; then
10832 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10833 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10834 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10835 fi
10836fi
3e19841a 10837if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10838 # Extract the first word of "ar", so it can be a program name with args.
10839set dummy ar; ac_word=$2
5213506e
RW
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10841$as_echo_n "checking for $ac_word... " >&6; }
10842if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10843 $as_echo_n "(cached) " >&6
e8b05380 10844else
1c710c3c
DJ
10845 case $AR_FOR_TARGET in
10846 [\\/]* | ?:[\\/]*)
e8b05380
PB
10847 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10848 ;;
e8b05380 10849 *)
1c710c3c
DJ
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851for as_dir in $gcc_cv_tool_dirs
10852do
10853 IFS=$as_save_IFS
10854 test -z "$as_dir" && as_dir=.
5213506e
RW
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10857 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10859 break 2
10860 fi
10861done
5213506e
RW
10862 done
10863IFS=$as_save_IFS
1c710c3c 10864
e8b05380
PB
10865 ;;
10866esac
10867fi
1c710c3c 10868AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10869if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10871$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10872else
5213506e
RW
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874$as_echo "no" >&6; }
4de997d1
PB
10875fi
10876
5213506e 10877
e8b05380
PB
10878fi
10879if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10880
10881
10882if test -n "$AR_FOR_TARGET"; then
10883 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10884elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10885 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10886fi
10887
10888if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10889 for ncn_progname in ar; do
10890 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10891set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10893$as_echo_n "checking for $ac_word... " >&6; }
10894if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10895 $as_echo_n "(cached) " >&6
278a7a38
AO
10896else
10897 if test -n "$AR_FOR_TARGET"; then
10898 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10899else
10900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10901for as_dir in $PATH
10902do
10903 IFS=$as_save_IFS
10904 test -z "$as_dir" && as_dir=.
5213506e
RW
10905 for ac_exec_ext in '' $ac_executable_extensions; do
10906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10907 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10909 break 2
10910 fi
10911done
5213506e
RW
10912 done
10913IFS=$as_save_IFS
278a7a38
AO
10914
10915fi
10916fi
10917AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10918if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10920$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10921else
5213506e
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10923$as_echo "no" >&6; }
278a7a38
AO
10924fi
10925
5213506e 10926
278a7a38
AO
10927 done
10928fi
10929
10930if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10931 for ncn_progname in ar; do
5213506e
RW
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10933$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10934 if test -x $with_build_time_tools/${ncn_progname}; then
10935 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10937$as_echo "yes" >&6; }
e8b05380
PB
10938 break
10939 else
5213506e
RW
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10941$as_echo "no" >&6; }
e8b05380
PB
10942 fi
10943 done
10944fi
10945
10946if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10947 for ncn_progname in ar; do
10948 if test -n "$ncn_target_tool_prefix"; then
10949 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10950set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10952$as_echo_n "checking for $ac_word... " >&6; }
10953if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10954 $as_echo_n "(cached) " >&6
4de997d1 10955else
e8b05380
PB
10956 if test -n "$AR_FOR_TARGET"; then
10957 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10958else
1c710c3c
DJ
10959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960for as_dir in $PATH
10961do
10962 IFS=$as_save_IFS
10963 test -z "$as_dir" && as_dir=.
5213506e
RW
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10966 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10968 break 2
10969 fi
10970done
5213506e
RW
10971 done
10972IFS=$as_save_IFS
1c710c3c 10973
4de997d1
PB
10974fi
10975fi
1c710c3c 10976AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10977if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10979$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10980else
5213506e
RW
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10982$as_echo "no" >&6; }
4de997d1
PB
10983fi
10984
5213506e 10985
e8b05380
PB
10986 fi
10987 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10989set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10991$as_echo_n "checking for $ac_word... " >&6; }
10992if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
e8b05380
PB
10994else
10995 if test -n "$AR_FOR_TARGET"; then
10996 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10997else
1c710c3c
DJ
10998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10999for as_dir in $PATH
11000do
11001 IFS=$as_save_IFS
11002 test -z "$as_dir" && as_dir=.
5213506e
RW
11003 for ac_exec_ext in '' $ac_executable_extensions; do
11004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11005 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 11006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11007 break 2
11008 fi
11009done
5213506e
RW
11010 done
11011IFS=$as_save_IFS
1c710c3c 11012
e8b05380
PB
11013fi
11014fi
1c710c3c 11015AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 11016if test -n "$AR_FOR_TARGET"; then
5213506e
RW
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11018$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 11019else
5213506e
RW
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021$as_echo "no" >&6; }
e8b05380 11022fi
1c710c3c 11023
5213506e 11024
e8b05380
PB
11025 fi
11026 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11027 done
11028fi
1c710c3c 11029
e8b05380
PB
11030if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11031 set dummy ar
11032 if test $build = $target ; then
11033 AR_FOR_TARGET="$2"
11034 else
11035 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 11036 fi
1c00b503
PB
11037else
11038 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
11039fi
11040
d1f8db0c
PB
11041else
11042 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
11043fi
11044
11045
11046
11047
11048if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11049 if test -n "$with_build_time_tools"; then
5213506e
RW
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11051$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11052 if test -x $with_build_time_tools/as; then
11053 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11054 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11056$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 11057 else
5213506e
RW
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11059$as_echo "no" >&6; }
d1f8db0c 11060 fi
e8b05380
PB
11061 elif test $build != $host && test $have_gcc_for_target = yes; then
11062 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
11063 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11064 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
11065 fi
11066fi
3e19841a 11067if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11068 # Extract the first word of "as", so it can be a program name with args.
11069set dummy as; ac_word=$2
5213506e
RW
11070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11071$as_echo_n "checking for $ac_word... " >&6; }
11072if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
e8b05380 11074else
1c710c3c
DJ
11075 case $AS_FOR_TARGET in
11076 [\\/]* | ?:[\\/]*)
e8b05380
PB
11077 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11078 ;;
e8b05380 11079 *)
1c710c3c
DJ
11080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11081for as_dir in $gcc_cv_tool_dirs
11082do
11083 IFS=$as_save_IFS
11084 test -z "$as_dir" && as_dir=.
5213506e
RW
11085 for ac_exec_ext in '' $ac_executable_extensions; do
11086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11087 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11089 break 2
11090 fi
11091done
5213506e
RW
11092 done
11093IFS=$as_save_IFS
1c710c3c 11094
e8b05380
PB
11095 ;;
11096esac
11097fi
1c710c3c 11098AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11099if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11101$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11102else
5213506e
RW
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104$as_echo "no" >&6; }
e8b05380
PB
11105fi
11106
5213506e 11107
e8b05380
PB
11108fi
11109if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11110
11111
11112if test -n "$AS_FOR_TARGET"; then
11113 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11114elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11115 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11116fi
11117
11118if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11119 for ncn_progname in as; do
11120 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11121set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11123$as_echo_n "checking for $ac_word... " >&6; }
11124if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11125 $as_echo_n "(cached) " >&6
278a7a38
AO
11126else
11127 if test -n "$AS_FOR_TARGET"; then
11128 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11129else
11130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131for as_dir in $PATH
11132do
11133 IFS=$as_save_IFS
11134 test -z "$as_dir" && as_dir=.
5213506e
RW
11135 for ac_exec_ext in '' $ac_executable_extensions; do
11136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11137 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11139 break 2
11140 fi
11141done
5213506e
RW
11142 done
11143IFS=$as_save_IFS
278a7a38
AO
11144
11145fi
11146fi
11147AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11148if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11150$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11151else
5213506e
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11153$as_echo "no" >&6; }
278a7a38
AO
11154fi
11155
5213506e 11156
278a7a38
AO
11157 done
11158fi
11159
11160if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11161 for ncn_progname in as; do
5213506e
RW
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11163$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11164 if test -x $with_build_time_tools/${ncn_progname}; then
11165 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11167$as_echo "yes" >&6; }
e8b05380
PB
11168 break
11169 else
5213506e
RW
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11171$as_echo "no" >&6; }
e8b05380
PB
11172 fi
11173 done
11174fi
11175
11176if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11177 for ncn_progname in as; do
11178 if test -n "$ncn_target_tool_prefix"; then
11179 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11180set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11182$as_echo_n "checking for $ac_word... " >&6; }
11183if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11184 $as_echo_n "(cached) " >&6
e8b05380
PB
11185else
11186 if test -n "$AS_FOR_TARGET"; then
11187 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11188else
1c710c3c
DJ
11189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190for as_dir in $PATH
11191do
11192 IFS=$as_save_IFS
11193 test -z "$as_dir" && as_dir=.
5213506e
RW
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11196 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11198 break 2
11199 fi
11200done
5213506e
RW
11201 done
11202IFS=$as_save_IFS
1c710c3c 11203
e8b05380
PB
11204fi
11205fi
1c710c3c 11206AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11207if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11209$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11210else
5213506e
RW
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11212$as_echo "no" >&6; }
e8b05380
PB
11213fi
11214
5213506e 11215
e8b05380
PB
11216 fi
11217 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11218 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11219set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11221$as_echo_n "checking for $ac_word... " >&6; }
11222if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11223 $as_echo_n "(cached) " >&6
4de997d1 11224else
e8b05380
PB
11225 if test -n "$AS_FOR_TARGET"; then
11226 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11227else
1c710c3c
DJ
11228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229for as_dir in $PATH
11230do
11231 IFS=$as_save_IFS
11232 test -z "$as_dir" && as_dir=.
5213506e
RW
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11235 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11237 break 2
11238 fi
11239done
5213506e
RW
11240 done
11241IFS=$as_save_IFS
1c710c3c 11242
4de997d1
PB
11243fi
11244fi
1c710c3c 11245AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11246if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11248$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11249else
5213506e
RW
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11251$as_echo "no" >&6; }
4de997d1 11252fi
1c710c3c 11253
5213506e 11254
e8b05380
PB
11255 fi
11256 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11257 done
11258fi
1c710c3c 11259
e8b05380
PB
11260if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11261 set dummy as
11262 if test $build = $target ; then
11263 AS_FOR_TARGET="$2"
11264 else
11265 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11266 fi
1c00b503
PB
11267else
11268 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11269fi
2693c0b0 11270
d1f8db0c
PB
11271else
11272 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11273fi
11274
e8b05380
PB
11275
11276
11277
11278if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11279 if test -n "$with_build_time_tools"; then
5213506e
RW
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11281$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11282 if test -x $with_build_time_tools/dlltool; then
11283 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11284 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11286$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11287 else
5213506e
RW
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289$as_echo "no" >&6; }
d1f8db0c 11290 fi
e8b05380
PB
11291 elif test $build != $host && test $have_gcc_for_target = yes; then
11292 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11293 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11294 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11295 fi
11296fi
3e19841a 11297if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11298 # Extract the first word of "dlltool", so it can be a program name with args.
11299set dummy dlltool; ac_word=$2
5213506e
RW
11300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301$as_echo_n "checking for $ac_word... " >&6; }
11302if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
4de997d1 11304else
1c710c3c
DJ
11305 case $DLLTOOL_FOR_TARGET in
11306 [\\/]* | ?:[\\/]*)
e8b05380
PB
11307 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11308 ;;
e8b05380 11309 *)
1c710c3c
DJ
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311for as_dir in $gcc_cv_tool_dirs
11312do
11313 IFS=$as_save_IFS
11314 test -z "$as_dir" && as_dir=.
5213506e
RW
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11317 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11319 break 2
11320 fi
11321done
5213506e
RW
11322 done
11323IFS=$as_save_IFS
1c710c3c 11324
e8b05380
PB
11325 ;;
11326esac
4de997d1 11327fi
1c710c3c 11328DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11329if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11331$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11332else
5213506e
RW
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334$as_echo "no" >&6; }
4de997d1
PB
11335fi
11336
5213506e 11337
e8b05380
PB
11338fi
11339if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11340
11341
11342if test -n "$DLLTOOL_FOR_TARGET"; then
11343 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11344elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11345 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11346fi
11347
11348if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11349 for ncn_progname in dlltool; do
11350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11351set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11353$as_echo_n "checking for $ac_word... " >&6; }
11354if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11355 $as_echo_n "(cached) " >&6
278a7a38
AO
11356else
11357 if test -n "$DLLTOOL_FOR_TARGET"; then
11358 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11359else
11360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11361for as_dir in $PATH
11362do
11363 IFS=$as_save_IFS
11364 test -z "$as_dir" && as_dir=.
5213506e
RW
11365 for ac_exec_ext in '' $ac_executable_extensions; do
11366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11367 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11369 break 2
11370 fi
11371done
5213506e
RW
11372 done
11373IFS=$as_save_IFS
278a7a38
AO
11374
11375fi
11376fi
11377DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11378if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11380$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11381else
5213506e
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383$as_echo "no" >&6; }
278a7a38
AO
11384fi
11385
5213506e 11386
278a7a38
AO
11387 done
11388fi
11389
11390if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11391 for ncn_progname in dlltool; do
5213506e
RW
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11393$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11394 if test -x $with_build_time_tools/${ncn_progname}; then
11395 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11397$as_echo "yes" >&6; }
e8b05380
PB
11398 break
11399 else
5213506e
RW
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11401$as_echo "no" >&6; }
e8b05380
PB
11402 fi
11403 done
11404fi
11405
11406if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11407 for ncn_progname in dlltool; do
11408 if test -n "$ncn_target_tool_prefix"; then
11409 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11410set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11412$as_echo_n "checking for $ac_word... " >&6; }
11413if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
4de997d1 11415else
e8b05380
PB
11416 if test -n "$DLLTOOL_FOR_TARGET"; then
11417 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11418else
1c710c3c
DJ
11419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422 IFS=$as_save_IFS
11423 test -z "$as_dir" && as_dir=.
5213506e
RW
11424 for ac_exec_ext in '' $ac_executable_extensions; do
11425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11426 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11428 break 2
11429 fi
11430done
5213506e
RW
11431 done
11432IFS=$as_save_IFS
1c710c3c 11433
4de997d1
PB
11434fi
11435fi
1c710c3c 11436DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11437if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11439$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11440else
5213506e
RW
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11442$as_echo "no" >&6; }
4de997d1 11443fi
4de997d1 11444
5213506e 11445
e8b05380
PB
11446 fi
11447 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11449set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11451$as_echo_n "checking for $ac_word... " >&6; }
11452if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11453 $as_echo_n "(cached) " >&6
4de997d1 11454else
e8b05380
PB
11455 if test -n "$DLLTOOL_FOR_TARGET"; then
11456 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11457else
1c710c3c
DJ
11458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11459for as_dir in $PATH
11460do
11461 IFS=$as_save_IFS
11462 test -z "$as_dir" && as_dir=.
5213506e
RW
11463 for ac_exec_ext in '' $ac_executable_extensions; do
11464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11465 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11467 break 2
11468 fi
11469done
5213506e
RW
11470 done
11471IFS=$as_save_IFS
1c710c3c 11472
4de997d1
PB
11473fi
11474fi
1c710c3c 11475DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11476if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11478$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11479else
5213506e
RW
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11481$as_echo "no" >&6; }
4de997d1 11482fi
1c710c3c 11483
5213506e 11484
e8b05380
PB
11485 fi
11486 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11487 done
11488fi
1c710c3c 11489
e8b05380
PB
11490if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11491 set dummy dlltool
11492 if test $build = $target ; then
11493 DLLTOOL_FOR_TARGET="$2"
11494 else
11495 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11496 fi
1c00b503
PB
11497else
11498 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11499fi
11500
d1f8db0c
PB
11501else
11502 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11503fi
11504
4de997d1 11505
e8b05380
PB
11506
11507
11508if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11509 if test -n "$with_build_time_tools"; then
5213506e
RW
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11511$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11512 if test -x $with_build_time_tools/ld; then
11513 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11514 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11516$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11517 else
5213506e
RW
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519$as_echo "no" >&6; }
d1f8db0c 11520 fi
e8b05380
PB
11521 elif test $build != $host && test $have_gcc_for_target = yes; then
11522 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11523 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11524 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11525 fi
e8b05380 11526fi
3e19841a 11527if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11528 # Extract the first word of "ld", so it can be a program name with args.
11529set dummy ld; ac_word=$2
5213506e
RW
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531$as_echo_n "checking for $ac_word... " >&6; }
11532if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11533 $as_echo_n "(cached) " >&6
4de997d1 11534else
1c710c3c
DJ
11535 case $LD_FOR_TARGET in
11536 [\\/]* | ?:[\\/]*)
e8b05380
PB
11537 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11538 ;;
e8b05380 11539 *)
1c710c3c
DJ
11540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11541for as_dir in $gcc_cv_tool_dirs
11542do
11543 IFS=$as_save_IFS
11544 test -z "$as_dir" && as_dir=.
5213506e
RW
11545 for ac_exec_ext in '' $ac_executable_extensions; do
11546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11547 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11549 break 2
11550 fi
11551done
5213506e
RW
11552 done
11553IFS=$as_save_IFS
1c710c3c 11554
e8b05380
PB
11555 ;;
11556esac
4de997d1 11557fi
1c710c3c 11558LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11559if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11561$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11562else
5213506e
RW
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564$as_echo "no" >&6; }
4de997d1 11565fi
2693c0b0 11566
5213506e 11567
e8b05380
PB
11568fi
11569if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11570
11571
11572if test -n "$LD_FOR_TARGET"; then
11573 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11574elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11575 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11576fi
11577
11578if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11579 for ncn_progname in ld; do
11580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11581set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11583$as_echo_n "checking for $ac_word... " >&6; }
11584if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11585 $as_echo_n "(cached) " >&6
278a7a38
AO
11586else
11587 if test -n "$LD_FOR_TARGET"; then
11588 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11589else
11590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591for as_dir in $PATH
11592do
11593 IFS=$as_save_IFS
11594 test -z "$as_dir" && as_dir=.
5213506e
RW
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11597 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11599 break 2
11600 fi
11601done
5213506e
RW
11602 done
11603IFS=$as_save_IFS
278a7a38
AO
11604
11605fi
11606fi
11607LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11608if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11610$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11611else
5213506e
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11613$as_echo "no" >&6; }
278a7a38
AO
11614fi
11615
5213506e 11616
278a7a38
AO
11617 done
11618fi
11619
11620if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11621 for ncn_progname in ld; do
5213506e
RW
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11623$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11624 if test -x $with_build_time_tools/${ncn_progname}; then
11625 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11627$as_echo "yes" >&6; }
e8b05380
PB
11628 break
11629 else
5213506e
RW
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11631$as_echo "no" >&6; }
e8b05380
PB
11632 fi
11633 done
ca9f4b81
AO
11634fi
11635
e8b05380
PB
11636if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11637 for ncn_progname in ld; do
11638 if test -n "$ncn_target_tool_prefix"; then
11639 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11640set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642$as_echo_n "checking for $ac_word... " >&6; }
11643if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11644 $as_echo_n "(cached) " >&6
ca9f4b81 11645else
4de997d1
PB
11646 if test -n "$LD_FOR_TARGET"; then
11647 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11648else
1c710c3c
DJ
11649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11650for as_dir in $PATH
11651do
11652 IFS=$as_save_IFS
11653 test -z "$as_dir" && as_dir=.
5213506e
RW
11654 for ac_exec_ext in '' $ac_executable_extensions; do
11655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11656 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11658 break 2
11659 fi
11660done
5213506e
RW
11661 done
11662IFS=$as_save_IFS
1c710c3c 11663
ca9f4b81
AO
11664fi
11665fi
1c710c3c 11666LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11667if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11669$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11670else
5213506e
RW
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672$as_echo "no" >&6; }
ca9f4b81
AO
11673fi
11674
5213506e 11675
e8b05380
PB
11676 fi
11677 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11679set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11681$as_echo_n "checking for $ac_word... " >&6; }
11682if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11683 $as_echo_n "(cached) " >&6
ca9f4b81 11684else
2693c0b0
PB
11685 if test -n "$LD_FOR_TARGET"; then
11686 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11687else
1c710c3c
DJ
11688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11689for as_dir in $PATH
11690do
11691 IFS=$as_save_IFS
11692 test -z "$as_dir" && as_dir=.
5213506e
RW
11693 for ac_exec_ext in '' $ac_executable_extensions; do
11694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11695 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11697 break 2
11698 fi
11699done
5213506e
RW
11700 done
11701IFS=$as_save_IFS
1c710c3c 11702
ca9f4b81
AO
11703fi
11704fi
1c710c3c 11705LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11706if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11708$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11709else
5213506e
RW
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711$as_echo "no" >&6; }
ca9f4b81 11712fi
1c710c3c 11713
5213506e 11714
e8b05380
PB
11715 fi
11716 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11717 done
11718fi
1c710c3c 11719
2693c0b0
PB
11720if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11721 set dummy ld
11722 if test $build = $target ; then
11723 LD_FOR_TARGET="$2"
ca9f4b81 11724 else
2693c0b0 11725 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11726 fi
1c00b503
PB
11727else
11728 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11729fi
11730
d1f8db0c
PB
11731else
11732 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11733fi
11734
11735
11736
11737
11738if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11739 if test -n "$with_build_time_tools"; then
5213506e
RW
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11741$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11742 if test -x $with_build_time_tools/lipo; then
11743 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11744 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11746$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11747 else
5213506e
RW
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
d1f8db0c 11750 fi
e8b05380
PB
11751 elif test $build != $host && test $have_gcc_for_target = yes; then
11752 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11753 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11754 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11755 fi
11756fi
278a7a38
AO
11757if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11758 # Extract the first word of "lipo", so it can be a program name with args.
11759set dummy lipo; ac_word=$2
5213506e
RW
11760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761$as_echo_n "checking for $ac_word... " >&6; }
11762if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11763 $as_echo_n "(cached) " >&6
278a7a38
AO
11764else
11765 case $LIPO_FOR_TARGET in
11766 [\\/]* | ?:[\\/]*)
11767 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11768 ;;
11769 *)
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771for as_dir in $gcc_cv_tool_dirs
11772do
11773 IFS=$as_save_IFS
11774 test -z "$as_dir" && as_dir=.
5213506e
RW
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11777 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11779 break 2
11780 fi
11781done
5213506e
RW
11782 done
11783IFS=$as_save_IFS
278a7a38
AO
11784
11785 ;;
11786esac
11787fi
11788LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11789if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11791$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11792else
5213506e
RW
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794$as_echo "no" >&6; }
278a7a38
AO
11795fi
11796
5213506e 11797
278a7a38
AO
11798fi
11799if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11800
11801
11802if test -n "$LIPO_FOR_TARGET"; then
11803 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11804elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11805 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11806fi
11807
11808if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11809 for ncn_progname in lipo; do
11810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11811set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11813$as_echo_n "checking for $ac_word... " >&6; }
11814if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11815 $as_echo_n "(cached) " >&6
e8b05380 11816else
278a7a38
AO
11817 if test -n "$LIPO_FOR_TARGET"; then
11818 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11819else
11820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
1c710c3c
DJ
11822do
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
5213506e
RW
11825 for ac_exec_ext in '' $ac_executable_extensions; do
11826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11827 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11829 break 2
11830 fi
11831done
5213506e
RW
11832 done
11833IFS=$as_save_IFS
1c710c3c 11834
e8b05380 11835fi
278a7a38
AO
11836fi
11837LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11838if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11840$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11841else
5213506e
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11843$as_echo "no" >&6; }
e8b05380
PB
11844fi
11845
5213506e 11846
278a7a38 11847 done
e8b05380 11848fi
278a7a38
AO
11849
11850if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11851 for ncn_progname in lipo; do
5213506e
RW
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11853$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11854 if test -x $with_build_time_tools/${ncn_progname}; then
11855 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11857$as_echo "yes" >&6; }
e8b05380
PB
11858 break
11859 else
5213506e
RW
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861$as_echo "no" >&6; }
e8b05380
PB
11862 fi
11863 done
11864fi
11865
11866if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11867 for ncn_progname in lipo; do
11868 if test -n "$ncn_target_tool_prefix"; then
11869 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11870set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11872$as_echo_n "checking for $ac_word... " >&6; }
11873if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11874 $as_echo_n "(cached) " >&6
040b1c5a
GK
11875else
11876 if test -n "$LIPO_FOR_TARGET"; then
11877 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11878else
1c710c3c
DJ
11879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880for as_dir in $PATH
11881do
11882 IFS=$as_save_IFS
11883 test -z "$as_dir" && as_dir=.
5213506e
RW
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11886 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11888 break 2
11889 fi
11890done
5213506e
RW
11891 done
11892IFS=$as_save_IFS
1c710c3c 11893
040b1c5a
GK
11894fi
11895fi
1c710c3c 11896LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11897if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11899$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11900else
5213506e
RW
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11902$as_echo "no" >&6; }
040b1c5a
GK
11903fi
11904
5213506e 11905
e8b05380
PB
11906 fi
11907 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11908 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11909set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11911$as_echo_n "checking for $ac_word... " >&6; }
11912if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11913 $as_echo_n "(cached) " >&6
040b1c5a
GK
11914else
11915 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11916 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11917else
1c710c3c
DJ
11918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11919for as_dir in $PATH
11920do
11921 IFS=$as_save_IFS
11922 test -z "$as_dir" && as_dir=.
5213506e
RW
11923 for ac_exec_ext in '' $ac_executable_extensions; do
11924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11925 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11927 break 2
11928 fi
11929done
5213506e
RW
11930 done
11931IFS=$as_save_IFS
1c710c3c 11932
040b1c5a
GK
11933fi
11934fi
1c710c3c 11935LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11936if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11938$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11939else
5213506e
RW
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11941$as_echo "no" >&6; }
040b1c5a 11942fi
1c710c3c 11943
5213506e 11944
e8b05380
PB
11945 fi
11946 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11947 done
11948fi
1c710c3c 11949
040b1c5a
GK
11950if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11951 set dummy lipo
11952 if test $build = $target ; then
11953 LIPO_FOR_TARGET="$2"
11954 else
11955 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11956 fi
1c00b503
PB
11957else
11958 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11959fi
11960
d1f8db0c
PB
11961else
11962 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11963fi
11964
11965
11966
11967
11968if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11969 if test -n "$with_build_time_tools"; then
5213506e
RW
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11971$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11972 if test -x $with_build_time_tools/nm; then
11973 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11974 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11976$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11977 else
5213506e
RW
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11979$as_echo "no" >&6; }
d1f8db0c 11980 fi
e8b05380
PB
11981 elif test $build != $host && test $have_gcc_for_target = yes; then
11982 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11983 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11984 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11985 fi
11986fi
3e19841a 11987if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11988 # Extract the first word of "nm", so it can be a program name with args.
11989set dummy nm; ac_word=$2
5213506e
RW
11990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991$as_echo_n "checking for $ac_word... " >&6; }
11992if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11993 $as_echo_n "(cached) " >&6
e8b05380 11994else
1c710c3c
DJ
11995 case $NM_FOR_TARGET in
11996 [\\/]* | ?:[\\/]*)
e8b05380
PB
11997 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11998 ;;
e8b05380 11999 *)
1c710c3c
DJ
12000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12001for as_dir in $gcc_cv_tool_dirs
12002do
12003 IFS=$as_save_IFS
12004 test -z "$as_dir" && as_dir=.
5213506e
RW
12005 for ac_exec_ext in '' $ac_executable_extensions; do
12006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12007 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12009 break 2
12010 fi
12011done
5213506e
RW
12012 done
12013IFS=$as_save_IFS
1c710c3c 12014
e8b05380
PB
12015 ;;
12016esac
12017fi
1c710c3c 12018NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 12019if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12021$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 12022else
5213506e
RW
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024$as_echo "no" >&6; }
e8b05380
PB
12025fi
12026
5213506e 12027
e8b05380
PB
12028fi
12029if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
12030
12031
12032if test -n "$NM_FOR_TARGET"; then
12033 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12034elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12035 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12036fi
12037
12038if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12039 for ncn_progname in nm; do
12040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12041set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12043$as_echo_n "checking for $ac_word... " >&6; }
12044if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12045 $as_echo_n "(cached) " >&6
278a7a38
AO
12046else
12047 if test -n "$NM_FOR_TARGET"; then
12048 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12049else
12050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051for as_dir in $PATH
12052do
12053 IFS=$as_save_IFS
12054 test -z "$as_dir" && as_dir=.
5213506e
RW
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12057 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12059 break 2
12060 fi
12061done
5213506e
RW
12062 done
12063IFS=$as_save_IFS
278a7a38
AO
12064
12065fi
12066fi
12067NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12068if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12070$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 12071else
5213506e
RW
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073$as_echo "no" >&6; }
278a7a38
AO
12074fi
12075
5213506e 12076
278a7a38
AO
12077 done
12078fi
12079
12080if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12081 for ncn_progname in nm; do
5213506e
RW
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12083$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12084 if test -x $with_build_time_tools/${ncn_progname}; then
12085 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12087$as_echo "yes" >&6; }
e8b05380
PB
12088 break
12089 else
5213506e
RW
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12091$as_echo "no" >&6; }
e8b05380
PB
12092 fi
12093 done
12094fi
12095
12096if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12097 for ncn_progname in nm; do
12098 if test -n "$ncn_target_tool_prefix"; then
12099 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12100set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12102$as_echo_n "checking for $ac_word... " >&6; }
12103if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12104 $as_echo_n "(cached) " >&6
ca9f4b81 12105else
4de997d1
PB
12106 if test -n "$NM_FOR_TARGET"; then
12107 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12108else
1c710c3c
DJ
12109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12110for as_dir in $PATH
12111do
12112 IFS=$as_save_IFS
12113 test -z "$as_dir" && as_dir=.
5213506e
RW
12114 for ac_exec_ext in '' $ac_executable_extensions; do
12115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12116 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12118 break 2
12119 fi
12120done
5213506e
RW
12121 done
12122IFS=$as_save_IFS
1c710c3c 12123
ca9f4b81
AO
12124fi
12125fi
1c710c3c 12126NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12127if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12129$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12130else
5213506e
RW
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132$as_echo "no" >&6; }
ca9f4b81
AO
12133fi
12134
5213506e 12135
e8b05380
PB
12136 fi
12137 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12138 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12139set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12141$as_echo_n "checking for $ac_word... " >&6; }
12142if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12143 $as_echo_n "(cached) " >&6
ca9f4b81 12144else
2693c0b0
PB
12145 if test -n "$NM_FOR_TARGET"; then
12146 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12147else
1c710c3c
DJ
12148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12149for as_dir in $PATH
12150do
12151 IFS=$as_save_IFS
12152 test -z "$as_dir" && as_dir=.
5213506e
RW
12153 for ac_exec_ext in '' $ac_executable_extensions; do
12154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12155 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12157 break 2
12158 fi
12159done
5213506e
RW
12160 done
12161IFS=$as_save_IFS
1c710c3c 12162
ca9f4b81
AO
12163fi
12164fi
1c710c3c 12165NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12166if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12168$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12169else
5213506e
RW
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12171$as_echo "no" >&6; }
ca9f4b81 12172fi
1c710c3c 12173
5213506e 12174
e8b05380
PB
12175 fi
12176 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12177 done
12178fi
1c710c3c 12179
2693c0b0
PB
12180if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12181 set dummy nm
12182 if test $build = $target ; then
12183 NM_FOR_TARGET="$2"
ca9f4b81 12184 else
2693c0b0 12185 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12186 fi
1c00b503
PB
12187else
12188 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12189fi
12190
d1f8db0c
PB
12191else
12192 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12193fi
12194
12195
12196
12197
9bccfdf5
AP
12198if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12199 if test -n "$with_build_time_tools"; then
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
12201$as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
12202 if test -x $with_build_time_tools/objcopy; then
12203 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
12204 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
12206$as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209$as_echo "no" >&6; }
12210 fi
12211 elif test $build != $host && test $have_gcc_for_target = yes; then
12212 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
12213 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
12214 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12215 fi
12216fi
12217if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12218 # Extract the first word of "objcopy", so it can be a program name with args.
12219set dummy objcopy; ac_word=$2
12220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12221$as_echo_n "checking for $ac_word... " >&6; }
12222if test "${ac_cv_path_OBJCOPY_FOR_TARGET+set}" = set; then :
12223 $as_echo_n "(cached) " >&6
12224else
12225 case $OBJCOPY_FOR_TARGET in
12226 [\\/]* | ?:[\\/]*)
12227 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
12228 ;;
12229 *)
12230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231for as_dir in $gcc_cv_tool_dirs
12232do
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
12236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12237 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12240 fi
12241done
12242 done
12243IFS=$as_save_IFS
12244
12245 ;;
12246esac
12247fi
12248OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12249if test -n "$OBJCOPY_FOR_TARGET"; then
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12251$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12252else
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12254$as_echo "no" >&6; }
12255fi
12256
12257
12258fi
12259if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
12260
12261
12262if test -n "$OBJCOPY_FOR_TARGET"; then
12263 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
12264elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12265 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12266fi
12267
12268if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12269 for ncn_progname in objcopy; do
12270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12271set dummy ${ncn_progname}; ac_word=$2
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273$as_echo_n "checking for $ac_word... " >&6; }
12274if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12275 $as_echo_n "(cached) " >&6
12276else
12277 if test -n "$OBJCOPY_FOR_TARGET"; then
12278 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12279else
12280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12287 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12289 break 2
12290 fi
12291done
12292 done
12293IFS=$as_save_IFS
12294
12295fi
12296fi
12297OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12298if test -n "$OBJCOPY_FOR_TARGET"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12300$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12301else
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303$as_echo "no" >&6; }
12304fi
12305
12306
12307 done
12308fi
12309
12310if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
12311 for ncn_progname in objcopy; do
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12313$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12314 if test -x $with_build_time_tools/${ncn_progname}; then
12315 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12317$as_echo "yes" >&6; }
12318 break
12319 else
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12321$as_echo "no" >&6; }
12322 fi
12323 done
12324fi
12325
12326if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
12327 for ncn_progname in objcopy; do
12328 if test -n "$ncn_target_tool_prefix"; then
12329 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12330set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12332$as_echo_n "checking for $ac_word... " >&6; }
12333if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12334 $as_echo_n "(cached) " >&6
12335else
12336 if test -n "$OBJCOPY_FOR_TARGET"; then
12337 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12338else
12339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12340for as_dir in $PATH
12341do
12342 IFS=$as_save_IFS
12343 test -z "$as_dir" && as_dir=.
12344 for ac_exec_ext in '' $ac_executable_extensions; do
12345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12346 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12348 break 2
12349 fi
12350done
12351 done
12352IFS=$as_save_IFS
12353
12354fi
12355fi
12356OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12357if test -n "$OBJCOPY_FOR_TARGET"; then
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12359$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12360else
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12362$as_echo "no" >&6; }
12363fi
12364
12365
12366 fi
12367 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
12368 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12369set dummy ${ncn_progname}; ac_word=$2
12370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12371$as_echo_n "checking for $ac_word... " >&6; }
12372if test "${ac_cv_prog_OBJCOPY_FOR_TARGET+set}" = set; then :
12373 $as_echo_n "(cached) " >&6
12374else
12375 if test -n "$OBJCOPY_FOR_TARGET"; then
12376 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
12377else
12378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379for as_dir in $PATH
12380do
12381 IFS=$as_save_IFS
12382 test -z "$as_dir" && as_dir=.
12383 for ac_exec_ext in '' $ac_executable_extensions; do
12384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12385 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
12386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12387 break 2
12388 fi
12389done
12390 done
12391IFS=$as_save_IFS
12392
12393fi
12394fi
12395OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
12396if test -n "$OBJCOPY_FOR_TARGET"; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
12398$as_echo "$OBJCOPY_FOR_TARGET" >&6; }
12399else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12401$as_echo "no" >&6; }
12402fi
12403
12404
12405 fi
12406 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
12407 done
12408fi
12409
12410if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
12411 set dummy objcopy
12412 if test $build = $target ; then
12413 OBJCOPY_FOR_TARGET="$2"
12414 else
12415 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
12416 fi
12417else
12418 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
12419fi
12420
12421else
12422 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
12423fi
12424
12425
12426
12427
e8b05380
PB
12428if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12429 if test -n "$with_build_time_tools"; then
5213506e
RW
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12431$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12432 if test -x $with_build_time_tools/objdump; then
12433 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12434 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12436$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12437 else
5213506e
RW
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439$as_echo "no" >&6; }
d1f8db0c 12440 fi
e8b05380
PB
12441 elif test $build != $host && test $have_gcc_for_target = yes; then
12442 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12443 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12444 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12445 fi
12446fi
3e19841a 12447if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12448 # Extract the first word of "objdump", so it can be a program name with args.
12449set dummy objdump; ac_word=$2
5213506e
RW
12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12451$as_echo_n "checking for $ac_word... " >&6; }
12452if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12453 $as_echo_n "(cached) " >&6
e8b05380 12454else
1c710c3c
DJ
12455 case $OBJDUMP_FOR_TARGET in
12456 [\\/]* | ?:[\\/]*)
e8b05380
PB
12457 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12458 ;;
e8b05380 12459 *)
1c710c3c
DJ
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461for as_dir in $gcc_cv_tool_dirs
12462do
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
5213506e
RW
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12467 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12469 break 2
12470 fi
12471done
5213506e
RW
12472 done
12473IFS=$as_save_IFS
1c710c3c 12474
e8b05380
PB
12475 ;;
12476esac
12477fi
1c710c3c 12478OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12479if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12481$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12482else
5213506e
RW
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12484$as_echo "no" >&6; }
e8b05380
PB
12485fi
12486
5213506e 12487
e8b05380
PB
12488fi
12489if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12490
12491
12492if test -n "$OBJDUMP_FOR_TARGET"; then
12493 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12494elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12495 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12496fi
12497
12498if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12499 for ncn_progname in objdump; do
12500 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12501set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503$as_echo_n "checking for $ac_word... " >&6; }
12504if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
278a7a38
AO
12506else
12507 if test -n "$OBJDUMP_FOR_TARGET"; then
12508 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12509else
12510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511for as_dir in $PATH
12512do
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
5213506e
RW
12515 for ac_exec_ext in '' $ac_executable_extensions; do
12516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12517 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12519 break 2
12520 fi
12521done
5213506e
RW
12522 done
12523IFS=$as_save_IFS
278a7a38
AO
12524
12525fi
12526fi
12527OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12528if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12530$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12531else
5213506e
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533$as_echo "no" >&6; }
278a7a38
AO
12534fi
12535
5213506e 12536
278a7a38
AO
12537 done
12538fi
12539
12540if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12541 for ncn_progname in objdump; do
5213506e
RW
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12543$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12544 if test -x $with_build_time_tools/${ncn_progname}; then
12545 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12547$as_echo "yes" >&6; }
e8b05380
PB
12548 break
12549 else
5213506e
RW
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551$as_echo "no" >&6; }
e8b05380
PB
12552 fi
12553 done
12554fi
12555
12556if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12557 for ncn_progname in objdump; do
12558 if test -n "$ncn_target_tool_prefix"; then
12559 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12560set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12562$as_echo_n "checking for $ac_word... " >&6; }
12563if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12564 $as_echo_n "(cached) " >&6
d739199a
DJ
12565else
12566 if test -n "$OBJDUMP_FOR_TARGET"; then
12567 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12568else
1c710c3c
DJ
12569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12570for as_dir in $PATH
12571do
12572 IFS=$as_save_IFS
12573 test -z "$as_dir" && as_dir=.
5213506e
RW
12574 for ac_exec_ext in '' $ac_executable_extensions; do
12575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12576 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12578 break 2
12579 fi
12580done
5213506e
RW
12581 done
12582IFS=$as_save_IFS
1c710c3c 12583
d739199a
DJ
12584fi
12585fi
1c710c3c 12586OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12587if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12589$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12590else
5213506e
RW
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592$as_echo "no" >&6; }
d739199a
DJ
12593fi
12594
5213506e 12595
e8b05380
PB
12596 fi
12597 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12598 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12599set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12601$as_echo_n "checking for $ac_word... " >&6; }
12602if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12603 $as_echo_n "(cached) " >&6
d739199a
DJ
12604else
12605 if test -n "$OBJDUMP_FOR_TARGET"; then
12606 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12607else
1c710c3c
DJ
12608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609for as_dir in $PATH
12610do
12611 IFS=$as_save_IFS
12612 test -z "$as_dir" && as_dir=.
5213506e
RW
12613 for ac_exec_ext in '' $ac_executable_extensions; do
12614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12615 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12617 break 2
12618 fi
12619done
5213506e
RW
12620 done
12621IFS=$as_save_IFS
1c710c3c 12622
d739199a
DJ
12623fi
12624fi
1c710c3c 12625OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12626if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12628$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12629else
5213506e
RW
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631$as_echo "no" >&6; }
d739199a 12632fi
1c710c3c 12633
5213506e 12634
e8b05380
PB
12635 fi
12636 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12637 done
12638fi
1c710c3c 12639
d739199a
DJ
12640if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12641 set dummy objdump
12642 if test $build = $target ; then
12643 OBJDUMP_FOR_TARGET="$2"
12644 else
12645 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12646 fi
1c00b503
PB
12647else
12648 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12649fi
12650
d1f8db0c
PB
12651else
12652 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12653fi
12654
12655
12656
12657
12658if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12659 if test -n "$with_build_time_tools"; then
5213506e
RW
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12661$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12662 if test -x $with_build_time_tools/ranlib; then
12663 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12664 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12666$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12667 else
5213506e
RW
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669$as_echo "no" >&6; }
d1f8db0c 12670 fi
e8b05380
PB
12671 elif test $build != $host && test $have_gcc_for_target = yes; then
12672 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12673 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12674 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12675 fi
12676fi
3e19841a 12677if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12678 # Extract the first word of "ranlib", so it can be a program name with args.
12679set dummy ranlib; ac_word=$2
5213506e
RW
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12681$as_echo_n "checking for $ac_word... " >&6; }
12682if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
e8b05380 12684else
1c710c3c
DJ
12685 case $RANLIB_FOR_TARGET in
12686 [\\/]* | ?:[\\/]*)
e8b05380
PB
12687 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12688 ;;
e8b05380 12689 *)
1c710c3c
DJ
12690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12691for as_dir in $gcc_cv_tool_dirs
12692do
12693 IFS=$as_save_IFS
12694 test -z "$as_dir" && as_dir=.
5213506e
RW
12695 for ac_exec_ext in '' $ac_executable_extensions; do
12696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12697 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12699 break 2
12700 fi
12701done
5213506e
RW
12702 done
12703IFS=$as_save_IFS
1c710c3c 12704
e8b05380
PB
12705 ;;
12706esac
12707fi
1c710c3c 12708RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12709if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12711$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12712else
5213506e
RW
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12714$as_echo "no" >&6; }
e8b05380
PB
12715fi
12716
5213506e 12717
e8b05380
PB
12718fi
12719if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12720
12721
12722if test -n "$RANLIB_FOR_TARGET"; then
12723 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12724elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12725 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12726fi
12727
12728if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12729 for ncn_progname in ranlib; do
12730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12731set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12733$as_echo_n "checking for $ac_word... " >&6; }
12734if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12735 $as_echo_n "(cached) " >&6
278a7a38
AO
12736else
12737 if test -n "$RANLIB_FOR_TARGET"; then
12738 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12739else
12740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12741for as_dir in $PATH
12742do
12743 IFS=$as_save_IFS
12744 test -z "$as_dir" && as_dir=.
5213506e
RW
12745 for ac_exec_ext in '' $ac_executable_extensions; do
12746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12747 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12749 break 2
12750 fi
12751done
5213506e
RW
12752 done
12753IFS=$as_save_IFS
278a7a38
AO
12754
12755fi
12756fi
12757RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12758if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12760$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12761else
5213506e
RW
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12763$as_echo "no" >&6; }
278a7a38
AO
12764fi
12765
5213506e 12766
278a7a38
AO
12767 done
12768fi
12769
12770if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12771 for ncn_progname in ranlib; do
5213506e
RW
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12773$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12774 if test -x $with_build_time_tools/${ncn_progname}; then
12775 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12777$as_echo "yes" >&6; }
e8b05380
PB
12778 break
12779 else
5213506e
RW
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12781$as_echo "no" >&6; }
e8b05380
PB
12782 fi
12783 done
12784fi
12785
12786if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12787 for ncn_progname in ranlib; do
12788 if test -n "$ncn_target_tool_prefix"; then
12789 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12790set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792$as_echo_n "checking for $ac_word... " >&6; }
12793if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12794 $as_echo_n "(cached) " >&6
ca9f4b81 12795else
4de997d1
PB
12796 if test -n "$RANLIB_FOR_TARGET"; then
12797 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12798else
1c710c3c
DJ
12799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800for as_dir in $PATH
12801do
12802 IFS=$as_save_IFS
12803 test -z "$as_dir" && as_dir=.
5213506e
RW
12804 for ac_exec_ext in '' $ac_executable_extensions; do
12805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12806 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12808 break 2
12809 fi
12810done
5213506e
RW
12811 done
12812IFS=$as_save_IFS
1c710c3c 12813
ca9f4b81
AO
12814fi
12815fi
1c710c3c 12816RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12817if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12819$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12820else
5213506e
RW
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822$as_echo "no" >&6; }
ca9f4b81
AO
12823fi
12824
5213506e 12825
e8b05380
PB
12826 fi
12827 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12829set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12831$as_echo_n "checking for $ac_word... " >&6; }
12832if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12833 $as_echo_n "(cached) " >&6
ca9f4b81 12834else
2693c0b0
PB
12835 if test -n "$RANLIB_FOR_TARGET"; then
12836 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12837else
1c710c3c
DJ
12838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12839for as_dir in $PATH
12840do
12841 IFS=$as_save_IFS
12842 test -z "$as_dir" && as_dir=.
5213506e
RW
12843 for ac_exec_ext in '' $ac_executable_extensions; do
12844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12845 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12847 break 2
12848 fi
12849done
5213506e
RW
12850 done
12851IFS=$as_save_IFS
1c710c3c 12852
ca9f4b81
AO
12853fi
12854fi
1c710c3c 12855RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12856if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12858$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12859else
5213506e
RW
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12861$as_echo "no" >&6; }
ca9f4b81 12862fi
1c710c3c 12863
5213506e 12864
e8b05380
PB
12865 fi
12866 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12867 done
12868fi
1c710c3c 12869
e8b05380
PB
12870if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12871 set dummy ranlib
12872 if test $build = $target ; then
12873 RANLIB_FOR_TARGET="$2"
12874 else
12875 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12876 fi
1c00b503
PB
12877else
12878 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12879fi
2693c0b0 12880
d1f8db0c
PB
12881else
12882 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12883fi
12884
e8b05380
PB
12885
12886
12887
e7a82751
RM
12888if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12889 if test -n "$with_build_time_tools"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12891$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12892 if test -x $with_build_time_tools/readelf; then
12893 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12894 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12896$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12897 else
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12899$as_echo "no" >&6; }
12900 fi
12901 elif test $build != $host && test $have_gcc_for_target = yes; then
12902 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12903 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12904 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12905 fi
12906fi
12907if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12908 # Extract the first word of "readelf", so it can be a program name with args.
12909set dummy readelf; ac_word=$2
12910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12911$as_echo_n "checking for $ac_word... " >&6; }
12912if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12913 $as_echo_n "(cached) " >&6
12914else
12915 case $READELF_FOR_TARGET in
12916 [\\/]* | ?:[\\/]*)
12917 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12918 ;;
12919 *)
12920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12921for as_dir in $gcc_cv_tool_dirs
12922do
12923 IFS=$as_save_IFS
12924 test -z "$as_dir" && as_dir=.
12925 for ac_exec_ext in '' $ac_executable_extensions; do
12926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12927 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12929 break 2
12930 fi
12931done
12932 done
12933IFS=$as_save_IFS
12934
12935 ;;
12936esac
12937fi
12938READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12939if test -n "$READELF_FOR_TARGET"; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12941$as_echo "$READELF_FOR_TARGET" >&6; }
12942else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944$as_echo "no" >&6; }
12945fi
12946
12947
12948fi
12949if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12950
12951
12952if test -n "$READELF_FOR_TARGET"; then
12953 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12954elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12955 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12956fi
12957
12958if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12959 for ncn_progname in readelf; do
12960 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12961set dummy ${ncn_progname}; ac_word=$2
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12963$as_echo_n "checking for $ac_word... " >&6; }
12964if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12965 $as_echo_n "(cached) " >&6
12966else
12967 if test -n "$READELF_FOR_TARGET"; then
12968 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12969else
12970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971for as_dir in $PATH
12972do
12973 IFS=$as_save_IFS
12974 test -z "$as_dir" && as_dir=.
12975 for ac_exec_ext in '' $ac_executable_extensions; do
12976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12977 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12979 break 2
12980 fi
12981done
12982 done
12983IFS=$as_save_IFS
12984
12985fi
12986fi
12987READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12988if test -n "$READELF_FOR_TARGET"; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12990$as_echo "$READELF_FOR_TARGET" >&6; }
12991else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12993$as_echo "no" >&6; }
12994fi
12995
12996
12997 done
12998fi
12999
13000if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
13001 for ncn_progname in readelf; do
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13003$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13004 if test -x $with_build_time_tools/${ncn_progname}; then
13005 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13007$as_echo "yes" >&6; }
13008 break
13009 else
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13011$as_echo "no" >&6; }
13012 fi
13013 done
13014fi
13015
13016if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
13017 for ncn_progname in readelf; do
13018 if test -n "$ncn_target_tool_prefix"; then
13019 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13020set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022$as_echo_n "checking for $ac_word... " >&6; }
13023if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
13025else
13026 if test -n "$READELF_FOR_TARGET"; then
13027 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13028else
13029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030for as_dir in $PATH
13031do
13032 IFS=$as_save_IFS
13033 test -z "$as_dir" && as_dir=.
13034 for ac_exec_ext in '' $ac_executable_extensions; do
13035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13036 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038 break 2
13039 fi
13040done
13041 done
13042IFS=$as_save_IFS
13043
13044fi
13045fi
13046READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13047if test -n "$READELF_FOR_TARGET"; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13049$as_echo "$READELF_FOR_TARGET" >&6; }
13050else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052$as_echo "no" >&6; }
13053fi
13054
13055
13056 fi
13057 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
13058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13059set dummy ${ncn_progname}; ac_word=$2
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13061$as_echo_n "checking for $ac_word... " >&6; }
13062if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
13063 $as_echo_n "(cached) " >&6
13064else
13065 if test -n "$READELF_FOR_TARGET"; then
13066 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
13067else
13068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069for as_dir in $PATH
13070do
13071 IFS=$as_save_IFS
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
13076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 break 2
13078 fi
13079done
13080 done
13081IFS=$as_save_IFS
13082
13083fi
13084fi
13085READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
13086if test -n "$READELF_FOR_TARGET"; then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
13088$as_echo "$READELF_FOR_TARGET" >&6; }
13089else
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091$as_echo "no" >&6; }
13092fi
13093
13094
13095 fi
13096 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
13097 done
13098fi
13099
13100if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
13101 set dummy readelf
13102 if test $build = $target ; then
13103 READELF_FOR_TARGET="$2"
13104 else
13105 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
13106 fi
13107else
13108 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
13109fi
13110
13111else
13112 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
13113fi
13114
13115
13116
13117
e8b05380
PB
13118if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
13119 if test -n "$with_build_time_tools"; then
5213506e
RW
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
13121$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13122 if test -x $with_build_time_tools/strip; then
13123 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
13124 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
13126$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 13127 else
5213506e
RW
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129$as_echo "no" >&6; }
d1f8db0c 13130 fi
e8b05380
PB
13131 elif test $build != $host && test $have_gcc_for_target = yes; then
13132 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
13133 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
13134 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
13135 fi
13136fi
3e19841a 13137if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13138 # Extract the first word of "strip", so it can be a program name with args.
13139set dummy strip; ac_word=$2
5213506e
RW
13140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13141$as_echo_n "checking for $ac_word... " >&6; }
13142if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
13143 $as_echo_n "(cached) " >&6
e8b05380 13144else
1c710c3c
DJ
13145 case $STRIP_FOR_TARGET in
13146 [\\/]* | ?:[\\/]*)
e8b05380
PB
13147 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
13148 ;;
e8b05380 13149 *)
1c710c3c
DJ
13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13151for as_dir in $gcc_cv_tool_dirs
13152do
13153 IFS=$as_save_IFS
13154 test -z "$as_dir" && as_dir=.
5213506e
RW
13155 for ac_exec_ext in '' $ac_executable_extensions; do
13156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13157 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13159 break 2
13160 fi
13161done
5213506e
RW
13162 done
13163IFS=$as_save_IFS
1c710c3c 13164
e8b05380
PB
13165 ;;
13166esac
13167fi
1c710c3c 13168STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 13169if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13171$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 13172else
5213506e
RW
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174$as_echo "no" >&6; }
e8b05380
PB
13175fi
13176
5213506e 13177
e8b05380
PB
13178fi
13179if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
13180
13181
13182if test -n "$STRIP_FOR_TARGET"; then
13183 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13184elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13185 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13186fi
13187
13188if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13189 for ncn_progname in strip; do
13190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13191set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193$as_echo_n "checking for $ac_word... " >&6; }
13194if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13195 $as_echo_n "(cached) " >&6
278a7a38
AO
13196else
13197 if test -n "$STRIP_FOR_TARGET"; then
13198 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13199else
13200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13201for as_dir in $PATH
13202do
13203 IFS=$as_save_IFS
13204 test -z "$as_dir" && as_dir=.
5213506e
RW
13205 for ac_exec_ext in '' $ac_executable_extensions; do
13206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13207 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13209 break 2
13210 fi
13211done
5213506e
RW
13212 done
13213IFS=$as_save_IFS
278a7a38
AO
13214
13215fi
13216fi
13217STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13218if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13220$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 13221else
5213506e
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13223$as_echo "no" >&6; }
278a7a38
AO
13224fi
13225
5213506e 13226
278a7a38
AO
13227 done
13228fi
13229
13230if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13231 for ncn_progname in strip; do
5213506e
RW
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13233$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13234 if test -x $with_build_time_tools/${ncn_progname}; then
13235 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13237$as_echo "yes" >&6; }
e8b05380
PB
13238 break
13239 else
5213506e
RW
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13241$as_echo "no" >&6; }
e8b05380
PB
13242 fi
13243 done
13244fi
13245
13246if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13247 for ncn_progname in strip; do
13248 if test -n "$ncn_target_tool_prefix"; then
13249 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 13250set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13252$as_echo_n "checking for $ac_word... " >&6; }
13253if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
af71363e
AS
13255else
13256 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
13257 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13258else
13259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13260for as_dir in $PATH
13261do
13262 IFS=$as_save_IFS
13263 test -z "$as_dir" && as_dir=.
5213506e
RW
13264 for ac_exec_ext in '' $ac_executable_extensions; do
13265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13266 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13268 break 2
13269 fi
13270done
5213506e
RW
13271 done
13272IFS=$as_save_IFS
1c710c3c 13273
040b1c5a
GK
13274fi
13275fi
1c710c3c 13276STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13277if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13279$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13280else
5213506e
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13282$as_echo "no" >&6; }
040b1c5a
GK
13283fi
13284
5213506e 13285
e8b05380
PB
13286 fi
13287 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 13289set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13291$as_echo_n "checking for $ac_word... " >&6; }
13292if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13293 $as_echo_n "(cached) " >&6
040b1c5a
GK
13294else
13295 if test -n "$STRIP_FOR_TARGET"; then
13296 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13297else
1c710c3c
DJ
13298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13299for as_dir in $PATH
13300do
13301 IFS=$as_save_IFS
13302 test -z "$as_dir" && as_dir=.
5213506e
RW
13303 for ac_exec_ext in '' $ac_executable_extensions; do
13304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13305 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 13306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13307 break 2
13308 fi
13309done
5213506e
RW
13310 done
13311IFS=$as_save_IFS
1c710c3c 13312
040b1c5a
GK
13313fi
13314fi
1c710c3c 13315STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 13316if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13318$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 13319else
5213506e
RW
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13321$as_echo "no" >&6; }
040b1c5a 13322fi
1c710c3c 13323
5213506e 13324
e8b05380
PB
13325 fi
13326 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13327 done
13328fi
1c710c3c 13329
040b1c5a
GK
13330if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13331 set dummy strip
13332 if test $build = $target ; then
13333 STRIP_FOR_TARGET="$2"
13334 else
13335 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13336 fi
1c00b503
PB
13337else
13338 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
13339fi
13340
d1f8db0c
PB
13341else
13342 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
13343fi
13344
13345
13346
13347
13348if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13349 if test -n "$with_build_time_tools"; then
5213506e
RW
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13351$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13352 if test -x $with_build_time_tools/windres; then
13353 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13354 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13356$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 13357 else
5213506e
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359$as_echo "no" >&6; }
d1f8db0c 13360 fi
e8b05380
PB
13361 elif test $build != $host && test $have_gcc_for_target = yes; then
13362 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
13363 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13364 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
13365 fi
13366fi
3e19841a 13367if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
13368 # Extract the first word of "windres", so it can be a program name with args.
13369set dummy windres; ac_word=$2
5213506e
RW
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13371$as_echo_n "checking for $ac_word... " >&6; }
13372if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13373 $as_echo_n "(cached) " >&6
e8b05380 13374else
1c710c3c
DJ
13375 case $WINDRES_FOR_TARGET in
13376 [\\/]* | ?:[\\/]*)
e8b05380
PB
13377 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13378 ;;
e8b05380 13379 *)
1c710c3c
DJ
13380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13381for as_dir in $gcc_cv_tool_dirs
13382do
13383 IFS=$as_save_IFS
13384 test -z "$as_dir" && as_dir=.
5213506e
RW
13385 for ac_exec_ext in '' $ac_executable_extensions; do
13386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13387 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13389 break 2
13390 fi
13391done
5213506e
RW
13392 done
13393IFS=$as_save_IFS
1c710c3c 13394
e8b05380
PB
13395 ;;
13396esac
13397fi
1c710c3c 13398WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 13399if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13401$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 13402else
5213506e
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13404$as_echo "no" >&6; }
e8b05380
PB
13405fi
13406
5213506e 13407
e8b05380
PB
13408fi
13409if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
13410
13411
13412if test -n "$WINDRES_FOR_TARGET"; then
13413 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13414elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13415 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13416fi
13417
13418if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13419 for ncn_progname in windres; do
13420 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13421set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13423$as_echo_n "checking for $ac_word... " >&6; }
13424if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
278a7a38
AO
13426else
13427 if test -n "$WINDRES_FOR_TARGET"; then
13428 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13429else
13430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431for as_dir in $PATH
13432do
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
5213506e
RW
13435 for ac_exec_ext in '' $ac_executable_extensions; do
13436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 13437 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
13439 break 2
13440 fi
13441done
5213506e
RW
13442 done
13443IFS=$as_save_IFS
278a7a38
AO
13444
13445fi
13446fi
13447WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13448if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13450$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 13451else
5213506e
RW
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453$as_echo "no" >&6; }
278a7a38
AO
13454fi
13455
5213506e 13456
278a7a38
AO
13457 done
13458fi
13459
13460if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 13461 for ncn_progname in windres; do
5213506e
RW
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13463$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
13464 if test -x $with_build_time_tools/${ncn_progname}; then
13465 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13467$as_echo "yes" >&6; }
e8b05380
PB
13468 break
13469 else
5213506e
RW
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471$as_echo "no" >&6; }
e8b05380
PB
13472 fi
13473 done
13474fi
13475
13476if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13477 for ncn_progname in windres; do
13478 if test -n "$ncn_target_tool_prefix"; then
13479 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 13480set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13482$as_echo_n "checking for $ac_word... " >&6; }
13483if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13484 $as_echo_n "(cached) " >&6
ca9f4b81 13485else
4de997d1
PB
13486 if test -n "$WINDRES_FOR_TARGET"; then
13487 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13488else
1c710c3c
DJ
13489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13490for as_dir in $PATH
13491do
13492 IFS=$as_save_IFS
13493 test -z "$as_dir" && as_dir=.
5213506e
RW
13494 for ac_exec_ext in '' $ac_executable_extensions; do
13495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13496 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13498 break 2
13499 fi
13500done
5213506e
RW
13501 done
13502IFS=$as_save_IFS
1c710c3c 13503
ca9f4b81
AO
13504fi
13505fi
1c710c3c 13506WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 13507if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13509$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13510else
5213506e
RW
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512$as_echo "no" >&6; }
ca9f4b81
AO
13513fi
13514
5213506e 13515
e8b05380
PB
13516 fi
13517 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13518 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 13519set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13521$as_echo_n "checking for $ac_word... " >&6; }
13522if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13523 $as_echo_n "(cached) " >&6
ca9f4b81 13524else
2693c0b0
PB
13525 if test -n "$WINDRES_FOR_TARGET"; then
13526 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 13527else
1c710c3c
DJ
13528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13529for as_dir in $PATH
13530do
13531 IFS=$as_save_IFS
13532 test -z "$as_dir" && as_dir=.
5213506e
RW
13533 for ac_exec_ext in '' $ac_executable_extensions; do
13534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 13535 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 13536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
13537 break 2
13538 fi
13539done
5213506e
RW
13540 done
13541IFS=$as_save_IFS
1c710c3c 13542
ca9f4b81
AO
13543fi
13544fi
1c710c3c 13545WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 13546if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13548$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 13549else
5213506e
RW
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551$as_echo "no" >&6; }
ca9f4b81 13552fi
1c710c3c 13553
5213506e 13554
e8b05380
PB
13555 fi
13556 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13557 done
13558fi
1c710c3c 13559
2693c0b0
PB
13560if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13561 set dummy windres
13562 if test $build = $target ; then
13563 WINDRES_FOR_TARGET="$2"
ca9f4b81 13564 else
2693c0b0 13565 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13566 fi
1c00b503
PB
13567else
13568 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13569fi
13570
d1f8db0c
PB
13571else
13572 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13573fi
13574
4977bab6 13575
901119ae
KT
13576
13577
13578if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13579 if test -n "$with_build_time_tools"; then
5213506e
RW
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13581$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13582 if test -x $with_build_time_tools/windmc; then
13583 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13584 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13586$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13587 else
5213506e
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13589$as_echo "no" >&6; }
901119ae
KT
13590 fi
13591 elif test $build != $host && test $have_gcc_for_target = yes; then
13592 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13593 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13594 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13595 fi
13596fi
13597if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13598 # Extract the first word of "windmc", so it can be a program name with args.
13599set dummy windmc; ac_word=$2
5213506e
RW
13600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13601$as_echo_n "checking for $ac_word... " >&6; }
13602if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13603 $as_echo_n "(cached) " >&6
901119ae
KT
13604else
13605 case $WINDMC_FOR_TARGET in
13606 [\\/]* | ?:[\\/]*)
13607 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13608 ;;
13609 *)
13610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13611for as_dir in $gcc_cv_tool_dirs
13612do
13613 IFS=$as_save_IFS
13614 test -z "$as_dir" && as_dir=.
5213506e
RW
13615 for ac_exec_ext in '' $ac_executable_extensions; do
13616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13617 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13619 break 2
13620 fi
13621done
5213506e
RW
13622 done
13623IFS=$as_save_IFS
901119ae
KT
13624
13625 ;;
13626esac
13627fi
13628WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13629if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13631$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13632else
5213506e
RW
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13634$as_echo "no" >&6; }
901119ae
KT
13635fi
13636
5213506e 13637
901119ae
KT
13638fi
13639if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13640
13641
13642if test -n "$WINDMC_FOR_TARGET"; then
13643 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13644elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13645 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13646fi
13647
13648if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13649 for ncn_progname in windmc; do
13650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13651set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13653$as_echo_n "checking for $ac_word... " >&6; }
13654if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13655 $as_echo_n "(cached) " >&6
901119ae
KT
13656else
13657 if test -n "$WINDMC_FOR_TARGET"; then
13658 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13659else
13660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13661for as_dir in $PATH
13662do
13663 IFS=$as_save_IFS
13664 test -z "$as_dir" && as_dir=.
5213506e
RW
13665 for ac_exec_ext in '' $ac_executable_extensions; do
13666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13667 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13669 break 2
13670 fi
13671done
5213506e
RW
13672 done
13673IFS=$as_save_IFS
901119ae
KT
13674
13675fi
13676fi
13677WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13678if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13680$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13681else
5213506e
RW
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13683$as_echo "no" >&6; }
901119ae
KT
13684fi
13685
5213506e 13686
901119ae
KT
13687 done
13688fi
13689
13690if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13691 for ncn_progname in windmc; do
5213506e
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13693$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13694 if test -x $with_build_time_tools/${ncn_progname}; then
13695 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13697$as_echo "yes" >&6; }
901119ae
KT
13698 break
13699 else
5213506e
RW
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13701$as_echo "no" >&6; }
901119ae
KT
13702 fi
13703 done
13704fi
13705
13706if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13707 for ncn_progname in windmc; do
13708 if test -n "$ncn_target_tool_prefix"; then
13709 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13710set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13712$as_echo_n "checking for $ac_word... " >&6; }
13713if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13714 $as_echo_n "(cached) " >&6
901119ae
KT
13715else
13716 if test -n "$WINDMC_FOR_TARGET"; then
13717 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13718else
13719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13720for as_dir in $PATH
13721do
13722 IFS=$as_save_IFS
13723 test -z "$as_dir" && as_dir=.
5213506e
RW
13724 for ac_exec_ext in '' $ac_executable_extensions; do
13725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13726 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13728 break 2
13729 fi
13730done
5213506e
RW
13731 done
13732IFS=$as_save_IFS
901119ae
KT
13733
13734fi
13735fi
13736WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13737if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13739$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13740else
5213506e
RW
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13742$as_echo "no" >&6; }
901119ae
KT
13743fi
13744
5213506e 13745
901119ae
KT
13746 fi
13747 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13749set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13751$as_echo_n "checking for $ac_word... " >&6; }
13752if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13753 $as_echo_n "(cached) " >&6
901119ae
KT
13754else
13755 if test -n "$WINDMC_FOR_TARGET"; then
13756 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13757else
13758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759for as_dir in $PATH
13760do
13761 IFS=$as_save_IFS
13762 test -z "$as_dir" && as_dir=.
5213506e
RW
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13765 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13767 break 2
13768 fi
13769done
5213506e
RW
13770 done
13771IFS=$as_save_IFS
901119ae
KT
13772
13773fi
13774fi
13775WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13776if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13778$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13779else
5213506e
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781$as_echo "no" >&6; }
901119ae
KT
13782fi
13783
5213506e 13784
901119ae
KT
13785 fi
13786 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13787 done
13788fi
13789
13790if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13791 set dummy windmc
13792 if test $build = $target ; then
13793 WINDMC_FOR_TARGET="$2"
13794 else
13795 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13796 fi
1c00b503
PB
13797else
13798 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13799fi
13800
13801else
13802 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13803fi
13804
13805
2abefe3d
PB
13806RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13807
5213506e
RW
13808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13809$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13810if test "x${build}" != "x${host}" ; then
e8b05380
PB
13811 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13812 # We already found the complete path
172e41aa 13813 ac_dir=`dirname $AR_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; }
e8b05380
PB
13816 else
13817 # Canadian cross, just use what we found
5213506e
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13819$as_echo "pre-installed" >&6; }
e8b05380 13820 fi
2abefe3d
PB
13821else
13822 ok=yes
13823 case " ${configdirs} " in
13824 *" binutils "*) ;;
13825 *) ok=no ;;
13826 esac
1c710c3c 13827
2abefe3d
PB
13828 if test $ok = yes; then
13829 # An in-tree tool is available and we can use it
13830 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13832$as_echo "just compiled" >&6; }
e8b05380
PB
13833 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13834 # We already found the complete path
172e41aa 13835 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13837$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13838 elif test "x$target" = "x$host"; then
13839 # We can use an host tool
13840 AR_FOR_TARGET='$(AR)'
5213506e
RW
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13842$as_echo "host tool" >&6; }
2abefe3d
PB
13843 else
13844 # We need a cross tool
5213506e
RW
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13846$as_echo "pre-installed" >&6; }
2abefe3d
PB
13847 fi
13848fi
0b0dc272 13849
5213506e
RW
13850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13851$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13852if test "x${build}" != "x${host}" ; then
e8b05380
PB
13853 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13854 # We already found the complete path
172e41aa 13855 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13857$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13858 else
13859 # Canadian cross, just use what we found
5213506e
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13861$as_echo "pre-installed" >&6; }
e8b05380 13862 fi
2abefe3d
PB
13863else
13864 ok=yes
13865 case " ${configdirs} " in
13866 *" gas "*) ;;
13867 *) ok=no ;;
13868 esac
1c710c3c 13869
2abefe3d
PB
13870 if test $ok = yes; then
13871 # An in-tree tool is available and we can use it
13872 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13874$as_echo "just compiled" >&6; }
e8b05380
PB
13875 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13876 # We already found the complete path
172e41aa 13877 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13879$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13880 elif test "x$target" = "x$host"; then
13881 # We can use an host tool
13882 AS_FOR_TARGET='$(AS)'
5213506e
RW
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13884$as_echo "host tool" >&6; }
2abefe3d
PB
13885 else
13886 # We need a cross tool
5213506e
RW
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13888$as_echo "pre-installed" >&6; }
2abefe3d
PB
13889 fi
13890fi
0b0dc272 13891
5213506e
RW
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13893$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13894if test "x${build}" != "x${host}" ; then
e8b05380
PB
13895 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13896 # We already found the complete path
172e41aa 13897 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13899$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13900 else
13901 # Canadian cross, just use what we found
5213506e
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13903$as_echo "pre-installed" >&6; }
e8b05380 13904 fi
2abefe3d
PB
13905else
13906 ok=yes
13907 case " ${configdirs} " in
13908 *" gcc "*) ;;
13909 *) ok=no ;;
13910 esac
1c710c3c 13911
2abefe3d
PB
13912 if test $ok = yes; then
13913 # An in-tree tool is available and we can use it
13914 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13916$as_echo "just compiled" >&6; }
e8b05380
PB
13917 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13918 # We already found the complete path
172e41aa 13919 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13921$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13922 elif test "x$target" = "x$host"; then
13923 # We can use an host tool
13924 CC_FOR_TARGET='$(CC)'
5213506e
RW
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13926$as_echo "host tool" >&6; }
2abefe3d
PB
13927 else
13928 # We need a cross tool
5213506e
RW
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13930$as_echo "pre-installed" >&6; }
2abefe3d
PB
13931 fi
13932fi
0b0dc272 13933
5213506e
RW
13934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13935$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13936if test "x${build}" != "x${host}" ; then
e8b05380
PB
13937 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13938 # We already found the complete path
172e41aa 13939 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13941$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13942 else
13943 # Canadian cross, just use what we found
5213506e
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13945$as_echo "pre-installed" >&6; }
e8b05380 13946 fi
2abefe3d
PB
13947else
13948 ok=yes
13949 case " ${configdirs} " in
13950 *" gcc "*) ;;
13951 *) ok=no ;;
13952 esac
13953 case ,${enable_languages}, in
13954 *,c++,*) ;;
13955 *) ok=no ;;
13956 esac
13957 if test $ok = yes; then
13958 # An in-tree tool is available and we can use it
2077db1b 13959 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
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13961$as_echo "just compiled" >&6; }
e8b05380
PB
13962 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
172e41aa 13964 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13967 elif test "x$target" = "x$host"; then
13968 # We can use an host tool
13969 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13971$as_echo "host tool" >&6; }
2abefe3d
PB
13972 else
13973 # We need a cross tool
5213506e
RW
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13975$as_echo "pre-installed" >&6; }
2abefe3d
PB
13976 fi
13977fi
0b0dc272 13978
5213506e
RW
13979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13980$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13981if test "x${build}" != "x${host}" ; then
e8b05380
PB
13982 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13983 # We already found the complete path
172e41aa 13984 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13986$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13987 else
13988 # Canadian cross, just use what we found
5213506e
RW
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13990$as_echo "pre-installed" >&6; }
e8b05380 13991 fi
2abefe3d
PB
13992else
13993 ok=yes
13994 case " ${configdirs} " in
13995 *" gcc "*) ;;
13996 *) ok=no ;;
13997 esac
13998 case ,${enable_languages}, in
13999 *,c++,*) ;;
14000 *) ok=no ;;
14001 esac
14002 if test $ok = yes; then
14003 # An in-tree tool is available and we can use it
2077db1b 14004 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
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14006$as_echo "just compiled" >&6; }
e8b05380
PB
14007 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
172e41aa 14009 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14012 elif test "x$target" = "x$host"; then
14013 # We can use an host tool
14014 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14016$as_echo "host tool" >&6; }
2abefe3d
PB
14017 else
14018 # We need a cross tool
5213506e
RW
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14020$as_echo "pre-installed" >&6; }
2abefe3d
PB
14021 fi
14022fi
0b0dc272 14023
5213506e
RW
14024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
14025$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 14026if test "x${build}" != "x${host}" ; then
e8b05380
PB
14027 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14028 # We already found the complete path
172e41aa 14029 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14031$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14032 else
14033 # Canadian cross, just use what we found
5213506e
RW
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14035$as_echo "pre-installed" >&6; }
e8b05380 14036 fi
2abefe3d
PB
14037else
14038 ok=yes
14039 case " ${configdirs} " in
14040 *" binutils "*) ;;
14041 *) ok=no ;;
14042 esac
1c710c3c 14043
2abefe3d
PB
14044 if test $ok = yes; then
14045 # An in-tree tool is available and we can use it
14046 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14048$as_echo "just compiled" >&6; }
e8b05380
PB
14049 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
14050 # We already found the complete path
172e41aa 14051 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14053$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14054 elif test "x$target" = "x$host"; then
14055 # We can use an host tool
14056 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14058$as_echo "host tool" >&6; }
2abefe3d
PB
14059 else
14060 # We need a cross tool
5213506e
RW
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14062$as_echo "pre-installed" >&6; }
2abefe3d
PB
14063 fi
14064fi
0b0dc272 14065
5213506e
RW
14066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
14067$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 14068if test "x${build}" != "x${host}" ; then
e8b05380
PB
14069 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14070 # We already found the complete path
172e41aa 14071 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14073$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14074 else
14075 # Canadian cross, just use what we found
5213506e
RW
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14077$as_echo "pre-installed" >&6; }
e8b05380 14078 fi
2abefe3d
PB
14079else
14080 ok=yes
14081 case " ${configdirs} " in
14082 *" gcc "*) ;;
14083 *) ok=no ;;
14084 esac
1c710c3c 14085
2abefe3d
PB
14086 if test $ok = yes; then
14087 # An in-tree tool is available and we can use it
14088 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14090$as_echo "just compiled" >&6; }
e8b05380
PB
14091 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
14092 # We already found the complete path
172e41aa 14093 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14095$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14096 elif test "x$target" = "x$host"; then
14097 # We can use an host tool
14098 GCC_FOR_TARGET='$()'
5213506e
RW
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14100$as_echo "host tool" >&6; }
2abefe3d
PB
14101 else
14102 # We need a cross tool
5213506e
RW
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14104$as_echo "pre-installed" >&6; }
2abefe3d
PB
14105 fi
14106fi
0b0dc272 14107
5213506e
RW
14108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14109$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 14110if test "x${build}" != "x${host}" ; then
e8b05380
PB
14111 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14112 # We already found the complete path
172e41aa 14113 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14115$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14116 else
14117 # Canadian cross, just use what we found
5213506e
RW
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14119$as_echo "pre-installed" >&6; }
e8b05380 14120 fi
2abefe3d
PB
14121else
14122 ok=yes
14123 case " ${configdirs} " in
14124 *" gcc "*) ;;
14125 *) ok=no ;;
14126 esac
14127 case ,${enable_languages}, in
14128 *,fortran,*) ;;
14129 *) ok=no ;;
14130 esac
14131 if test $ok = yes; then
14132 # An in-tree tool is available and we can use it
14133 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14135$as_echo "just compiled" >&6; }
e8b05380
PB
14136 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14137 # We already found the complete path
172e41aa 14138 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14140$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14141 elif test "x$target" = "x$host"; then
14142 # We can use an host tool
14143 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14145$as_echo "host tool" >&6; }
2abefe3d
PB
14146 else
14147 # We need a cross tool
5213506e
RW
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14149$as_echo "pre-installed" >&6; }
2abefe3d
PB
14150 fi
14151fi
0b0dc272 14152
632e2a07
ILT
14153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14154$as_echo_n "checking where to find the target gccgo... " >&6; }
14155if test "x${build}" != "x${host}" ; then
14156 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14157 # We already found the complete path
14158 ac_dir=`dirname $GOC_FOR_TARGET`
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14160$as_echo "pre-installed in $ac_dir" >&6; }
14161 else
14162 # Canadian cross, just use what we found
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14164$as_echo "pre-installed" >&6; }
14165 fi
14166else
14167 ok=yes
14168 case " ${configdirs} " in
14169 *" gcc "*) ;;
14170 *) ok=no ;;
14171 esac
14172 case ,${enable_languages}, in
14173 *,go,*) ;;
14174 *) ok=no ;;
14175 esac
14176 if test $ok = yes; then
14177 # An in-tree tool is available and we can use it
14178 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14180$as_echo "just compiled" >&6; }
14181 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14182 # We already found the complete path
14183 ac_dir=`dirname $GOC_FOR_TARGET`
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14185$as_echo "pre-installed in $ac_dir" >&6; }
14186 elif test "x$target" = "x$host"; then
14187 # We can use an host tool
14188 GOC_FOR_TARGET='$(GOC)'
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14190$as_echo "host tool" >&6; }
14191 else
14192 # We need a cross tool
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14194$as_echo "pre-installed" >&6; }
14195 fi
14196fi
14197
5213506e
RW
14198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14199$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 14200if test "x${build}" != "x${host}" ; then
e8b05380
PB
14201 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14202 # We already found the complete path
172e41aa 14203 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14205$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14206 else
14207 # Canadian cross, just use what we found
5213506e
RW
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14209$as_echo "pre-installed" >&6; }
e8b05380 14210 fi
2abefe3d
PB
14211else
14212 ok=yes
14213 case " ${configdirs} " in
14214 *" ld "*) ;;
14215 *) ok=no ;;
14216 esac
1c710c3c 14217
2abefe3d
PB
14218 if test $ok = yes; then
14219 # An in-tree tool is available and we can use it
14220 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14222$as_echo "just compiled" >&6; }
e8b05380
PB
14223 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14224 # We already found the complete path
172e41aa 14225 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14227$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14228 elif test "x$target" = "x$host"; then
14229 # We can use an host tool
14230 LD_FOR_TARGET='$(LD)'
5213506e
RW
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14232$as_echo "host tool" >&6; }
2abefe3d
PB
14233 else
14234 # We need a cross tool
5213506e
RW
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14236$as_echo "pre-installed" >&6; }
2abefe3d
PB
14237 fi
14238fi
0b0dc272 14239
5213506e
RW
14240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14241$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 14242if test "x${build}" != "x${host}" ; then
e8b05380
PB
14243 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14244 # We already found the complete path
172e41aa 14245 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14247$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14248 else
14249 # Canadian cross, just use what we found
5213506e
RW
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14251$as_echo "pre-installed" >&6; }
e8b05380 14252 fi
2abefe3d 14253else
e8b05380
PB
14254 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
172e41aa 14256 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 14259 elif test "x$target" = "x$host"; then
2abefe3d
PB
14260 # We can use an host tool
14261 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14263$as_echo "host tool" >&6; }
2abefe3d
PB
14264 else
14265 # We need a cross tool
5213506e
RW
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14267$as_echo "pre-installed" >&6; }
2abefe3d
PB
14268 fi
14269fi
0b0dc272 14270
5213506e
RW
14271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14272$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 14273if test "x${build}" != "x${host}" ; then
e8b05380
PB
14274 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14275 # We already found the complete path
172e41aa 14276 ac_dir=`dirname $NM_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; }
e8b05380
PB
14279 else
14280 # Canadian cross, just use what we found
5213506e
RW
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14282$as_echo "pre-installed" >&6; }
e8b05380 14283 fi
2abefe3d
PB
14284else
14285 ok=yes
14286 case " ${configdirs} " in
14287 *" binutils "*) ;;
14288 *) ok=no ;;
14289 esac
1c710c3c 14290
2abefe3d
PB
14291 if test $ok = yes; then
14292 # An in-tree tool is available and we can use it
14293 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
14294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14295$as_echo "just compiled" >&6; }
e8b05380
PB
14296 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
172e41aa 14298 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14301 elif test "x$target" = "x$host"; then
14302 # We can use an host tool
14303 NM_FOR_TARGET='$(NM)'
5213506e
RW
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14305$as_echo "host tool" >&6; }
2abefe3d
PB
14306 else
14307 # We need a cross tool
5213506e
RW
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14309$as_echo "pre-installed" >&6; }
2abefe3d
PB
14310 fi
14311fi
0b0dc272 14312
9bccfdf5
AP
14313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
14314$as_echo_n "checking where to find the target objcopy... " >&6; }
14315if test "x${build}" != "x${host}" ; then
14316 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14317 # We already found the complete path
14318 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14320$as_echo "pre-installed in $ac_dir" >&6; }
14321 else
14322 # Canadian cross, just use what we found
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14324$as_echo "pre-installed" >&6; }
14325 fi
14326else
14327 ok=yes
14328 case " ${configdirs} " in
14329 *" binutils "*) ;;
14330 *) ok=no ;;
14331 esac
14332
14333 if test $ok = yes; then
14334 # An in-tree tool is available and we can use it
14335 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14337$as_echo "just compiled" >&6; }
14338 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
14340 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342$as_echo "pre-installed in $ac_dir" >&6; }
14343 elif test "x$target" = "x$host"; then
14344 # We can use an host tool
ec8fd1c0 14345 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
9bccfdf5
AP
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14347$as_echo "host tool" >&6; }
14348 else
14349 # We need a cross tool
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14351$as_echo "pre-installed" >&6; }
14352 fi
14353fi
14354
5213506e
RW
14355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14356$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 14357if test "x${build}" != "x${host}" ; then
e8b05380
PB
14358 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14359 # We already found the complete path
172e41aa 14360 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14362$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14363 else
14364 # Canadian cross, just use what we found
5213506e
RW
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14366$as_echo "pre-installed" >&6; }
e8b05380 14367 fi
2abefe3d
PB
14368else
14369 ok=yes
14370 case " ${configdirs} " in
14371 *" binutils "*) ;;
14372 *) ok=no ;;
14373 esac
1c710c3c 14374
2abefe3d
PB
14375 if test $ok = yes; then
14376 # An in-tree tool is available and we can use it
14377 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14379$as_echo "just compiled" >&6; }
e8b05380
PB
14380 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
172e41aa 14382 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14385 elif test "x$target" = "x$host"; then
14386 # We can use an host tool
14387 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14389$as_echo "host tool" >&6; }
2abefe3d
PB
14390 else
14391 # We need a cross tool
5213506e
RW
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14393$as_echo "pre-installed" >&6; }
2abefe3d
PB
14394 fi
14395fi
0b0dc272 14396
5213506e
RW
14397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14398$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 14399if test "x${build}" != "x${host}" ; then
e8b05380
PB
14400 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14401 # We already found the complete path
172e41aa 14402 ac_dir=`dirname $RANLIB_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; }
e8b05380
PB
14405 else
14406 # Canadian cross, just use what we found
5213506e
RW
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14408$as_echo "pre-installed" >&6; }
e8b05380 14409 fi
2abefe3d
PB
14410else
14411 ok=yes
14412 case " ${configdirs} " in
14413 *" binutils "*) ;;
14414 *) ok=no ;;
14415 esac
1c710c3c 14416
2abefe3d
PB
14417 if test $ok = yes; then
14418 # An in-tree tool is available and we can use it
14419 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14421$as_echo "just compiled" >&6; }
e8b05380
PB
14422 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
172e41aa 14424 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14427 elif test "x$target" = "x$host"; then
14428 # We can use an host tool
14429 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14431$as_echo "host tool" >&6; }
2abefe3d
PB
14432 else
14433 # We need a cross tool
5213506e
RW
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14435$as_echo "pre-installed" >&6; }
2abefe3d
PB
14436 fi
14437fi
0b0dc272 14438
e7a82751
RM
14439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14440$as_echo_n "checking where to find the target readelf... " >&6; }
14441if test "x${build}" != "x${host}" ; then
14442 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14443 # We already found the complete path
14444 ac_dir=`dirname $READELF_FOR_TARGET`
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14446$as_echo "pre-installed in $ac_dir" >&6; }
14447 else
14448 # Canadian cross, just use what we found
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14450$as_echo "pre-installed" >&6; }
14451 fi
14452else
14453 ok=yes
14454 case " ${configdirs} " in
14455 *" binutils "*) ;;
14456 *) ok=no ;;
14457 esac
14458
14459 if test $ok = yes; then
14460 # An in-tree tool is available and we can use it
14461 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14463$as_echo "just compiled" >&6; }
14464 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14465 # We already found the complete path
14466 ac_dir=`dirname $READELF_FOR_TARGET`
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14468$as_echo "pre-installed in $ac_dir" >&6; }
14469 elif test "x$target" = "x$host"; then
14470 # We can use an host tool
14471 READELF_FOR_TARGET='$(READELF)'
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14473$as_echo "host tool" >&6; }
14474 else
14475 # We need a cross tool
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14477$as_echo "pre-installed" >&6; }
14478 fi
14479fi
14480
5213506e
RW
14481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14482$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 14483if test "x${build}" != "x${host}" ; then
e8b05380
PB
14484 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14485 # We already found the complete path
172e41aa 14486 ac_dir=`dirname $STRIP_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; }
e8b05380
PB
14489 else
14490 # Canadian cross, just use what we found
5213506e
RW
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14492$as_echo "pre-installed" >&6; }
e8b05380 14493 fi
2abefe3d
PB
14494else
14495 ok=yes
14496 case " ${configdirs} " in
14497 *" binutils "*) ;;
14498 *) ok=no ;;
14499 esac
1c710c3c 14500
2abefe3d
PB
14501 if test $ok = yes; then
14502 # An in-tree tool is available and we can use it
455c8f48 14503 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14505$as_echo "just compiled" >&6; }
e8b05380
PB
14506 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14507 # We already found the complete path
172e41aa 14508 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14510$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14511 elif test "x$target" = "x$host"; then
14512 # We can use an host tool
14513 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14515$as_echo "host tool" >&6; }
2abefe3d
PB
14516 else
14517 # We need a cross tool
5213506e
RW
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14519$as_echo "pre-installed" >&6; }
2abefe3d
PB
14520 fi
14521fi
0b0dc272 14522
5213506e
RW
14523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14524$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 14525if test "x${build}" != "x${host}" ; then
e8b05380
PB
14526 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14527 # We already found the complete path
172e41aa 14528 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14530$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
14531 else
14532 # Canadian cross, just use what we found
5213506e
RW
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14534$as_echo "pre-installed" >&6; }
e8b05380 14535 fi
2abefe3d
PB
14536else
14537 ok=yes
14538 case " ${configdirs} " in
14539 *" binutils "*) ;;
14540 *) ok=no ;;
14541 esac
1c710c3c 14542
2abefe3d
PB
14543 if test $ok = yes; then
14544 # An in-tree tool is available and we can use it
14545 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14547$as_echo "just compiled" >&6; }
e8b05380
PB
14548 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14549 # We already found the complete path
172e41aa 14550 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14552$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
14553 elif test "x$target" = "x$host"; then
14554 # We can use an host tool
14555 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14557$as_echo "host tool" >&6; }
2abefe3d
PB
14558 else
14559 # We need a cross tool
5213506e
RW
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14561$as_echo "pre-installed" >&6; }
2abefe3d 14562 fi
671aa708 14563fi
be912515 14564
5213506e
RW
14565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14566$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
14567if test "x${build}" != "x${host}" ; then
14568 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14569 # We already found the complete path
14570 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14572$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14573 else
14574 # Canadian cross, just use what we found
5213506e
RW
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14576$as_echo "pre-installed" >&6; }
901119ae
KT
14577 fi
14578else
14579 ok=yes
14580 case " ${configdirs} " in
14581 *" binutils "*) ;;
14582 *) ok=no ;;
14583 esac
14584
14585 if test $ok = yes; then
14586 # An in-tree tool is available and we can use it
14587 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14589$as_echo "just compiled" >&6; }
901119ae
KT
14590 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14591 # We already found the complete path
14592 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14594$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
14595 elif test "x$target" = "x$host"; then
14596 # We can use an host tool
14597 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14599$as_echo "host tool" >&6; }
901119ae
KT
14600 else
14601 # We need a cross tool
5213506e
RW
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14603$as_echo "pre-installed" >&6; }
901119ae
KT
14604 fi
14605fi
14606
be912515
NN
14607
14608
2abefe3d 14609
0b0dc272 14610
671aa708
NN
14611# Certain tools may need extra flags.
14612AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14613RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14614NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14615
2abefe3d
PB
14616# When building target libraries, except in a Canadian cross, we use
14617# the same toolchain as the compiler we just built.
14618COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14619COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14620COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14621if test $host = $build; then
14622 case " $configdirs " in
14623 *" gcc "*)
14624 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14625 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14626 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14627 ;;
14628 esac
14629fi
14630
14631
14632
14633
14634
5213506e
RW
14635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14636$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14637# Check whether --enable-maintainer-mode was given.
14638if test "${enable_maintainer_mode+set}" = set; then :
14639 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14640else
14641 USE_MAINTAINER_MODE=no
5213506e
RW
14642fi
14643
14644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14645$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14646
14647
14648if test "$USE_MAINTAINER_MODE" = yes; then
14649 MAINTAINER_MODE_TRUE=
14650 MAINTAINER_MODE_FALSE='#'
14651else
14652 MAINTAINER_MODE_TRUE='#'
14653 MAINTAINER_MODE_FALSE=
1c710c3c 14654fi
ee03dc5e
AO
14655MAINT=$MAINTAINER_MODE_TRUE
14656
2805b53a
NN
14657# ---------------------
14658# GCC bootstrap support
14659# ---------------------
14660
14661# Stage specific cflags for build.
14662stage1_cflags="-g"
14663case $build in
14664 vax-*-*)
14665 case ${GCC} in
14666 yes) stage1_cflags="-g -Wa,-J" ;;
14667 *) stage1_cflags="-g -J" ;;
14668 esac ;;
2805b53a
NN
14669esac
14670
0b50988a 14671
2805b53a 14672
8efea775 14673# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14674# Check whether --enable-stage1-checking was given.
14675if test "${enable_stage1_checking+set}" = set; then :
14676 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14677else
e643dc23 14678 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
c10b5ea0
JJ
14679 # For --disable-checking or implicit --enable-checking=release, avoid
14680 # setting --enable-checking=gc in the default stage1 checking for LTO
14681 # bootstraps. See PR62077.
c10b5ea0
JJ
14682 case $BUILD_CONFIG in
14683 *lto*)
7db11a5a
JJ
14684 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
14685 *)
14686 stage1_checking=--enable-checking=yes,types;;
c10b5ea0 14687 esac
7db11a5a
JJ
14688 if test "x$enable_checking" = x && \
14689 test -d ${srcdir}/gcc && \
14690 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
c100769b 14691 stage1_checking=--enable-checking=yes,types,extra
7db11a5a 14692 fi
8efea775 14693else
e643dc23 14694 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14695fi
5213506e 14696fi
8efea775
PB
14697
14698
2aeb72e9 14699
5213506e
RW
14700# Enable -Werror in bootstrap stage2 and later.
14701# Check whether --enable-werror was given.
14702if test "${enable_werror+set}" = set; then :
14703 enableval=$enable_werror;
2805b53a 14704else
416cfb5e 14705 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14706 enable_werror=yes
88fceb68
PB
14707else
14708 enable_werror=no
14709fi
5213506e
RW
14710fi
14711
09a9c095
NN
14712case ${enable_werror} in
14713 yes) stage2_werror_flag="--enable-werror-always" ;;
14714 *) stage2_werror_flag="" ;;
2805b53a
NN
14715esac
14716
14717
459260ec
DM
14718# Enable --enable-host-shared.
14719# Check whether --enable-host-shared was given.
14720if test "${enable_host_shared+set}" = set; then :
14721 enableval=$enable_host_shared; host_shared=$enableval
14722else
14723 host_shared=no
14724fi
14725
14726
14727
231d020b
DM
14728# PR jit/64780: Require the user to explicitly specify
14729# --enable-host-shared if the jit is enabled, hinting
14730# that they might want to do a separate configure/build of
14731# the jit, to avoid users from slowing down the rest of the
14732# compiler by enabling the jit.
14733if test ${host_shared} = "no" ; then
14734 case "${enable_languages}" in
14735 *jit*)
14736 as_fn_error "
14737Enabling language \"jit\" requires --enable-host-shared.
14738
14739--enable-host-shared typically slows the rest of the compiler down by
14740a few %, so you must explicitly enable it.
14741
14742If you want to build both the jit and the regular compiler, it is often
14743best to do this via two separate configure/builds, in separate
14744directories, to avoid imposing the performance cost of
14745--enable-host-shared on the regular compiler." "$LINENO" 5
14746 ;;
14747 *)
14748 ;;
14749 esac
14750fi
14751
f2689b09
SE
14752# Specify what files to not compare during bootstrap.
14753
14754compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14755case "$target" in
14756 hppa*64*-*-hpux*) ;;
14757 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
d91491e5 14758 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
f2689b09
SE
14759esac
14760
14761
5213506e
RW
14762ac_config_files="$ac_config_files Makefile"
14763
1c710c3c 14764cat >confcache <<\_ACEOF
671aa708
NN
14765# This file is a shell script that caches the results of configure
14766# tests run on this system so they can be shared between configure
1c710c3c
DJ
14767# scripts and configure runs, see configure's option --config-cache.
14768# It is not useful on other systems. If it contains results you don't
14769# want to keep, you may remove or edit it.
671aa708 14770#
1c710c3c
DJ
14771# config.status only pays attention to the cache file if you give it
14772# the --recheck option to rerun configure.
671aa708 14773#
1c710c3c
DJ
14774# `ac_cv_env_foo' variables (set or unset) will be overridden when
14775# loading this file, other *unset* `ac_cv_foo' will be assigned the
14776# following values.
14777
14778_ACEOF
14779
671aa708
NN
14780# The following way of writing the cache mishandles newlines in values,
14781# but we know of no workaround that is simple, portable, and efficient.
5213506e 14782# So, we kill variables containing newlines.
671aa708
NN
14783# Ultrix sh set writes to stderr and can't be redirected directly,
14784# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14785(
14786 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14787 eval ac_val=\$$ac_var
14788 case $ac_val in #(
14789 *${as_nl}*)
14790 case $ac_var in #(
14791 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14792$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14793 esac
14794 case $ac_var in #(
14795 _ | IFS | as_nl) ;; #(
14796 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14797 *) { eval $ac_var=; unset $ac_var;} ;;
14798 esac ;;
14799 esac
14800 done
14801
1c710c3c 14802 (set) 2>&1 |
5213506e
RW
14803 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14804 *${as_nl}ac_space=\ *)
14805 # `set' does not quote correctly, so add quotes: double-quote
14806 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14807 sed -n \
14808 "s/'/'\\\\''/g;
14809 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14810 ;; #(
1c710c3c
DJ
14811 *)
14812 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14813 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14814 ;;
5213506e
RW
14815 esac |
14816 sort
14817) |
1c710c3c 14818 sed '
5213506e 14819 /^ac_cv_env_/b end
1c710c3c 14820 t clear
5213506e 14821 :clear
1c710c3c
DJ
14822 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14823 t end
5213506e
RW
14824 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14825 :end' >>confcache
14826if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14827 if test -w "$cache_file"; then
14828 test "x$cache_file" != "x/dev/null" &&
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14830$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14831 cat confcache >$cache_file
671aa708 14832 else
5213506e
RW
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14834$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14835 fi
4977bab6 14836fi
671aa708 14837rm -f confcache
79c06341 14838
671aa708
NN
14839test "x$prefix" = xNONE && prefix=$ac_default_prefix
14840# Let make expand exec_prefix.
14841test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14842
671aa708
NN
14843# Transform confdefs.h into DEFS.
14844# Protect against shell expansion while executing Makefile rules.
14845# Protect against Makefile macro expansion.
1c710c3c
DJ
14846#
14847# If the first sed substitution is executed (which looks for macros that
5213506e 14848# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14849# look for a macro that doesn't take arguments.
5213506e
RW
14850ac_script='
14851:mline
14852/\\$/{
14853 N
14854 s,\\\n,,
14855 b mline
14856}
1c710c3c 14857t clear
5213506e
RW
14858:clear
14859s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14860t quote
5213506e 14861s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14862t quote
5213506e
RW
14863b any
14864:quote
14865s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14866s/\[/\\&/g
14867s/\]/\\&/g
14868s/\$/$$/g
14869H
14870:any
14871${
14872 g
14873 s/^\n//
14874 s/\n/ /g
14875 p
14876}
14877'
14878DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14879
14880
14881ac_libobjs=
14882ac_ltlibobjs=
14883for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14884 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14885 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14886 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14887 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14888 # will be set to the directory where LIBOBJS objects are built.
14889 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14890 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14891done
14892LIBOBJS=$ac_libobjs
fb0103e5 14893
1c710c3c 14894LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14895
af71363e 14896
1c710c3c
DJ
14897
14898: ${CONFIG_STATUS=./config.status}
5213506e 14899ac_write_fail=0
1c710c3c
DJ
14900ac_clean_files_save=$ac_clean_files
14901ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14902{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14903$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14904as_write_fail=0
14905cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14906#! $SHELL
14907# Generated by $as_me.
671aa708 14908# Run this file to recreate the current configuration.
671aa708 14909# Compiler output produced by configure, useful for debugging
1c710c3c 14910# configure, is in config.log if it exists.
0b0dc272 14911
1c710c3c
DJ
14912debug=false
14913ac_cs_recheck=false
14914ac_cs_silent=false
1c710c3c 14915
5213506e
RW
14916SHELL=\${CONFIG_SHELL-$SHELL}
14917export SHELL
14918_ASEOF
14919cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14920## -------------------- ##
14921## M4sh Initialization. ##
14922## -------------------- ##
14923
14924# Be more Bourne compatible
14925DUALCASE=1; export DUALCASE # for MKS sh
14926if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14927 emulate sh
14928 NULLCMD=:
5213506e 14929 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14930 # is contrary to our usage. Disable this feature.
14931 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14932 setopt NO_GLOB_SUBST
14933else
14934 case `(set -o) 2>/dev/null` in #(
14935 *posix*) :
14936 set -o posix ;; #(
14937 *) :
14938 ;;
14939esac
1c710c3c 14940fi
1c710c3c 14941
5213506e
RW
14942
14943as_nl='
14944'
14945export as_nl
14946# Printing a long string crashes Solaris 7 /usr/bin/printf.
14947as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14948as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14949as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14950# Prefer a ksh shell builtin over an external printf program on Solaris,
14951# but without wasting forks for bash or zsh.
14952if test -z "$BASH_VERSION$ZSH_VERSION" \
14953 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14954 as_echo='print -r --'
14955 as_echo_n='print -rn --'
14956elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14957 as_echo='printf %s\n'
14958 as_echo_n='printf %s'
14959else
14960 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14961 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14962 as_echo_n='/usr/ucb/echo -n'
14963 else
14964 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14965 as_echo_n_body='eval
14966 arg=$1;
14967 case $arg in #(
14968 *"$as_nl"*)
14969 expr "X$arg" : "X\\(.*\\)$as_nl";
14970 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14971 esac;
14972 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14973 '
14974 export as_echo_n_body
14975 as_echo_n='sh -c $as_echo_n_body as_echo'
14976 fi
14977 export as_echo_body
14978 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14979fi
14980
5213506e
RW
14981# The user is always right.
14982if test "${PATH_SEPARATOR+set}" != set; then
14983 PATH_SEPARATOR=:
14984 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14985 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14986 PATH_SEPARATOR=';'
14987 }
14988fi
14989
14990
14991# IFS
14992# We need space, tab and new line, in precisely that order. Quoting is
14993# there to prevent editors from complaining about space-tab.
14994# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14995# splitting by setting IFS to empty value.)
14996IFS=" "" $as_nl"
14997
14998# Find who we are. Look in the path if we contain no directory separator.
14999case $0 in #((
15000 *[\\/]* ) as_myself=$0 ;;
15001 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15002for as_dir in $PATH
15003do
15004 IFS=$as_save_IFS
15005 test -z "$as_dir" && as_dir=.
15006 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15007 done
15008IFS=$as_save_IFS
15009
15010 ;;
15011esac
15012# We did not find ourselves, most probably we were run as `sh COMMAND'
15013# in which case we are not to be found in the path.
15014if test "x$as_myself" = x; then
15015 as_myself=$0
15016fi
15017if test ! -f "$as_myself"; then
15018 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15019 exit 1
15020fi
1c710c3c 15021
5213506e
RW
15022# Unset variables that we do not need and which cause bugs (e.g. in
15023# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15024# suppresses any "Segmentation fault" message there. '((' could
15025# trigger a bug in pdksh 5.2.14.
15026for as_var in BASH_ENV ENV MAIL MAILPATH
15027do eval test x\${$as_var+set} = xset \
15028 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15029done
1c710c3c
DJ
15030PS1='$ '
15031PS2='> '
15032PS4='+ '
15033
15034# NLS nuisances.
5213506e
RW
15035LC_ALL=C
15036export LC_ALL
15037LANGUAGE=C
15038export LANGUAGE
15039
15040# CDPATH.
15041(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15042
15043
15044# as_fn_error ERROR [LINENO LOG_FD]
15045# ---------------------------------
15046# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15047# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15048# script with status $?, using 1 if that was 0.
15049as_fn_error ()
15050{
15051 as_status=$?; test $as_status -eq 0 && as_status=1
15052 if test "$3"; then
15053 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15054 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 15055 fi
5213506e
RW
15056 $as_echo "$as_me: error: $1" >&2
15057 as_fn_exit $as_status
15058} # as_fn_error
15059
15060
15061# as_fn_set_status STATUS
15062# -----------------------
15063# Set $? to STATUS, without forking.
15064as_fn_set_status ()
15065{
15066 return $1
15067} # as_fn_set_status
15068
15069# as_fn_exit STATUS
15070# -----------------
15071# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15072as_fn_exit ()
15073{
15074 set +e
15075 as_fn_set_status $1
15076 exit $1
15077} # as_fn_exit
15078
15079# as_fn_unset VAR
15080# ---------------
15081# Portably unset VAR.
15082as_fn_unset ()
15083{
15084 { eval $1=; unset $1;}
15085}
15086as_unset=as_fn_unset
15087# as_fn_append VAR VALUE
15088# ----------------------
15089# Append the text in VALUE to the end of the definition contained in VAR. Take
15090# advantage of any shell optimizations that allow amortized linear growth over
15091# repeated appends, instead of the typical quadratic growth present in naive
15092# implementations.
15093if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15094 eval 'as_fn_append ()
15095 {
15096 eval $1+=\$2
15097 }'
15098else
15099 as_fn_append ()
15100 {
15101 eval $1=\$$1\$2
15102 }
15103fi # as_fn_append
15104
15105# as_fn_arith ARG...
15106# ------------------
15107# Perform arithmetic evaluation on the ARGs, and store the result in the
15108# global $as_val. Take advantage of shells that can avoid forks. The arguments
15109# must be portable across $(()) and expr.
15110if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15111 eval 'as_fn_arith ()
15112 {
15113 as_val=$(( $* ))
15114 }'
15115else
15116 as_fn_arith ()
15117 {
15118 as_val=`expr "$@" || test $? -eq 1`
15119 }
15120fi # as_fn_arith
15121
1c710c3c 15122
5213506e
RW
15123if expr a : '\(a\)' >/dev/null 2>&1 &&
15124 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
15125 as_expr=expr
15126else
15127 as_expr=false
15128fi
15129
5213506e 15130if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
15131 as_basename=basename
15132else
15133 as_basename=false
15134fi
15135
5213506e
RW
15136if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15137 as_dirname=dirname
15138else
15139 as_dirname=false
15140fi
1c710c3c 15141
5213506e 15142as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
15143$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15144 X"$0" : 'X\(//\)$' \| \
5213506e
RW
15145 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15146$as_echo X/"$0" |
15147 sed '/^.*\/\([^/][^/]*\)\/*$/{
15148 s//\1/
15149 q
15150 }
15151 /^X\/\(\/\/\)$/{
15152 s//\1/
15153 q
15154 }
15155 /^X\/\(\/\).*/{
15156 s//\1/
15157 q
15158 }
15159 s/.*/./; q'`
2aeb72e9 15160
2aeb72e9
DD
15161# Avoid depending upon Character Ranges.
15162as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15163as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15164as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15165as_cr_digits='0123456789'
15166as_cr_alnum=$as_cr_Letters$as_cr_digits
15167
5213506e
RW
15168ECHO_C= ECHO_N= ECHO_T=
15169case `echo -n x` in #(((((
15170-n*)
15171 case `echo 'xy\c'` in
15172 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15173 xy) ECHO_C='\c';;
15174 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15175 ECHO_T=' ';;
15176 esac;;
15177*)
15178 ECHO_N='-n';;
1c710c3c
DJ
15179esac
15180
5213506e
RW
15181rm -f conf$$ conf$$.exe conf$$.file
15182if test -d conf$$.dir; then
15183 rm -f conf$$.dir/conf$$.file
1c710c3c 15184else
5213506e
RW
15185 rm -f conf$$.dir
15186 mkdir conf$$.dir 2>/dev/null
1c710c3c 15187fi
5213506e
RW
15188if (echo >conf$$.file) 2>/dev/null; then
15189 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 15190 as_ln_s='ln -s'
5213506e
RW
15191 # ... but there are two gotchas:
15192 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15193 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15194 # In both cases, we have to default to `cp -p'.
15195 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15196 as_ln_s='cp -p'
15197 elif ln conf$$.file conf$$ 2>/dev/null; then
15198 as_ln_s=ln
15199 else
15200 as_ln_s='cp -p'
2aeb72e9 15201 fi
1c710c3c
DJ
15202else
15203 as_ln_s='cp -p'
15204fi
5213506e
RW
15205rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15206rmdir conf$$.dir 2>/dev/null
15207
15208
15209# as_fn_mkdir_p
15210# -------------
15211# Create "$as_dir" as a directory, including parents if necessary.
15212as_fn_mkdir_p ()
15213{
15214
15215 case $as_dir in #(
15216 -*) as_dir=./$as_dir;;
15217 esac
15218 test -d "$as_dir" || eval $as_mkdir_p || {
15219 as_dirs=
15220 while :; do
15221 case $as_dir in #(
15222 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15223 *) as_qdir=$as_dir;;
15224 esac
15225 as_dirs="'$as_qdir' $as_dirs"
15226 as_dir=`$as_dirname -- "$as_dir" ||
15227$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15228 X"$as_dir" : 'X\(//\)[^/]' \| \
15229 X"$as_dir" : 'X\(//\)$' \| \
15230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15231$as_echo X"$as_dir" |
15232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15233 s//\1/
15234 q
15235 }
15236 /^X\(\/\/\)[^/].*/{
15237 s//\1/
15238 q
15239 }
15240 /^X\(\/\/\)$/{
15241 s//\1/
15242 q
15243 }
15244 /^X\(\/\).*/{
15245 s//\1/
15246 q
15247 }
15248 s/.*/./; q'`
15249 test -d "$as_dir" && break
15250 done
15251 test -z "$as_dirs" || eval "mkdir $as_dirs"
15252 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15253
1c710c3c 15254
5213506e 15255} # as_fn_mkdir_p
1c710c3c 15256if mkdir -p . 2>/dev/null; then
5213506e 15257 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
15258else
15259 test -d ./-p && rmdir ./-p
15260 as_mkdir_p=false
15261fi
15262
5213506e
RW
15263if test -x / >/dev/null 2>&1; then
15264 as_test_x='test -x'
15265else
15266 if ls -dL / >/dev/null 2>&1; then
15267 as_ls_L_option=L
15268 else
15269 as_ls_L_option=
15270 fi
15271 as_test_x='
15272 eval sh -c '\''
15273 if test -d "$1"; then
15274 test -d "$1/.";
15275 else
15276 case $1 in #(
15277 -*)set "./$1";;
15278 esac;
15279 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15280 ???[sx]*):;;*)false;;esac;fi
15281 '\'' sh
15282 '
15283fi
15284as_executable_p=$as_test_x
1c710c3c
DJ
15285
15286# Sed expression to map a string onto a valid CPP name.
15287as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15288
15289# Sed expression to map a string onto a valid variable name.
15290as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15291
15292
1c710c3c 15293exec 6>&1
5213506e
RW
15294## ----------------------------------- ##
15295## Main body of $CONFIG_STATUS script. ##
15296## ----------------------------------- ##
15297_ASEOF
15298test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15299
15300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15301# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 15302# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
15303# values after options handling.
15304ac_log="
1c710c3c 15305This file was extended by $as_me, which was
5213506e 15306generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
15307
15308 CONFIG_FILES = $CONFIG_FILES
15309 CONFIG_HEADERS = $CONFIG_HEADERS
15310 CONFIG_LINKS = $CONFIG_LINKS
15311 CONFIG_COMMANDS = $CONFIG_COMMANDS
15312 $ $0 $@
15313
5213506e
RW
15314on `(hostname || uname -n) 2>/dev/null | sed 1q`
15315"
15316
1c710c3c
DJ
15317_ACEOF
15318
5213506e
RW
15319case $ac_config_files in *"
15320"*) set x $ac_config_files; shift; ac_config_files=$*;;
15321esac
1c710c3c 15322
2aeb72e9 15323
2aeb72e9 15324
5213506e
RW
15325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15326# Files that config.status was made for.
15327config_files="$ac_config_files"
1c710c3c 15328
5213506e 15329_ACEOF
2aeb72e9 15330
5213506e 15331cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 15332ac_cs_usage="\
5213506e
RW
15333\`$as_me' instantiates files and other configuration actions
15334from templates according to the current configuration. Unless the files
15335and actions are specified as TAGs, all are instantiated by default.
1c710c3c 15336
5213506e 15337Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
15338
15339 -h, --help print this help, then exit
5213506e
RW
15340 -V, --version print version number and configuration settings, then exit
15341 -q, --quiet, --silent
15342 do not print progress messages
1c710c3c
DJ
15343 -d, --debug don't remove temporary files
15344 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
15345 --file=FILE[:TEMPLATE]
15346 instantiate the configuration file FILE
1c710c3c
DJ
15347
15348Configuration files:
15349$config_files
15350
5213506e 15351Report bugs to the package provider."
2aeb72e9 15352
5213506e
RW
15353_ACEOF
15354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
15355ac_cs_version="\\
15356config.status
5213506e
RW
15357configured by $0, generated by GNU Autoconf 2.64,
15358 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 15359
5213506e 15360Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
15361This config.status script is free software; the Free Software Foundation
15362gives unlimited permission to copy, distribute and modify it."
5213506e
RW
15363
15364ac_pwd='$ac_pwd'
15365srcdir='$srcdir'
15366INSTALL='$INSTALL'
87264276 15367AWK='$AWK'
5213506e 15368test -n "\$AWK" || AWK=awk
1c710c3c
DJ
15369_ACEOF
15370
5213506e
RW
15371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15372# The default lists apply if the user does not specify any file.
1c710c3c
DJ
15373ac_need_defaults=:
15374while test $# != 0
a4b9e93e 15375do
1c710c3c
DJ
15376 case $1 in
15377 --*=*)
5213506e
RW
15378 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15379 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
15380 ac_shift=:
15381 ;;
5213506e 15382 *)
1c710c3c
DJ
15383 ac_option=$1
15384 ac_optarg=$2
15385 ac_shift=shift
15386 ;;
1c710c3c
DJ
15387 esac
15388
15389 case $ac_option in
15390 # Handling of the options.
671aa708 15391 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 15392 ac_cs_recheck=: ;;
5213506e
RW
15393 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15394 $as_echo "$ac_cs_version"; exit ;;
15395 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
15396 debug=: ;;
15397 --file | --fil | --fi | --f )
15398 $ac_shift
5213506e
RW
15399 case $ac_optarg in
15400 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15401 esac
15402 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 15403 ac_need_defaults=false;;
5213506e
RW
15404 --he | --h | --help | --hel | -h )
15405 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
15406 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15407 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15408 ac_cs_silent=: ;;
15409
15410 # This is an error.
5213506e
RW
15411 -*) as_fn_error "unrecognized option: \`$1'
15412Try \`$0 --help' for more information." ;;
1c710c3c 15413
5213506e
RW
15414 *) as_fn_append ac_config_targets " $1"
15415 ac_need_defaults=false ;;
1c710c3c 15416
0b0dc272 15417 esac
1c710c3c 15418 shift
0b0dc272
AM
15419done
15420
1c710c3c 15421ac_configure_extra_args=
0b0dc272 15422
1c710c3c
DJ
15423if $ac_cs_silent; then
15424 exec 6>/dev/null
15425 ac_configure_extra_args="$ac_configure_extra_args --silent"
15426fi
0b0dc272 15427
1c710c3c 15428_ACEOF
5213506e 15429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 15430if \$ac_cs_recheck; then
5213506e
RW
15431 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15432 shift
15433 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15434 CONFIG_SHELL='$SHELL'
15435 export CONFIG_SHELL
15436 exec "\$@"
1c710c3c
DJ
15437fi
15438
15439_ACEOF
5213506e
RW
15440cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15441exec 5>>config.log
15442{
15443 echo
15444 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15445## Running $as_me. ##
15446_ASBOX
15447 $as_echo "$ac_log"
15448} >&5
1c710c3c 15449
5213506e
RW
15450_ACEOF
15451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
15452#
15453# INIT-COMMANDS
15454#
15455extrasub_build="$extrasub_build"
15456 extrasub_host="$extrasub_host"
15457 extrasub_target="$extrasub_target"
15458
5213506e 15459_ACEOF
1c710c3c 15460
5213506e 15461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 15462
5213506e 15463# Handling of arguments.
1c710c3c
DJ
15464for ac_config_target in $ac_config_targets
15465do
5213506e
RW
15466 case $ac_config_target in
15467 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15468
15469 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
15470 esac
15471done
15472
5213506e 15473
1c710c3c
DJ
15474# If the user did not use the arguments to specify the items to instantiate,
15475# then the envvar interface is used. Set only those that are not.
15476# We use the long form for the default assignment because of an extremely
15477# bizarre bug on SunOS 4.1.3.
15478if $ac_need_defaults; then
15479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15480fi
15481
15482# Have a temporary directory for convenience. Make it in the build tree
5213506e 15483# simply because there is no reason against having it here, and in addition,
1c710c3c 15484# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
15485# Hook for its removal unless debugging.
15486# Note that there is a small window in which the directory will not be cleaned:
15487# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
15488$debug ||
15489{
5213506e
RW
15490 tmp=
15491 trap 'exit_status=$?
15492 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15493' 0
15494 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 15495}
1c710c3c
DJ
15496# Create a (secure) tmp directory for tmp files.
15497
15498{
5213506e 15499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
15500 test -n "$tmp" && test -d "$tmp"
15501} ||
15502{
5213506e
RW
15503 tmp=./conf$$-$RANDOM
15504 (umask 077 && mkdir "$tmp")
15505} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15506
15507# Set up the scripts for CONFIG_FILES section.
15508# No need to generate them if there are no CONFIG_FILES.
15509# This happens for instance with `./config.status config.h'.
15510if test -n "$CONFIG_FILES"; then
15511
15512if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15513 ac_cs_awk_getline=:
15514 ac_cs_awk_pipe_init=
15515 ac_cs_awk_read_file='
15516 while ((getline aline < (F[key])) > 0)
15517 print(aline)
15518 close(F[key])'
15519 ac_cs_awk_pipe_fini=
15520else
15521 ac_cs_awk_getline=false
15522 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15523 ac_cs_awk_read_file='
15524 print "|#_!!_#|"
15525 print "cat " F[key] " &&"
15526 '$ac_cs_awk_pipe_init
15527 # The final `:' finishes the AND list.
15528 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15529fi
15530ac_cr=`echo X | tr X '\015'`
15531# On cygwin, bash can eat \r inside `` if the user requested igncr.
15532# But we know of no other shell where ac_cr would be empty at this
15533# point, so we can use a bashism as a fallback.
15534if test "x$ac_cr" = x; then
15535 eval ac_cr=\$\'\\r\'
15536fi
15537ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15538if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15539 ac_cs_awk_cr='\r'
15540else
15541 ac_cs_awk_cr=$ac_cr
15542fi
15543
15544echo 'BEGIN {' >"$tmp/subs1.awk" &&
15545_ACEOF
15546
15547# Create commands to substitute file output variables.
1c710c3c 15548{
5213506e
RW
15549 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15550 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15551 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15552 echo "_ACAWK" &&
15553 echo "_ACEOF"
15554} >conf$$files.sh &&
15555. ./conf$$files.sh ||
15556 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15557rm -f conf$$files.sh
1c710c3c 15558
5213506e
RW
15559{
15560 echo "cat >conf$$subs.awk <<_ACEOF" &&
15561 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15562 echo "_ACEOF"
15563} >conf$$subs.sh ||
15564 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15565ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15566ac_delim='%!_!# '
15567for ac_last_try in false false false false false :; do
15568 . ./conf$$subs.sh ||
15569 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15570
15571 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15572 if test $ac_delim_n = $ac_delim_num; then
15573 break
15574 elif $ac_last_try; then
15575 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15576 else
15577 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15578 fi
15579done
15580rm -f conf$$subs.sh
15581
15582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15583cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 15584_ACEOF
5213506e
RW
15585sed -n '
15586h
15587s/^/S["/; s/!.*/"]=/
15588p
15589g
15590s/^[^!]*!//
15591:repl
15592t repl
15593s/'"$ac_delim"'$//
15594t delim
15595:nl
15596h
15597s/\(.\{148\}\).*/\1/
15598t more1
15599s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15600p
15601n
15602b repl
15603:more1
15604s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15605p
15606g
15607s/.\{148\}//
15608t nl
15609:delim
15610h
15611s/\(.\{148\}\).*/\1/
15612t more2
15613s/["\\]/\\&/g; s/^/"/; s/$/"/
15614p
15615b
15616:more2
15617s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15618p
15619g
15620s/.\{148\}//
15621t delim
15622' <conf$$subs.awk | sed '
15623/^[^""]/{
15624 N
15625 s/\n//
15626}
15627' >>$CONFIG_STATUS || ac_write_fail=1
15628rm -f conf$$subs.awk
15629cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15630_ACAWK
15631cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15632 for (key in S) S_is_set[key] = 1
15633 FS = "\a"
15634 \$ac_cs_awk_pipe_init
15635}
15636{
15637 line = $ 0
15638 nfields = split(line, field, "@")
15639 substed = 0
15640 len = length(field[1])
15641 for (i = 2; i < nfields; i++) {
15642 key = field[i]
15643 keylen = length(key)
15644 if (S_is_set[key]) {
15645 value = S[key]
15646 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15647 len += length(value) + length(field[++i])
15648 substed = 1
15649 } else
15650 len += 1 + keylen
15651 }
15652 if (nfields == 3 && !substed) {
15653 key = field[2]
15654 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15655 \$ac_cs_awk_read_file
15656 next
15657 }
15658 }
15659 print line
15660}
15661\$ac_cs_awk_pipe_fini
15662_ACAWK
15663_ACEOF
15664cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15665if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15666 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15667else
15668 cat
15669fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15670 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15671_ACEOF
15672
15673# VPATH may cause trouble with some makes, so we remove $(srcdir),
15674# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15675# trailing colons and then remove the whole line if VPATH becomes empty
15676# (actually we leave an empty line to preserve line numbers).
15677if test "x$srcdir" = x.; then
15678 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15679s/:*\$(srcdir):*/:/
15680s/:*\${srcdir}:*/:/
15681s/:*@srcdir@:*/:/
15682s/^\([^=]*=[ ]*\):*/\1/
15683s/:*$//
15684s/^[^=]*=[ ]*$//
15685}'
15686fi
2aeb72e9 15687
5213506e
RW
15688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15689fi # test -n "$CONFIG_FILES"
2aeb72e9 15690
1c710c3c 15691
5213506e
RW
15692eval set X " :F $CONFIG_FILES "
15693shift
15694for ac_tag
15695do
15696 case $ac_tag in
15697 :[FHLC]) ac_mode=$ac_tag; continue;;
15698 esac
15699 case $ac_mode$ac_tag in
15700 :[FHL]*:*);;
15701 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15702 :[FH]-) ac_tag=-:-;;
15703 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15704 esac
15705 ac_save_IFS=$IFS
15706 IFS=:
15707 set x $ac_tag
15708 IFS=$ac_save_IFS
15709 shift
15710 ac_file=$1
15711 shift
79c06341 15712
5213506e
RW
15713 case $ac_mode in
15714 :L) ac_source=$1;;
15715 :[FH])
15716 ac_file_inputs=
15717 for ac_f
15718 do
15719 case $ac_f in
15720 -) ac_f="$tmp/stdin";;
15721 *) # Look for the file first in the build tree, then in the source tree
15722 # (if the path is not absolute). The absolute path cannot be DOS-style,
15723 # because $ac_f cannot contain `:'.
15724 test -f "$ac_f" ||
15725 case $ac_f in
15726 [\\/$]*) false;;
15727 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15728 esac ||
15729 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15730 esac
15731 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15732 as_fn_append ac_file_inputs " '$ac_f'"
15733 done
1c710c3c 15734
5213506e
RW
15735 # Let's still pretend it is `configure' which instantiates (i.e., don't
15736 # use $as_me), people would be surprised to read:
15737 # /* config.h. Generated by config.status. */
15738 configure_input='Generated from '`
15739 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15740 `' by configure.'
15741 if test x"$ac_file" != x-; then
15742 configure_input="$ac_file. $configure_input"
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15744$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15745 fi
5213506e
RW
15746 # Neutralize special characters interpreted by sed in replacement strings.
15747 case $configure_input in #(
15748 *\&* | *\|* | *\\* )
15749 ac_sed_conf_input=`$as_echo "$configure_input" |
15750 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15751 *) ac_sed_conf_input=$configure_input;;
15752 esac
11a67599 15753
5213506e
RW
15754 case $ac_tag in
15755 *:-:* | *:-) cat >"$tmp/stdin" \
15756 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15757 esac
15758 ;;
11a67599
ZW
15759 esac
15760
5213506e 15761 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15762$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15763 X"$ac_file" : 'X\(//\)[^/]' \| \
15764 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15765 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15766$as_echo X"$ac_file" |
15767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15768 s//\1/
15769 q
15770 }
15771 /^X\(\/\/\)[^/].*/{
15772 s//\1/
15773 q
15774 }
15775 /^X\(\/\/\)$/{
15776 s//\1/
15777 q
15778 }
15779 /^X\(\/\).*/{
15780 s//\1/
15781 q
15782 }
15783 s/.*/./; q'`
15784 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15785 ac_builddir=.
0b0dc272 15786
5213506e
RW
15787case "$ac_dir" in
15788.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15789*)
15790 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15791 # A ".." for each directory in $ac_dir_suffix.
15792 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15793 case $ac_top_builddir_sub in
15794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15796 esac ;;
15797esac
15798ac_abs_top_builddir=$ac_pwd
15799ac_abs_builddir=$ac_pwd$ac_dir_suffix
15800# for backward compatibility:
15801ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15802
15803case $srcdir in
5213506e 15804 .) # We are building in place.
1c710c3c 15805 ac_srcdir=.
5213506e
RW
15806 ac_top_srcdir=$ac_top_builddir_sub
15807 ac_abs_top_srcdir=$ac_pwd ;;
15808 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15809 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15810 ac_top_srcdir=$srcdir
15811 ac_abs_top_srcdir=$srcdir ;;
15812 *) # Relative name.
15813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15814 ac_top_srcdir=$ac_top_build_prefix$srcdir
15815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15816esac
5213506e 15817ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15818
0b0dc272 15819
5213506e
RW
15820 case $ac_mode in
15821 :F)
15822 #
15823 # CONFIG_FILE
15824 #
1c710c3c
DJ
15825
15826 case $INSTALL in
15827 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15828 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15829 esac
5213506e 15830_ACEOF
11a67599 15831
5213506e
RW
15832cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15833# If the template does not know about datarootdir, expand it.
15834# FIXME: This hack should be removed a few years after 2.60.
15835ac_datarootdir_hack=; ac_datarootdir_seen=
15836ac_sed_dataroot='
15837/datarootdir/ {
15838 p
15839 q
15840}
15841/@datadir@/p
15842/@docdir@/p
15843/@infodir@/p
15844/@localedir@/p
15845/@mandir@/p'
15846case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15847*datarootdir*) ac_datarootdir_seen=yes;;
15848*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15850$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15851_ACEOF
5213506e
RW
15852cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853 ac_datarootdir_hack='
15854 s&@datadir@&$datadir&g
15855 s&@docdir@&$docdir&g
15856 s&@infodir@&$infodir&g
15857 s&@localedir@&$localedir&g
15858 s&@mandir@&$mandir&g
15859 s&\\\${datarootdir}&$datarootdir&g' ;;
15860esac
15861_ACEOF
15862
15863# Neutralize VPATH when `$srcdir' = `.'.
15864# Shell code in configure.ac might set extrasub.
15865# FIXME: do we really want to maintain this feature?
15866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15867ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15868$extrasub
15869_ACEOF
5213506e 15870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15871:t
15872/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15873s|@configure_input@|$ac_sed_conf_input|;t t
15874s&@top_builddir@&$ac_top_builddir_sub&;t t
15875s&@top_build_prefix@&$ac_top_build_prefix&;t t
15876s&@srcdir@&$ac_srcdir&;t t
15877s&@abs_srcdir@&$ac_abs_srcdir&;t t
15878s&@top_srcdir@&$ac_top_srcdir&;t t
15879s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15880s&@builddir@&$ac_builddir&;t t
15881s&@abs_builddir@&$ac_abs_builddir&;t t
15882s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15883s&@INSTALL@&$ac_INSTALL&;t t
15884$ac_datarootdir_hack
15885"
15886eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15887if $ac_cs_awk_getline; then
15888 $AWK -f "$tmp/subs.awk"
15889else
15890 $AWK -f "$tmp/subs.awk" | $SHELL
15891fi >$tmp/out \
15892 || as_fn_error "could not create $ac_file" "$LINENO" 5
15893
15894test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15895 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15896 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15898which seems to be undefined. Please make sure it is defined." >&5
15899$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15900which seems to be undefined. Please make sure it is defined." >&2;}
15901
15902 rm -f "$tmp/stdin"
15903 case $ac_file in
15904 -) cat "$tmp/out" && rm -f "$tmp/out";;
15905 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15906 esac \
15907 || as_fn_error "could not create $ac_file" "$LINENO" 5
15908 ;;
11a67599 15909
11a67599 15910
79c06341 15911
5213506e
RW
15912 esac
15913
3e54529c
RW
15914
15915 case $ac_file$ac_mode in
15916 "Makefile":F) sed "$extrasub_build" Makefile |
15917 sed "$extrasub_host" |
15918 sed "$extrasub_target" > mf$$
15919 mv -f mf$$ Makefile ;;
15920
15921 esac
5213506e
RW
15922done # for ac_tag
15923
15924
15925as_fn_exit 0
1c710c3c 15926_ACEOF
1c710c3c
DJ
15927ac_clean_files=$ac_clean_files_save
15928
5213506e
RW
15929test $ac_write_fail = 0 ||
15930 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15931
1c710c3c
DJ
15932
15933# configure is writing to config.log, and then calls config.status.
15934# config.status does its own redirection, appending to config.log.
15935# Unfortunately, on DOS this fails, as config.log is still kept open
15936# by configure, so config.status won't be able to write to it; its
15937# output is simply discarded. So we exec the FD to /dev/null,
15938# effectively closing config.log, so it can be properly (re)opened and
15939# appended to by config.status. When coming back to configure, we
15940# need to make the FD available again.
15941if test "$no_create" != yes; then
15942 ac_cs_success=:
15943 ac_config_status_args=
15944 test "$silent" = yes &&
15945 ac_config_status_args="$ac_config_status_args --quiet"
15946 exec 5>/dev/null
15947 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15948 exec 5>>config.log
15949 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15950 # would make configure fail if this is the last instruction.
5213506e
RW
15951 $ac_cs_success || as_fn_exit $?
15952fi
15953if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15955$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15956fi
79c06341 15957
This page took 4.078153 seconds and 5 git commands to generate.